Struct aws_sdk_eventbridge::model::Condition [−][src]
#[non_exhaustive]pub struct Condition {
pub type: Option<String>,
pub key: Option<String>,
pub value: Option<String>,
}
Expand description
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"}'
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: Option<String>
Specifies the type of condition. Currently the only supported value is
StringEquals
.
key: Option<String>
Specifies the key for the condition. Currently the only supported key is
aws:PrincipalOrgID
.
value: Option<String>
Specifies the value for the key. Currently, this must be the ID of the organization.
Implementations
Specifies the type of condition. Currently the only supported value is
StringEquals
.
Specifies the key for the condition. Currently the only supported key is
aws:PrincipalOrgID
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl UnwindSafe for Condition
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more