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 |
Retrieves the specified inline DataProtectionPolicy
document that is
stored in the specified Amazon SNS topic.
Synopsis
- data GetDataProtectionPolicy = GetDataProtectionPolicy' {
- resourceArn :: Text
- newGetDataProtectionPolicy :: Text -> GetDataProtectionPolicy
- getDataProtectionPolicy_resourceArn :: Lens' GetDataProtectionPolicy Text
- data GetDataProtectionPolicyResponse = GetDataProtectionPolicyResponse' {}
- newGetDataProtectionPolicyResponse :: Int -> GetDataProtectionPolicyResponse
- getDataProtectionPolicyResponse_dataProtectionPolicy :: Lens' GetDataProtectionPolicyResponse (Maybe Text)
- getDataProtectionPolicyResponse_httpStatus :: Lens' GetDataProtectionPolicyResponse Int
Creating a Request
data GetDataProtectionPolicy Source #
See: newGetDataProtectionPolicy
smart constructor.
GetDataProtectionPolicy' | |
|
Instances
newGetDataProtectionPolicy Source #
Create a value of GetDataProtectionPolicy
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:GetDataProtectionPolicy'
, getDataProtectionPolicy_resourceArn
- The ARN of the topic whose DataProtectionPolicy
you want to get.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
Request Lenses
getDataProtectionPolicy_resourceArn :: Lens' GetDataProtectionPolicy Text Source #
The ARN of the topic whose DataProtectionPolicy
you want to get.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
Destructuring the Response
data GetDataProtectionPolicyResponse Source #
See: newGetDataProtectionPolicyResponse
smart constructor.
GetDataProtectionPolicyResponse' | |
|
Instances
Generic GetDataProtectionPolicyResponse Source # | |
Read GetDataProtectionPolicyResponse Source # | |
Show GetDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.GetDataProtectionPolicy | |
NFData GetDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.GetDataProtectionPolicy rnf :: GetDataProtectionPolicyResponse -> () # | |
Eq GetDataProtectionPolicyResponse Source # | |
type Rep GetDataProtectionPolicyResponse Source # | |
Defined in Amazonka.SNS.GetDataProtectionPolicy type Rep GetDataProtectionPolicyResponse = D1 ('MetaData "GetDataProtectionPolicyResponse" "Amazonka.SNS.GetDataProtectionPolicy" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "GetDataProtectionPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataProtectionPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetDataProtectionPolicyResponse Source #
Create a value of GetDataProtectionPolicyResponse
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:dataProtectionPolicy:GetDataProtectionPolicyResponse'
, getDataProtectionPolicyResponse_dataProtectionPolicy
- Retrieves the DataProtectionPolicy
in JSON string format.
$sel:httpStatus:GetDataProtectionPolicyResponse'
, getDataProtectionPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getDataProtectionPolicyResponse_dataProtectionPolicy :: Lens' GetDataProtectionPolicyResponse (Maybe Text) Source #
Retrieves the DataProtectionPolicy
in JSON string format.
getDataProtectionPolicyResponse_httpStatus :: Lens' GetDataProtectionPolicyResponse Int Source #
The response's http status code.