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 |
Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.
For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.
Synopsis
- data PutLifecyclePolicy = PutLifecyclePolicy' {}
- newPutLifecyclePolicy :: Text -> Text -> PutLifecyclePolicy
- putLifecyclePolicy_containerName :: Lens' PutLifecyclePolicy Text
- putLifecyclePolicy_lifecyclePolicy :: Lens' PutLifecyclePolicy Text
- data PutLifecyclePolicyResponse = PutLifecyclePolicyResponse' {
- httpStatus :: Int
- newPutLifecyclePolicyResponse :: Int -> PutLifecyclePolicyResponse
- putLifecyclePolicyResponse_httpStatus :: Lens' PutLifecyclePolicyResponse Int
Creating a Request
data PutLifecyclePolicy Source #
See: newPutLifecyclePolicy
smart constructor.
PutLifecyclePolicy' | |
|
Instances
newPutLifecyclePolicy Source #
:: Text | |
-> Text | |
-> PutLifecyclePolicy |
Create a value of PutLifecyclePolicy
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:PutLifecyclePolicy'
, putLifecyclePolicy_containerName
- The name of the container that you want to assign the object lifecycle
policy to.
$sel:lifecyclePolicy:PutLifecyclePolicy'
, putLifecyclePolicy_lifecyclePolicy
- The object lifecycle policy to apply to the container.
Request Lenses
putLifecyclePolicy_containerName :: Lens' PutLifecyclePolicy Text Source #
The name of the container that you want to assign the object lifecycle policy to.
putLifecyclePolicy_lifecyclePolicy :: Lens' PutLifecyclePolicy Text Source #
The object lifecycle policy to apply to the container.
Destructuring the Response
data PutLifecyclePolicyResponse Source #
See: newPutLifecyclePolicyResponse
smart constructor.
PutLifecyclePolicyResponse' | |
|
Instances
newPutLifecyclePolicyResponse Source #
Create a value of PutLifecyclePolicyResponse
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:PutLifecyclePolicyResponse'
, putLifecyclePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putLifecyclePolicyResponse_httpStatus :: Lens' PutLifecyclePolicyResponse Int Source #
The response's http status code.