libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend
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.AmplifyBackend.CreateBackend

Description

This operation creates a backend for an Amplify app. Backends are automatically created at the time of app creation.

Synopsis

Creating a Request

data CreateBackend Source #

The request body for CreateBackend.

See: newCreateBackend smart constructor.

Constructors

CreateBackend' 

Fields

Instances

Instances details
Eq CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Read CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Show CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Generic CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Associated Types

type Rep CreateBackend :: Type -> Type #

NFData CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Methods

rnf :: CreateBackend -> () #

Hashable CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

ToJSON CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

AWSRequest CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Associated Types

type AWSResponse CreateBackend #

ToHeaders CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

ToPath CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

ToQuery CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

type Rep CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

type Rep CreateBackend = D1 ('MetaData "CreateBackend" "Amazonka.AmplifyBackend.CreateBackend" "libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend" 'False) (C1 ('MetaCons "CreateBackend'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceConfig))) :*: (S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "backendEnvironmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateBackend Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

newCreateBackend Source #

Create a value of CreateBackend 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:resourceName:CreateBackend', createBackend_resourceName - The name of the resource.

$sel:resourceConfig:CreateBackend', createBackend_resourceConfig - The resource configuration for the create backend request.

$sel:appId:CreateBackend', createBackend_appId - The app ID.

$sel:backendEnvironmentName:CreateBackend', createBackend_backendEnvironmentName - The name of the backend environment.

$sel:appName:CreateBackend', createBackend_appName - The name of the app.

Request Lenses

createBackend_resourceConfig :: Lens' CreateBackend (Maybe ResourceConfig) Source #

The resource configuration for the create backend request.

createBackend_backendEnvironmentName :: Lens' CreateBackend Text Source #

The name of the backend environment.

Destructuring the Response

data CreateBackendResponse Source #

See: newCreateBackendResponse smart constructor.

Constructors

CreateBackendResponse' 

Fields

Instances

Instances details
Eq CreateBackendResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Read CreateBackendResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Show CreateBackendResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Generic CreateBackendResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Associated Types

type Rep CreateBackendResponse :: Type -> Type #

NFData CreateBackendResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

Methods

rnf :: CreateBackendResponse -> () #

type Rep CreateBackendResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateBackend

type Rep CreateBackendResponse = D1 ('MetaData "CreateBackendResponse" "Amazonka.AmplifyBackend.CreateBackend" "libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend" 'False) (C1 ('MetaCons "CreateBackendResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "backendEnvironmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateBackendResponse Source #

Create a value of CreateBackendResponse 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:CreateBackendResponse', createBackendResponse_status - The current status of the request.

$sel:jobId:CreateBackendResponse', createBackendResponse_jobId - The ID for the job.

$sel:operation:CreateBackendResponse', createBackendResponse_operation - The name of the operation.

$sel:error:CreateBackendResponse', createBackendResponse_error - If the request fails, this error is returned.

$sel:appId:CreateBackend', createBackendResponse_appId - The app ID.

$sel:backendEnvironmentName:CreateBackend', createBackendResponse_backendEnvironmentName - The name of the backend environment.

$sel:httpStatus:CreateBackendResponse', createBackendResponse_httpStatus - The response's http status code.

Response Lenses

createBackendResponse_error :: Lens' CreateBackendResponse (Maybe Text) Source #

If the request fails, this error is returned.