libZSservicesZSamazonka-imagebuilderZSamazonka-imagebuilder
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.ImageBuilder.PutImagePolicy

Description

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.

Synopsis

Creating a Request

data PutImagePolicy Source #

See: newPutImagePolicy smart constructor.

Constructors

PutImagePolicy' 

Fields

  • imageArn :: Text

    The Amazon Resource Name (ARN) of the image that this policy should be applied to.

  • policy :: Text

    The policy to apply.

Instances

Instances details
Eq PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Read PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Show PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Generic PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Associated Types

type Rep PutImagePolicy :: Type -> Type #

NFData PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Methods

rnf :: PutImagePolicy -> () #

Hashable PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

ToJSON PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

AWSRequest PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Associated Types

type AWSResponse PutImagePolicy #

ToHeaders PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

ToPath PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

ToQuery PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

type Rep PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

type Rep PutImagePolicy = D1 ('MetaData "PutImagePolicy" "Amazonka.ImageBuilder.PutImagePolicy" "libZSservicesZSamazonka-imagebuilderZSamazonka-imagebuilder" 'False) (C1 ('MetaCons "PutImagePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "imageArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

newPutImagePolicy Source #

Create a value of PutImagePolicy 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:imageArn:PutImagePolicy', putImagePolicy_imageArn - The Amazon Resource Name (ARN) of the image that this policy should be applied to.

$sel:policy:PutImagePolicy', putImagePolicy_policy - The policy to apply.

Request Lenses

putImagePolicy_imageArn :: Lens' PutImagePolicy Text Source #

The Amazon Resource Name (ARN) of the image that this policy should be applied to.

Destructuring the Response

data PutImagePolicyResponse Source #

See: newPutImagePolicyResponse smart constructor.

Constructors

PutImagePolicyResponse' 

Fields

Instances

Instances details
Eq PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Read PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Show PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Generic PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Associated Types

type Rep PutImagePolicyResponse :: Type -> Type #

NFData PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Methods

rnf :: PutImagePolicyResponse -> () #

type Rep PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

type Rep PutImagePolicyResponse = D1 ('MetaData "PutImagePolicyResponse" "Amazonka.ImageBuilder.PutImagePolicy" "libZSservicesZSamazonka-imagebuilderZSamazonka-imagebuilder" 'False) (C1 ('MetaCons "PutImagePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "imageArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newPutImagePolicyResponse Source #

Create a value of PutImagePolicyResponse 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:requestId:PutImagePolicyResponse', putImagePolicyResponse_requestId - The request ID that uniquely identifies this request.

$sel:imageArn:PutImagePolicy', putImagePolicyResponse_imageArn - The Amazon Resource Name (ARN) of the image that this policy was applied to.

$sel:httpStatus:PutImagePolicyResponse', putImagePolicyResponse_httpStatus - The response's http status code.

Response Lenses

putImagePolicyResponse_requestId :: Lens' PutImagePolicyResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.

putImagePolicyResponse_imageArn :: Lens' PutImagePolicyResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the image that this policy was applied to.