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 |
Updates the specified lifecycle policy.
For more information about updating a policy, see Modify lifecycle policies.
Synopsis
- data UpdateLifecyclePolicy = UpdateLifecyclePolicy' {}
- newUpdateLifecyclePolicy :: Text -> UpdateLifecyclePolicy
- updateLifecyclePolicy_description :: Lens' UpdateLifecyclePolicy (Maybe Text)
- updateLifecyclePolicy_executionRoleArn :: Lens' UpdateLifecyclePolicy (Maybe Text)
- updateLifecyclePolicy_policyDetails :: Lens' UpdateLifecyclePolicy (Maybe PolicyDetails)
- updateLifecyclePolicy_state :: Lens' UpdateLifecyclePolicy (Maybe SettablePolicyStateValues)
- 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:
UpdateLifecyclePolicy
, updateLifecyclePolicy_description
- A description of the lifecycle policy.
UpdateLifecyclePolicy
, updateLifecyclePolicy_executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the
operations specified by the lifecycle policy.
UpdateLifecyclePolicy
, updateLifecyclePolicy_policyDetails
- The configuration of the lifecycle policy. You cannot update the policy
type or the resource type.
UpdateLifecyclePolicy
, updateLifecyclePolicy_state
- The desired activation state of the lifecycle policy after creation.
UpdateLifecyclePolicy
, updateLifecyclePolicy_policyId
- The identifier of the lifecycle policy.
Request Lenses
updateLifecyclePolicy_description :: Lens' UpdateLifecyclePolicy (Maybe Text) Source #
A description of the lifecycle policy.
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_policyDetails :: Lens' UpdateLifecyclePolicy (Maybe PolicyDetails) Source #
The configuration of the lifecycle policy. You cannot update the policy type or the resource type.
updateLifecyclePolicy_state :: Lens' UpdateLifecyclePolicy (Maybe SettablePolicyStateValues) Source #
The desired activation state of the lifecycle policy after creation.
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.