@Stability(value=Stable)
public static interface CfnContainerRecipe.InstanceConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
InstanceConfigurationProperty instanceConfigurationProperty = InstanceConfigurationProperty.builder()
.blockDeviceMappings(List.of(InstanceBlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsInstanceBlockDeviceSpecificationProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.throughput(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build()))
.image("image")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnContainerRecipe.InstanceConfigurationProperty.Builder
A builder for
CfnContainerRecipe.InstanceConfigurationProperty |
static class |
CfnContainerRecipe.InstanceConfigurationProperty.Jsii$Proxy
An implementation for
CfnContainerRecipe.InstanceConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnContainerRecipe.InstanceConfigurationProperty.Builder |
builder() |
default Object |
getBlockDeviceMappings()
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
default String |
getImage()
The AMI ID to use as the base image for a container build and test instance.
|
@Stability(value=Stable) @Nullable default Object getBlockDeviceMappings()
@Stability(value=Stable) @Nullable default String getImage()
If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
@Stability(value=Stable) static CfnContainerRecipe.InstanceConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.