We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 7, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 7, 2026 by Pulumi
Represents a GraphQL type in an AWS AppSync GraphQL API.
Create Type Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Type(name: string, args: TypeArgs, opts?: CustomResourceOptions);@overload
def Type(resource_name: str,
args: TypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Type(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
definition: Optional[str] = None,
format: Optional[TypeFormat] = None)func NewType(ctx *Context, name string, args TypeArgs, opts ...ResourceOption) (*Type, error)public Type(string name, TypeArgs args, CustomResourceOptions? opts = null)type: aws-native:appsync:Type
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_appsync_type" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Type Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Type resource accepts the following input properties:
- Api
Id string - The API ID.
- Definition string
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- Format
Pulumi.
Aws Native. App Sync. Type Format - The type format: SDL or JSON.
- Api
Id string - The API ID.
- Definition string
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- Format
Type
Format - The type format: SDL or JSON.
- api_
id string - The API ID.
- definition string
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- format "SDL" | "JSON"
- The type format: SDL or JSON.
- api
Id String - The API ID.
- definition String
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- format
Type
Format - The type format: SDL or JSON.
- api
Id string - The API ID.
- definition string
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- format
Type
Format - The type format: SDL or JSON.
- api_
id str - The API ID.
- definition str
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- format
Type
Format - The type format: SDL or JSON.
- api
Id String - The API ID.
- definition String
- The type definition, in GraphQL Schema Definition Language (SDL) format.
- format "SDL" | "JSON"
- The type format: SDL or JSON.
Outputs
All input properties are implicitly available as output properties. Additionally, the Type resource produces the following output properties:
Supporting Types
TypeFormat, TypeFormatArgs
- Sdl
SDL- Json
JSON
- Type
Format Sdl SDL- Type
Format Json JSON
- "SDL"
SDL- "JSON"
JSON
- Sdl
SDL- Json
JSON
- Sdl
SDL- Json
JSON
- SDL
SDL- JSON
JSON
- "SDL"
SDL- "JSON"
JSON
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 7, 2026 by Pulumi