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

Description

Gets an image policy.

Synopsis

Creating a Request

data GetImagePolicy Source #

See: newGetImagePolicy smart constructor.

Constructors

GetImagePolicy' 

Fields

  • imageArn :: Text

    The Amazon Resource Name (ARN) of the image whose policy you want to retrieve.

Instances

Instances details
ToHeaders GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

ToPath GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

ToQuery GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

AWSRequest GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Associated Types

type AWSResponse GetImagePolicy #

Generic GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Associated Types

type Rep GetImagePolicy :: Type -> Type #

Read GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Show GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

NFData GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Methods

rnf :: GetImagePolicy -> () #

Eq GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Hashable GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

type AWSResponse GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

type Rep GetImagePolicy Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

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

newGetImagePolicy Source #

Create a value of GetImagePolicy 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:imageArn:GetImagePolicy', getImagePolicy_imageArn - The Amazon Resource Name (ARN) of the image whose policy you want to retrieve.

Request Lenses

getImagePolicy_imageArn :: Lens' GetImagePolicy Text Source #

The Amazon Resource Name (ARN) of the image whose policy you want to retrieve.

Destructuring the Response

data GetImagePolicyResponse Source #

See: newGetImagePolicyResponse smart constructor.

Constructors

GetImagePolicyResponse' 

Fields

Instances

Instances details
Generic GetImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Associated Types

type Rep GetImagePolicyResponse :: Type -> Type #

Read GetImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Show GetImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

NFData GetImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

Methods

rnf :: GetImagePolicyResponse -> () #

Eq GetImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

type Rep GetImagePolicyResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.GetImagePolicy

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

newGetImagePolicyResponse Source #

Create a value of GetImagePolicyResponse 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:policy:GetImagePolicyResponse', getImagePolicyResponse_policy - The image policy object.

$sel:requestId:GetImagePolicyResponse', getImagePolicyResponse_requestId - The request ID that uniquely identifies this request.

$sel:httpStatus:GetImagePolicyResponse', getImagePolicyResponse_httpStatus - The response's http status code.

Response Lenses

getImagePolicyResponse_requestId :: Lens' GetImagePolicyResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.