CfnEventBusPolicyProps

class aws_cdk.aws_events.CfnEventBusPolicyProps(*, action=None, condition=None, event_bus_name=None, principal=None, statement=None, statement_id)

Bases: object

Properties for defining a AWS::Events::EventBusPolicy.

Parameters
  • action (Optional[str]) – AWS::Events::EventBusPolicy.Action.

  • condition (Union[IResolvable, ConditionProperty, None]) – AWS::Events::EventBusPolicy.Condition.

  • event_bus_name (Optional[str]) – AWS::Events::EventBusPolicy.EventBusName.

  • principal (Optional[str]) – AWS::Events::EventBusPolicy.Principal.

  • statement (Optional[Any]) – AWS::Events::EventBusPolicy.Statement.

  • statement_id (str) – AWS::Events::EventBusPolicy.StatementId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_events as events

# statement is of type object

cfn_event_bus_policy_props = events.CfnEventBusPolicyProps(
    statement_id="statementId",

    # the properties below are optional
    action="action",
    condition=events.CfnEventBusPolicy.ConditionProperty(
        key="key",
        type="type",
        value="value"
    ),
    event_bus_name="eventBusName",
    principal="principal",
    statement=statement
)

Attributes

action

AWS::Events::EventBusPolicy.Action.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-action

Return type

Optional[str]

condition

AWS::Events::EventBusPolicy.Condition.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-condition

Return type

Union[IResolvable, ConditionProperty, None]

event_bus_name

AWS::Events::EventBusPolicy.EventBusName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-eventbusname

Return type

Optional[str]

principal

AWS::Events::EventBusPolicy.Principal.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-principal

Return type

Optional[str]

statement

AWS::Events::EventBusPolicy.Statement.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-statement

Return type

Any

statement_id

AWS::Events::EventBusPolicy.StatementId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-statementid

Return type

str