| 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.MediaStore.GetLifecyclePolicy
Description
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.
Constructors
| GetLifecyclePolicy' | |
Fields
| |
Instances
newGetLifecyclePolicy Source #
Arguments
| :: Text | |
| -> GetLifecyclePolicy |
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.
Constructors
| GetLifecyclePolicyResponse' | |
Fields
| |
Instances
newGetLifecyclePolicyResponse Source #
Arguments
| :: 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.