Interface CfnLifecyclePolicy.EventParametersProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnLifecyclePolicy.EventParametersProperty extends
[Event-based policies only] Specifies an event that activates an event-based policy.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 EventParametersProperty eventParametersProperty = EventParametersProperty.builder()
         // the properties below are optional
  • Method Details

    • getEventType

      @Stability(Stable) @NotNull String getEventType()
      The type of event.

      Currently, only snapshot sharing events are supported.

    • getSnapshotOwner

      @Stability(Stable) @NotNull List<String> getSnapshotOwner()
      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.

    • getDescriptionRegex

      @Stability(Stable) @Nullable default String getDescriptionRegex()
      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.

    • builder

      @Stability(Stable) static CfnLifecyclePolicy.EventParametersProperty.Builder builder()
      a CfnLifecyclePolicy.EventParametersProperty.Builder of CfnLifecyclePolicy.EventParametersProperty