EntityResolution / Client / put_policy
put_policy#
- EntityResolution.Client.put_policy(**kwargs)#
- Updates the resource-based policy. - See also: AWS API Documentation - Request Syntax- response = client.put_policy( arn='string', policy='string', token='string' ) - Parameters:
- arn (string) – - [REQUIRED] - The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated. 
- policy (string) – - [REQUIRED] - The resource-based policy. - Warning- If you set the value of the - effectparameter in the- policyto- Denyfor the- PutPolicyoperation, you must also set the value of the- effectparameter to- Denyfor the- AddPolicyStatementoperation.
- token (string) – A unique identifier for the current revision of the policy. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'arn': 'string', 'policy': 'string', 'token': 'string' } - Response Structure- (dict) – - arn (string) – - The Entity Resolution resource ARN. 
- policy (string) – - The resource-based policy. 
- token (string) – - A unique identifier for the current revision of the policy. 
 
 
 - Exceptions- EntityResolution.Client.exceptions.ThrottlingException
- EntityResolution.Client.exceptions.InternalServerException
- EntityResolution.Client.exceptions.ResourceNotFoundException
- EntityResolution.Client.exceptions.AccessDeniedException
- EntityResolution.Client.exceptions.ConflictException
- EntityResolution.Client.exceptions.ValidationException