Interface CfnLifecyclePolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:44.540Z")
@Stability(Stable)
public interface CfnLifecyclePolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnLifecyclePolicy
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.imagebuilder.*; CfnLifecyclePolicyProps cfnLifecyclePolicyProps = CfnLifecyclePolicyProps.builder() .executionRole("executionRole") .name("name") .policyDetails(List.of(PolicyDetailProperty.builder() .action(ActionProperty.builder() .type("type") // the properties below are optional .includeResources(IncludeResourcesProperty.builder() .amis(false) .containers(false) .snapshots(false) .build()) .build()) .filter(FilterProperty.builder() .type("type") .value(123) // the properties below are optional .retainAtLeast(123) .unit("unit") .build()) // the properties below are optional .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()) .build())) .resourceSelection(ResourceSelectionProperty.builder() .recipes(List.of(RecipeSelectionProperty.builder() .name("name") .semanticVersion("semanticVersion") .build())) .tagMap(Map.of( "tagMapKey", "tagMap")) .build()) .resourceType("resourceType") // the properties below are optional .description("description") .status("status") .tags(Map.of( "tagsKey", "tags")) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicyProps
static final class
An implementation forCfnLifecyclePolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
Optional description for the lifecycle policy.The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.getName()
The name of the lifecycle policy to create.Configuration details for the lifecycle policy rules.Selection criteria for the resources that the lifecycle policy applies to.The type of Image Builder resource that the lifecycle policy applies to.default String
Indicates 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
-
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.- See Also:
-
getResourceSelection
Selection criteria for the resources that the lifecycle policy applies to.- See Also:
-
getResourceType
The type of Image Builder resource that the lifecycle policy applies to.- See Also:
-
getDescription
Optional description for the lifecycle policy.- 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
- Returns:
- a
CfnLifecyclePolicyProps.Builder
ofCfnLifecyclePolicyProps
-