Class CfnGraphQLSchema.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnGraphQLSchema.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLSchema>
- Enclosing class:
CfnGraphQLSchema
@Stability(Stable)
public static final class CfnGraphQLSchema.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLSchema>
A fluent builder for
CfnGraphQLSchema
.-
Method Summary
Modifier and TypeMethodDescriptionThe AWS AppSync GraphQL API identifier to which you want to apply this schema.build()
static CfnGraphQLSchema.Builder
definition
(String definition) The text representation of a GraphQL schema in SDL format.definitionS3Location
(String definitionS3Location) The location of a GraphQL schema file in an Amazon S3 bucket.
-
Method Details
-
create
@Stability(Stable) public static CfnGraphQLSchema.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnGraphQLSchema.Builder
.
-
apiId
The AWS AppSync GraphQL API identifier to which you want to apply this schema.- Parameters:
apiId
- The AWS AppSync GraphQL API identifier to which you want to apply this schema. This parameter is required.- Returns:
this
- See Also:
-
definition
The text representation of a GraphQL schema in SDL format.For more information about using the
Ref
function, see Ref .- Parameters:
definition
- The text representation of a GraphQL schema in SDL format. This parameter is required.- Returns:
this
- See Also:
-
definitionS3Location
@Stability(Stable) public CfnGraphQLSchema.Builder definitionS3Location(String definitionS3Location) The location of a GraphQL schema file in an Amazon S3 bucket.Use this if you want to provision with the schema living in Amazon S3 rather than embedding it in your CloudFormation template.
- Parameters:
definitionS3Location
- The location of a GraphQL schema file in an Amazon S3 bucket. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGraphQLSchema>
- Returns:
- a newly built instance of
CfnGraphQLSchema
.
-