| 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.GetDataProtectionPolicy
Description
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.
Constructors
| GetDataProtectionPolicy' | |
Fields
| |
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.
Constructors
| GetDataProtectionPolicyResponse' | |
Fields
| |
Instances
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.