# IntrospectionConfig

Introspection configuration  for a GraphQL API.

- Source: [`aws-appsync/lib/graphqlapi.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts#L571)
- Type last changed: v2.118.0 · 3 Jan 2024

## Example

TypeScript:

```ts
const api = new appsync.GraphqlApi(this, 'api', {
  name: 'DisableIntrospectionApi',
  definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.schema.graphql')),
  introspectionConfig: appsync.IntrospectionConfig.DISABLED,
});
```

Python:

```python
api = appsync.GraphqlApi(self, "api",
    name="DisableIntrospectionApi",
    definition=appsync.Definition.from_file(path.join(__dirname, "appsync.schema.graphql")),
    introspection_config=appsync.IntrospectionConfig.DISABLED
)
```

Java:

```java
GraphqlApi api = GraphqlApi.Builder.create(this, "api")
        .name("DisableIntrospectionApi")
        .definition(Definition.fromFile(join(__dirname, "appsync.schema.graphql")))
        .introspectionConfig(IntrospectionConfig.DISABLED)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
var api = new GraphqlApi(this, "api", new GraphqlApiProps {
    Name = "DisableIntrospectionApi",
    Definition = Definition.FromFile(Join(__dirname, "appsync.schema.graphql")),
    IntrospectionConfig = IntrospectionConfig.DISABLED
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
api := appsync.NewGraphqlApi(this, jsii.String("api"), &GraphqlApiProps{
	Name: jsii.String("DisableIntrospectionApi"),
	Definition: appsync.Definition_FromFile(path.join(__dirname, jsii.String("appsync.schema.graphql"))),
	IntrospectionConfig: appsync.IntrospectionConfig_DISABLED,
})
```

## Members

| Member | Description |
| --- | --- |
| `ENABLED` | Enable introspection. |
| `DISABLED` | Disable introspection. |

## Referenced by

- [`GraphqlApiProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.GraphqlApiProps.html).introspectionConfig
