QBusinessClient.associate_permission
rboto-qbusiness==0.4.0 · Service index · Types
Model summary (excerpt): Adds or updates a permission policy for a Amazon Q Business application, allowing cross-account access for an ISV. This operation creates a new policy statement for the specified Amazon Q Business application. The policy statement defines the IAM actions that the ISV is allowed to perform on the Amazon Q Business application's resources.
Install and imports
from rboto import QBusinessClient
from collections.abc import Sequence
from rboto_qbusiness.types import (
AssociatePermissionOutput,
PermissionCondition,
)
Signature
async def associate_permission(
*,
application_id: str,
statement_id: str,
actions: Sequence[str],
principal: str,
conditions: Sequence[PermissionCondition] | None = None,
) -> AssociatePermissionOutput: ...
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) |
|---|---|---|
application_id |
Yes | The unique identifier of the Amazon Q Business application. |
statement_id |
Yes | A unique identifier for the policy statement. |
actions |
Yes | The list of Amazon Q Business actions that the ISV is allowed to perform. |
principal |
Yes | The Amazon Resource Name of the IAM role for the ISV that is being granted permission. |
conditions |
No | The conditions that restrict when the permission is effective. These conditions can be used to limit the permission based on specific attributes of the request. |
Output
AssociatePermissionOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
statement |
str | None |
Always present | — |
| 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
AssociatePermissionOutput, PermissionCondition
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_qbusiness.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.