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.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
ToJSON PutComponentPolicy Source # 
Instance details

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

AWSRequest PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Associated Types

type AWSResponse PutComponentPolicy #

Generic PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Associated Types

type Rep PutComponentPolicy :: Type -> Type #

Read PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Show PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

NFData PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Methods

rnf :: PutComponentPolicy -> () #

Eq PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Hashable PutComponentPolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

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

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:

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

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Associated Types

type Rep PutComponentPolicyResponse :: Type -> Type #

Read PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Show PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

NFData PutComponentPolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.PutComponentPolicy

Eq 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" "amazonka-imagebuilder-2.0-BBLLjX59RW72O8VbQ3vKvH" 'False) (C1 ('MetaCons "PutComponentPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "componentArn") '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))))

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:

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

$sel:requestId:PutComponentPolicyResponse', putComponentPolicyResponse_requestId - The request ID that uniquely identifies this request.

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

Response Lenses

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

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

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

The request ID that uniquely identifies this request.