Class CfnMicrovmImageProps
Properties for defining a CfnMicrovmImage.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMicrovmImageProps : ICfnMicrovmImageProps
Syntax (vb)
Public Class CfnMicrovmImageProps Implements ICfnMicrovmImageProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-microvmimage.html
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.AWS.Lambda;
var cfnMicrovmImageProps = new CfnMicrovmImageProps {
AdditionalOsCapabilities = new [] { "additionalOsCapabilities" },
BaseImageArn = "baseImageArn",
BaseImageVersion = "baseImageVersion",
BuildRoleArn = "buildRoleArn",
CodeArtifact = new CodeArtifactProperty {
Uri = "uri"
},
CpuConfigurations = new [] { new CpuConfigurationProperty {
Architecture = "architecture"
} },
Description = "description",
EgressNetworkConnectors = new [] { "egressNetworkConnectors" },
EnvironmentVariables = new [] { new EnvironmentVariableProperty {
Key = "key",
Value = "value"
} },
Hooks = new HooksProperty {
MicrovmHooks = new MicrovmHooksProperty {
Resume = "resume",
ResumeTimeoutInSeconds = 123,
Run = "run",
RunTimeoutInSeconds = 123,
Suspend = "suspend",
SuspendTimeoutInSeconds = 123,
Terminate = "terminate",
TerminateTimeoutInSeconds = 123
},
MicrovmImageHooks = new MicrovmImageHooksProperty {
Ready = "ready",
ReadyTimeoutInSeconds = 123,
Validate = "validate",
ValidateTimeoutInSeconds = 123
},
Port = 123
},
Logging = new LoggingProperty {
CloudWatch = new CloudWatchLoggingProperty {
LogGroup = "logGroup",
LogStream = "logStream"
},
Disabled = false
},
Name = "name",
Resources = new [] { new ResourcesProperty {
MinimumMemoryInMiB = 123
} },
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnMicrovmImageProps() | Properties for defining a |
Properties
| AdditionalOsCapabilities | Properties for defining a |
| BaseImageArn | ARN of the base MicroVM image. |
| BaseImageVersion | Specific version of the base MicroVM image to use. |
| BuildRoleArn | ARN of the IAM build role. |
| CodeArtifact | Properties for defining a |
| CpuConfigurations | Properties for defining a |
| Description | Human-readable description of the MicroVM image and its purpose. |
| EgressNetworkConnectors | Properties for defining a |
| EnvironmentVariables | Environment variables to set in the container during the snapshot build. |
| Hooks | Properties for defining a |
| Logging | Properties for defining a |
| Name | Unique name for the MicroVM image within the account. |
| Resources | Properties for defining a |
| Tags | Key-value pairs to associate with the MicroVM image for organization and management. |
Constructors
CfnMicrovmImageProps()
Properties for defining a CfnMicrovmImage.
public CfnMicrovmImageProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-microvmimage.html
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.AWS.Lambda;
var cfnMicrovmImageProps = new CfnMicrovmImageProps {
AdditionalOsCapabilities = new [] { "additionalOsCapabilities" },
BaseImageArn = "baseImageArn",
BaseImageVersion = "baseImageVersion",
BuildRoleArn = "buildRoleArn",
CodeArtifact = new CodeArtifactProperty {
Uri = "uri"
},
CpuConfigurations = new [] { new CpuConfigurationProperty {
Architecture = "architecture"
} },
Description = "description",
EgressNetworkConnectors = new [] { "egressNetworkConnectors" },
EnvironmentVariables = new [] { new EnvironmentVariableProperty {
Key = "key",
Value = "value"
} },
Hooks = new HooksProperty {
MicrovmHooks = new MicrovmHooksProperty {
Resume = "resume",
ResumeTimeoutInSeconds = 123,
Run = "run",
RunTimeoutInSeconds = 123,
Suspend = "suspend",
SuspendTimeoutInSeconds = 123,
Terminate = "terminate",
TerminateTimeoutInSeconds = 123
},
MicrovmImageHooks = new MicrovmImageHooksProperty {
Ready = "ready",
ReadyTimeoutInSeconds = 123,
Validate = "validate",
ValidateTimeoutInSeconds = 123
},
Port = 123
},
Logging = new LoggingProperty {
CloudWatch = new CloudWatchLoggingProperty {
LogGroup = "logGroup",
LogStream = "logStream"
},
Disabled = false
},
Name = "name",
Resources = new [] { new ResourcesProperty {
MinimumMemoryInMiB = 123
} },
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
AdditionalOsCapabilities
Properties for defining a CfnMicrovmImage.
public string[] AdditionalOsCapabilities { get; set; }
Property Value
string[]
Remarks
BaseImageArn
ARN of the base MicroVM image.
public string BaseImageArn { get; set; }
Property Value
Remarks
BaseImageVersion
Specific version of the base MicroVM image to use.
public string BaseImageVersion { get; set; }
Property Value
Remarks
BuildRoleArn
ARN of the IAM build role.
public string BuildRoleArn { get; set; }
Property Value
Remarks
CodeArtifact
Properties for defining a CfnMicrovmImage.
public object CodeArtifact { get; set; }
Property Value
Remarks
CpuConfigurations
Properties for defining a CfnMicrovmImage.
public object CpuConfigurations { get; set; }
Property Value
Remarks
Description
Human-readable description of the MicroVM image and its purpose.
public string Description { get; set; }
Property Value
Remarks
EgressNetworkConnectors
Properties for defining a CfnMicrovmImage.
public string[] EgressNetworkConnectors { get; set; }
Property Value
string[]
Remarks
EnvironmentVariables
Environment variables to set in the container during the snapshot build.
public object EnvironmentVariables { get; set; }
Property Value
Remarks
Hooks
Properties for defining a CfnMicrovmImage.
public object Hooks { get; set; }
Property Value
Remarks
Logging
Properties for defining a CfnMicrovmImage.
public object Logging { get; set; }
Property Value
Remarks
Name
Unique name for the MicroVM image within the account.
public string Name { get; set; }
Property Value
Remarks
Resources
Properties for defining a CfnMicrovmImage.
public object Resources { get; set; }
Property Value
Remarks
Tags
Key-value pairs to associate with the MicroVM image for organization and management.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]