Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Adds or updates an inline policy document that is stored in the specified Amazon SNS topic.
Synopsis
- data PutDataProtectionPolicy = PutDataProtectionPolicy' {}
- newPutDataProtectionPolicy :: Text -> Text -> PutDataProtectionPolicy
- putDataProtectionPolicy_resourceArn :: Lens' PutDataProtectionPolicy Text
- putDataProtectionPolicy_dataProtectionPolicy :: Lens' PutDataProtectionPolicy Text
- data PutDataProtectionPolicyResponse = PutDataProtectionPolicyResponse' {
- newPutDataProtectionPolicyResponse :: PutDataProtectionPolicyResponse
Creating a Request
data PutDataProtectionPolicy Source #
See: newPutDataProtectionPolicy
smart constructor.
PutDataProtectionPolicy' | |
|
Instances
newPutDataProtectionPolicy Source #
:: Text | |
-> Text | |
-> PutDataProtectionPolicy |
Create a value of PutDataProtectionPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceArn:PutDataProtectionPolicy'
, putDataProtectionPolicy_resourceArn
- The ARN of the topic whose DataProtectionPolicy
you want to add or
update.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
$sel:dataProtectionPolicy:PutDataProtectionPolicy'
, putDataProtectionPolicy_dataProtectionPolicy
- The JSON serialization of the topic's DataProtectionPolicy
.
The DataProtectionPolicy
must be in JSON string format.
Length Constraints: Maximum length of 30,720.
Request Lenses
putDataProtectionPolicy_resourceArn :: Lens' PutDataProtectionPolicy Text Source #
The ARN of the topic whose DataProtectionPolicy
you want to add or
update.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
putDataProtectionPolicy_dataProtectionPolicy :: Lens' PutDataProtectionPolicy Text Source #
The JSON serialization of the topic's DataProtectionPolicy
.
The DataProtectionPolicy
must be in JSON string format.
Length Constraints: Maximum length of 30,720.
Destructuring the Response
data PutDataProtectionPolicyResponse Source #
See: newPutDataProtectionPolicyResponse
smart constructor.
Instances
newPutDataProtectionPolicyResponse :: PutDataProtectionPolicyResponse Source #
Create a value of PutDataProtectionPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.