associate_permission¶
Operation¶
associate_permission
¶
associate_permission(request: AssociatePermissionInput | AssociatePermissionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[AssociatePermissionInputDict]) -> AssociatePermissionOutput
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
AssociatePermissionInput | AssociatePermissionInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[AssociatePermissionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
AssociatePermissionOutput
|
An instance of |
associate_permission
async
¶
associate_permission(request: AssociatePermissionInput | AssociatePermissionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[AssociatePermissionInputDict]) -> AssociatePermissionOutput
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
AssociatePermissionInput | AssociatePermissionInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[AssociatePermissionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
AssociatePermissionOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
AssociatePermissionInputDict
¶
Bases: TypedDict
Dictionary form of AssociatePermissionInput.
Attributes¶
actions
instance-attribute
¶
The list of Amazon Q Business actions that the ISV is allowed to perform.
application_id
instance-attribute
¶
The unique identifier of the Amazon Q Business application.
conditions
instance-attribute
¶
conditions: Sequence[PermissionCondition | PermissionConditionDict] | None
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.
principal
instance-attribute
¶
The Amazon Resource Name of the IAM role for the ISV that is being granted permission.
AssociatePermissionInput
dataclass
¶
Bases: _SerdeShape
Dataclass for AssociatePermissionInput structure.
Attributes¶
actions
class-attribute
instance-attribute
¶
The list of Amazon Q Business actions that the ISV is allowed to perform.
application_id
class-attribute
instance-attribute
¶
application_id: str | None = ...
The unique identifier of the Amazon Q Business application.
conditions
class-attribute
instance-attribute
¶
conditions: list[PermissionCondition] | None = ...
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
dataclass
¶
Bases: _SerdeShape
Dataclass for AssociatePermissionOutput structure.