Interface CfnImagePropsMixin.IImageTestsConfigurationProperty
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.
Namespace: Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnImagePropsMixin.IImageTestsConfigurationProperty
Syntax (vb)
Public Interface CfnImagePropsMixin.IImageTestsConfigurationProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var imageTestsConfigurationProperty = new ImageTestsConfigurationProperty {
ImageTestsEnabled = false,
TimeoutMinutes = 123
};
Synopsis
Properties
| ImageTestsEnabled | Determines if tests should run after building the image. |
| TimeoutMinutes | The maximum time in minutes that tests are permitted to run. |
Properties
ImageTestsEnabled
Determines if tests should run after building the image.
object? ImageTestsEnabled { get; }
Property Value
Remarks
Image Builder defaults to enable tests to run following the image build, before image distribution.
Type union: either bool or IResolvable
TimeoutMinutes
The maximum time in minutes that tests are permitted to run.
double? TimeoutMinutes { get; }
Property Value
Remarks
The timeout property is not currently active. This value is ignored.