LookoutEquipment / Client / put_resource_policy
put_resource_policy¶
- LookoutEquipment.Client.put_resource_policy(**kwargs)¶
Creates a resource control policy for a given resource.
Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
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