BedrockAgentCoreControl / Client / put_resource_policy
put_resource_policy¶
- BedrockAgentCoreControl.Client.put_resource_policy(**kwargs)¶
Creates or updates a resource-based policy for a resource with the specified resourceArn.
Note
This feature is currently available only for AgentCore Runtime and Gateway.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy( resourceArn='string', policy='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource for which to create or update the resource policy.
policy (string) –
[REQUIRED]
The resource policy to create or update.
- Return type:
dict
- Returns:
Response Syntax
{ 'policy': 'string' }
Response Structure
(dict) –
policy (string) –
The resource policy that was created or updated.
Exceptions
BedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException