@Stability(value=Stable)
public static interface CfnImage.ImageTestsConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.imagebuilder.*;
ImageTestsConfigurationProperty imageTestsConfigurationProperty = ImageTestsConfigurationProperty.builder()
.imageTestsEnabled(false)
.timeoutMinutes(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnImage.ImageTestsConfigurationProperty.Builder
A builder for
CfnImage.ImageTestsConfigurationProperty |
static class |
CfnImage.ImageTestsConfigurationProperty.Jsii$Proxy
An implementation for
CfnImage.ImageTestsConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnImage.ImageTestsConfigurationProperty.Builder |
builder() |
default Object |
getImageTestsEnabled()
Determines if tests should run after building the image.
|
default Number |
getTimeoutMinutes()
The maximum time in minutes that tests are permitted to run.
|
@Stability(value=Stable) @Nullable default Object getImageTestsEnabled()
Image Builder defaults to enable tests to run following the image build, before image distribution.
@Stability(value=Stable) @Nullable default Number getTimeoutMinutes()
@Stability(value=Stable) static CfnImage.ImageTestsConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.