@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.828Z") @Stability(value=Experimental) public interface GraphqlApiProps extends software.amazon.jsii.JsiiSerializable
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);
| Modifier and Type | Interface and Description |
|---|---|
static class |
GraphqlApiProps.Builder
A builder for
GraphqlApiProps |
static class |
GraphqlApiProps.Jsii$Proxy
An implementation for
GraphqlApiProps |
| Modifier and Type | Method and Description |
|---|---|
static GraphqlApiProps.Builder |
builder() |
default AuthorizationConfig |
getAuthorizationConfig()
(experimental) Optional authorization configuration.
|
default DomainOptions |
getDomainName()
(experimental) The domain name configuration for the GraphQL API.
|
default LogConfig |
getLogConfig()
(experimental) Logging configuration for this api.
|
String |
getName()
(experimental) the name of the GraphQL API.
|
default Schema |
getSchema()
(experimental) GraphQL schema definition.
|
default Boolean |
getXrayEnabled()
(experimental) A flag indicating whether or not X-Ray tracing is enabled for the GraphQL API.
|
@Stability(value=Experimental) @NotNull String getName()
@Stability(value=Experimental) @Nullable default AuthorizationConfig getAuthorizationConfig()
Default: - API Key authorization
@Stability(value=Experimental) @Nullable default DomainOptions getDomainName()
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
@Stability(value=Experimental) @Nullable default LogConfig getLogConfig()
Default: - None
@Stability(value=Experimental) @Nullable default Schema getSchema()
Schema.fromFile(filePath: string) allows schema definition through schema.graphql file
Default: - schema will be generated code-first (i.e. addType, addObjectType, etc.)
@Stability(value=Experimental) @Nullable default Boolean getXrayEnabled()
Default: - false
@Stability(value=Experimental) static GraphqlApiProps.Builder builder()
GraphqlApiProps.Builder of GraphqlApiPropsCopyright © 2022. All rights reserved.