libZSservicesZSamazonka-dlmZSamazonka-dlm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateLifecyclePolicy Source #

See: newCreateLifecyclePolicy smart constructor.

Constructors

CreateLifecyclePolicy' 

Fields

Instances

Instances details
Eq CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Read CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Show CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Generic CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Associated Types

type Rep CreateLifecyclePolicy :: Type -> Type #

NFData CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Methods

rnf :: CreateLifecyclePolicy -> () #

Hashable CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

ToJSON CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

AWSRequest CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Associated Types

type AWSResponse CreateLifecyclePolicy #

ToHeaders CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

ToPath CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

ToQuery CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

type Rep CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

type Rep CreateLifecyclePolicy = D1 ('MetaData "CreateLifecyclePolicy" "Amazonka.DLM.CreateLifecyclePolicy" "libZSservicesZSamazonka-dlmZSamazonka-dlm" 'False) (C1 ('MetaCons "CreateLifecyclePolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "executionRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SettablePolicyStateValues) :*: S1 ('MetaSel ('Just "policyDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PolicyDetails)))))
type AWSResponse CreateLifecyclePolicy Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

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.

Constructors

CreateLifecyclePolicyResponse' 

Fields

Instances

Instances details
Eq CreateLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Read CreateLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Show CreateLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Generic CreateLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

Associated Types

type Rep CreateLifecyclePolicyResponse :: Type -> Type #

NFData CreateLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

type Rep CreateLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.DLM.CreateLifecyclePolicy

type Rep CreateLifecyclePolicyResponse = D1 ('MetaData "CreateLifecyclePolicyResponse" "Amazonka.DLM.CreateLifecyclePolicy" "libZSservicesZSamazonka-dlmZSamazonka-dlm" 'False) (C1 ('MetaCons "CreateLifecyclePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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