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 |
Amazonka.SNS.PutDataProtectionPolicy
Description
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.
Constructors
PutDataProtectionPolicy' | |
Fields
|
Instances
newPutDataProtectionPolicy Source #
Arguments
:: 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.
Constructors
PutDataProtectionPolicyResponse' | |
Instances
Generic PutDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.PutDataProtectionPolicy Associated Types type Rep PutDataProtectionPolicyResponse :: Type -> Type # | |
Read PutDataProtectionPolicyResponse Source # | |
Show PutDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.PutDataProtectionPolicy Methods showsPrec :: Int -> PutDataProtectionPolicyResponse -> ShowS # | |
NFData PutDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.PutDataProtectionPolicy Methods rnf :: PutDataProtectionPolicyResponse -> () # | |
Eq PutDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.PutDataProtectionPolicy | |
type Rep PutDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.PutDataProtectionPolicy |
newPutDataProtectionPolicyResponse :: PutDataProtectionPolicyResponse Source #
Create a value of PutDataProtectionPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.