Class CfnLifecyclePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy>
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static final class CfnLifecyclePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy>
A fluent builder for
CfnLifecyclePolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnLifecyclePolicy.Builder
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
(IResolvable resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.resourceSelection
(CfnLifecyclePolicy.ResourceSelectionProperty 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 CfnLifecyclePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLifecyclePolicy.Builder
.
-
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
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 CfnLifecyclePolicy.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 CfnLifecyclePolicy.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 CfnLifecyclePolicy.Builder resourceSelection(CfnLifecyclePolicy.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:
-
description
Optional description for the lifecycle policy.- Parameters:
description
- Optional description for the lifecycle policy. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy>
- Returns:
- a newly built instance of
CfnLifecyclePolicy
.
-