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.Builderdescription(String description) Optional description for the lifecycle policy.executionRole(String executionRole) The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.The name of the lifecycle policy.policyDetails(List<? extends Object> policyDetails) The configuration details for a lifecycle policy resource.policyDetails(IResolvable policyDetails) The configuration details for a lifecycle policy resource.resourceSelection(IResolvable resourceSelection) Resource selection criteria used to run the lifecycle policy.resourceSelection(CfnLifecyclePolicy.ResourceSelectionProperty resourceSelection) Resource selection criteria used to run the lifecycle policy.resourceType(String resourceType) The type of resources the lifecycle policy targets.Indicates whether the lifecycle policy resource is enabled.To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags.
-
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) of the IAM role that Image Builder uses to run the lifecycle policy.This is a custom role that you create.
- Parameters:
executionRole- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
name
The name of the lifecycle policy.- Parameters:
name- The name of the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
policyDetails
The configuration details for a lifecycle policy resource.- Parameters:
policyDetails- The configuration details for a lifecycle policy resource. This parameter is required.- Returns:
this- See Also:
-
policyDetails
@Stability(Stable) public CfnLifecyclePolicy.Builder policyDetails(List<? extends Object> policyDetails) The configuration details for a lifecycle policy resource.- Parameters:
policyDetails- The configuration details for a lifecycle policy resource. This parameter is required.- Returns:
this- See Also:
-
resourceSelection
@Stability(Stable) public CfnLifecyclePolicy.Builder resourceSelection(IResolvable resourceSelection) Resource selection criteria used to run the lifecycle policy.- Parameters:
resourceSelection- Resource selection criteria used to run the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
resourceSelection
@Stability(Stable) public CfnLifecyclePolicy.Builder resourceSelection(CfnLifecyclePolicy.ResourceSelectionProperty resourceSelection) Resource selection criteria used to run the lifecycle policy.- Parameters:
resourceSelection- Resource selection criteria used to run the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
resourceType
The type of resources the lifecycle policy targets.- Parameters:
resourceType- The type of resources the lifecycle policy targets. 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
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags.Each tag consists of a key and an optional value, both of which you define.
- Parameters:
tags- To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy>- Returns:
- a newly built instance of
CfnLifecyclePolicy.
-