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

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Read PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Show PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Generic PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Associated Types

type Rep PutImageRecipePolicy :: Type -> Type #

NFData PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Methods

rnf :: PutImageRecipePolicy -> () #

Hashable PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

ToJSON PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

AWSRequest PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Associated Types

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

type Rep PutImageRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

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

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

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:

$sel:imageRecipeArn: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
Eq PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Read PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Show PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Generic PutImageRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutImageRecipePolicy

Associated Types

type Rep PutImageRecipePolicyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-imagebuilderZSamazonka-imagebuilder" 'False) (C1 ('MetaCons "PutImageRecipePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "imageRecipeArn") '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:

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

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

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

Response Lenses

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

The request ID that uniquely identifies this request.

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

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