GraphqlTypeOptions

class aws_cdk.aws_appsync.GraphqlTypeOptions(*, is_list=None, is_required=None, is_required_list=None, intermediate_type=None)

Bases: BaseTypeOptions

(experimental) Options for GraphQL Types.

Parameters:
  • is_list (Optional[bool]) – (experimental) property determining if this attribute is a list i.e. if true, attribute would be [Type]. Default: - false

  • is_required (Optional[bool]) – (experimental) property determining if this attribute is non-nullable i.e. if true, attribute would be Type! Default: - false

  • is_required_list (Optional[bool]) – (experimental) property determining if this attribute is a non-nullable list i.e. if true, attribute would be [ Type ]! or if isRequired true, attribe would be [ Type! ]! Default: - false

  • intermediate_type (Optional[IIntermediateType]) – (experimental) the intermediate type linked to this attribute. Default: - no intermediate type

Stability:

experimental

Option:

objectType - the object type linked to this attribute

ExampleMetadata:

fixture=_generated

Example:

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

# intermediate_type: appsync.IIntermediateType

graphql_type_options = appsync.GraphqlTypeOptions(
    intermediate_type=intermediate_type,
    is_list=False,
    is_required=False,
    is_required_list=False
)

Attributes

intermediate_type

(experimental) the intermediate type linked to this attribute.

Default:
  • no intermediate type

Stability:

experimental

is_list

(experimental) property determining if this attribute is a list i.e. if true, attribute would be [Type].

Default:
  • false

Stability:

experimental

is_required

(experimental) property determining if this attribute is non-nullable i.e. if true, attribute would be Type!

Default:
  • false

Stability:

experimental

is_required_list

(experimental) property determining if this attribute is a non-nullable list i.e. if true, attribute would be [ Type ]! or if isRequired true, attribe would be [ Type! ]!

Default:
  • false

Stability:

experimental