SNS / Client / put_data_protection_policy
put_data_protection_policy#
- SNS.Client.put_data_protection_policy(**kwargs)#
- Adds or updates an inline policy document that is stored in the specified Amazon SNS topic. - See also: AWS API Documentation - Request Syntax- response = client.put_data_protection_policy( ResourceArn='string', DataProtectionPolicy='string' ) - Parameters:
- ResourceArn (string) – - [REQUIRED] - The ARN of the topic whose - DataProtectionPolicyyou want to add or update.- For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. 
- DataProtectionPolicy (string) – - [REQUIRED] - The JSON serialization of the topic’s - DataProtectionPolicy.- The - DataProtectionPolicymust be in JSON string format.- Length Constraints: Maximum length of 30,720. 
 
- Returns:
- None 
 - Exceptions- SNS.Client.exceptions.InvalidParameterException
- SNS.Client.exceptions.InternalErrorException
- SNS.Client.exceptions.NotFoundException
- SNS.Client.exceptions.AuthorizationErrorException
- SNS.Client.exceptions.InvalidSecurityException