LifecyclePolicyArgs constructor

const LifecyclePolicyArgs({
  1. Input<String?>? description,
  2. required Input<String> executionRole,
  3. Input<String?>? name,
  4. required Input<List<LifecyclePolicyPolicyDetail>> policyDetails,
  5. Input<String?>? region,
  6. required Input<LifecyclePolicyResourceSelection> resourceSelection,
  7. required Input<String> resourceType,
  8. Input<String?>? status,
  9. Input<Map<String, String>?>? tags,
})

Creates a new LifecyclePolicyArgs. description description for the lifecycle policy. executionRole ARN for the IAM role you create that grants Image Builder access to run lifecycle actions. More information about this role can be found here. name The name of the lifecycle policy to create. policyDetails Configuration block with policy details. Detailed below. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. resourceSelection Selection criteria for the resources that the lifecycle policy applies to. Detailed below. resourceType The type of Image Builder resource that the lifecycle policy applies to. Valid values: AMI_IMAGE or CONTAINER_IMAGE. status The status of the lifecycle policy. tags Key-value map of resource tags for the Image Builder Lifecycle Policy. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Implementation

const LifecyclePolicyArgs({
  this.description,
  required this.executionRole,
  this.name,
  required this.policyDetails,
  this.region,
  required this.resourceSelection,
  required this.resourceType,
  this.status,
  this.tags,
});