Interface GraphqlApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GraphqlApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.506Z")
@Stability(Experimental)
public interface GraphqlApiProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for an AppSync GraphQL API.
Example:
GraphqlApi api = GraphqlApi.Builder.create(this, "Api") .name("demo") .build(); ObjectType demo = ObjectType.Builder.create("Demo") .definition(Map.of( "id", GraphqlType.string(BaseTypeOptions.builder().isRequired(true).build()), "version", GraphqlType.string(BaseTypeOptions.builder().isRequired(true).build()))) .build(); api.addType(demo);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forGraphqlApiProps
static final class
An implementation forGraphqlApiProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphqlApiProps.Builder
builder()
default AuthorizationConfig
(experimental) Optional authorization configuration.default DomainOptions
(experimental) The domain name configuration for the GraphQL API.default LogConfig
(experimental) Logging configuration for this api.getName()
(experimental) the name of the GraphQL API.default Schema
(experimental) GraphQL schema definition.default Boolean
(experimental) 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
(experimental) the name of the GraphQL API. -
getAuthorizationConfig
(experimental) Optional authorization configuration.Default: - API Key authorization
-
getDomainName
(experimental) 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
-
getLogConfig
(experimental) Logging configuration for this api.Default: - None
-
getSchema
(experimental) GraphQL schema definition. Specify how you want to define your schema.Schema.fromFile(filePath: string) allows schema definition through schema.graphql file
Default: - schema will be generated code-first (i.e. addType, addObjectType, etc.)
-
getXrayEnabled
(experimental) A flag indicating whether or not X-Ray tracing is enabled for the GraphQL API.Default: - false
-
builder
- Returns:
- a
GraphqlApiProps.Builder
ofGraphqlApiProps
-