@Stability(value=Stable)
public static interface CfnEventBusPolicy.ConditionProperty
extends software.amazon.jsii.JsiiSerializable
Currently, the only supported condition is membership in a certain AWS organization. The string must contain Type , Key , and Value fields. The Value field specifies the ID of the AWS organization. Following is an example value for Condition :
'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
ConditionProperty conditionProperty = ConditionProperty.builder()
.key("key")
.type("type")
.value("value")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEventBusPolicy.ConditionProperty.Builder
A builder for
CfnEventBusPolicy.ConditionProperty |
static class |
CfnEventBusPolicy.ConditionProperty.Jsii$Proxy
An implementation for
CfnEventBusPolicy.ConditionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEventBusPolicy.ConditionProperty.Builder |
builder() |
default String |
getKey()
Specifies the key for the condition.
|
default String |
getType()
Specifies the type of condition.
|
default String |
getValue()
Specifies the value for the key.
|
@Stability(value=Stable) @Nullable default String getKey()
Currently the only supported key is aws:PrincipalOrgID .
@Stability(value=Stable) @Nullable default String getType()
Currently the only supported value is StringEquals .
@Stability(value=Stable) @Nullable default String getValue()
Currently, this must be the ID of the organization.
@Stability(value=Stable) static CfnEventBusPolicy.ConditionProperty.Builder builder()
Copyright © 2022. All rights reserved.