UnionTypeOptions
- class aws_cdk.aws_appsync.UnionTypeOptions(*, definition)
Bases:
object
(experimental) Properties for configuring an Union Type.
- Parameters:
definition (
Sequence
[IIntermediateType
]) – (experimental) the object types for this union type.- Stability:
experimental
- ExampleMetadata:
infused
Example:
# api: appsync.GraphqlApi string = appsync.GraphqlType.string() human = appsync.ObjectType("Human", definition={"name": string}) droid = appsync.ObjectType("Droid", definition={"name": string}) starship = appsync.ObjectType("Starship", definition={"name": string}) search = appsync.UnionType("Search", definition=[human, droid, starship] ) api.add_type(search)
Attributes
- definition
(experimental) the object types for this union type.
- Stability:
experimental