# CfnRuntimeAliasProps

Properties for defining a `CfnRuntimeAlias`.

Used as props by: [CfnRuntimeAlias](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnRuntimeAlias.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `description`: string — A description of the runtime alias.

- `name`: string (required) — The alias name.

- `releaseLifecycle`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntimeAlias.ReleaseLifecycleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnRuntimeAlias.ReleaseLifecycleProperty.html) — The publisher's lifecycle declaration for the alias.

  Omitting it removes any stored declaration.

- `runtimeName`: string (required) — The name of the parent runtime.

- `runtimeVersion`: string (required) — The runtime version this alias points to.
