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 |
Retrieves the object lifecycle policy that is assigned to a container.
Synopsis
- data GetLifecyclePolicy = GetLifecyclePolicy' {}
- newGetLifecyclePolicy :: Text -> GetLifecyclePolicy
- getLifecyclePolicy_containerName :: Lens' GetLifecyclePolicy Text
- data GetLifecyclePolicyResponse = GetLifecyclePolicyResponse' {
- httpStatus :: Int
- lifecyclePolicy :: Text
- newGetLifecyclePolicyResponse :: Int -> Text -> GetLifecyclePolicyResponse
- getLifecyclePolicyResponse_httpStatus :: Lens' GetLifecyclePolicyResponse Int
- getLifecyclePolicyResponse_lifecyclePolicy :: Lens' GetLifecyclePolicyResponse Text
Creating a Request
data GetLifecyclePolicy Source #
See: newGetLifecyclePolicy
smart constructor.
GetLifecyclePolicy' | |
|
Instances
newGetLifecyclePolicy Source #
Create a value of GetLifecyclePolicy
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:containerName:GetLifecyclePolicy'
, getLifecyclePolicy_containerName
- The name of the container that the object lifecycle policy is assigned
to.
Request Lenses
getLifecyclePolicy_containerName :: Lens' GetLifecyclePolicy Text Source #
The name of the container that the object lifecycle policy is assigned to.
Destructuring the Response
data GetLifecyclePolicyResponse Source #
See: newGetLifecyclePolicyResponse
smart constructor.
GetLifecyclePolicyResponse' | |
|
Instances
newGetLifecyclePolicyResponse Source #
:: Int | |
-> Text | |
-> GetLifecyclePolicyResponse |
Create a value of GetLifecyclePolicyResponse
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:httpStatus:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_httpStatus
- The response's http status code.
$sel:lifecyclePolicy:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_lifecyclePolicy
- The object lifecycle policy that is assigned to the container.
Response Lenses
getLifecyclePolicyResponse_httpStatus :: Lens' GetLifecyclePolicyResponse Int Source #
The response's http status code.
getLifecyclePolicyResponse_lifecyclePolicy :: Lens' GetLifecyclePolicyResponse Text Source #
The object lifecycle policy that is assigned to the container.