amazonka-imagebuilder-2.0: Amazon EC2 Image Builder 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.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
ToJSON PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.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

AWSRequest PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Associated Types

type AWSResponse PutImagePolicy #

Generic PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Associated Types

type Rep PutImagePolicy :: Type -> Type #

Read PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Show PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

NFData PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Methods

rnf :: PutImagePolicy -> () #

Eq PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Hashable PutImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

type AWSResponse 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" "amazonka-imagebuilder-2.0-BBLLjX59RW72O8VbQ3vKvH" 'False) (C1 ('MetaCons "PutImagePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "imageArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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
Generic PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Associated Types

type Rep PutImagePolicyResponse :: Type -> Type #

Read PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Show PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

NFData PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

Methods

rnf :: PutImagePolicyResponse -> () #

Eq PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

type Rep PutImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImagePolicy

type Rep PutImagePolicyResponse = D1 ('MetaData "PutImagePolicyResponse" "Amazonka.ImageBuilder.PutImagePolicy" "amazonka-imagebuilder-2.0-BBLLjX59RW72O8VbQ3vKvH" 'False) (C1 ('MetaCons "PutImagePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "imageArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "requestId") '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:

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

$sel:requestId:PutImagePolicyResponse', putImagePolicyResponse_requestId - The request ID that uniquely identifies this request.

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

Response Lenses

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

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

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

The request ID that uniquely identifies this request.