# AppSyncRuntimeProperty

Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.

Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const appSyncRuntimeProperty: appsync.CfnFunctionConfiguration.AppSyncRuntimeProperty = {
  name: 'name',
  runtimeVersion: 'runtimeVersion',
};
```

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_appsync as appsync

app_sync_runtime_property = appsync.CfnFunctionConfiguration.AppSyncRuntimeProperty(
    name="name",
    runtime_version="runtimeVersion"
)
```

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.appsync.*;

AppSyncRuntimeProperty appSyncRuntimeProperty = AppSyncRuntimeProperty.builder()
        .name("name")
        .runtimeVersion("runtimeVersion")
        .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.AppSync;

var appSyncRuntimeProperty = new AppSyncRuntimeProperty {
    Name = "name",
    RuntimeVersion = "runtimeVersion"
};
```

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"

appSyncRuntimeProperty := &AppSyncRuntimeProperty{
	Name: jsii.String("name"),
	RuntimeVersion: jsii.String("runtimeVersion"),
}
```

## Properties

- `name`: string (required) — The `name` of the runtime to use.

  Currently, the only allowed value is `APPSYNC_JS` .

- `runtimeVersion`: string (required) — The `version` of the runtime to use.

  Currently, the only allowed version is `1.0.0` .
