Skip to content
v2.278.0

CfnTypeProps Struct ​

Properties for defining a CfnType.

Example ​

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
# 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
// 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();
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"
};
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 ​

apiIdstringapi_idstrapiIdStringApiIdstringApiId*string required #
The API ID.
definitionstringdefinitionstrdefinitionStringDefinitionstringDefinition*string required #
The type definition, in GraphQL Schema Definition Language (SDL) format.
formatstringformatstrformatStringFormatstringFormat*string required #
The type format: SDL or JSON.