We recommend new projects start with resources from the AWS provider.
aws-native.imagebuilder.LifecyclePolicy
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::ImageBuilder::LifecyclePolicy
Create LifecyclePolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LifecyclePolicy(name: string, args: LifecyclePolicyArgs, opts?: CustomResourceOptions);
@overload
def LifecyclePolicy(resource_name: str,
args: LifecyclePolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LifecyclePolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
execution_role: Optional[str] = None,
policy_details: Optional[Sequence[LifecyclePolicyPolicyDetailArgs]] = None,
resource_selection: Optional[LifecyclePolicyResourceSelectionArgs] = None,
resource_type: Optional[LifecyclePolicyResourceType] = None,
description: Optional[str] = None,
name: Optional[str] = None,
status: Optional[LifecyclePolicyStatus] = None,
tags: Optional[Mapping[str, str]] = None)
func NewLifecyclePolicy(ctx *Context, name string, args LifecyclePolicyArgs, opts ...ResourceOption) (*LifecyclePolicy, error)
public LifecyclePolicy(string name, LifecyclePolicyArgs args, CustomResourceOptions? opts = null)
public LifecyclePolicy(String name, LifecyclePolicyArgs args)
public LifecyclePolicy(String name, LifecyclePolicyArgs args, CustomResourceOptions options)
type: aws-native:imagebuilder:LifecyclePolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LifecyclePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LifecyclePolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LifecyclePolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LifecyclePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LifecyclePolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LifecyclePolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LifecyclePolicy resource accepts the following input properties:
- Execution
Role string - The execution role of the lifecycle policy.
- Policy
Details List<Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Policy Detail> - The policy details of the lifecycle policy.
- Resource
Selection Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Resource Selection - The resource selection of the lifecycle policy.
- Resource
Type Pulumi.Aws Native. Image Builder. Lifecycle Policy Resource Type - The resource type of the lifecycle policy.
- Description string
- The description of the lifecycle policy.
- Name string
- The name of the lifecycle policy.
- Status
Pulumi.
Aws Native. Image Builder. Lifecycle Policy Status - The status of the lifecycle policy.
- Dictionary<string, string>
- The tags associated with the lifecycle policy.
- Execution
Role string - The execution role of the lifecycle policy.
- Policy
Details []LifecyclePolicy Policy Detail Args - The policy details of the lifecycle policy.
- Resource
Selection LifecyclePolicy Resource Selection Args - The resource selection of the lifecycle policy.
- Resource
Type LifecyclePolicy Resource Type - The resource type of the lifecycle policy.
- Description string
- The description of the lifecycle policy.
- Name string
- The name of the lifecycle policy.
- Status
Lifecycle
Policy Status - The status of the lifecycle policy.
- map[string]string
- The tags associated with the lifecycle policy.
- execution
Role String - The execution role of the lifecycle policy.
- policy
Details List<LifecyclePolicy Policy Detail> - The policy details of the lifecycle policy.
- resource
Selection LifecyclePolicy Resource Selection - The resource selection of the lifecycle policy.
- resource
Type LifecyclePolicy Resource Type - The resource type of the lifecycle policy.
- description String
- The description of the lifecycle policy.
- name String
- The name of the lifecycle policy.
- status
Lifecycle
Policy Status - The status of the lifecycle policy.
- Map<String,String>
- The tags associated with the lifecycle policy.
- execution
Role string - The execution role of the lifecycle policy.
- policy
Details LifecyclePolicy Policy Detail[] - The policy details of the lifecycle policy.
- resource
Selection LifecyclePolicy Resource Selection - The resource selection of the lifecycle policy.
- resource
Type LifecyclePolicy Resource Type - The resource type of the lifecycle policy.
- description string
- The description of the lifecycle policy.
- name string
- The name of the lifecycle policy.
- status
Lifecycle
Policy Status - The status of the lifecycle policy.
- {[key: string]: string}
- The tags associated with the lifecycle policy.
- execution_
role str - The execution role of the lifecycle policy.
- policy_
details Sequence[LifecyclePolicy Policy Detail Args] - The policy details of the lifecycle policy.
- resource_
selection LifecyclePolicy Resource Selection Args - The resource selection of the lifecycle policy.
- resource_
type LifecyclePolicy Resource Type - The resource type of the lifecycle policy.
- description str
- The description of the lifecycle policy.
- name str
- The name of the lifecycle policy.
- status
Lifecycle
Policy Status - The status of the lifecycle policy.
- Mapping[str, str]
- The tags associated with the lifecycle policy.
- execution
Role String - The execution role of the lifecycle policy.
- policy
Details List<Property Map> - The policy details of the lifecycle policy.
- resource
Selection Property Map - The resource selection of the lifecycle policy.
- resource
Type "AMI_IMAGE" | "CONTAINER_IMAGE" - The resource type of the lifecycle policy.
- description String
- The description of the lifecycle policy.
- name String
- The name of the lifecycle policy.
- status "DISABLED" | "ENABLED"
- The status of the lifecycle policy.
- Map<String>
- The tags associated with the lifecycle policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the LifecyclePolicy resource produces the following output properties:
Supporting Types
LifecyclePolicyAction, LifecyclePolicyActionArgs
- Type
Pulumi.
Aws Native. Image Builder. Lifecycle Policy Action Type - The action type of the policy detail.
- Include
Resources Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Include Resources - Specifies the resources that the lifecycle policy applies to.
- Type
Lifecycle
Policy Action Type - The action type of the policy detail.
- Include
Resources LifecyclePolicy Include Resources - Specifies the resources that the lifecycle policy applies to.
- type
Lifecycle
Policy Action Type - The action type of the policy detail.
- include
Resources LifecyclePolicy Include Resources - Specifies the resources that the lifecycle policy applies to.
- type
Lifecycle
Policy Action Type - The action type of the policy detail.
- include
Resources LifecyclePolicy Include Resources - Specifies the resources that the lifecycle policy applies to.
- type
Lifecycle
Policy Action Type - The action type of the policy detail.
- include_
resources LifecyclePolicy Include Resources - Specifies the resources that the lifecycle policy applies to.
- type "DELETE" | "DEPRECATE" | "DISABLE"
- The action type of the policy detail.
- include
Resources Property Map - Specifies the resources that the lifecycle policy applies to.
LifecyclePolicyActionType, LifecyclePolicyActionTypeArgs
- Delete
- DELETE
- Deprecate
- DEPRECATE
- Disable
- DISABLE
- Lifecycle
Policy Action Type Delete - DELETE
- Lifecycle
Policy Action Type Deprecate - DEPRECATE
- Lifecycle
Policy Action Type Disable - DISABLE
- Delete
- DELETE
- Deprecate
- DEPRECATE
- Disable
- DISABLE
- Delete
- DELETE
- Deprecate
- DEPRECATE
- Disable
- DISABLE
- DELETE
- DELETE
- DEPRECATE
- DEPRECATE
- DISABLE
- DISABLE
- "DELETE"
- DELETE
- "DEPRECATE"
- DEPRECATE
- "DISABLE"
- DISABLE
LifecyclePolicyAmiExclusionRules, LifecyclePolicyAmiExclusionRulesArgs
- Is
Public bool - Use to apply lifecycle policy actions on whether the AMI is public.
- Last
Launched Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Last Launched - Use to apply lifecycle policy actions on AMIs launched before a certain time.
- Regions List<string>
- Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
- List<string>
- Use to apply lifecycle policy actions on AMIs shared with a set of regions.
- Tag
Map Dictionary<string, string> - The AMIs to select by tag.
- Is
Public bool - Use to apply lifecycle policy actions on whether the AMI is public.
- Last
Launched LifecyclePolicy Last Launched - Use to apply lifecycle policy actions on AMIs launched before a certain time.
- Regions []string
- Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
- []string
- Use to apply lifecycle policy actions on AMIs shared with a set of regions.
- Tag
Map map[string]string - The AMIs to select by tag.
- is
Public Boolean - Use to apply lifecycle policy actions on whether the AMI is public.
- last
Launched LifecyclePolicy Last Launched - Use to apply lifecycle policy actions on AMIs launched before a certain time.
- regions List<String>
- Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
- List<String>
- Use to apply lifecycle policy actions on AMIs shared with a set of regions.
- tag
Map Map<String,String> - The AMIs to select by tag.
- is
Public boolean - Use to apply lifecycle policy actions on whether the AMI is public.
- last
Launched LifecyclePolicy Last Launched - Use to apply lifecycle policy actions on AMIs launched before a certain time.
- regions string[]
- Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
- string[]
- Use to apply lifecycle policy actions on AMIs shared with a set of regions.
- tag
Map {[key: string]: string} - The AMIs to select by tag.
- is_
public bool - Use to apply lifecycle policy actions on whether the AMI is public.
- last_
launched LifecyclePolicy Last Launched - Use to apply lifecycle policy actions on AMIs launched before a certain time.
- regions Sequence[str]
- Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
- Sequence[str]
- Use to apply lifecycle policy actions on AMIs shared with a set of regions.
- tag_
map Mapping[str, str] - The AMIs to select by tag.
- is
Public Boolean - Use to apply lifecycle policy actions on whether the AMI is public.
- last
Launched Property Map - Use to apply lifecycle policy actions on AMIs launched before a certain time.
- regions List<String>
- Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
- List<String>
- Use to apply lifecycle policy actions on AMIs shared with a set of regions.
- tag
Map Map<String> - The AMIs to select by tag.
LifecyclePolicyExclusionRules, LifecyclePolicyExclusionRulesArgs
- Amis
Pulumi.
Aws Native. Image Builder. Inputs. Lifecycle Policy Ami Exclusion Rules - Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- Tag
Map Dictionary<string, string> - The Image Builder tags to filter on.
- Amis
Lifecycle
Policy Ami Exclusion Rules - Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- Tag
Map map[string]string - The Image Builder tags to filter on.
- amis
Lifecycle
Policy Ami Exclusion Rules - Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- tag
Map Map<String,String> - The Image Builder tags to filter on.
- amis
Lifecycle
Policy Ami Exclusion Rules - Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- tag
Map {[key: string]: string} - The Image Builder tags to filter on.
- amis
Lifecycle
Policy Ami Exclusion Rules - Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- tag_
map Mapping[str, str] - The Image Builder tags to filter on.
- amis Property Map
- Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- tag
Map Map<String> - The Image Builder tags to filter on.
LifecyclePolicyFilter, LifecyclePolicyFilterArgs
- Type
Pulumi.
Aws Native. Image Builder. Lifecycle Policy Filter Type - The filter type.
- Value int
- The filter value.
- Retain
At intLeast - The minimum number of Image Builder resources to retain.
- Unit
Pulumi.
Aws Native. Image Builder. Lifecycle Policy Time Unit - The value's time unit.
- Type
Lifecycle
Policy Filter Type - The filter type.
- Value int
- The filter value.
- Retain
At intLeast - The minimum number of Image Builder resources to retain.
- Unit
Lifecycle
Policy Time Unit - The value's time unit.
- type
Lifecycle
Policy Filter Type - The filter type.
- value Integer
- The filter value.
- retain
At IntegerLeast - The minimum number of Image Builder resources to retain.
- unit
Lifecycle
Policy Time Unit - The value's time unit.
- type
Lifecycle
Policy Filter Type - The filter type.
- value number
- The filter value.
- retain
At numberLeast - The minimum number of Image Builder resources to retain.
- unit
Lifecycle
Policy Time Unit - The value's time unit.
- type
Lifecycle
Policy Filter Type - The filter type.
- value int
- The filter value.
- retain_
at_ intleast - The minimum number of Image Builder resources to retain.
- unit
Lifecycle
Policy Time Unit - The value's time unit.
- type "AGE" | "COUNT"
- The filter type.
- value Number
- The filter value.
- retain
At NumberLeast - The minimum number of Image Builder resources to retain.
- unit "DAYS" | "WEEKS" | "MONTHS" | "YEARS"
- The value's time unit.
LifecyclePolicyFilterType, LifecyclePolicyFilterTypeArgs
- Age
- AGE
- Count
- COUNT
- Lifecycle
Policy Filter Type Age - AGE
- Lifecycle
Policy Filter Type Count - COUNT
- Age
- AGE
- Count
- COUNT
- Age
- AGE
- Count
- COUNT
- AGE
- AGE
- COUNT
- COUNT
- "AGE"
- AGE
- "COUNT"
- COUNT
LifecyclePolicyIncludeResources, LifecyclePolicyIncludeResourcesArgs
- Amis bool
- Use to configure lifecycle actions on AMIs.
- Containers bool
- Use to configure lifecycle actions on containers.
- Snapshots bool
- Use to configure lifecycle actions on snapshots.
- Amis bool
- Use to configure lifecycle actions on AMIs.
- Containers bool
- Use to configure lifecycle actions on containers.
- Snapshots bool
- Use to configure lifecycle actions on snapshots.
- amis Boolean
- Use to configure lifecycle actions on AMIs.
- containers Boolean
- Use to configure lifecycle actions on containers.
- snapshots Boolean
- Use to configure lifecycle actions on snapshots.
- amis boolean
- Use to configure lifecycle actions on AMIs.
- containers boolean
- Use to configure lifecycle actions on containers.
- snapshots boolean
- Use to configure lifecycle actions on snapshots.
- amis bool
- Use to configure lifecycle actions on AMIs.
- containers bool
- Use to configure lifecycle actions on containers.
- snapshots bool
- Use to configure lifecycle actions on snapshots.
- amis Boolean
- Use to configure lifecycle actions on AMIs.
- containers Boolean
- Use to configure lifecycle actions on containers.
- snapshots Boolean
- Use to configure lifecycle actions on snapshots.
LifecyclePolicyLastLaunched, LifecyclePolicyLastLaunchedArgs
- Unit
Pulumi.
Aws Native. Image Builder. Lifecycle Policy Time Unit - The value's time unit.
- Value int
- The last launched value.
- Unit
Lifecycle
Policy Time Unit - The value's time unit.
- Value int
- The last launched value.
- unit
Lifecycle
Policy Time Unit - The value's time unit.
- value Integer
- The last launched value.
- unit
Lifecycle
Policy Time Unit - The value's time unit.
- value number
- The last launched value.
- unit
Lifecycle
Policy Time Unit - The value's time unit.
- value int
- The last launched value.
- unit "DAYS" | "WEEKS" | "MONTHS" | "YEARS"
- The value's time unit.
- value Number
- The last launched value.
LifecyclePolicyPolicyDetail, LifecyclePolicyPolicyDetailArgs
- Action
Pulumi.
Aws Native. Image Builder. Inputs. Lifecycle Policy Action - Configuration details for the policy action.
- Filter
Pulumi.
Aws Native. Image Builder. Inputs. Lifecycle Policy Filter - Specifies the resources that the lifecycle policy applies to.
- Exclusion
Rules Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Exclusion Rules - Additional rules to specify resources that should be exempt from policy actions.
- Action
Lifecycle
Policy Action - Configuration details for the policy action.
- Filter
Lifecycle
Policy Filter - Specifies the resources that the lifecycle policy applies to.
- Exclusion
Rules LifecyclePolicy Exclusion Rules - Additional rules to specify resources that should be exempt from policy actions.
- action
Lifecycle
Policy Action - Configuration details for the policy action.
- filter
Lifecycle
Policy Filter - Specifies the resources that the lifecycle policy applies to.
- exclusion
Rules LifecyclePolicy Exclusion Rules - Additional rules to specify resources that should be exempt from policy actions.
- action
Lifecycle
Policy Action - Configuration details for the policy action.
- filter
Lifecycle
Policy Filter - Specifies the resources that the lifecycle policy applies to.
- exclusion
Rules LifecyclePolicy Exclusion Rules - Additional rules to specify resources that should be exempt from policy actions.
- action
Lifecycle
Policy Action - Configuration details for the policy action.
- filter
Lifecycle
Policy Filter - Specifies the resources that the lifecycle policy applies to.
- exclusion_
rules LifecyclePolicy Exclusion Rules - Additional rules to specify resources that should be exempt from policy actions.
- action Property Map
- Configuration details for the policy action.
- filter Property Map
- Specifies the resources that the lifecycle policy applies to.
- exclusion
Rules Property Map - Additional rules to specify resources that should be exempt from policy actions.
LifecyclePolicyRecipeSelection, LifecyclePolicyRecipeSelectionArgs
- Name string
- The recipe name.
- Semantic
Version string - The recipe version.
- Name string
- The recipe name.
- Semantic
Version string - The recipe version.
- name String
- The recipe name.
- semantic
Version String - The recipe version.
- name string
- The recipe name.
- semantic
Version string - The recipe version.
- name str
- The recipe name.
- semantic_
version str - The recipe version.
- name String
- The recipe name.
- semantic
Version String - The recipe version.
LifecyclePolicyResourceSelection, LifecyclePolicyResourceSelectionArgs
- Recipes
List<Pulumi.
Aws Native. Image Builder. Inputs. Lifecycle Policy Recipe Selection> - The recipes to select.
- Tag
Map Dictionary<string, string> - The Image Builder resources to select by tag.
- Recipes
[]Lifecycle
Policy Recipe Selection - The recipes to select.
- Tag
Map map[string]string - The Image Builder resources to select by tag.
- recipes
List<Lifecycle
Policy Recipe Selection> - The recipes to select.
- tag
Map Map<String,String> - The Image Builder resources to select by tag.
- recipes
Lifecycle
Policy Recipe Selection[] - The recipes to select.
- tag
Map {[key: string]: string} - The Image Builder resources to select by tag.
- recipes
Sequence[Lifecycle
Policy Recipe Selection] - The recipes to select.
- tag_
map Mapping[str, str] - The Image Builder resources to select by tag.
- recipes List<Property Map>
- The recipes to select.
- tag
Map Map<String> - The Image Builder resources to select by tag.
LifecyclePolicyResourceType, LifecyclePolicyResourceTypeArgs
- Ami
Image - AMI_IMAGE
- Container
Image - CONTAINER_IMAGE
- Lifecycle
Policy Resource Type Ami Image - AMI_IMAGE
- Lifecycle
Policy Resource Type Container Image - CONTAINER_IMAGE
- Ami
Image - AMI_IMAGE
- Container
Image - CONTAINER_IMAGE
- Ami
Image - AMI_IMAGE
- Container
Image - CONTAINER_IMAGE
- AMI_IMAGE
- AMI_IMAGE
- CONTAINER_IMAGE
- CONTAINER_IMAGE
- "AMI_IMAGE"
- AMI_IMAGE
- "CONTAINER_IMAGE"
- CONTAINER_IMAGE
LifecyclePolicyStatus, LifecyclePolicyStatusArgs
- Disabled
- DISABLED
- Enabled
- ENABLED
- Lifecycle
Policy Status Disabled - DISABLED
- Lifecycle
Policy Status Enabled - ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- DISABLED
- DISABLED
- ENABLED
- ENABLED
- "DISABLED"
- DISABLED
- "ENABLED"
- ENABLED
LifecyclePolicyTimeUnit, LifecyclePolicyTimeUnitArgs
- Days
- DAYS
- Weeks
- WEEKS
- Months
- MONTHS
- Years
- YEARS
- Lifecycle
Policy Time Unit Days - DAYS
- Lifecycle
Policy Time Unit Weeks - WEEKS
- Lifecycle
Policy Time Unit Months - MONTHS
- Lifecycle
Policy Time Unit Years - YEARS
- Days
- DAYS
- Weeks
- WEEKS
- Months
- MONTHS
- Years
- YEARS
- Days
- DAYS
- Weeks
- WEEKS
- Months
- MONTHS
- Years
- YEARS
- DAYS
- DAYS
- WEEKS
- WEEKS
- MONTHS
- MONTHS
- YEARS
- YEARS
- "DAYS"
- DAYS
- "WEEKS"
- WEEKS
- "MONTHS"
- MONTHS
- "YEARS"
- YEARS
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.