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

Description

Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API PutContainerImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.

Synopsis

Creating a Request

data PutContainerRecipePolicy Source #

See: newPutContainerRecipePolicy smart constructor.

Constructors

PutContainerRecipePolicy' 

Fields

  • containerRecipeArn :: Text

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

  • policy :: Text

    The policy to apply to the container recipe.

Instances

Instances details
Eq PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Read PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Show PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Generic PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Associated Types

type Rep PutContainerRecipePolicy :: Type -> Type #

NFData PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Hashable PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

ToJSON PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

AWSRequest PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

ToHeaders PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

ToPath PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

ToQuery PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

type Rep PutContainerRecipePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

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

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

newPutContainerRecipePolicy Source #

Create a value of PutContainerRecipePolicy 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:containerRecipeArn:PutContainerRecipePolicy', putContainerRecipePolicy_containerRecipeArn - The Amazon Resource Name (ARN) of the container recipe that this policy should be applied to.

$sel:policy:PutContainerRecipePolicy', putContainerRecipePolicy_policy - The policy to apply to the container recipe.

Request Lenses

putContainerRecipePolicy_containerRecipeArn :: Lens' PutContainerRecipePolicy Text Source #

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

putContainerRecipePolicy_policy :: Lens' PutContainerRecipePolicy Text Source #

The policy to apply to the container recipe.

Destructuring the Response

data PutContainerRecipePolicyResponse Source #

See: newPutContainerRecipePolicyResponse smart constructor.

Constructors

PutContainerRecipePolicyResponse' 

Fields

Instances

Instances details
Eq PutContainerRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Read PutContainerRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Show PutContainerRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Generic PutContainerRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

Associated Types

type Rep PutContainerRecipePolicyResponse :: Type -> Type #

NFData PutContainerRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

type Rep PutContainerRecipePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutContainerRecipePolicy

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

newPutContainerRecipePolicyResponse Source #

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

$sel:containerRecipeArn:PutContainerRecipePolicy', putContainerRecipePolicyResponse_containerRecipeArn - The Amazon Resource Name (ARN) of the container recipe that this policy was applied to.

$sel:httpStatus:PutContainerRecipePolicyResponse', putContainerRecipePolicyResponse_httpStatus - The response's http status code.

Response Lenses

putContainerRecipePolicyResponse_requestId :: Lens' PutContainerRecipePolicyResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.

putContainerRecipePolicyResponse_containerRecipeArn :: Lens' PutContainerRecipePolicyResponse (Maybe Text) Source #

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