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 |
Creates a new backend API resource.
Synopsis
- data CreateBackendAPI = CreateBackendAPI' {}
- newCreateBackendAPI :: Text -> Text -> Text -> BackendAPIResourceConfig -> CreateBackendAPI
- createBackendAPI_appId :: Lens' CreateBackendAPI Text
- createBackendAPI_resourceName :: Lens' CreateBackendAPI Text
- createBackendAPI_backendEnvironmentName :: Lens' CreateBackendAPI Text
- createBackendAPI_resourceConfig :: Lens' CreateBackendAPI BackendAPIResourceConfig
- data CreateBackendAPIResponse = CreateBackendAPIResponse' {}
- newCreateBackendAPIResponse :: Int -> CreateBackendAPIResponse
- createBackendAPIResponse_status :: Lens' CreateBackendAPIResponse (Maybe Text)
- createBackendAPIResponse_jobId :: Lens' CreateBackendAPIResponse (Maybe Text)
- createBackendAPIResponse_operation :: Lens' CreateBackendAPIResponse (Maybe Text)
- createBackendAPIResponse_error :: Lens' CreateBackendAPIResponse (Maybe Text)
- createBackendAPIResponse_appId :: Lens' CreateBackendAPIResponse (Maybe Text)
- createBackendAPIResponse_backendEnvironmentName :: Lens' CreateBackendAPIResponse (Maybe Text)
- createBackendAPIResponse_httpStatus :: Lens' CreateBackendAPIResponse Int
Creating a Request
data CreateBackendAPI Source #
The request body for CreateBackendAPI.
See: newCreateBackendAPI
smart constructor.
CreateBackendAPI' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> BackendAPIResourceConfig | |
-> CreateBackendAPI |
Create a value of CreateBackendAPI
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:appId:CreateBackendAPI'
, createBackendAPI_appId
- The app ID.
$sel:resourceName:CreateBackendAPI'
, createBackendAPI_resourceName
- The name of this resource.
$sel:backendEnvironmentName:CreateBackendAPI'
, createBackendAPI_backendEnvironmentName
- The name of the backend environment.
$sel:resourceConfig:CreateBackendAPI'
, createBackendAPI_resourceConfig
- The resource configuration for this request.
Request Lenses
createBackendAPI_appId :: Lens' CreateBackendAPI Text Source #
The app ID.
createBackendAPI_resourceName :: Lens' CreateBackendAPI Text Source #
The name of this resource.
createBackendAPI_backendEnvironmentName :: Lens' CreateBackendAPI Text Source #
The name of the backend environment.
createBackendAPI_resourceConfig :: Lens' CreateBackendAPI BackendAPIResourceConfig Source #
The resource configuration for this request.
Destructuring the Response
data CreateBackendAPIResponse Source #
See: newCreateBackendAPIResponse
smart constructor.
CreateBackendAPIResponse' | |
|
Instances
newCreateBackendAPIResponse Source #
Create a value of CreateBackendAPIResponse
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:CreateBackendAPIResponse'
, createBackendAPIResponse_status
- The current status of the request.
$sel:jobId:CreateBackendAPIResponse'
, createBackendAPIResponse_jobId
- The ID for the job.
$sel:operation:CreateBackendAPIResponse'
, createBackendAPIResponse_operation
- The name of the operation.
$sel:error:CreateBackendAPIResponse'
, createBackendAPIResponse_error
- If the request fails, this error is returned.
$sel:appId:CreateBackendAPI'
, createBackendAPIResponse_appId
- The app ID.
$sel:backendEnvironmentName:CreateBackendAPI'
, createBackendAPIResponse_backendEnvironmentName
- The name of the backend environment.
$sel:httpStatus:CreateBackendAPIResponse'
, createBackendAPIResponse_httpStatus
- The response's http status code.
Response Lenses
createBackendAPIResponse_status :: Lens' CreateBackendAPIResponse (Maybe Text) Source #
The current status of the request.
createBackendAPIResponse_jobId :: Lens' CreateBackendAPIResponse (Maybe Text) Source #
The ID for the job.
createBackendAPIResponse_operation :: Lens' CreateBackendAPIResponse (Maybe Text) Source #
The name of the operation.
createBackendAPIResponse_error :: Lens' CreateBackendAPIResponse (Maybe Text) Source #
If the request fails, this error is returned.
createBackendAPIResponse_appId :: Lens' CreateBackendAPIResponse (Maybe Text) Source #
The app ID.
createBackendAPIResponse_backendEnvironmentName :: Lens' CreateBackendAPIResponse (Maybe Text) Source #
The name of the backend environment.
createBackendAPIResponse_httpStatus :: Lens' CreateBackendAPIResponse Int Source #
The response's http status code.