| 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.CloudWatchLogs.GetDataProtectionPolicy
Description
Returns information about a log group data protection policy.
Synopsis
- data GetDataProtectionPolicy = GetDataProtectionPolicy' {}
- newGetDataProtectionPolicy :: Text -> GetDataProtectionPolicy
- getDataProtectionPolicy_logGroupIdentifier :: Lens' GetDataProtectionPolicy Text
- data GetDataProtectionPolicyResponse = GetDataProtectionPolicyResponse' {}
- newGetDataProtectionPolicyResponse :: Int -> GetDataProtectionPolicyResponse
- getDataProtectionPolicyResponse_lastUpdatedTime :: Lens' GetDataProtectionPolicyResponse (Maybe Natural)
- getDataProtectionPolicyResponse_logGroupIdentifier :: Lens' GetDataProtectionPolicyResponse (Maybe Text)
- getDataProtectionPolicyResponse_policyDocument :: 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 #
Arguments
| :: Text | |
| -> GetDataProtectionPolicy |
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:
GetDataProtectionPolicy, getDataProtectionPolicy_logGroupIdentifier - The name or ARN of the log group that contains the data protection
policy that you want to see.
Request Lenses
getDataProtectionPolicy_logGroupIdentifier :: Lens' GetDataProtectionPolicy Text Source #
The name or ARN of the log group that contains the data protection policy that you want to see.
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:
GetDataProtectionPolicyResponse, getDataProtectionPolicyResponse_lastUpdatedTime - The date and time that this policy was most recently updated.
GetDataProtectionPolicy, getDataProtectionPolicyResponse_logGroupIdentifier - The log group name or ARN that you specified in your request.
GetDataProtectionPolicyResponse, getDataProtectionPolicyResponse_policyDocument - The data protection policy document for this log group.
$sel:httpStatus:GetDataProtectionPolicyResponse', getDataProtectionPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getDataProtectionPolicyResponse_lastUpdatedTime :: Lens' GetDataProtectionPolicyResponse (Maybe Natural) Source #
The date and time that this policy was most recently updated.
getDataProtectionPolicyResponse_logGroupIdentifier :: Lens' GetDataProtectionPolicyResponse (Maybe Text) Source #
The log group name or ARN that you specified in your request.
getDataProtectionPolicyResponse_policyDocument :: Lens' GetDataProtectionPolicyResponse (Maybe Text) Source #
The data protection policy document for this log group.
getDataProtectionPolicyResponse_httpStatus :: Lens' GetDataProtectionPolicyResponse Int Source #
The response's http status code.