Interface GraphqlApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GraphqlApiProps.Jsii$Proxy
Example:
GraphqlApi sourceApi = GraphqlApi.Builder.create(this, "FirstSourceAPI") .name("FirstSourceAPI") .definition(Definition.fromFile(join(__dirname, "appsync.merged-api-1.graphql"))) .build(); IGraphqlApi importedMergedApi = GraphqlApi.fromGraphqlApiAttributes(this, "ImportedMergedApi", GraphqlApiAttributes.builder() .graphqlApiId("MyApiId") .graphqlApiArn("MyApiArn") .build()); IRole importedExecutionRole = Role.fromRoleArn(this, "ExecutionRole", "arn:aws:iam::ACCOUNT:role/MyExistingRole"); SourceApiAssociation.Builder.create(this, "SourceApiAssociation2") .sourceApi(sourceApi) .mergedApi(importedMergedApi) .mergeType(MergeType.MANUAL_MERGE) .mergedApiExecutionRole(importedExecutionRole) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forGraphqlApiProps
static final class
An implementation forGraphqlApiProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphqlApiProps.Builder
builder()
default AuthorizationConfig
Optional authorization configuration.default Definition
Definition (schema file or source APIs) for this GraphQL Api.default DomainOptions
The domain name configuration for the GraphQL API.A map containing the list of resources with their properties and environment variables.default IntrospectionConfig
A value indicating whether the API to enable (ENABLED) or disable (DISABLED) introspection.default LogConfig
Logging configuration for this api.getName()
the name of the GraphQL API.default String
The owner contact information for an API resource.default Number
A number indicating the maximum depth resolvers should be accepted when handling queries.default Number
A number indicating the maximum number of resolvers that should be accepted when handling queries.default ISchema
Deprecated.use Definition.schema insteaddefault Visibility
A value indicating whether the API is accessible from anywhere (GLOBAL) or can only be access from a VPC (PRIVATE).default Boolean
A flag indicating whether or not X-Ray tracing is enabled for the GraphQL API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
the name of the GraphQL API. -
getAuthorizationConfig
Optional authorization configuration.Default: - API Key authorization
-
getDefinition
Definition (schema file or source APIs) for this GraphQL Api. -
getDomainName
The domain name configuration for the GraphQL API.The Route 53 hosted zone and CName DNS record must be configured in addition to this setting to enable custom domain URL
Default: - no domain name
-
getEnvironmentVariables
A map containing the list of resources with their properties and environment variables.There are a few rules you must follow when creating keys and values:
- Keys must begin with a letter.
- Keys must be between 2 and 64 characters long.
- Keys can only contain letters, numbers, and the underscore character (_).
- Values can be up to 512 characters long.
- You can configure up to 50 key-value pairs in a GraphQL API.
Default: - No environment variables.
-
getIntrospectionConfig
A value indicating whether the API to enable (ENABLED) or disable (DISABLED) introspection.Default: IntrospectionConfig.ENABLED
-
getLogConfig
Logging configuration for this api.Default: - None
-
getOwnerContact
The owner contact information for an API resource.This field accepts any string input with a length of 0 - 256 characters.
Default: - No owner contact.
-
getQueryDepthLimit
A number indicating the maximum depth resolvers should be accepted when handling queries.Value must be withing range of 0 to 75
Default: - The default value is 0 (or unspecified) which indicates no maximum depth.
-
getResolverCountLimit
A number indicating the maximum number of resolvers that should be accepted when handling queries.Value must be withing range of 0 to 10000
Default: - The default value is 0 (or unspecified), which will set the limit to 10000
-
getSchema
Deprecated.use Definition.schema instead(deprecated) GraphQL schema definition. Specify how you want to define your schema.SchemaFile.fromAsset(filePath: string) allows schema definition through schema.graphql file
Default: - schema will be generated code-first (i.e. addType, addObjectType, etc.)
-
getVisibility
A value indicating whether the API is accessible from anywhere (GLOBAL) or can only be access from a VPC (PRIVATE).Default: - GLOBAL
-
getXrayEnabled
A flag indicating whether or not X-Ray tracing is enabled for the GraphQL API.Default: - false
-
builder
- Returns:
- a
GraphqlApiProps.Builder
ofGraphqlApiProps
-