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.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.ConflictException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.ThrottlingException