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.PutImageRecipePolicy

Description

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImageRecipePolicy, 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 PutImageRecipePolicy Source #

See: newPutImageRecipePolicy smart constructor.

Constructors

PutImageRecipePolicy' 

Fields

  • imageRecipeArn :: Text

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

  • policy :: Text

    The policy to apply.

Instances

Instances details
ToJSON PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

ToHeaders PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

ToPath PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

ToQuery PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

AWSRequest PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Associated Types

type AWSResponse PutImageRecipePolicy #

Generic PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Associated Types

type Rep PutImageRecipePolicy :: Type -> Type #

Read PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Show PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

NFData PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Methods

rnf :: PutImageRecipePolicy -> () #

Eq PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Hashable PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

type AWSResponse PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

type Rep PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

type Rep PutImageRecipePolicy = D1 ('MetaData "PutImageRecipePolicy" "Amazonka.ImageBuilder.PutImageRecipePolicy" "amazonka-imagebuilder-2.0-BBLLjX59RW72O8VbQ3vKvH" 'False) (C1 ('MetaCons "PutImageRecipePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "imageRecipeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newPutImageRecipePolicy Source #

Create a value of PutImageRecipePolicy 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:

PutImageRecipePolicy, putImageRecipePolicy_imageRecipeArn - The Amazon Resource Name (ARN) of the image recipe that this policy should be applied to.

$sel:policy:PutImageRecipePolicy', putImageRecipePolicy_policy - The policy to apply.

Request Lenses

putImageRecipePolicy_imageRecipeArn :: Lens' PutImageRecipePolicy Text Source #

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

Destructuring the Response

data PutImageRecipePolicyResponse Source #

See: newPutImageRecipePolicyResponse smart constructor.

Constructors

PutImageRecipePolicyResponse' 

Fields

Instances

Instances details
Generic PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Associated Types

type Rep PutImageRecipePolicyResponse :: Type -> Type #

Read PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Show PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

NFData PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Eq PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

type Rep PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

type Rep PutImageRecipePolicyResponse = D1 ('MetaData "PutImageRecipePolicyResponse" "Amazonka.ImageBuilder.PutImageRecipePolicy" "amazonka-imagebuilder-2.0-BBLLjX59RW72O8VbQ3vKvH" 'False) (C1 ('MetaCons "PutImageRecipePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "imageRecipeArn") '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))))

newPutImageRecipePolicyResponse Source #

Create a value of PutImageRecipePolicyResponse 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:

PutImageRecipePolicy, putImageRecipePolicyResponse_imageRecipeArn - The Amazon Resource Name (ARN) of the image recipe that this policy was applied to.

$sel:requestId:PutImageRecipePolicyResponse', putImageRecipePolicyResponse_requestId - The request ID that uniquely identifies this request.

$sel:httpStatus:PutImageRecipePolicyResponse', putImageRecipePolicyResponse_httpStatus - The response's http status code.

Response Lenses

putImageRecipePolicyResponse_imageRecipeArn :: Lens' PutImageRecipePolicyResponse (Maybe Text) Source #

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

putImageRecipePolicyResponse_requestId :: Lens' PutImageRecipePolicyResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.