libZSservicesZSamazonka-dlmZSamazonka-dlm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DLM.Types.EventParameters

Description

 
Synopsis

Documentation

data EventParameters Source #

Specifies an event that triggers an event-based policy.

See: newEventParameters smart constructor.

Constructors

EventParameters' 

Fields

  • eventType :: EventTypeValues

    The type of event. Currently, only snapshot sharing events are supported.

  • snapshotOwner :: [Text]

    The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.

  • descriptionRegex :: Text

    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.

Instances

Instances details
Eq EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

Read EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

Show EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

Generic EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

Associated Types

type Rep EventParameters :: Type -> Type #

NFData EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

Methods

rnf :: EventParameters -> () #

Hashable EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

ToJSON EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

FromJSON EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

type Rep EventParameters Source # 
Instance details

Defined in Amazonka.DLM.Types.EventParameters

type Rep EventParameters = D1 ('MetaData "EventParameters" "Amazonka.DLM.Types.EventParameters" "libZSservicesZSamazonka-dlmZSamazonka-dlm" 'False) (C1 ('MetaCons "EventParameters'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EventTypeValues) :*: (S1 ('MetaSel ('Just "snapshotOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "descriptionRegex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newEventParameters Source #

Create a value of EventParameters with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:eventType:EventParameters', eventParameters_eventType - The type of event. Currently, only snapshot sharing events are supported.

$sel:snapshotOwner:EventParameters', eventParameters_snapshotOwner - The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.

$sel:descriptionRegex:EventParameters', eventParameters_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.

eventParameters_eventType :: Lens' EventParameters EventTypeValues Source #

The type of event. Currently, only snapshot sharing events are supported.

eventParameters_snapshotOwner :: Lens' EventParameters [Text] Source #

The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.

eventParameters_descriptionRegex :: Lens' EventParameters Text Source #

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.