Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
This operation creates a backend for an Amplify app. Backends are automatically created at the time of app creation.
Synopsis
- data CreateBackend = CreateBackend' {}
- newCreateBackend :: Text -> Text -> Text -> CreateBackend
- createBackend_resourceName :: Lens' CreateBackend (Maybe Text)
- createBackend_resourceConfig :: Lens' CreateBackend (Maybe ResourceConfig)
- createBackend_appId :: Lens' CreateBackend Text
- createBackend_backendEnvironmentName :: Lens' CreateBackend Text
- createBackend_appName :: Lens' CreateBackend Text
- data CreateBackendResponse = CreateBackendResponse' {}
- newCreateBackendResponse :: Int -> CreateBackendResponse
- createBackendResponse_status :: Lens' CreateBackendResponse (Maybe Text)
- createBackendResponse_jobId :: Lens' CreateBackendResponse (Maybe Text)
- createBackendResponse_operation :: Lens' CreateBackendResponse (Maybe Text)
- createBackendResponse_error :: Lens' CreateBackendResponse (Maybe Text)
- createBackendResponse_appId :: Lens' CreateBackendResponse (Maybe Text)
- createBackendResponse_backendEnvironmentName :: Lens' CreateBackendResponse (Maybe Text)
- createBackendResponse_httpStatus :: Lens' CreateBackendResponse Int
Creating a Request
data CreateBackend Source #
The request body for CreateBackend.
See: newCreateBackend
smart constructor.
CreateBackend' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateBackend |
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_resourceName :: Lens' CreateBackend (Maybe Text) Source #
The name of the resource.
createBackend_resourceConfig :: Lens' CreateBackend (Maybe ResourceConfig) Source #
The resource configuration for the create backend request.
createBackend_appId :: Lens' CreateBackend Text Source #
The app ID.
createBackend_backendEnvironmentName :: Lens' CreateBackend Text Source #
The name of the backend environment.
createBackend_appName :: Lens' CreateBackend Text Source #
The name of the app.
Destructuring the Response
data CreateBackendResponse Source #
See: newCreateBackendResponse
smart constructor.
CreateBackendResponse' | |
|
Instances
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_status :: Lens' CreateBackendResponse (Maybe Text) Source #
The current status of the request.
createBackendResponse_jobId :: Lens' CreateBackendResponse (Maybe Text) Source #
The ID for the job.
createBackendResponse_operation :: Lens' CreateBackendResponse (Maybe Text) Source #
The name of the operation.
createBackendResponse_error :: Lens' CreateBackendResponse (Maybe Text) Source #
If the request fails, this error is returned.
createBackendResponse_appId :: Lens' CreateBackendResponse (Maybe Text) Source #
The app ID.
createBackendResponse_backendEnvironmentName :: Lens' CreateBackendResponse (Maybe Text) Source #
The name of the backend environment.
createBackendResponse_httpStatus :: Lens' CreateBackendResponse Int Source #
The response's http status code.