CfnGraphQLSchemaMixinProps

class aws_cdk.mixins_preview.aws_appsync.mixins.CfnGraphQLSchemaMixinProps(*, api_id=None, definition=None, definition_s3_location=None)

Bases: object

Properties for CfnGraphQLSchemaPropsMixin.

Parameters:
  • api_id (Optional[str]) – The AWS AppSync GraphQL API identifier to which you want to apply this schema.

  • definition (Optional[str]) – The text representation of a GraphQL schema in SDL format. For more information about using the Ref function, see Ref .

  • definition_s3_location (Optional[str]) – 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_appsync import mixins as appsync_mixins

cfn_graph_qLSchema_mixin_props = appsync_mixins.CfnGraphQLSchemaMixinProps(
    api_id="apiId",
    definition="definition",
    definition_s3_location="definitionS3Location"
)

Attributes

api_id

The AWS AppSync GraphQL API identifier to which you want to apply this schema.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-apiid

definition

The text representation of a GraphQL schema in SDL format.

For more information about using the Ref function, see Ref .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-definition

definition_s3_location

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-definitions3location