Bedrock / Client / put_resource_policy
put_resource_policy¶
- Bedrock.Client.put_resource_policy(**kwargs)¶
Adds a resource policy for a Bedrock resource.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy( resourceArn='string', resourcePolicy='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the Bedrock resource to which this resource policy applies.
resourcePolicy (string) –
[REQUIRED]
The JSON string representing the Bedrock resource policy.
- Return type:
dict
- Returns:
Response Syntax
{ 'resourceArn': 'string' }
Response Structure
(dict) –
resourceArn (string) –
The ARN of the Bedrock resource to which this resource policy applies.
Exceptions
Bedrock.Client.exceptions.AccessDeniedExceptionBedrock.Client.exceptions.ValidationExceptionBedrock.Client.exceptions.ConflictExceptionBedrock.Client.exceptions.InternalServerExceptionBedrock.Client.exceptions.ThrottlingException