Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Instances
Eq Condition Source # | |
Read Condition Source # | |
Show Condition Source # | |
Generic Condition Source # | |
NFData Condition Source # | |
Defined in Amazonka.CloudWatchEvents.Types.Condition | |
Hashable Condition Source # | |
Defined in Amazonka.CloudWatchEvents.Types.Condition | |
ToJSON 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" "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)))) |
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
.