BaseTypeOptions

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

Bases: object

(experimental) Base 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

Stability:

experimental

Option:

isRequiredList - is this attribute a non-nullable list

ExampleMetadata:

infused

Example:

api = appsync.GraphqlApi(self, "Api",
    name="demo"
)
demo = appsync.ObjectType("Demo",
    definition={
        "id": appsync.GraphqlType.string(is_required=True),
        "version": appsync.GraphqlType.string(is_required=True)
    }
)

api.add_type(demo)

Attributes

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