IntermediateTypeOptions

class aws_cdk.aws_appsync.IntermediateTypeOptions(*, definition, directives=None)

Bases: object

(experimental) Properties for configuring an Intermediate Type.

Parameters:
  • definition (Mapping[str, IField]) – (experimental) the attributes of this type.

  • directives (Optional[Sequence[Directive]]) – (experimental) the directives for this object type. Default: - no directives

Stability:

experimental

ExampleMetadata:

infused

Example:

node = appsync.InterfaceType("Node",
    definition={
        "id": appsync.GraphqlType.string(is_required=True)
    }
)
demo = appsync.ObjectType("Demo",
    interface_types=[node],
    definition={
        "version": appsync.GraphqlType.string(is_required=True)
    }
)

Attributes

definition

(experimental) the attributes of this type.

Stability:

experimental

directives

(experimental) the directives for this object type.

Default:
  • no directives

Stability:

experimental