get_policy¶
Operation¶
get_policy
async
¶
get_policy(input: GetPolicyInput, plugins: list[Plugin] | None = None) -> GetPolicyOutput
Retrieves the current permission policy for a Amazon Q Business application. The policy is returned as a JSON-formatted string and defines the IAM actions that are allowed or denied for the application's resources.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetPolicyInput
|
An instance of |
required |
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
|
Returns:
| Type | Description |
|---|---|
GetPolicyOutput
|
An instance of |
Input¶
GetPolicyInput
dataclass
¶
Output¶
GetPolicyOutput
dataclass
¶
Dataclass for GetPolicyOutput structure.
Attributes¶
policy
class-attribute
instance-attribute
¶
policy: str | None = None
The JSON representation of the permission policy.
response_metadata
class-attribute
instance-attribute
¶
response_metadata: ResponseMetadata = field(default=EMPTY_RESPONSE_METADATA, repr=False, compare=False)
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.