Class CfnMicrovmImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lambda.CfnMicrovmImage
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IMicrovmImageRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-07-02T13:32:41.774Z")
@Stability(Stable)
public class CfnMicrovmImage
extends CfnResource
implements IInspectable, IMicrovmImageRef, ITaggableV2
Resource Type definition for AWS::Lambda::MicrovmImage.
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.lambda.*;
CfnMicrovmImage cfnMicrovmImage = CfnMicrovmImage.Builder.create(this, "MyCfnMicrovmImage")
.additionalOsCapabilities(List.of("additionalOsCapabilities"))
.baseImageArn("baseImageArn")
.baseImageVersion("baseImageVersion")
.buildRoleArn("buildRoleArn")
.codeArtifact(CodeArtifactProperty.builder()
.uri("uri")
.build())
.cpuConfigurations(List.of(CpuConfigurationProperty.builder()
.architecture("architecture")
.build()))
.description("description")
.egressNetworkConnectors(List.of("egressNetworkConnectors"))
.environmentVariables(List.of(EnvironmentVariableProperty.builder()
.key("key")
.value("value")
.build()))
.hooks(HooksProperty.builder()
.microvmHooks(MicrovmHooksProperty.builder()
.resume("resume")
.resumeTimeoutInSeconds(123)
.run("run")
.runTimeoutInSeconds(123)
.suspend("suspend")
.suspendTimeoutInSeconds(123)
.terminate("terminate")
.terminateTimeoutInSeconds(123)
.build())
.microvmImageHooks(MicrovmImageHooksProperty.builder()
.ready("ready")
.readyTimeoutInSeconds(123)
.validate("validate")
.validateTimeoutInSeconds(123)
.build())
.port(123)
.build())
.logging(LoggingProperty.builder()
.cloudWatch(CloudWatchLoggingProperty.builder()
.logGroup("logGroup")
.logStream("logStream")
.build())
.disabled(false)
.build())
.name("name")
.resources(List.of(ResourcesProperty.builder()
.minimumMemoryInMiB(123)
.build()))
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMicrovmImage.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.lambda.IMicrovmImageRef
IMicrovmImageRef.Jsii$Default, IMicrovmImageRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMicrovmImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMicrovmImage(software.amazon.jsii.JsiiObjectRef objRef) CfnMicrovmImage(software.constructs.Construct scope, String id, CfnMicrovmImageProps props) Create a newAWS::Lambda::MicrovmImage. -
Method Summary
Modifier and TypeMethodDescriptionTimestamp when the MicroVM image was created.ARN of the MicroVM image.The latest active version of the MicroVM image.The latest failed version of the MicroVM image.Timestamp when the MicroVM image was updated.ARN of the base MicroVM image.Specific version of the base MicroVM image to use.ARN of the IAM build role.Tag Manager which manages the tags for this resource.Returns union: eitherIResolvableorCfnMicrovmImage.CodeArtifactPropertyReturns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnMicrovmImage.CpuConfigurationProperty>Human-readable description of the MicroVM image and its purpose.Environment variables to set in the container during the snapshot build.getHooks()Returns union: eitherIResolvableorCfnMicrovmImage.HooksPropertyReturns union: eitherIResolvableorCfnMicrovmImage.LoggingPropertyA reference to a MicrovmImage resource.getName()Unique name for the MicroVM image within the account.Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnMicrovmImage.ResourcesProperty>getTags()Key-value pairs to associate with the MicroVM image for organization and management.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnMicrovmImage.renderProperties(Map<String, Object> props) voidsetAdditionalOsCapabilities(List<String> value) voidsetBaseImageArn(String value) ARN of the base MicroVM image.voidsetBaseImageVersion(String value) Specific version of the base MicroVM image to use.voidsetBuildRoleArn(String value) ARN of the IAM build role.voidsetCodeArtifact(IResolvable value) voidvoidsetCpuConfigurations(List<Object> value) voidsetCpuConfigurations(IResolvable value) voidsetDescription(String value) Human-readable description of the MicroVM image and its purpose.voidsetEgressNetworkConnectors(List<String> value) voidsetEnvironmentVariables(List<Object> value) Environment variables to set in the container during the snapshot build.voidEnvironment variables to set in the container during the snapshot build.voidsetHooks(IResolvable value) voidvoidsetLogging(IResolvable value) voidvoidUnique name for the MicroVM image within the account.voidsetResources(List<Object> value) voidsetResources(IResolvable value) voidKey-value pairs to associate with the MicroVM image for organization and management.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMicrovmImage
protected CfnMicrovmImage(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMicrovmImage
protected CfnMicrovmImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMicrovmImage
@Stability(Stable) public CfnMicrovmImage(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMicrovmImageProps props) Create a newAWS::Lambda::MicrovmImage.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnMicrovmImage
Checks whether the given object is a CfnMicrovmImage.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
Timestamp when the MicroVM image was created. -
getAttrImageArn
ARN of the MicroVM image. -
getAttrLatestActiveImageVersion
The latest active version of the MicroVM image. -
getAttrLatestFailedImageVersion
The latest failed version of the MicroVM image. -
getAttrState
-
getAttrUpdatedAt
Timestamp when the MicroVM image was updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getMicrovmImageRef
A reference to a MicrovmImage resource.- Specified by:
getMicrovmImageRefin interfaceIMicrovmImageRef
-
getAdditionalOsCapabilities
-
setAdditionalOsCapabilities
-
getBaseImageArn
ARN of the base MicroVM image. -
setBaseImageArn
ARN of the base MicroVM image. -
getBaseImageVersion
Specific version of the base MicroVM image to use. -
setBaseImageVersion
Specific version of the base MicroVM image to use. -
getBuildRoleArn
ARN of the IAM build role. -
setBuildRoleArn
ARN of the IAM build role. -
getCodeArtifact
Returns union: eitherIResolvableorCfnMicrovmImage.CodeArtifactProperty -
setCodeArtifact
-
setCodeArtifact
-
getCpuConfigurations
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnMicrovmImage.CpuConfigurationProperty> -
setCpuConfigurations
-
setCpuConfigurations
-
getDescription
Human-readable description of the MicroVM image and its purpose. -
setDescription
Human-readable description of the MicroVM image and its purpose. -
getEgressNetworkConnectors
-
setEgressNetworkConnectors
-
getEnvironmentVariables
Environment variables to set in the container during the snapshot build.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMicrovmImage.EnvironmentVariableProperty> -
setEnvironmentVariables
Environment variables to set in the container during the snapshot build. -
setEnvironmentVariables
Environment variables to set in the container during the snapshot build. -
getHooks
Returns union: eitherIResolvableorCfnMicrovmImage.HooksProperty -
setHooks
-
setHooks
-
getLogging
Returns union: eitherIResolvableorCfnMicrovmImage.LoggingProperty -
setLogging
-
setLogging
-
getName
Unique name for the MicroVM image within the account. -
setName
Unique name for the MicroVM image within the account. -
getResources
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnMicrovmImage.ResourcesProperty> -
setResources
-
setResources
-
getTags
Key-value pairs to associate with the MicroVM image for organization and management. -
setTags
Key-value pairs to associate with the MicroVM image for organization and management.
-