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

Description

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

See: newPutComponentPolicy smart constructor.

Constructors

PutComponentPolicy' 

Fields

  • componentArn :: Text

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

  • policy :: Text

    The policy to apply.

Instances

Instances details
Eq PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Read PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Show PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Generic PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Associated Types

type Rep PutComponentPolicy :: Type -> Type #

NFData PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Methods

rnf :: PutComponentPolicy -> () #

Hashable PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

ToJSON PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

AWSRequest PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Associated Types

type AWSResponse PutComponentPolicy #

ToHeaders PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

ToPath PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

ToQuery PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

type Rep PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

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

Defined in Amazonka.ImageBuilder.PutComponentPolicy

newPutComponentPolicy Source #

Create a value of PutComponentPolicy 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:componentArn:PutComponentPolicy', putComponentPolicy_componentArn - The Amazon Resource Name (ARN) of the component that this policy should be applied to.

$sel:policy:PutComponentPolicy', putComponentPolicy_policy - The policy to apply.

Request Lenses

putComponentPolicy_componentArn :: Lens' PutComponentPolicy Text Source #

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

Destructuring the Response

data PutComponentPolicyResponse Source #

See: newPutComponentPolicyResponse smart constructor.

Constructors

PutComponentPolicyResponse' 

Fields

Instances

Instances details
Eq PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Read PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Show PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Generic PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Associated Types

type Rep PutComponentPolicyResponse :: Type -> Type #

NFData PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

type Rep PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

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

newPutComponentPolicyResponse Source #

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

$sel:componentArn:PutComponentPolicy', putComponentPolicyResponse_componentArn - The Amazon Resource Name (ARN) of the component that this policy was applied to.

$sel:httpStatus:PutComponentPolicyResponse', putComponentPolicyResponse_httpStatus - The response's http status code.

Response Lenses

putComponentPolicyResponse_requestId :: Lens' PutComponentPolicyResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.

putComponentPolicyResponse_componentArn :: Lens' PutComponentPolicyResponse (Maybe Text) Source #

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