We recommend new projects start with resources from the AWS provider.
aws-native.events.EventBusPolicy
We recommend new projects start with resources from the AWS provider.
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:
- Statement
Id 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.
Aws Native. Events. Inputs. Event Bus Policy Condition - Event
Bus stringName - 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::EventBusPolicyfor more information about the expected schema for this property.
- Statement
Id 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
Event
Bus Policy Condition Args - Event
Bus stringName - 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::EventBusPolicyfor more information about the expected schema for this property.
- statement
Id 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
Event
Bus Policy Condition - event
Bus StringName - 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::EventBusPolicyfor more information about the expected schema for this property.
- statement
Id 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
Event
Bus Policy Condition - event
Bus stringName - 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::EventBusPolicyfor 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
Event
Bus Policy Condition Args - event_
bus_ strname - 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::EventBusPolicyfor more information about the expected schema for this property.
- statement
Id 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
- event
Bus StringName - 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::EventBusPolicyfor 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.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
