1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. events
  5. EventBusPolicy

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi

aws-native.events.EventBusPolicy

Start a Neo task
Explain and create an aws-native.events.EventBusPolicy resource
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi

    Resource Type definition for AWS::Events::EventBusPolicy

    Create EventBusPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EventBusPolicy(name: string, args: EventBusPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def EventBusPolicy(resource_name: str,
                       args: EventBusPolicyArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EventBusPolicy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       statement_id: Optional[str] = None,
                       action: Optional[str] = None,
                       condition: Optional[EventBusPolicyConditionArgs] = None,
                       event_bus_name: Optional[str] = None,
                       principal: Optional[str] = None,
                       statement: Optional[Any] = None)
    func NewEventBusPolicy(ctx *Context, name string, args EventBusPolicyArgs, opts ...ResourceOption) (*EventBusPolicy, error)
    public EventBusPolicy(string name, EventBusPolicyArgs args, CustomResourceOptions? opts = null)
    public EventBusPolicy(String name, EventBusPolicyArgs args)
    public EventBusPolicy(String name, EventBusPolicyArgs args, CustomResourceOptions options)
    
    type: aws-native:events:EventBusPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EventBusPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EventBusPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EventBusPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EventBusPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EventBusPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EventBusPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EventBusPolicy resource accepts the following input properties:

    StatementId string
    An identifier string for the external account that you are granting permissions to
    Action string
    The action that you are enabling the other account to perform.
    Condition Pulumi.AwsNative.Events.Inputs.EventBusPolicyCondition
    EventBusName string
    The name of the event bus associated with the rule. If you omit this, the default event bus is used.
    Principal string
    The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus.
    Statement object

    A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.

    Search the CloudFormation User Guide for AWS::Events::EventBusPolicy for more information about the expected schema for this property.

    StatementId string
    An identifier string for the external account that you are granting permissions to
    Action string
    The action that you are enabling the other account to perform.
    Condition EventBusPolicyConditionArgs
    EventBusName string
    The name of the event bus associated with the rule. If you omit this, the default event bus is used.
    Principal string
    The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus.
    Statement interface{}

    A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.

    Search the CloudFormation User Guide for AWS::Events::EventBusPolicy for more information about the expected schema for this property.

    statementId String
    An identifier string for the external account that you are granting permissions to
    action String
    The action that you are enabling the other account to perform.
    condition EventBusPolicyCondition
    eventBusName String
    The name of the event bus associated with the rule. If you omit this, the default event bus is used.
    principal String
    The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus.
    statement Object

    A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.

    Search the CloudFormation User Guide for AWS::Events::EventBusPolicy for more information about the expected schema for this property.

    statementId string
    An identifier string for the external account that you are granting permissions to
    action string
    The action that you are enabling the other account to perform.
    condition EventBusPolicyCondition
    eventBusName string
    The name of the event bus associated with the rule. If you omit this, the default event bus is used.
    principal string
    The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus.
    statement any

    A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.

    Search the CloudFormation User Guide for AWS::Events::EventBusPolicy for more information about the expected schema for this property.

    statement_id str
    An identifier string for the external account that you are granting permissions to
    action str
    The action that you are enabling the other account to perform.
    condition EventBusPolicyConditionArgs
    event_bus_name str
    The name of the event bus associated with the rule. If you omit this, the default event bus is used.
    principal str
    The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus.
    statement Any

    A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.

    Search the CloudFormation User Guide for AWS::Events::EventBusPolicy for more information about the expected schema for this property.

    statementId String
    An identifier string for the external account that you are granting permissions to
    action String
    The action that you are enabling the other account to perform.
    condition Property Map
    eventBusName String
    The name of the event bus associated with the rule. If you omit this, the default event bus is used.
    principal String
    The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus.
    statement Any

    A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.

    Search the CloudFormation User Guide for AWS::Events::EventBusPolicy for more information about the expected schema for this property.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EventBusPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    EventBusPolicyCondition, EventBusPolicyConditionArgs

    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.
    Key string
    Specifies the value for the key. Currently, this must be the ID of the organization.
    Type string
    Specifies the type of condition. Currently the only supported value is StringEquals.
    Value string
    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
    Key string
    Specifies the value for the key. Currently, this must be the ID of the organization.
    Type string
    Specifies the type of condition. Currently the only supported value is StringEquals.
    Value string
    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
    key String
    Specifies the value for the key. Currently, this must be the ID of the organization.
    type String
    Specifies the type of condition. Currently the only supported value is StringEquals.
    value String
    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
    key string
    Specifies the value for the key. Currently, this must be the ID of the organization.
    type string
    Specifies the type of condition. Currently the only supported value is StringEquals.
    value string
    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
    key str
    Specifies the value for the key. Currently, this must be the ID of the organization.
    type str
    Specifies the type of condition. Currently the only supported value is StringEquals.
    value str
    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
    key String
    Specifies the value for the key. Currently, this must be the ID of the organization.
    type String
    Specifies the type of condition. Currently the only supported value is StringEquals.
    value String
    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate