Interface GraphqlApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GraphqlApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:22.019Z")
@Stability(Stable)
public interface GraphqlApiProps
extends software.amazon.jsii.JsiiSerializable
Properties for an AppSync GraphQL API.
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGraphqlApiPropsstatic final classAn implementation forGraphqlApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphqlApiProps.Builderbuilder()default AuthorizationConfigOptional authorization configuration.default DefinitionDefinition (schema file or source APIs) for this GraphQL Api.default DomainOptionsThe domain name configuration for the GraphQL API.default IntrospectionConfigA value indicating whether the API to enable (ENABLED) or disable (DISABLED) introspection.default LogConfigLogging configuration for this api.getName()the name of the GraphQL API.default ISchemaDeprecated.use Definition.schema insteaddefault VisibilityA value indicating whether the API is accessible from anywhere (GLOBAL) or can only be access from a VPC (PRIVATE).default BooleanA 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
-
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
-
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.BuilderofGraphqlApiProps
-