@Stability(value=Stable) public static final class CfnLifecyclePolicy.EventParametersProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLifecyclePolicy.EventParametersProperty>
CfnLifecyclePolicy.EventParametersProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnLifecyclePolicy.EventParametersProperty |
build()
Builds the configured instance.
|
CfnLifecyclePolicy.EventParametersProperty.Builder |
descriptionRegex(String descriptionRegex)
Sets the value of
CfnLifecyclePolicy.EventParametersProperty.getDescriptionRegex() |
CfnLifecyclePolicy.EventParametersProperty.Builder |
eventType(String eventType)
Sets the value of
CfnLifecyclePolicy.EventParametersProperty.getEventType() |
CfnLifecyclePolicy.EventParametersProperty.Builder |
snapshotOwner(List<String> snapshotOwner)
Sets the value of
CfnLifecyclePolicy.EventParametersProperty.getSnapshotOwner() |
@Stability(value=Stable) public CfnLifecyclePolicy.EventParametersProperty.Builder eventType(String eventType)
CfnLifecyclePolicy.EventParametersProperty.getEventType()eventType - The type of event. This parameter is required.
Currently, only snapshot sharing events are supported.this@Stability(value=Stable) public CfnLifecyclePolicy.EventParametersProperty.Builder snapshotOwner(List<String> snapshotOwner)
CfnLifecyclePolicy.EventParametersProperty.getSnapshotOwner()snapshotOwner - The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. This parameter is required.
The policy only runs if one of the specified AWS accounts shares a snapshot with your account.this@Stability(value=Stable) public CfnLifecyclePolicy.EventParametersProperty.Builder descriptionRegex(String descriptionRegex)
CfnLifecyclePolicy.EventParametersProperty.getDescriptionRegex()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 policy policy-1234567890abcdef0 are shared with your account.
this@Stability(value=Stable) public CfnLifecyclePolicy.EventParametersProperty build()
build in interface software.amazon.jsii.Builder<CfnLifecyclePolicy.EventParametersProperty>CfnLifecyclePolicy.EventParametersPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.