Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets summary information about all or the specified data lifecycle policies.
To get complete information about a policy, use GetLifecyclePolicy.
Synopsis
- data GetLifecyclePolicies = GetLifecyclePolicies' {}
- newGetLifecyclePolicies :: GetLifecyclePolicies
- getLifecyclePolicies_state :: Lens' GetLifecyclePolicies (Maybe GettablePolicyStateValues)
- getLifecyclePolicies_targetTags :: Lens' GetLifecyclePolicies (Maybe (NonEmpty Text))
- getLifecyclePolicies_tagsToAdd :: Lens' GetLifecyclePolicies (Maybe [Text])
- getLifecyclePolicies_policyIds :: Lens' GetLifecyclePolicies (Maybe [Text])
- getLifecyclePolicies_resourceTypes :: Lens' GetLifecyclePolicies (Maybe (NonEmpty ResourceTypeValues))
- data GetLifecyclePoliciesResponse = GetLifecyclePoliciesResponse' {}
- newGetLifecyclePoliciesResponse :: Int -> GetLifecyclePoliciesResponse
- getLifecyclePoliciesResponse_policies :: Lens' GetLifecyclePoliciesResponse (Maybe [LifecyclePolicySummary])
- getLifecyclePoliciesResponse_httpStatus :: Lens' GetLifecyclePoliciesResponse Int
Creating a Request
data GetLifecyclePolicies Source #
See: newGetLifecyclePolicies
smart constructor.
GetLifecyclePolicies' | |
|
Instances
newGetLifecyclePolicies :: GetLifecyclePolicies Source #
Create a value of GetLifecyclePolicies
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:state:GetLifecyclePolicies'
, getLifecyclePolicies_state
- The activation state.
$sel:targetTags:GetLifecyclePolicies'
, getLifecyclePolicies_targetTags
- The target tag for a policy.
Tags are strings in the format key=value
.
$sel:tagsToAdd:GetLifecyclePolicies'
, getLifecyclePolicies_tagsToAdd
- The tags to add to objects created by the policy.
Tags are strings in the format key=value
.
These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
$sel:policyIds:GetLifecyclePolicies'
, getLifecyclePolicies_policyIds
- The identifiers of the data lifecycle policies.
$sel:resourceTypes:GetLifecyclePolicies'
, getLifecyclePolicies_resourceTypes
- The resource type.
Request Lenses
getLifecyclePolicies_state :: Lens' GetLifecyclePolicies (Maybe GettablePolicyStateValues) Source #
The activation state.
getLifecyclePolicies_targetTags :: Lens' GetLifecyclePolicies (Maybe (NonEmpty Text)) Source #
The target tag for a policy.
Tags are strings in the format key=value
.
getLifecyclePolicies_tagsToAdd :: Lens' GetLifecyclePolicies (Maybe [Text]) Source #
The tags to add to objects created by the policy.
Tags are strings in the format key=value
.
These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
getLifecyclePolicies_policyIds :: Lens' GetLifecyclePolicies (Maybe [Text]) Source #
The identifiers of the data lifecycle policies.
getLifecyclePolicies_resourceTypes :: Lens' GetLifecyclePolicies (Maybe (NonEmpty ResourceTypeValues)) Source #
The resource type.
Destructuring the Response
data GetLifecyclePoliciesResponse Source #
See: newGetLifecyclePoliciesResponse
smart constructor.
GetLifecyclePoliciesResponse' | |
|
Instances
newGetLifecyclePoliciesResponse Source #
Create a value of GetLifecyclePoliciesResponse
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:policies:GetLifecyclePoliciesResponse'
, getLifecyclePoliciesResponse_policies
- Summary information about the lifecycle policies.
$sel:httpStatus:GetLifecyclePoliciesResponse'
, getLifecyclePoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
getLifecyclePoliciesResponse_policies :: Lens' GetLifecyclePoliciesResponse (Maybe [LifecyclePolicySummary]) Source #
Summary information about the lifecycle policies.
getLifecyclePoliciesResponse_httpStatus :: Lens' GetLifecyclePoliciesResponse Int Source #
The response's http status code.