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 |
Creates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 lifecycle policies.
Synopsis
- data CreateLifecyclePolicy = CreateLifecyclePolicy' {}
- newCreateLifecyclePolicy :: Text -> Text -> SettablePolicyStateValues -> PolicyDetails -> CreateLifecyclePolicy
- createLifecyclePolicy_tags :: Lens' CreateLifecyclePolicy (Maybe (HashMap Text Text))
- createLifecyclePolicy_executionRoleArn :: Lens' CreateLifecyclePolicy Text
- createLifecyclePolicy_description :: Lens' CreateLifecyclePolicy Text
- createLifecyclePolicy_state :: Lens' CreateLifecyclePolicy SettablePolicyStateValues
- createLifecyclePolicy_policyDetails :: Lens' CreateLifecyclePolicy PolicyDetails
- data CreateLifecyclePolicyResponse = CreateLifecyclePolicyResponse' {
- policyId :: Maybe Text
- httpStatus :: Int
- newCreateLifecyclePolicyResponse :: Int -> CreateLifecyclePolicyResponse
- createLifecyclePolicyResponse_policyId :: Lens' CreateLifecyclePolicyResponse (Maybe Text)
- createLifecyclePolicyResponse_httpStatus :: Lens' CreateLifecyclePolicyResponse Int
Creating a Request
data CreateLifecyclePolicy Source #
See: newCreateLifecyclePolicy
smart constructor.
CreateLifecyclePolicy' | |
|
Instances
newCreateLifecyclePolicy Source #
Create a value of CreateLifecyclePolicy
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:tags:CreateLifecyclePolicy'
, createLifecyclePolicy_tags
- The tags to apply to the lifecycle policy during creation.
$sel:executionRoleArn:CreateLifecyclePolicy'
, createLifecyclePolicy_executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the
operations specified by the lifecycle policy.
$sel:description:CreateLifecyclePolicy'
, createLifecyclePolicy_description
- A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$
are supported.
$sel:state:CreateLifecyclePolicy'
, createLifecyclePolicy_state
- The desired activation state of the lifecycle policy after creation.
$sel:policyDetails:CreateLifecyclePolicy'
, createLifecyclePolicy_policyDetails
- The configuration details of the lifecycle policy.
Request Lenses
createLifecyclePolicy_tags :: Lens' CreateLifecyclePolicy (Maybe (HashMap Text Text)) Source #
The tags to apply to the lifecycle policy during creation.
createLifecyclePolicy_executionRoleArn :: Lens' CreateLifecyclePolicy Text Source #
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
createLifecyclePolicy_description :: Lens' CreateLifecyclePolicy Text Source #
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
createLifecyclePolicy_state :: Lens' CreateLifecyclePolicy SettablePolicyStateValues Source #
The desired activation state of the lifecycle policy after creation.
createLifecyclePolicy_policyDetails :: Lens' CreateLifecyclePolicy PolicyDetails Source #
The configuration details of the lifecycle policy.
Destructuring the Response
data CreateLifecyclePolicyResponse Source #
See: newCreateLifecyclePolicyResponse
smart constructor.
CreateLifecyclePolicyResponse' | |
|
Instances
newCreateLifecyclePolicyResponse Source #
Create a value of CreateLifecyclePolicyResponse
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:policyId:CreateLifecyclePolicyResponse'
, createLifecyclePolicyResponse_policyId
- The identifier of the lifecycle policy.
$sel:httpStatus:CreateLifecyclePolicyResponse'
, createLifecyclePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
createLifecyclePolicyResponse_policyId :: Lens' CreateLifecyclePolicyResponse (Maybe Text) Source #
The identifier of the lifecycle policy.
createLifecyclePolicyResponse_httpStatus :: Lens' CreateLifecyclePolicyResponse Int Source #
The response's http status code.