Interface GraphqlApiAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GraphqlApiAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-11-02T10:21:14.295Z")
@Stability(Stable)
public interface GraphqlApiAttributes
extends software.amazon.jsii.JsiiSerializable
Attributes for GraphQL imports.
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 class
A builder forGraphqlApiAttributes
static final class
An implementation forGraphqlApiAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphqlApiAttributes.Builder
builder()
default String
the arn for the GraphQL Api.an unique AWS AppSync GraphQL API identifier i.e.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGraphqlApiId
an unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'. -
getGraphqlApiArn
the arn for the GraphQL Api.Default: - autogenerated arn
-
builder
- Returns:
- a
GraphqlApiAttributes.Builder
ofGraphqlApiAttributes
-