@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.682Z") @Stability(value=Stable) public class CfnGraphQLSchema extends CfnResource implements IInspectable
The AWS::AppSync::GraphQLSchema resource is used for your AWS AppSync GraphQL schema that controls the data model for your API. Schema files are text written in Schema Definition Language (SDL) format. For more information about schema authoring, see Designing a GraphQL API in the AWS AppSync Developer Guide .
When you submit an update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template. To cause this resource to be updated you must change a property value for this resource in the CloudFormation template. Changing the Amazon S3 file content without changing a property value will not result in an update operation.
See Update Behaviors of Stack Resources in the AWS CloudFormation User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
CfnGraphQLSchema cfnGraphQLSchema = CfnGraphQLSchema.Builder.create(this, "MyCfnGraphQLSchema")
.apiId("apiId")
// the properties below are optional
.definition("definition")
.definitionS3Location("definitionS3Location")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnGraphQLSchema.Builder
A fluent builder for
CfnGraphQLSchema. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnGraphQLSchema(software.constructs.Construct scope,
String id,
CfnGraphQLSchemaProps props)
Create a new `AWS::AppSync::GraphQLSchema`.
|
protected |
CfnGraphQLSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGraphQLSchema(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiId()
The AWS AppSync GraphQL API identifier to which you want to apply this schema.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDefinition()
The text representation of a GraphQL schema in SDL format.
|
String |
getDefinitionS3Location()
The location of a GraphQL schema file in an Amazon S3 bucket.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApiId(String value)
The AWS AppSync GraphQL API identifier to which you want to apply this schema.
|
void |
setDefinition(String value)
The text representation of a GraphQL schema in SDL format.
|
void |
setDefinitionS3Location(String value)
The location of a GraphQL schema file in an Amazon S3 bucket.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnGraphQLSchema(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGraphQLSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnGraphQLSchema(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnGraphQLSchemaProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApiId()
@Stability(value=Stable)
public void setApiId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDefinition()
For more information about using the Ref function, see Ref .
@Stability(value=Stable)
public void setDefinition(@Nullable
String value)
For more information about using the Ref function, see Ref .
@Stability(value=Stable) @Nullable public String getDefinitionS3Location()
Use this if you want to provision with the schema living in Amazon S3 rather than embedding it in your CloudFormation template.
@Stability(value=Stable)
public void setDefinitionS3Location(@Nullable
String value)
Use this if you want to provision with the schema living in Amazon S3 rather than embedding it in your CloudFormation template.
Copyright © 2022. All rights reserved.