@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.953Z") @Stability(value=Stable) public class CfnImageRecipe extends CfnResource implements IInspectable
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.*;
CfnImageRecipe cfnImageRecipe = CfnImageRecipe.Builder.create(this, "MyCfnImageRecipe")
.components(List.of(ComponentConfigurationProperty.builder()
.componentArn("componentArn")
.parameters(List.of(ComponentParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.build()))
.name("name")
.parentImage("parentImage")
.version("version")
// the properties below are optional
.additionalInstanceConfiguration(AdditionalInstanceConfigurationProperty.builder()
.systemsManagerAgent(SystemsManagerAgentProperty.builder()
.uninstallAfterBuild(false)
.build())
.userDataOverride("userDataOverride")
.build())
.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()))
.description("description")
.tags(Map.of(
"tagsKey", "tags"))
.workingDirectory("workingDirectory")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnImageRecipe.AdditionalInstanceConfigurationProperty
Example:
|
static class |
CfnImageRecipe.Builder
A fluent builder for
CfnImageRecipe. |
static interface |
CfnImageRecipe.ComponentConfigurationProperty
Example:
|
static interface |
CfnImageRecipe.ComponentParameterProperty
Example:
|
static interface |
CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty
Example:
|
static interface |
CfnImageRecipe.InstanceBlockDeviceMappingProperty
Example:
|
static interface |
CfnImageRecipe.SystemsManagerAgentProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnImageRecipe(software.constructs.Construct scope,
String id,
CfnImageRecipeProps props)
Create a new `AWS::ImageBuilder::ImageRecipe`.
|
protected |
CfnImageRecipe(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnImageRecipe(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdditionalInstanceConfiguration()
`AWS::ImageBuilder::ImageRecipe.AdditionalInstanceConfiguration`.
|
String |
getAttrArn() |
String |
getAttrName() |
Object |
getBlockDeviceMappings()
`AWS::ImageBuilder::ImageRecipe.BlockDeviceMappings`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getComponents()
`AWS::ImageBuilder::ImageRecipe.Components`.
|
String |
getDescription()
`AWS::ImageBuilder::ImageRecipe.Description`.
|
String |
getName()
`AWS::ImageBuilder::ImageRecipe.Name`.
|
String |
getParentImage()
`AWS::ImageBuilder::ImageRecipe.ParentImage`.
|
TagManager |
getTags()
`AWS::ImageBuilder::ImageRecipe.Tags`.
|
String |
getVersion()
`AWS::ImageBuilder::ImageRecipe.Version`.
|
String |
getWorkingDirectory()
`AWS::ImageBuilder::ImageRecipe.WorkingDirectory`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAdditionalInstanceConfiguration(CfnImageRecipe.AdditionalInstanceConfigurationProperty value)
`AWS::ImageBuilder::ImageRecipe.AdditionalInstanceConfiguration`.
|
void |
setAdditionalInstanceConfiguration(IResolvable value)
`AWS::ImageBuilder::ImageRecipe.AdditionalInstanceConfiguration`.
|
void |
setBlockDeviceMappings(IResolvable value)
`AWS::ImageBuilder::ImageRecipe.BlockDeviceMappings`.
|
void |
setBlockDeviceMappings(List<Object> value)
`AWS::ImageBuilder::ImageRecipe.BlockDeviceMappings`.
|
void |
setComponents(IResolvable value)
`AWS::ImageBuilder::ImageRecipe.Components`.
|
void |
setComponents(List<Object> value)
`AWS::ImageBuilder::ImageRecipe.Components`.
|
void |
setDescription(String value)
`AWS::ImageBuilder::ImageRecipe.Description`.
|
void |
setName(String value)
`AWS::ImageBuilder::ImageRecipe.Name`.
|
void |
setParentImage(String value)
`AWS::ImageBuilder::ImageRecipe.ParentImage`.
|
void |
setVersion(String value)
`AWS::ImageBuilder::ImageRecipe.Version`.
|
void |
setWorkingDirectory(String value)
`AWS::ImageBuilder::ImageRecipe.WorkingDirectory`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnImageRecipe(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnImageRecipe(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnImageRecipe(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnImageRecipeProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @Nullable public Object getAdditionalInstanceConfiguration()
@Stability(value=Stable)
public void setAdditionalInstanceConfiguration(@Nullable
CfnImageRecipe.AdditionalInstanceConfigurationProperty value)
@Stability(value=Stable)
public void setAdditionalInstanceConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @Nullable public Object getBlockDeviceMappings()
@Stability(value=Stable)
public void setBlockDeviceMappings(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setBlockDeviceMappings(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getComponents()
@Stability(value=Stable)
public void setComponents(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setComponents(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getParentImage()
@Stability(value=Stable)
public void setParentImage(@NotNull
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getVersion()
@Stability(value=Stable)
public void setVersion(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getWorkingDirectory()
@Stability(value=Stable)
public void setWorkingDirectory(@Nullable
String value)
Copyright © 2021. All rights reserved.