libZSservicesZSamazonka-mediastoreZSamazonka-mediastore
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.MediaStore.PutLifecyclePolicy

Description

Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.

For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.

Synopsis

Creating a Request

data PutLifecyclePolicy Source #

See: newPutLifecyclePolicy smart constructor.

Constructors

PutLifecyclePolicy' 

Fields

Instances

Instances details
Eq PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Read PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Show PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Generic PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Associated Types

type Rep PutLifecyclePolicy :: Type -> Type #

NFData PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Methods

rnf :: PutLifecyclePolicy -> () #

Hashable PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

ToJSON PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

AWSRequest PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Associated Types

type AWSResponse PutLifecyclePolicy #

ToHeaders PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

ToPath PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

ToQuery PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

type Rep PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

type Rep PutLifecyclePolicy = D1 ('MetaData "PutLifecyclePolicy" "Amazonka.MediaStore.PutLifecyclePolicy" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" 'False) (C1 ('MetaCons "PutLifecyclePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "lifecyclePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

newPutLifecyclePolicy Source #

Create a value of PutLifecyclePolicy 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:containerName:PutLifecyclePolicy', putLifecyclePolicy_containerName - The name of the container that you want to assign the object lifecycle policy to.

$sel:lifecyclePolicy:PutLifecyclePolicy', putLifecyclePolicy_lifecyclePolicy - The object lifecycle policy to apply to the container.

Request Lenses

putLifecyclePolicy_containerName :: Lens' PutLifecyclePolicy Text Source #

The name of the container that you want to assign the object lifecycle policy to.

putLifecyclePolicy_lifecyclePolicy :: Lens' PutLifecyclePolicy Text Source #

The object lifecycle policy to apply to the container.

Destructuring the Response

data PutLifecyclePolicyResponse Source #

See: newPutLifecyclePolicyResponse smart constructor.

Constructors

PutLifecyclePolicyResponse' 

Fields

Instances

Instances details
Eq PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Read PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Show PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Generic PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

Associated Types

type Rep PutLifecyclePolicyResponse :: Type -> Type #

NFData PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

type Rep PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutLifecyclePolicy

type Rep PutLifecyclePolicyResponse = D1 ('MetaData "PutLifecyclePolicyResponse" "Amazonka.MediaStore.PutLifecyclePolicy" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" 'False) (C1 ('MetaCons "PutLifecyclePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutLifecyclePolicyResponse Source #

Create a value of PutLifecyclePolicyResponse 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:PutLifecyclePolicyResponse', putLifecyclePolicyResponse_httpStatus - The response's http status code.

Response Lenses