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

Description

Creates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.

Synopsis

Creating a Request

data CreateImage Source #

See: newCreateImage smart constructor.

Constructors

CreateImage' 

Fields

Instances

Instances details
Eq CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Read CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Show CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Generic CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Associated Types

type Rep CreateImage :: Type -> Type #

NFData CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Methods

rnf :: CreateImage -> () #

Hashable CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

ToJSON CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

AWSRequest CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Associated Types

type AWSResponse CreateImage #

ToHeaders CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Methods

toHeaders :: CreateImage -> [Header] #

ToPath CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

ToQuery CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

type Rep CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

type Rep CreateImage = D1 ('MetaData "CreateImage" "Amazonka.ImageBuilder.CreateImage" "libZSservicesZSamazonka-imagebuilderZSamazonka-imagebuilder" 'False) (C1 ('MetaCons "CreateImage'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "containerRecipeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "imageTestsConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageTestsConfiguration))) :*: (S1 ('MetaSel ('Just "enhancedImageMetadataEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "distributionConfigurationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "imageRecipeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "infrastructureConfigurationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

newCreateImage Source #

Create a value of CreateImage 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:CreateImage', createImage_containerRecipeArn - The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.

$sel:imageTestsConfiguration:CreateImage', createImage_imageTestsConfiguration - The image tests configuration of the image.

$sel:enhancedImageMetadataEnabled:CreateImage', createImage_enhancedImageMetadataEnabled - Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

$sel:distributionConfigurationArn:CreateImage', createImage_distributionConfigurationArn - The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.

$sel:imageRecipeArn:CreateImage', createImage_imageRecipeArn - The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.

$sel:tags:CreateImage', createImage_tags - The tags of the image.

$sel:infrastructureConfigurationArn:CreateImage', createImage_infrastructureConfigurationArn - The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.

$sel:clientToken:CreateImage', createImage_clientToken - The idempotency token used to make this request idempotent.

Request Lenses

createImage_containerRecipeArn :: Lens' CreateImage (Maybe Text) Source #

The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.

createImage_enhancedImageMetadataEnabled :: Lens' CreateImage (Maybe Bool) Source #

Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

createImage_distributionConfigurationArn :: Lens' CreateImage (Maybe Text) Source #

The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.

createImage_imageRecipeArn :: Lens' CreateImage (Maybe Text) Source #

The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.

createImage_infrastructureConfigurationArn :: Lens' CreateImage Text Source #

The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.

createImage_clientToken :: Lens' CreateImage Text Source #

The idempotency token used to make this request idempotent.

Destructuring the Response

data CreateImageResponse Source #

See: newCreateImageResponse smart constructor.

Constructors

CreateImageResponse' 

Fields

Instances

Instances details
Eq CreateImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Read CreateImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Show CreateImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Generic CreateImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Associated Types

type Rep CreateImageResponse :: Type -> Type #

NFData CreateImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

Methods

rnf :: CreateImageResponse -> () #

type Rep CreateImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.CreateImage

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

newCreateImageResponse Source #

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

$sel:clientToken:CreateImage', createImageResponse_clientToken - The idempotency token used to make this request idempotent.

$sel:imageBuildVersionArn:CreateImageResponse', createImageResponse_imageBuildVersionArn - The Amazon Resource Name (ARN) of the image that was created by this request.

$sel:httpStatus:CreateImageResponse', createImageResponse_httpStatus - The response's http status code.

Response Lenses

createImageResponse_requestId :: Lens' CreateImageResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.

createImageResponse_clientToken :: Lens' CreateImageResponse (Maybe Text) Source #

The idempotency token used to make this request idempotent.

createImageResponse_imageBuildVersionArn :: Lens' CreateImageResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the image that was created by this request.