Class CfnLifecyclePolicyPropsMixin.EventParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dlm.CfnLifecyclePolicyPropsMixin.EventParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.EventParametersProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.EventParametersProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.EventParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.EventParametersProperty>
A builder for
CfnLifecyclePolicyPropsMixin.EventParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.descriptionRegex(String descriptionRegex) Sets the value ofCfnLifecyclePolicyPropsMixin.EventParametersProperty.getEventType()snapshotOwner(List<String> snapshotOwner) Sets the value ofCfnLifecyclePolicyPropsMixin.EventParametersProperty.getSnapshotOwner()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
descriptionRegex
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.EventParametersProperty.Builder descriptionRegex(String descriptionRegex) - Parameters:
descriptionRegex- The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.For example, specifying
^.*Created for policy: policy-1234567890abcdef0.*$configures the policy to run only if snapshots created by policypolicy-1234567890abcdef0are shared with your account.- Returns:
this
-
eventType
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.EventParametersProperty.Builder eventType(String eventType) Sets the value ofCfnLifecyclePolicyPropsMixin.EventParametersProperty.getEventType()- Parameters:
eventType- The type of event. Currently, only snapshot sharing events are supported.- Returns:
this
-
snapshotOwner
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.EventParametersProperty.Builder snapshotOwner(List<String> snapshotOwner) Sets the value ofCfnLifecyclePolicyPropsMixin.EventParametersProperty.getSnapshotOwner()- Parameters:
snapshotOwner- The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.EventParametersProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.EventParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-