| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudWatchEvents.Types.Condition
Description
Synopsis
- data Condition = Condition' {}
- newCondition :: Text -> Text -> Text -> Condition
- condition_type :: Lens' Condition Text
- condition_key :: Lens' Condition Text
- condition_value :: Lens' Condition Text
Documentation
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 | |
Instances
| ToJSON Condition Source # | |
Defined in Amazonka.CloudWatchEvents.Types.Condition | |
| Generic Condition Source # | |
| Read Condition Source # | |
| Show Condition Source # | |
| NFData Condition Source # | |
Defined in Amazonka.CloudWatchEvents.Types.Condition | |
| Eq Condition Source # | |
| Hashable Condition Source # | |
Defined in Amazonka.CloudWatchEvents.Types.Condition | |
| type Rep Condition Source # | |
Defined in Amazonka.CloudWatchEvents.Types.Condition type Rep Condition = D1 ('MetaData "Condition" "Amazonka.CloudWatchEvents.Types.Condition" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" '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)))) | |
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.