Module appsync

@pulumi/aws > appsync

Index

appsync/apiKey.ts appsync/dataSource.ts appsync/graphQLApi.ts

class ApiKey

Provides an AppSync API Key.

constructor

new ApiKey(name: string, args: ApiKeyArgs, opts?: pulumi.CustomResourceOptions)

Create a ApiKey resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiKeyState): ApiKey

Get an existing ApiKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property apiId

public apiId: pulumi.Output<string>;

The ID of the associated AppSync API

property description

public description: pulumi.Output<string | undefined>;

The API key description. Defaults to “Managed by Terraform”.

property expires

public expires: pulumi.Output<string | undefined>;

RFC3339 string representation of the expiry date. Rounded down to nearest hour. By default, it is 7 days from the date of creation.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property key

public key: pulumi.Output<string>;

The API key

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class DataSource

Provides an AppSync DataSource.

constructor

new DataSource(name: string, args: DataSourceArgs, opts?: pulumi.CustomResourceOptions)

Create a DataSource resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DataSourceState): DataSource

Get an existing DataSource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property apiId

public apiId: pulumi.Output<string>;

The API ID for the GraphQL API for the DataSource.

property arn

public arn: pulumi.Output<string>;

The ARN

property description

public description: pulumi.Output<string | undefined>;

A description of the DataSource.

property dynamodbConfig

public dynamodbConfig: pulumi.Output<{ ... } | undefined>;

DynamoDB settings. See below

property elasticsearchConfig

public elasticsearchConfig: pulumi.Output<{ ... } | undefined>;

Amazon Elasticsearch settings. See below

property httpConfig

public httpConfig: pulumi.Output<{ ... } | undefined>;

HTTP settings. See below

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property lambdaConfig

public lambdaConfig: pulumi.Output<{ ... } | undefined>;

AWS Lambda settings. See below

property name

public name: pulumi.Output<string>;

A user-supplied name for the DataSource.

property serviceRoleArn

public serviceRoleArn: pulumi.Output<string | undefined>;

The IAM service role ARN for the data source.

property type

public type: pulumi.Output<string>;

The type of the DataSource. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class GraphQLApi

Provides an AppSync GraphQL API.

constructor

new GraphQLApi(name: string, args: GraphQLApiArgs, opts?: pulumi.CustomResourceOptions)

Create a GraphQLApi resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GraphQLApiState): GraphQLApi

Get an existing GraphQLApi resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property arn

public arn: pulumi.Output<string>;

The ARN

property authenticationType

public authenticationType: pulumi.Output<string>;

The authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property logConfig

public logConfig: pulumi.Output<{ ... } | undefined>;

Nested argument containing logging configuration. Defined below.

property name

public name: pulumi.Output<string>;

A user-supplied name for the GraphqlApi.

property openidConnectConfig

public openidConnectConfig: pulumi.Output<{ ... } | undefined>;

Nested argument containing OpenID Connect configuration. Defined below.

property uris

public uris: pulumi.Output<{ ... }>;

Map of URIs associated with the API. e.g. uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property userPoolConfig

public userPoolConfig: pulumi.Output<{ ... } | undefined>;

The Amazon Cognito User Pool configuration. Defined below.

interface ApiKeyArgs

The set of arguments for constructing a ApiKey resource.

property apiId

apiId: pulumi.Input<string>;

The ID of the associated AppSync API

property description

description?: pulumi.Input<string>;

The API key description. Defaults to “Managed by Terraform”.

property expires

expires?: pulumi.Input<string>;

RFC3339 string representation of the expiry date. Rounded down to nearest hour. By default, it is 7 days from the date of creation.

interface ApiKeyState

Input properties used for looking up and filtering ApiKey resources.

property apiId

apiId?: pulumi.Input<string>;

The ID of the associated AppSync API

property description

description?: pulumi.Input<string>;

The API key description. Defaults to “Managed by Terraform”.

property expires

expires?: pulumi.Input<string>;

RFC3339 string representation of the expiry date. Rounded down to nearest hour. By default, it is 7 days from the date of creation.

property key

key?: pulumi.Input<string>;

The API key

interface DataSourceArgs

The set of arguments for constructing a DataSource resource.

property apiId

apiId: pulumi.Input<string>;

The API ID for the GraphQL API for the DataSource.

property description

description?: pulumi.Input<string>;

A description of the DataSource.

property dynamodbConfig

dynamodbConfig?: pulumi.Input<{ ... }>;

DynamoDB settings. See below

property elasticsearchConfig

elasticsearchConfig?: pulumi.Input<{ ... }>;

Amazon Elasticsearch settings. See below

property httpConfig

httpConfig?: pulumi.Input<{ ... }>;

HTTP settings. See below

property lambdaConfig

lambdaConfig?: pulumi.Input<{ ... }>;

AWS Lambda settings. See below

property name

name?: pulumi.Input<string>;

A user-supplied name for the DataSource.

property serviceRoleArn

serviceRoleArn?: pulumi.Input<string>;

The IAM service role ARN for the data source.

property type

type: pulumi.Input<string>;

The type of the DataSource. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE.

interface DataSourceState

Input properties used for looking up and filtering DataSource resources.

property apiId

apiId?: pulumi.Input<string>;

The API ID for the GraphQL API for the DataSource.

property arn

arn?: pulumi.Input<string>;

The ARN

property description

description?: pulumi.Input<string>;

A description of the DataSource.

property dynamodbConfig

dynamodbConfig?: pulumi.Input<{ ... }>;

DynamoDB settings. See below

property elasticsearchConfig

elasticsearchConfig?: pulumi.Input<{ ... }>;

Amazon Elasticsearch settings. See below

property httpConfig

httpConfig?: pulumi.Input<{ ... }>;

HTTP settings. See below

property lambdaConfig

lambdaConfig?: pulumi.Input<{ ... }>;

AWS Lambda settings. See below

property name

name?: pulumi.Input<string>;

A user-supplied name for the DataSource.

property serviceRoleArn

serviceRoleArn?: pulumi.Input<string>;

The IAM service role ARN for the data source.

property type

type?: pulumi.Input<string>;

The type of the DataSource. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE.

interface GraphQLApiArgs

The set of arguments for constructing a GraphQLApi resource.

property authenticationType

authenticationType: pulumi.Input<string>;

The authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT

property logConfig

logConfig?: pulumi.Input<{ ... }>;

Nested argument containing logging configuration. Defined below.

property name

name?: pulumi.Input<string>;

A user-supplied name for the GraphqlApi.

property openidConnectConfig

openidConnectConfig?: pulumi.Input<{ ... }>;

Nested argument containing OpenID Connect configuration. Defined below.

property userPoolConfig

userPoolConfig?: pulumi.Input<{ ... }>;

The Amazon Cognito User Pool configuration. Defined below.

interface GraphQLApiState

Input properties used for looking up and filtering GraphQLApi resources.

property arn

arn?: pulumi.Input<string>;

The ARN

property authenticationType

authenticationType?: pulumi.Input<string>;

The authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT

property logConfig

logConfig?: pulumi.Input<{ ... }>;

Nested argument containing logging configuration. Defined below.

property name

name?: pulumi.Input<string>;

A user-supplied name for the GraphqlApi.

property openidConnectConfig

openidConnectConfig?: pulumi.Input<{ ... }>;

Nested argument containing OpenID Connect configuration. Defined below.

property uris

uris?: pulumi.Input<{ ... }>;

Map of URIs associated with the API. e.g. uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql

property userPoolConfig

userPoolConfig?: pulumi.Input<{ ... }>;

The Amazon Cognito User Pool configuration. Defined below.