CfnRuntimeProps Struct
Properties for defining a CfnRuntime.
| 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 cfnRuntimeProps: lambda.CfnRuntimeProps = {
name: 'name',
// the properties below are optional
description: 'description',
licenseInfo: 'licenseInfo',
releaseLifecycle: {
deprecationDate: 'deprecationDate',
functionCreateBlockDate: 'functionCreateBlockDate',
functionUpdateBlockDate: 'functionUpdateBlockDate',
releaseState: 'releaseState',
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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_props = lambda.CfnRuntimeProps(
name="name",
# the properties below are optional
description="description",
license_info="licenseInfo",
release_lifecycle=lambda.CfnRuntime.ReleaseLifecycleProperty(
deprecation_date="deprecationDate",
function_create_block_date="functionCreateBlockDate",
function_update_block_date="functionUpdateBlockDate",
release_state="releaseState"
),
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnRuntimeProps cfnRuntimeProps = CfnRuntimeProps.builder()
.name("name")
// the properties below are optional
.description("description")
.licenseInfo("licenseInfo")
.releaseLifecycle(ReleaseLifecycleProperty.builder()
.deprecationDate("deprecationDate")
.functionCreateBlockDate("functionCreateBlockDate")
.functionUpdateBlockDate("functionUpdateBlockDate")
.releaseState("releaseState")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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 cfnRuntimeProps = new CfnRuntimeProps {
Name = "name",
// the properties below are optional
Description = "description",
LicenseInfo = "licenseInfo",
ReleaseLifecycle = new ReleaseLifecycleProperty {
DeprecationDate = "deprecationDate",
FunctionCreateBlockDate = "functionCreateBlockDate",
FunctionUpdateBlockDate = "functionUpdateBlockDate",
ReleaseState = "releaseState"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnRuntimeProps := &CfnRuntimeProps{
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
LicenseInfo: jsii.String("licenseInfo"),
ReleaseLifecycle: &ReleaseLifecycleProperty{
DeprecationDate: jsii.String("deprecationDate"),
FunctionCreateBlockDate: jsii.String("functionCreateBlockDate"),
FunctionUpdateBlockDate: jsii.String("functionUpdateBlockDate"),
ReleaseState: jsii.String("releaseState"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the runtime.
licenseInfooptionalstringlicense_infooptionalstrlicenseInfooptionalStringLicenseInfooptionalstringLicenseInfooptional*string #Licensing information for the runtime.
The name of the runtime.
releaseLifecycleoptionalIResolvable | CfnRuntime.release_lifecycleoptionaltyping.Union[IResolvable, ReleaseLifecycleProperty]releaseLifecycleoptionalIResolvableReleaseLifecycleoptionalIResolvableReleaseLifecycleoptionalinterface{} #The publisher's lifecycle declaration for the runtime.
Omitting it removes any stored declaration.