We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.imagebuilder.getLifecyclePolicy
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
Resource schema for AWS::ImageBuilder::LifecyclePolicy
Using getLifecyclePolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLifecyclePolicy(args: GetLifecyclePolicyArgs, opts?: InvokeOptions): Promise<GetLifecyclePolicyResult>
function getLifecyclePolicyOutput(args: GetLifecyclePolicyOutputArgs, opts?: InvokeOptions): Output<GetLifecyclePolicyResult>def get_lifecycle_policy(arn: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetLifecyclePolicyResult
def get_lifecycle_policy_output(arn: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetLifecyclePolicyResult]func LookupLifecyclePolicy(ctx *Context, args *LookupLifecyclePolicyArgs, opts ...InvokeOption) (*LookupLifecyclePolicyResult, error)
func LookupLifecyclePolicyOutput(ctx *Context, args *LookupLifecyclePolicyOutputArgs, opts ...InvokeOption) LookupLifecyclePolicyResultOutput> Note: This function is named LookupLifecyclePolicy in the Go SDK.
public static class GetLifecyclePolicy 
{
    public static Task<GetLifecyclePolicyResult> InvokeAsync(GetLifecyclePolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetLifecyclePolicyResult> Invoke(GetLifecyclePolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLifecyclePolicyResult> getLifecyclePolicy(GetLifecyclePolicyArgs args, InvokeOptions options)
public static Output<GetLifecyclePolicyResult> getLifecyclePolicy(GetLifecyclePolicyArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:imagebuilder:getLifecyclePolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- The Amazon Resource Name (ARN) of the lifecycle policy.
- Arn string
- The Amazon Resource Name (ARN) of the lifecycle policy.
- arn String
- The Amazon Resource Name (ARN) of the lifecycle policy.
- arn string
- The Amazon Resource Name (ARN) of the lifecycle policy.
- arn str
- The Amazon Resource Name (ARN) of the lifecycle policy.
- arn String
- The Amazon Resource Name (ARN) of the lifecycle policy.
getLifecyclePolicy Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the lifecycle policy.
- Description string
- The description of the lifecycle policy.
- ExecutionRole string
- The execution role of the lifecycle policy.
- PolicyDetails List<Pulumi.Aws Native. Image Builder. Outputs. Lifecycle Policy Policy Detail> 
- The policy details of the lifecycle policy.
- ResourceSelection Pulumi.Aws Native. Image Builder. Outputs. Lifecycle Policy Resource Selection 
- The resource selection of the lifecycle policy.
- ResourceType Pulumi.Aws Native. Image Builder. Lifecycle Policy Resource Type 
- The resource type 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.
- Arn string
- The Amazon Resource Name (ARN) of the lifecycle policy.
- Description string
- The description of the lifecycle policy.
- ExecutionRole string
- The execution role of the lifecycle policy.
- PolicyDetails []LifecyclePolicy Policy Detail 
- The policy details of the lifecycle policy.
- ResourceSelection LifecyclePolicy Resource Selection 
- The resource selection of the lifecycle policy.
- ResourceType LifecyclePolicy Resource Type 
- The resource type of the lifecycle policy.
- Status
LifecyclePolicy Status 
- The status of the lifecycle policy.
- map[string]string
- The tags associated with the lifecycle policy.
- arn String
- The Amazon Resource Name (ARN) of the lifecycle policy.
- description String
- The description of the lifecycle policy.
- executionRole String
- The execution role of the lifecycle policy.
- policyDetails List<LifecyclePolicy Policy Detail> 
- The policy details of the lifecycle policy.
- resourceSelection LifecyclePolicy Resource Selection 
- The resource selection of the lifecycle policy.
- resourceType LifecyclePolicy Resource Type 
- The resource type of the lifecycle policy.
- status
LifecyclePolicy Status 
- The status of the lifecycle policy.
- Map<String,String>
- The tags associated with the lifecycle policy.
- arn string
- The Amazon Resource Name (ARN) of the lifecycle policy.
- description string
- The description of the lifecycle policy.
- executionRole string
- The execution role of the lifecycle policy.
- policyDetails LifecyclePolicy Policy Detail[] 
- The policy details of the lifecycle policy.
- resourceSelection LifecyclePolicy Resource Selection 
- The resource selection of the lifecycle policy.
- resourceType LifecyclePolicy Resource Type 
- The resource type of the lifecycle policy.
- status
LifecyclePolicy Status 
- The status of the lifecycle policy.
- {[key: string]: string}
- The tags associated with the lifecycle policy.
- arn str
- The Amazon Resource Name (ARN) of the lifecycle policy.
- description str
- The description of the lifecycle policy.
- execution_role str
- The execution role of the lifecycle policy.
- policy_details Sequence[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.
- status
LifecyclePolicy Status 
- The status of the lifecycle policy.
- Mapping[str, str]
- The tags associated with the lifecycle policy.
- arn String
- The Amazon Resource Name (ARN) of the lifecycle policy.
- description String
- The description of the lifecycle policy.
- executionRole String
- The execution role of the lifecycle policy.
- policyDetails List<Property Map>
- The policy details of the lifecycle policy.
- resourceSelection Property Map
- The resource selection of the lifecycle policy.
- resourceType "AMI_IMAGE" | "CONTAINER_IMAGE"
- The resource type of the lifecycle policy.
- status "DISABLED" | "ENABLED"
- The status of the lifecycle policy.
- Map<String>
- The tags associated with the lifecycle policy.
Supporting Types
LifecyclePolicyAction  
- Type
Pulumi.Aws Native. Image Builder. Lifecycle Policy Action Type 
- The action type of the policy detail.
- IncludeResources Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Include Resources 
- Specifies the resources that the lifecycle policy applies to.
- Type
LifecyclePolicy Action Type 
- The action type of the policy detail.
- IncludeResources LifecyclePolicy Include Resources 
- Specifies the resources that the lifecycle policy applies to.
- type
LifecyclePolicy Action Type 
- The action type of the policy detail.
- includeResources LifecyclePolicy Include Resources 
- Specifies the resources that the lifecycle policy applies to.
- type
LifecyclePolicy Action Type 
- The action type of the policy detail.
- includeResources LifecyclePolicy Include Resources 
- Specifies the resources that the lifecycle policy applies to.
- type
LifecyclePolicy 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.
- includeResources Property Map
- Specifies the resources that the lifecycle policy applies to.
LifecyclePolicyActionType   
LifecyclePolicyAmiExclusionRules    
- IsPublic bool
- Use to apply lifecycle policy actions on whether the AMI is public.
- LastLaunched 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.
- TagMap Dictionary<string, string>
- The AMIs to select by tag.
- IsPublic bool
- Use to apply lifecycle policy actions on whether the AMI is public.
- LastLaunched 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.
- TagMap map[string]string
- The AMIs to select by tag.
- isPublic Boolean
- Use to apply lifecycle policy actions on whether the AMI is public.
- lastLaunched 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.
- tagMap Map<String,String>
- The AMIs to select by tag.
- isPublic boolean
- Use to apply lifecycle policy actions on whether the AMI is public.
- lastLaunched 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.
- tagMap {[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.
- isPublic Boolean
- Use to apply lifecycle policy actions on whether the AMI is public.
- lastLaunched 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.
- tagMap Map<String>
- The AMIs to select by tag.
LifecyclePolicyExclusionRules   
- 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.
- TagMap Dictionary<string, string>
- The Image Builder tags to filter on.
- Amis
LifecyclePolicy Ami Exclusion Rules 
- Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- TagMap map[string]string
- The Image Builder tags to filter on.
- amis
LifecyclePolicy Ami Exclusion Rules 
- Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- tagMap Map<String,String>
- The Image Builder tags to filter on.
- amis
LifecyclePolicy Ami Exclusion Rules 
- Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
- tagMap {[key: string]: string}
- The Image Builder tags to filter on.
- amis
LifecyclePolicy 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.
- tagMap Map<String>
- The Image Builder tags to filter on.
LifecyclePolicyFilter  
- Type
Pulumi.Aws Native. Image Builder. Lifecycle Policy Filter Type 
- The filter type.
- Value int
- The filter value.
- RetainAt 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
LifecyclePolicy Filter Type 
- The filter type.
- Value int
- The filter value.
- RetainAt intLeast 
- The minimum number of Image Builder resources to retain.
- Unit
LifecyclePolicy Time Unit 
- The value's time unit.
- type
LifecyclePolicy Filter Type 
- The filter type.
- value Integer
- The filter value.
- retainAt IntegerLeast 
- The minimum number of Image Builder resources to retain.
- unit
LifecyclePolicy Time Unit 
- The value's time unit.
- type
LifecyclePolicy Filter Type 
- The filter type.
- value number
- The filter value.
- retainAt numberLeast 
- The minimum number of Image Builder resources to retain.
- unit
LifecyclePolicy Time Unit 
- The value's time unit.
- type
LifecyclePolicy Filter Type 
- The filter type.
- value int
- The filter value.
- retain_at_ intleast 
- The minimum number of Image Builder resources to retain.
- unit
LifecyclePolicy Time Unit 
- The value's time unit.
- type "AGE" | "COUNT"
- The filter type.
- value Number
- The filter value.
- retainAt NumberLeast 
- The minimum number of Image Builder resources to retain.
- unit "DAYS" | "WEEKS" | "MONTHS" | "YEARS"
- The value's time unit.
LifecyclePolicyFilterType   
LifecyclePolicyIncludeResources   
- 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   
- Unit
Pulumi.Aws Native. Image Builder. Lifecycle Policy Time Unit 
- The value's time unit.
- Value int
- The last launched value.
- Unit
LifecyclePolicy Time Unit 
- The value's time unit.
- Value int
- The last launched value.
- unit
LifecyclePolicy Time Unit 
- The value's time unit.
- value Integer
- The last launched value.
- unit
LifecyclePolicy Time Unit 
- The value's time unit.
- value number
- The last launched value.
- unit
LifecyclePolicy 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   
- 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.
- ExclusionRules Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Exclusion Rules 
- Additional rules to specify resources that should be exempt from policy actions.
- Action
LifecyclePolicy Action 
- Configuration details for the policy action.
- Filter
LifecyclePolicy Filter 
- Specifies the resources that the lifecycle policy applies to.
- ExclusionRules LifecyclePolicy Exclusion Rules 
- Additional rules to specify resources that should be exempt from policy actions.
- action
LifecyclePolicy Action 
- Configuration details for the policy action.
- filter
LifecyclePolicy Filter 
- Specifies the resources that the lifecycle policy applies to.
- exclusionRules LifecyclePolicy Exclusion Rules 
- Additional rules to specify resources that should be exempt from policy actions.
- action
LifecyclePolicy Action 
- Configuration details for the policy action.
- filter
LifecyclePolicy Filter 
- Specifies the resources that the lifecycle policy applies to.
- exclusionRules LifecyclePolicy Exclusion Rules 
- Additional rules to specify resources that should be exempt from policy actions.
- action
LifecyclePolicy Action 
- Configuration details for the policy action.
- filter
LifecyclePolicy 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.
- exclusionRules Property Map
- Additional rules to specify resources that should be exempt from policy actions.
LifecyclePolicyRecipeSelection   
- Name string
- The recipe name.
- SemanticVersion string
- The recipe version.
- Name string
- The recipe name.
- SemanticVersion string
- The recipe version.
- name String
- The recipe name.
- semanticVersion String
- The recipe version.
- name string
- The recipe name.
- semanticVersion string
- The recipe version.
- name str
- The recipe name.
- semantic_version str
- The recipe version.
- name String
- The recipe name.
- semanticVersion String
- The recipe version.
LifecyclePolicyResourceSelection   
- Recipes
List<Pulumi.Aws Native. Image Builder. Inputs. Lifecycle Policy Recipe Selection> 
- The recipes to select.
- TagMap Dictionary<string, string>
- The Image Builder resources to select by tag.
- Recipes
[]LifecyclePolicy Recipe Selection 
- The recipes to select.
- TagMap map[string]string
- The Image Builder resources to select by tag.
- recipes
List<LifecyclePolicy Recipe Selection> 
- The recipes to select.
- tagMap Map<String,String>
- The Image Builder resources to select by tag.
- recipes
LifecyclePolicy Recipe Selection[] 
- The recipes to select.
- tagMap {[key: string]: string}
- The Image Builder resources to select by tag.
- recipes
Sequence[LifecyclePolicy 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.
- tagMap Map<String>
- The Image Builder resources to select by tag.
LifecyclePolicyResourceType   
LifecyclePolicyStatus  
LifecyclePolicyTimeUnit   
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi