@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:51.495Z") 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 . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnGraphQLSchema(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getApiId()
The AWS AppSync GraphQL API identifier to which you want to apply this schema.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDefinition()
The text representation of a GraphQL schema in SDL format.
|
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setApiId(java.lang.String value)
The AWS AppSync GraphQL API identifier to which you want to apply this schema.
|
void |
setDefinition(java.lang.String value)
The text representation of a GraphQL schema in SDL format.
|
void |
setDefinitionS3Location(java.lang.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, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnGraphQLSchema(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGraphQLSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnGraphQLSchema(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getApiId()
public void setApiId(java.lang.String value)
public java.lang.String getDefinition()
For more information about using the Ref
function, see Ref .
public void setDefinition(java.lang.String value)
For more information about using the Ref
function, see Ref .
public java.lang.String getDefinitionS3Location()
Use this if you want to provision with the schema living in Amazon S3 rather than embedding it in your CloudFormation template.
public void setDefinitionS3Location(java.lang.String value)
Use this if you want to provision with the schema living in Amazon S3 rather than embedding it in your CloudFormation template.