libZSservicesZSamazonka-appsyncZSamazonka-appsync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppSync.CreateType

Description

Creates a Type object.

Synopsis

Creating a Request

data CreateType Source #

See: newCreateType smart constructor.

Constructors

CreateType' 

Fields

Instances

Instances details
Eq CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Read CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Show CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Generic CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Associated Types

type Rep CreateType :: Type -> Type #

NFData CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Methods

rnf :: CreateType -> () #

Hashable CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

ToJSON CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

AWSRequest CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Associated Types

type AWSResponse CreateType #

ToHeaders CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Methods

toHeaders :: CreateType -> [Header] #

ToPath CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

ToQuery CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

type Rep CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

type Rep CreateType = D1 ('MetaData "CreateType" "Amazonka.AppSync.CreateType" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "CreateType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "definition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TypeDefinitionFormat))))
type AWSResponse CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

newCreateType Source #

Create a value of CreateType with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:apiId:CreateType', createType_apiId - The API ID.

$sel:definition:CreateType', createType_definition - The type definition, in GraphQL Schema Definition Language (SDL) format.

For more information, see the GraphQL SDL documentation.

$sel:format:CreateType', createType_format - The type format: SDL or JSON.

Request Lenses

createType_definition :: Lens' CreateType Text Source #

The type definition, in GraphQL Schema Definition Language (SDL) format.

For more information, see the GraphQL SDL documentation.

Destructuring the Response

data CreateTypeResponse Source #

See: newCreateTypeResponse smart constructor.

Constructors

CreateTypeResponse' 

Fields

Instances

Instances details
Eq CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Read CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Show CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Generic CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Associated Types

type Rep CreateTypeResponse :: Type -> Type #

NFData CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Methods

rnf :: CreateTypeResponse -> () #

type Rep CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

type Rep CreateTypeResponse = D1 ('MetaData "CreateTypeResponse" "Amazonka.AppSync.CreateType" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "CreateTypeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Type)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateTypeResponse Source #

Create a value of CreateTypeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:type':CreateTypeResponse', createTypeResponse_type - The Type object.

$sel:httpStatus:CreateTypeResponse', createTypeResponse_httpStatus - The response's http status code.

Response Lenses