Interface CfnLifecyclePolicyMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicyMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:00.078Z")
@Stability(Stable)
public interface CfnLifecyclePolicyMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnLifecyclePolicyPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.*;
CfnLifecyclePolicyMixinProps cfnLifecyclePolicyMixinProps = CfnLifecyclePolicyMixinProps.builder()
.description("description")
.executionRole("executionRole")
.name("name")
.policyDetails(List.of(PolicyDetailProperty.builder()
.action(ActionProperty.builder()
.includeResources(IncludeResourcesProperty.builder()
.amis(false)
.containers(false)
.snapshots(false)
.build())
.type("type")
.build())
.exclusionRules(ExclusionRulesProperty.builder()
.amis(AmiExclusionRulesProperty.builder()
.isPublic(false)
.lastLaunched(LastLaunchedProperty.builder()
.unit("unit")
.value(123)
.build())
.regions(List.of("regions"))
.sharedAccounts(List.of("sharedAccounts"))
.tagMap(Map.of(
"tagMapKey", "tagMap"))
.build())
.tagMap(Map.of(
"tagMapKey", "tagMap"))
.build())
.filter(FilterProperty.builder()
.retainAtLeast(123)
.type("type")
.unit("unit")
.value(123)
.build())
.build()))
.resourceSelection(ResourceSelectionProperty.builder()
.recipes(List.of(RecipeSelectionProperty.builder()
.name("name")
.semanticVersion("semanticVersion")
.build()))
.tagMap(Map.of(
"tagMapKey", "tagMap"))
.build())
.resourceType("resourceType")
.status("status")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLifecyclePolicyMixinPropsstatic final classAn implementation forCfnLifecyclePolicyMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringOptional description for the lifecycle policy.default StringThe name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.default StringgetName()The name of the lifecycle policy to create.default ObjectConfiguration details for the lifecycle policy rules.default ObjectSelection criteria for the resources that the lifecycle policy applies to.default StringThe type of Image Builder resource that the lifecycle policy applies to.default StringIndicates whether the lifecycle policy resource is enabled.getTags()Tags to apply to the lifecycle policy resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
Optional description for the lifecycle policy.- See Also:
-
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.- See Also:
-
getName
The name of the lifecycle policy to create.- See Also:
-
getPolicyDetails
Configuration details for the lifecycle policy rules.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLifecyclePolicyPropsMixin.PolicyDetailProperty>- See Also:
-
getResourceSelection
Selection criteria for the resources that the lifecycle policy applies to.Returns union: either
IResolvableorCfnLifecyclePolicyPropsMixin.ResourceSelectionProperty- See Also:
-
getResourceType
The type of Image Builder resource that the lifecycle policy applies to.- See Also:
-
getStatus
Indicates whether the lifecycle policy resource is enabled.- See Also:
-
getTags
Tags to apply to the lifecycle policy resource.- See Also:
-
builder
-