LookoutEquipment / Client / put_resource_policy
put_resource_policy#
- LookoutEquipment.Client.put_resource_policy(**kwargs)#
Creates a resource control policy for a given resource.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy( ResourceArn='string', ResourcePolicy='string', PolicyRevisionId='string', ClientToken='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource for which the policy is being created.
ResourcePolicy (string) –
[REQUIRED]
The JSON-formatted resource policy to create.
PolicyRevisionId (string) – A unique identifier for a revision of the resource policy.
ClientToken (string) –
[REQUIRED]
A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'ResourceArn': 'string', 'PolicyRevisionId': 'string' }
Response Structure
(dict) –
ResourceArn (string) –
The Amazon Resource Name (ARN) of the resource for which the policy was created.
PolicyRevisionId (string) –
A unique identifier for a revision of the resource policy.
Exceptions
LookoutEquipment.Client.exceptions.ValidationException
LookoutEquipment.Client.exceptions.ResourceNotFoundException
LookoutEquipment.Client.exceptions.ConflictException
LookoutEquipment.Client.exceptions.ThrottlingException
LookoutEquipment.Client.exceptions.ServiceQuotaExceededException
LookoutEquipment.Client.exceptions.AccessDeniedException
LookoutEquipment.Client.exceptions.InternalServerException