interface ImageTestsConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.CfnImage.ImageTestsConfigurationProperty |
Java | software.amazon.awscdk.services.imagebuilder.CfnImage.ImageTestsConfigurationProperty |
Python | aws_cdk.aws_imagebuilder.CfnImage.ImageTestsConfigurationProperty |
TypeScript | @aws-cdk/aws-imagebuilder » CfnImage » ImageTestsConfigurationProperty |
When you create an image or container recipe with Image Builder , you can add the build or test components that are used to create the final image.
You must have at least one build component to create a recipe, but test components are not required. If you have added tests, they run after the image is created, to ensure that the target image is functional and can be used reliably for launching Amazon EC2 instances.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder from '@aws-cdk/aws-imagebuilder';
const imageTestsConfigurationProperty: imagebuilder.CfnImage.ImageTestsConfigurationProperty = {
imageTestsEnabled: false,
timeoutMinutes: 123,
};
Properties
Name | Type | Description |
---|---|---|
image | boolean | IResolvable | Determines if tests should run after building the image. |
timeout | number | The maximum time in minutes that tests are permitted to run. |
imageTestsEnabled?
Type:
boolean |
IResolvable
(optional)
Determines if tests should run after building the image.
Image Builder defaults to enable tests to run following the image build, before image distribution.
timeoutMinutes?
Type:
number
(optional)
The maximum time in minutes that tests are permitted to run.
The timeoutMinutes attribute is not currently active. This value is ignored.