amazonka-appsync-2.0: Amazon AppSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON CreateType Source # 
Instance details

Defined in Amazonka.AppSync.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

AWSRequest CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Associated Types

type AWSResponse CreateType #

Generic CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Associated Types

type Rep CreateType :: Type -> Type #

Read CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Show CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

NFData CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Methods

rnf :: CreateType -> () #

Eq CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Hashable CreateType Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

type AWSResponse 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" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" '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))))

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:

CreateType, createType_apiId - The API ID.

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

For more information, see the GraphQL SDL documentation.

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
Generic CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Associated Types

type Rep CreateTypeResponse :: Type -> Type #

Read CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Show CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

NFData CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

Methods

rnf :: CreateTypeResponse -> () #

Eq CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

type Rep CreateTypeResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateType

type Rep CreateTypeResponse = D1 ('MetaData "CreateTypeResponse" "Amazonka.AppSync.CreateType" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" '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:

CreateTypeResponse, createTypeResponse_type - The Type object.

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

Response Lenses