amazonka-mediastore-2.0: Amazon Elemental MediaStore SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MediaStore.PutContainerPolicy

Description

Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.

For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.

Synopsis

Creating a Request

data PutContainerPolicy Source #

See: newPutContainerPolicy smart constructor.

Constructors

PutContainerPolicy' 

Fields

  • containerName :: Text

    The name of the container.

  • policy :: Text

    The contents of the policy, which includes the following:

    • One Version tag
    • One Statement tag that contains the standard tags for the policy.

Instances

Instances details
ToJSON PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

ToHeaders PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

ToPath PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

ToQuery PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

AWSRequest PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Associated Types

type AWSResponse PutContainerPolicy #

Generic PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Associated Types

type Rep PutContainerPolicy :: Type -> Type #

Read PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Show PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

NFData PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Methods

rnf :: PutContainerPolicy -> () #

Eq PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Hashable PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

type AWSResponse PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

type Rep PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

type Rep PutContainerPolicy = D1 ('MetaData "PutContainerPolicy" "Amazonka.MediaStore.PutContainerPolicy" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "PutContainerPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newPutContainerPolicy Source #

Create a value of PutContainerPolicy 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:PutContainerPolicy', putContainerPolicy_containerName - The name of the container.

$sel:policy:PutContainerPolicy', putContainerPolicy_policy - The contents of the policy, which includes the following:

  • One Version tag
  • One Statement tag that contains the standard tags for the policy.

Request Lenses

putContainerPolicy_policy :: Lens' PutContainerPolicy Text Source #

The contents of the policy, which includes the following:

  • One Version tag
  • One Statement tag that contains the standard tags for the policy.

Destructuring the Response

data PutContainerPolicyResponse Source #

See: newPutContainerPolicyResponse smart constructor.

Constructors

PutContainerPolicyResponse' 

Fields

Instances

Instances details
Generic PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Associated Types

type Rep PutContainerPolicyResponse :: Type -> Type #

Read PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Show PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

NFData PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Eq PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

type Rep PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

type Rep PutContainerPolicyResponse = D1 ('MetaData "PutContainerPolicyResponse" "Amazonka.MediaStore.PutContainerPolicy" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "PutContainerPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutContainerPolicyResponse Source #

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

Response Lenses