Class CfnLifecyclePolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnLifecyclePolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin>
- Enclosing class:
CfnLifecyclePolicyPropsMixin
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin>
A fluent builder for
CfnLifecyclePolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) description(String description) Optional description for the lifecycle policy.executionRole(String executionRole) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.The name of the lifecycle policy to create.policyDetails(List<? extends Object> policyDetails) Configuration details for the lifecycle policy rules.policyDetails(IResolvable policyDetails) Configuration details for the lifecycle policy rules.resourceSelection(CfnLifecyclePolicyPropsMixin.ResourceSelectionProperty resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.resourceSelection(IResolvable resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.resourceType(String resourceType) The type of Image Builder resource that the lifecycle policy applies to.Indicates whether the lifecycle policy resource is enabled.Tags to apply to the lifecycle policy resource.
-
Method Details
-
create
@Stability(Stable) public static CfnLifecyclePolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.Builder.
-
description
Optional description for the lifecycle policy.- Parameters:
description- Optional description for the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
executionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.- Parameters:
executionRole- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions. This parameter is required.- Returns:
this- See Also:
-
name
The name of the lifecycle policy to create.- Parameters:
name- The name of the lifecycle policy to create. This parameter is required.- Returns:
this- See Also:
-
policyDetails
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.Builder policyDetails(IResolvable policyDetails) Configuration details for the lifecycle policy rules.- Parameters:
policyDetails- Configuration details for the lifecycle policy rules. This parameter is required.- Returns:
this- See Also:
-
policyDetails
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.Builder policyDetails(List<? extends Object> policyDetails) Configuration details for the lifecycle policy rules.- Parameters:
policyDetails- Configuration details for the lifecycle policy rules. This parameter is required.- Returns:
this- See Also:
-
resourceSelection
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.Builder resourceSelection(IResolvable resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.- Parameters:
resourceSelection- Selection criteria for the resources that the lifecycle policy applies to. This parameter is required.- Returns:
this- See Also:
-
resourceSelection
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.Builder resourceSelection(CfnLifecyclePolicyPropsMixin.ResourceSelectionProperty resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.- Parameters:
resourceSelection- Selection criteria for the resources that the lifecycle policy applies to. This parameter is required.- Returns:
this- See Also:
-
resourceType
The type of Image Builder resource that the lifecycle policy applies to.- Parameters:
resourceType- The type of Image Builder resource that the lifecycle policy applies to. This parameter is required.- Returns:
this- See Also:
-
status
Indicates whether the lifecycle policy resource is enabled.- Parameters:
status- Indicates whether the lifecycle policy resource is enabled. This parameter is required.- Returns:
this- See Also:
-
tags
Tags to apply to the lifecycle policy resource.- Parameters:
tags- Tags to apply to the lifecycle policy resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin>- Returns:
- a newly built instance of
CfnLifecyclePolicyPropsMixin.
-