Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateImage = CreateImage' {}
- newCreateImage :: Text -> Text -> CreateImage
- createImage_containerRecipeArn :: Lens' CreateImage (Maybe Text)
- createImage_imageTestsConfiguration :: Lens' CreateImage (Maybe ImageTestsConfiguration)
- createImage_enhancedImageMetadataEnabled :: Lens' CreateImage (Maybe Bool)
- createImage_distributionConfigurationArn :: Lens' CreateImage (Maybe Text)
- createImage_imageRecipeArn :: Lens' CreateImage (Maybe Text)
- createImage_tags :: Lens' CreateImage (Maybe (HashMap Text Text))
- createImage_infrastructureConfigurationArn :: Lens' CreateImage Text
- createImage_clientToken :: Lens' CreateImage Text
- data CreateImageResponse = CreateImageResponse' {}
- newCreateImageResponse :: Int -> CreateImageResponse
- createImageResponse_requestId :: Lens' CreateImageResponse (Maybe Text)
- createImageResponse_clientToken :: Lens' CreateImageResponse (Maybe Text)
- createImageResponse_imageBuildVersionArn :: Lens' CreateImageResponse (Maybe Text)
- createImageResponse_httpStatus :: Lens' CreateImageResponse Int
Creating a Request
data CreateImage Source #
See: newCreateImage
smart constructor.
CreateImage' | |
|
Instances
:: Text | |
-> Text | |
-> CreateImage |
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_imageTestsConfiguration :: Lens' CreateImage (Maybe ImageTestsConfiguration) Source #
The image tests configuration of the image.
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_tags :: Lens' CreateImage (Maybe (HashMap Text Text)) Source #
The tags of the image.
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.
CreateImageResponse' | |
|
Instances
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.
createImageResponse_httpStatus :: Lens' CreateImageResponse Int Source #
The response's http status code.