ReleaseLifecycleProperty Struct
The publisher's lifecycle declaration for the alias.
Omitting it removes any stored declaration.
| 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 releaseLifecycleProperty: lambda.CfnRuntimeAlias.ReleaseLifecycleProperty = {
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_
release_lifecycle_property = 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.*;
ReleaseLifecycleProperty releaseLifecycleProperty = ReleaseLifecycleProperty.builder()
.deprecationDate("deprecationDate")
.functionCreateBlockDate("functionCreateBlockDate")
.functionUpdateBlockDate("functionUpdateBlockDate")
.releaseState("releaseState")
.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 releaseLifecycleProperty = 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"
releaseLifecycleProperty := &ReleaseLifecycleProperty{
DeprecationDate: jsii.String("deprecationDate"),
FunctionCreateBlockDate: jsii.String("functionCreateBlockDate"),
FunctionUpdateBlockDate: jsii.String("functionUpdateBlockDate"),
ReleaseState: jsii.String("releaseState"),
}
Properties
deprecationDateoptionalstringdeprecation_dateoptionalstrdeprecationDateoptionalStringDeprecationDateoptionalstringDeprecationDateoptional*string #The date on which the alias becomes deprecated.
A UTC calendar date in yyyy-mm-dd format.
functionCreateBlockDateoptionalstringfunction_create_block_dateoptionalstrfunctionCreateBlockDateoptionalStringFunctionCreateBlockDateoptionalstringFunctionCreateBlockDateoptional*string #The date on which creating new functions on this alias is blocked.
A UTC calendar date in yyyy-mm-dd format.
functionUpdateBlockDateoptionalstringfunction_update_block_dateoptionalstrfunctionUpdateBlockDateoptionalStringFunctionUpdateBlockDateoptionalstringFunctionUpdateBlockDateoptional*string #The date on which updating existing functions on this alias is blocked.
A UTC calendar date in yyyy-mm-dd format.
releaseStateoptionalstringrelease_stateoptionalstrreleaseStateoptionalStringReleaseStateoptionalstringReleaseStateoptional*string #The release state of the alias.
DEPRECATED requires a DeprecationDate on or before today (UTC); PREVIEW and GA require a later DeprecationDate, or none. Reads report DEPRECATED once DeprecationDate is reached.