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.StartSchemaCreation

Description

Adds a new schema to your GraphQL API.

This operation is asynchronous. Use to determine when it has completed.

Synopsis

Creating a Request

data StartSchemaCreation Source #

See: newStartSchemaCreation smart constructor.

Constructors

StartSchemaCreation' 

Fields

Instances

Instances details
Eq StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Read StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Show StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Generic StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Associated Types

type Rep StartSchemaCreation :: Type -> Type #

NFData StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Methods

rnf :: StartSchemaCreation -> () #

Hashable StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

ToJSON StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

AWSRequest StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Associated Types

type AWSResponse StartSchemaCreation #

ToHeaders StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

ToPath StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

ToQuery StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

type Rep StartSchemaCreation Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

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

Defined in Amazonka.AppSync.StartSchemaCreation

newStartSchemaCreation Source #

Create a value of StartSchemaCreation 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:StartSchemaCreation', startSchemaCreation_apiId - The API ID.

$sel:definition:StartSchemaCreation', startSchemaCreation_definition - The schema definition, in GraphQL schema language format.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

Request Lenses

startSchemaCreation_definition :: Lens' StartSchemaCreation ByteString Source #

The schema definition, in GraphQL schema language format.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

Destructuring the Response

data StartSchemaCreationResponse Source #

See: newStartSchemaCreationResponse smart constructor.

Constructors

StartSchemaCreationResponse' 

Fields

  • status :: Maybe SchemaStatus

    The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StartSchemaCreationResponse Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Read StartSchemaCreationResponse Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Show StartSchemaCreationResponse Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Generic StartSchemaCreationResponse Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

Associated Types

type Rep StartSchemaCreationResponse :: Type -> Type #

NFData StartSchemaCreationResponse Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

type Rep StartSchemaCreationResponse Source # 
Instance details

Defined in Amazonka.AppSync.StartSchemaCreation

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

newStartSchemaCreationResponse Source #

Create a value of StartSchemaCreationResponse 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:status:StartSchemaCreationResponse', startSchemaCreationResponse_status - The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.

$sel:httpStatus:StartSchemaCreationResponse', startSchemaCreationResponse_httpStatus - The response's http status code.

Response Lenses

startSchemaCreationResponse_status :: Lens' StartSchemaCreationResponse (Maybe SchemaStatus) Source #

The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.