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 |
Updates the specified lifecycle policy.
Synopsis
- data UpdateLifecyclePolicy = UpdateLifecyclePolicy' {}
- newUpdateLifecyclePolicy :: Text -> UpdateLifecyclePolicy
- updateLifecyclePolicy_state :: Lens' UpdateLifecyclePolicy (Maybe SettablePolicyStateValues)
- updateLifecyclePolicy_policyDetails :: Lens' UpdateLifecyclePolicy (Maybe PolicyDetails)
- updateLifecyclePolicy_executionRoleArn :: Lens' UpdateLifecyclePolicy (Maybe Text)
- updateLifecyclePolicy_description :: Lens' UpdateLifecyclePolicy (Maybe Text)
- updateLifecyclePolicy_policyId :: Lens' UpdateLifecyclePolicy Text
- data UpdateLifecyclePolicyResponse = UpdateLifecyclePolicyResponse' {
- httpStatus :: Int
- newUpdateLifecyclePolicyResponse :: Int -> UpdateLifecyclePolicyResponse
- updateLifecyclePolicyResponse_httpStatus :: Lens' UpdateLifecyclePolicyResponse Int
Creating a Request
data UpdateLifecyclePolicy Source #
See: newUpdateLifecyclePolicy
smart constructor.
UpdateLifecyclePolicy' | |
|
Instances
newUpdateLifecyclePolicy Source #
Create a value of UpdateLifecyclePolicy
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:UpdateLifecyclePolicy'
, updateLifecyclePolicy_state
- The desired activation state of the lifecycle policy after creation.
$sel:policyDetails:UpdateLifecyclePolicy'
, updateLifecyclePolicy_policyDetails
- The configuration of the lifecycle policy. You cannot update the policy
type or the resource type.
$sel:executionRoleArn:UpdateLifecyclePolicy'
, updateLifecyclePolicy_executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the
operations specified by the lifecycle policy.
$sel:description:UpdateLifecyclePolicy'
, updateLifecyclePolicy_description
- A description of the lifecycle policy.
$sel:policyId:UpdateLifecyclePolicy'
, updateLifecyclePolicy_policyId
- The identifier of the lifecycle policy.
Request Lenses
updateLifecyclePolicy_state :: Lens' UpdateLifecyclePolicy (Maybe SettablePolicyStateValues) Source #
The desired activation state of the lifecycle policy after creation.
updateLifecyclePolicy_policyDetails :: Lens' UpdateLifecyclePolicy (Maybe PolicyDetails) Source #
The configuration of the lifecycle policy. You cannot update the policy type or the resource type.
updateLifecyclePolicy_executionRoleArn :: Lens' UpdateLifecyclePolicy (Maybe Text) Source #
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
updateLifecyclePolicy_description :: Lens' UpdateLifecyclePolicy (Maybe Text) Source #
A description of the lifecycle policy.
updateLifecyclePolicy_policyId :: Lens' UpdateLifecyclePolicy Text Source #
The identifier of the lifecycle policy.
Destructuring the Response
data UpdateLifecyclePolicyResponse Source #
See: newUpdateLifecyclePolicyResponse
smart constructor.
UpdateLifecyclePolicyResponse' | |
|
Instances
newUpdateLifecyclePolicyResponse Source #
Create a value of UpdateLifecyclePolicyResponse
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:UpdateLifecyclePolicyResponse'
, updateLifecyclePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
updateLifecyclePolicyResponse_httpStatus :: Lens' UpdateLifecyclePolicyResponse Int Source #
The response's http status code.