# CfnTypeProps

Properties for defining a `CfnType`.

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

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## 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 cfnTypeProps: appsync.CfnTypeProps = {
  apiId: 'apiId',
  definition: 'definition',
  format: 'format',
};
```

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

cfn_type_props = appsync.CfnTypeProps(
    api_id="apiId",
    definition="definition",
    format="format"
)
```

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

CfnTypeProps cfnTypeProps = CfnTypeProps.builder()
        .apiId("apiId")
        .definition("definition")
        .format("format")
        .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 cfnTypeProps = new CfnTypeProps {
    ApiId = "apiId",
    Definition = "definition",
    Format = "format"
};
```

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"

cfnTypeProps := &CfnTypeProps{
	ApiId: jsii.String("apiId"),
	Definition: jsii.String("definition"),
	Format: jsii.String("format"),
}
```

## Properties

- `apiId`: string (required) — The API ID.

- `definition`: string (required) — The type definition, in GraphQL Schema Definition Language (SDL) format.

- `format`: string (required) — The type format: SDL or JSON.
