interface EventBusPolicyProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Events.EventBusPolicyProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#EventBusPolicyProps |
![]() | software.amazon.awscdk.services.events.EventBusPolicyProps |
![]() | aws_cdk.aws_events.EventBusPolicyProps |
![]() | aws-cdk-lib » aws_events » EventBusPolicyProps |
Properties to associate Event Buses with a policy.
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';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const eventBus: events.EventBus;
declare const policyStatement: iam.PolicyStatement;
const eventBusPolicyProps: events.EventBusPolicyProps = {
eventBus: eventBus,
statement: policyStatement,
statementId: 'statementId',
};
Properties
Name | Type | Description |
---|---|---|
event | IEvent | The event bus to which the policy applies. |
statement | Policy | An IAM Policy Statement to apply to the Event Bus. |
statement | string | An identifier string for the external account that you are granting permissions to. |
eventBus
Type:
IEvent
The event bus to which the policy applies.
statement
Type:
Policy
An IAM Policy Statement to apply to the Event Bus.
statementId
Type:
string
An identifier string for the external account that you are granting permissions to.