Continuum / Client / put_resource_policy
put_resource_policy¶
- Continuum.Client.put_resource_policy(**kwargs)¶
Creates or replaces the resource policy attached to a Continuum resource.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy( arn='string', policy='string', expectedRevisionId='string' )
- Parameters:
arn (string) –
[REQUIRED]
The ARN of a resource in the caller’s account.
policy (string) – Omit or supply an empty Statement array to clear resource-policy grants and store the canonical empty-statement policy. Cross-account access is denied; same-account access remains subject to identity policies. Use an explicit Deny statement to deny same-account principals too.
expectedRevisionId (string) – Optional optimistic-concurrency token for the currently observed policy.
- Return type:
dict
- Returns:
Response Syntax
{ 'arn': 'string', 'policy': 'string', 'revisionId': 'string' }
Response Structure
(dict) –
Contains the stored resource policy.
arn (string) –
The ARN of a Continuum resource that supports a resource policy. Collectors are the only supported resource type; other well-formed Continuum ARNs are rejected with ValidationException.
policy (string) –
A resource policy in displayable JSON form.
revisionId (string) –
Opaque optimistic-concurrency token for a resource policy.
Exceptions
Continuum.Client.exceptions.ValidationExceptionContinuum.Client.exceptions.InternalServerExceptionContinuum.Client.exceptions.ResourceNotFoundExceptionContinuum.Client.exceptions.ThrottlingExceptionContinuum.Client.exceptions.AccessDeniedExceptionContinuum.Client.exceptions.ConflictException