@Stability(value=Stable)
public static interface CfnLifecyclePolicy.EventParametersProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dlm.*;
EventParametersProperty eventParametersProperty = EventParametersProperty.builder()
.eventType("eventType")
.snapshotOwner(List.of("snapshotOwner"))
// the properties below are optional
.descriptionRegex("descriptionRegex")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.EventParametersProperty.Builder
A builder for
CfnLifecyclePolicy.EventParametersProperty |
static class |
CfnLifecyclePolicy.EventParametersProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.EventParametersProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.EventParametersProperty.Builder |
builder() |
default String |
getDescriptionRegex()
The snapshot description that can trigger the policy.
|
String |
getEventType()
The type of event.
|
List<String> |
getSnapshotOwner()
The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account.
|
@Stability(value=Stable) @NotNull String getEventType()
Currently, only snapshot sharing events are supported.
@Stability(value=Stable) @NotNull List<String> getSnapshotOwner()
The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
@Stability(value=Stable) @Nullable default String getDescriptionRegex()
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.
@Stability(value=Stable) static CfnLifecyclePolicy.EventParametersProperty.Builder builder()
Copyright © 2022. All rights reserved.