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.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
Eq PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Read PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Show PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Generic PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Associated Types

type Rep PutContainerPolicy :: Type -> Type #

NFData PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Methods

rnf :: PutContainerPolicy -> () #

Hashable PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

ToJSON PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

AWSRequest PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Associated Types

type AWSResponse 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

type Rep PutContainerPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

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

Defined in Amazonka.MediaStore.PutContainerPolicy

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
Eq PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Read PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Show PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Generic PutContainerPolicyResponse Source # 
Instance details

Defined in Amazonka.MediaStore.PutContainerPolicy

Associated Types

type Rep PutContainerPolicyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" '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