CfnRuntimeAliasProps Struct
Properties for defining a CfnRuntimeAlias.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const cfnRuntimeAliasProps: lambda.CfnRuntimeAliasProps = {
name: 'name',
runtimeName: 'runtimeName',
runtimeVersion: 'runtimeVersion',
// the properties below are optional
description: 'description',
releaseLifecycle: {
deprecationDate: 'deprecationDate',
functionCreateBlockDate: 'functionCreateBlockDate',
functionUpdateBlockDate: 'functionUpdateBlockDate',
releaseState: 'releaseState',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
cfn_runtime_alias_props = lambda.CfnRuntimeAliasProps(
name="name",
runtime_name="runtimeName",
runtime_version="runtimeVersion",
# the properties below are optional
description="description",
release_lifecycle=lambda.CfnRuntimeAlias.ReleaseLifecycleProperty(
deprecation_date="deprecationDate",
function_create_block_date="functionCreateBlockDate",
function_update_block_date="functionUpdateBlockDate",
release_state="releaseState"
)
)
java
// 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.*;
CfnRuntimeAliasProps cfnRuntimeAliasProps = CfnRuntimeAliasProps.builder()
.name("name")
.runtimeName("runtimeName")
.runtimeVersion("runtimeVersion")
// the properties below are optional
.description("description")
.releaseLifecycle(ReleaseLifecycleProperty.builder()
.deprecationDate("deprecationDate")
.functionCreateBlockDate("functionCreateBlockDate")
.functionUpdateBlockDate("functionUpdateBlockDate")
.releaseState("releaseState")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnRuntimeAliasProps = new CfnRuntimeAliasProps {
Name = "name",
RuntimeName = "runtimeName",
RuntimeVersion = "runtimeVersion",
// the properties below are optional
Description = "description",
ReleaseLifecycle = new ReleaseLifecycleProperty {
DeprecationDate = "deprecationDate",
FunctionCreateBlockDate = "functionCreateBlockDate",
FunctionUpdateBlockDate = "functionUpdateBlockDate",
ReleaseState = "releaseState"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnRuntimeAliasProps := &CfnRuntimeAliasProps{
Name: jsii.String("name"),
RuntimeName: jsii.String("runtimeName"),
RuntimeVersion: jsii.String("runtimeVersion"),
// the properties below are optional
Description: jsii.String("description"),
ReleaseLifecycle: &ReleaseLifecycleProperty{
DeprecationDate: jsii.String("deprecationDate"),
FunctionCreateBlockDate: jsii.String("functionCreateBlockDate"),
FunctionUpdateBlockDate: jsii.String("functionUpdateBlockDate"),
ReleaseState: jsii.String("releaseState"),
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the runtime alias.
The alias name.
releaseLifecycleoptionalIResolvable | CfnRuntimeAlias.release_lifecycleoptionaltyping.Union[IResolvable, ReleaseLifecycleProperty]releaseLifecycleoptionalIResolvableReleaseLifecycleoptionalIResolvableReleaseLifecycleoptionalinterface{} #The publisher's lifecycle declaration for the alias.
Omitting it removes any stored declaration.
The name of the parent runtime.
runtimeVersionstringruntime_versionstrruntimeVersionStringRuntimeVersionstringRuntimeVersion*string required #The runtime version this alias points to.