EventBridgeClient.put_permission
rboto-eventbridge==0.4.0 · Service index · Types
Model summary (excerpt): Running PutPermission permits the specified Amazon Web Services account or Amazon Web Services organization to put events to the specified event bus . Amazon EventBridge rules in your account are triggered by these events arriving to an event bus in your account. For another account to send events to your account, that external account must have an EventBridge rule with your account's event...
Install and imports
Signature
async def put_permission(
*,
event_bus_name: str | None = None,
action: str | None = None,
principal: str | None = None,
statement_id: str | None = None,
condition: Condition | None = None,
policy: str | None = None,
) -> None: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
event_bus_name |
No | The name of the event bus associated with the rule. If you omit this, the default event bus is used. |
action |
No | The action that you are enabling the other account to perform. |
principal |
No | The 12-digit Amazon Web Services 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. If you specify "*" without specifying Condition , avoid creating rules that may match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with... |
statement_id |
No | An identifier string for the external account that you are granting permissions to. If you later want to revoke the permission for this external account, specify this StatementId when you run RemovePermission . Each StatementId must be unique. |
condition |
No | This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain Amazon Web Services organization. For more information about Amazon Web Services Organizations, see What Is Amazon Web Services Organizations in the Amazon Web Services Organizations User Guide . If you specify Condition with an Amazon Web Services organization... |
policy |
No | 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. |
Output
None.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_eventbridge.exceptions:
ConcurrentModificationError, InternalError, OperationDisabledError, PolicyLengthExceededError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.