amazonka-sns-2.0: Amazon Simple Notification Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SNS.PutDataProtectionPolicy

Description

Adds or updates an inline policy document that is stored in the specified Amazon SNS topic.

Synopsis

Creating a Request

data PutDataProtectionPolicy Source #

See: newPutDataProtectionPolicy smart constructor.

Constructors

PutDataProtectionPolicy' 

Fields

  • resourceArn :: Text

    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.

  • dataProtectionPolicy :: Text

    The JSON serialization of the topic's DataProtectionPolicy.

    The DataProtectionPolicy must be in JSON string format.

    Length Constraints: Maximum length of 30,720.

Instances

Instances details
ToHeaders PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

ToPath PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

ToQuery PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

AWSRequest PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Generic PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Associated Types

type Rep PutDataProtectionPolicy :: Type -> Type #

Read PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Show PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

NFData PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Methods

rnf :: PutDataProtectionPolicy -> () #

Eq PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Hashable PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

type AWSResponse PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

type Rep PutDataProtectionPolicy Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

type Rep PutDataProtectionPolicy = D1 ('MetaData "PutDataProtectionPolicy" "Amazonka.SNS.PutDataProtectionPolicy" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "PutDataProtectionPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "dataProtectionPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newPutDataProtectionPolicy Source #

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

Instances details
Generic PutDataProtectionPolicyResponse Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Associated Types

type Rep PutDataProtectionPolicyResponse :: Type -> Type #

Read PutDataProtectionPolicyResponse Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Show PutDataProtectionPolicyResponse Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

NFData PutDataProtectionPolicyResponse Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

Eq PutDataProtectionPolicyResponse Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

type Rep PutDataProtectionPolicyResponse Source # 
Instance details

Defined in Amazonka.SNS.PutDataProtectionPolicy

type Rep PutDataProtectionPolicyResponse = D1 ('MetaData "PutDataProtectionPolicyResponse" "Amazonka.SNS.PutDataProtectionPolicy" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "PutDataProtectionPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutDataProtectionPolicyResponse :: PutDataProtectionPolicyResponse Source #

Create a value of PutDataProtectionPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.