libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
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.CloudWatchEvents.Types.Condition

Description

 
Synopsis

Documentation

data Condition Source #

A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition. Currently, the only supported condition is membership in a certain Amazon Web Services organization. The string must contain Type, Key, and Value fields. The Value field specifies the ID of the Amazon Web Services organization. Following is an example value for Condition:

'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'

See: newCondition smart constructor.

Constructors

Condition' 

Fields

  • type' :: Text

    Specifies the type of condition. Currently the only supported value is StringEquals.

  • key :: Text

    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

  • value :: Text

    Specifies the value for the key. Currently, this must be the ID of the organization.

Instances

Instances details
Eq Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

Read Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

Show Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

Generic Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

Associated Types

type Rep Condition :: Type -> Type #

NFData Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

Methods

rnf :: Condition -> () #

Hashable Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

type Rep Condition Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.Condition

type Rep Condition = D1 ('MetaData "Condition" "Amazonka.CloudWatchEvents.Types.Condition" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "Condition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCondition Source #

Create a value of Condition 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:type':Condition', condition_type - Specifies the type of condition. Currently the only supported value is StringEquals.

$sel:key:Condition', condition_key - Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

$sel:value:Condition', condition_value - Specifies the value for the key. Currently, this must be the ID of the organization.

condition_type :: Lens' Condition Text Source #

Specifies the type of condition. Currently the only supported value is StringEquals.

condition_key :: Lens' Condition Text Source #

Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

condition_value :: Lens' Condition Text Source #

Specifies the value for the key. Currently, this must be the ID of the organization.