| 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.DLM.CreateLifecyclePolicy
Description
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.
Constructors
| CreateLifecyclePolicy' | |
Fields
| |
Instances
newCreateLifecyclePolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> SettablePolicyStateValues | |
| -> PolicyDetails | |
| -> CreateLifecyclePolicy |
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:
CreateLifecyclePolicy, createLifecyclePolicy_tags - The tags to apply to the lifecycle policy during creation.
CreateLifecyclePolicy, createLifecyclePolicy_executionRoleArn - The Amazon Resource Name (ARN) of the IAM role used to run the
operations specified by the lifecycle policy.
CreateLifecyclePolicy, createLifecyclePolicy_description - A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$
are supported.
CreateLifecyclePolicy, createLifecyclePolicy_state - The desired activation state of the lifecycle policy after creation.
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.
Constructors
| CreateLifecyclePolicyResponse' | |
Fields
| |
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:
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.