interface ConditionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Events.CfnEventBusPolicy.ConditionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnEventBusPolicy_ConditionProperty |
Java | software.amazon.awscdk.services.events.CfnEventBusPolicy.ConditionProperty |
Python | aws_cdk.aws_events.CfnEventBusPolicy.ConditionProperty |
TypeScript | aws-cdk-lib » aws_events » CfnEventBusPolicy » ConditionProperty |
This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const conditionProperty: events.CfnEventBusPolicy.ConditionProperty = {
key: 'key',
type: 'type',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| key? | string | Specifies the value for the key. |
| type? | string | Specifies the type of condition. |
| value? | string | Specifies the key for the condition. |
key?
Type:
string
(optional)
Specifies the value for the key.
Currently, this must be the ID of the organization.
type?
Type:
string
(optional)
Specifies the type of condition.
Currently the only supported value is StringEquals.
value?
Type:
string
(optional)
Specifies the key for the condition.
Currently the only supported key is aws:PrincipalOrgID.

.NET
Go
Java
Python
TypeScript