CfnMicrovmImagePropsMixin
- class aws_cdk.cfn_property_mixins.aws_lambda.CfnMicrovmImagePropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::Lambda::MicrovmImage.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-microvmimage.html
- CloudformationResource:
AWS::Lambda::MicrovmImage
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_microvm_image_props_mixin = lambda_.CfnMicrovmImagePropsMixin(lambda.CfnMicrovmImageMixinProps( additional_os_capabilities=["additionalOsCapabilities"], base_image_arn="baseImageArn", base_image_version="baseImageVersion", build_role_arn="buildRoleArn", code_artifact=lambda.CfnMicrovmImagePropsMixin.CodeArtifactProperty( uri="uri" ), cpu_configurations=[lambda.CfnMicrovmImagePropsMixin.CpuConfigurationProperty( architecture="architecture" )], description="description", egress_network_connectors=["egressNetworkConnectors"], environment_variables=[lambda.CfnMicrovmImagePropsMixin.EnvironmentVariableProperty( key="key", value="value" )], hooks=lambda.CfnMicrovmImagePropsMixin.HooksProperty( microvm_hooks=lambda.CfnMicrovmImagePropsMixin.MicrovmHooksProperty( resume="resume", resume_timeout_in_seconds=123, run="run", run_timeout_in_seconds=123, suspend="suspend", suspend_timeout_in_seconds=123, terminate="terminate", terminate_timeout_in_seconds=123 ), microvm_image_hooks=lambda.CfnMicrovmImagePropsMixin.MicrovmImageHooksProperty( ready="ready", ready_timeout_in_seconds=123, validate="validate", validate_timeout_in_seconds=123 ), port=123 ), logging=lambda.CfnMicrovmImagePropsMixin.LoggingProperty( cloud_watch=lambda.CfnMicrovmImagePropsMixin.CloudWatchLoggingProperty( log_group="logGroup", log_stream="logStream" ), disabled=False ), name="name", resources=[lambda.CfnMicrovmImagePropsMixin.ResourcesProperty( minimum_memory_in_mi_b=123 )], tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Lambda::MicrovmImage.- Parameters:
props (
Union[CfnMicrovmImageMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['additionalOsCapabilities', 'baseImageArn', 'baseImageVersion', 'buildRoleArn', 'codeArtifact', 'cpuConfigurations', 'description', 'egressNetworkConnectors', 'environmentVariables', 'hooks', 'logging', 'name', 'resources', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
CloudWatchLoggingProperty
- class CfnMicrovmImagePropsMixin.CloudWatchLoggingProperty(*, log_group=None, log_stream=None)
Bases:
object- Parameters:
log_group (
Optional[str])log_stream (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ cloud_watch_logging_property = lambda.CfnMicrovmImagePropsMixin.CloudWatchLoggingProperty( log_group="logGroup", log_stream="logStream" )
Attributes
- log_group
-
- Type:
see
CodeArtifactProperty
- class CfnMicrovmImagePropsMixin.CodeArtifactProperty(*, uri=None)
Bases:
object- Parameters:
uri (
Optional[str])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ code_artifact_property = lambda.CfnMicrovmImagePropsMixin.CodeArtifactProperty( uri="uri" )
Attributes
CpuConfigurationProperty
- class CfnMicrovmImagePropsMixin.CpuConfigurationProperty(*, architecture=None)
Bases:
object- Parameters:
architecture (
Optional[str])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ cpu_configuration_property = lambda.CfnMicrovmImagePropsMixin.CpuConfigurationProperty( architecture="architecture" )
Attributes
EnvironmentVariableProperty
- class CfnMicrovmImagePropsMixin.EnvironmentVariableProperty(*, key=None, value=None)
Bases:
object- Parameters:
key (
Optional[str])value (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ environment_variable_property = lambda.CfnMicrovmImagePropsMixin.EnvironmentVariableProperty( key="key", value="value" )
Attributes
- key
-
- Type:
see
HooksProperty
- class CfnMicrovmImagePropsMixin.HooksProperty(*, microvm_hooks=None, microvm_image_hooks=None, port=None)
Bases:
object- Parameters:
microvm_hooks (
Union[IResolvable,MicrovmHooksProperty,Dict[str,Any],None])microvm_image_hooks (
Union[IResolvable,MicrovmImageHooksProperty,Dict[str,Any],None])port (
Union[int,float,None])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ hooks_property = lambda.CfnMicrovmImagePropsMixin.HooksProperty( microvm_hooks=lambda.CfnMicrovmImagePropsMixin.MicrovmHooksProperty( resume="resume", resume_timeout_in_seconds=123, run="run", run_timeout_in_seconds=123, suspend="suspend", suspend_timeout_in_seconds=123, terminate="terminate", terminate_timeout_in_seconds=123 ), microvm_image_hooks=lambda.CfnMicrovmImagePropsMixin.MicrovmImageHooksProperty( ready="ready", ready_timeout_in_seconds=123, validate="validate", validate_timeout_in_seconds=123 ), port=123 )
Attributes
- microvm_hooks
-
- Type:
see
- microvm_image_hooks
-
- Type:
see
LoggingProperty
- class CfnMicrovmImagePropsMixin.LoggingProperty(*, cloud_watch=None, disabled=None)
Bases:
object- Parameters:
cloud_watch (
Union[IResolvable,CloudWatchLoggingProperty,Dict[str,Any],None])disabled (
Union[bool,IResolvable,None]) – Default: - false
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ logging_property = lambda.CfnMicrovmImagePropsMixin.LoggingProperty( cloud_watch=lambda.CfnMicrovmImagePropsMixin.CloudWatchLoggingProperty( log_group="logGroup", log_stream="logStream" ), disabled=False )
Attributes
- cloud_watch
-
- Type:
see
MicrovmHooksProperty
- class CfnMicrovmImagePropsMixin.MicrovmHooksProperty(*, resume=None, resume_timeout_in_seconds=None, run=None, run_timeout_in_seconds=None, suspend=None, suspend_timeout_in_seconds=None, terminate=None, terminate_timeout_in_seconds=None)
Bases:
object- Parameters:
resume (
Optional[str])resume_timeout_in_seconds (
Union[int,float,None])run (
Optional[str])run_timeout_in_seconds (
Union[int,float,None])suspend (
Optional[str])suspend_timeout_in_seconds (
Union[int,float,None])terminate (
Optional[str])terminate_timeout_in_seconds (
Union[int,float,None])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ microvm_hooks_property = lambda.CfnMicrovmImagePropsMixin.MicrovmHooksProperty( resume="resume", resume_timeout_in_seconds=123, run="run", run_timeout_in_seconds=123, suspend="suspend", suspend_timeout_in_seconds=123, terminate="terminate", terminate_timeout_in_seconds=123 )
Attributes
- resume
-
- Type:
see
- resume_timeout_in_seconds
-
- Type:
see
- run
-
- Type:
see
- run_timeout_in_seconds
-
- Type:
see
- suspend
-
- Type:
see
- suspend_timeout_in_seconds
-
- Type:
see
- terminate
-
- Type:
see
MicrovmImageHooksProperty
- class CfnMicrovmImagePropsMixin.MicrovmImageHooksProperty(*, ready=None, ready_timeout_in_seconds=None, validate=None, validate_timeout_in_seconds=None)
Bases:
object- Parameters:
ready (
Optional[str])ready_timeout_in_seconds (
Union[int,float,None])validate (
Optional[str])validate_timeout_in_seconds (
Union[int,float,None])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ microvm_image_hooks_property = lambda.CfnMicrovmImagePropsMixin.MicrovmImageHooksProperty( ready="ready", ready_timeout_in_seconds=123, validate="validate", validate_timeout_in_seconds=123 )
Attributes
- ready
-
- Type:
see
- ready_timeout_in_seconds
-
- Type:
see
- validate
-
- Type:
see
ResourcesProperty
- class CfnMicrovmImagePropsMixin.ResourcesProperty(*, minimum_memory_in_mib=None)
Bases:
object- Parameters:
minimum_memory_in_mib (
Union[int,float,None])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ resources_property = lambda.CfnMicrovmImagePropsMixin.ResourcesProperty( minimum_memory_in_mi_b=123 )
Attributes