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 |
Gets the details for a backend API.
Synopsis
- data GetBackendAPI = GetBackendAPI' {}
- newGetBackendAPI :: Text -> Text -> Text -> GetBackendAPI
- getBackendAPI_resourceConfig :: Lens' GetBackendAPI (Maybe BackendAPIResourceConfig)
- getBackendAPI_appId :: Lens' GetBackendAPI Text
- getBackendAPI_backendEnvironmentName :: Lens' GetBackendAPI Text
- getBackendAPI_resourceName :: Lens' GetBackendAPI Text
- data GetBackendAPIResponse = GetBackendAPIResponse' {}
- newGetBackendAPIResponse :: Int -> GetBackendAPIResponse
- getBackendAPIResponse_resourceName :: Lens' GetBackendAPIResponse (Maybe Text)
- getBackendAPIResponse_error :: Lens' GetBackendAPIResponse (Maybe Text)
- getBackendAPIResponse_appId :: Lens' GetBackendAPIResponse (Maybe Text)
- getBackendAPIResponse_resourceConfig :: Lens' GetBackendAPIResponse (Maybe BackendAPIResourceConfig)
- getBackendAPIResponse_backendEnvironmentName :: Lens' GetBackendAPIResponse (Maybe Text)
- getBackendAPIResponse_httpStatus :: Lens' GetBackendAPIResponse Int
Creating a Request
data GetBackendAPI Source #
The request body for GetBackendAPI.
See: newGetBackendAPI
smart constructor.
GetBackendAPI' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> GetBackendAPI |
Create a value of GetBackendAPI
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:resourceConfig:GetBackendAPI'
, getBackendAPI_resourceConfig
- Defines the resource configuration for the data model in your Amplify
project.
$sel:appId:GetBackendAPI'
, getBackendAPI_appId
- The app ID.
$sel:backendEnvironmentName:GetBackendAPI'
, getBackendAPI_backendEnvironmentName
- The name of the backend environment.
$sel:resourceName:GetBackendAPI'
, getBackendAPI_resourceName
- The name of this resource.
Request Lenses
getBackendAPI_resourceConfig :: Lens' GetBackendAPI (Maybe BackendAPIResourceConfig) Source #
Defines the resource configuration for the data model in your Amplify project.
getBackendAPI_appId :: Lens' GetBackendAPI Text Source #
The app ID.
getBackendAPI_backendEnvironmentName :: Lens' GetBackendAPI Text Source #
The name of the backend environment.
getBackendAPI_resourceName :: Lens' GetBackendAPI Text Source #
The name of this resource.
Destructuring the Response
data GetBackendAPIResponse Source #
See: newGetBackendAPIResponse
smart constructor.
GetBackendAPIResponse' | |
|
Instances
newGetBackendAPIResponse Source #
Create a value of GetBackendAPIResponse
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:GetBackendAPI'
, getBackendAPIResponse_resourceName
- The name of this resource.
$sel:error:GetBackendAPIResponse'
, getBackendAPIResponse_error
- If the request fails, this error is returned.
$sel:appId:GetBackendAPI'
, getBackendAPIResponse_appId
- The app ID.
$sel:resourceConfig:GetBackendAPI'
, getBackendAPIResponse_resourceConfig
- The resource configuration for this response object.
$sel:backendEnvironmentName:GetBackendAPI'
, getBackendAPIResponse_backendEnvironmentName
- The name of the backend environment.
$sel:httpStatus:GetBackendAPIResponse'
, getBackendAPIResponse_httpStatus
- The response's http status code.
Response Lenses
getBackendAPIResponse_resourceName :: Lens' GetBackendAPIResponse (Maybe Text) Source #
The name of this resource.
getBackendAPIResponse_error :: Lens' GetBackendAPIResponse (Maybe Text) Source #
If the request fails, this error is returned.
getBackendAPIResponse_appId :: Lens' GetBackendAPIResponse (Maybe Text) Source #
The app ID.
getBackendAPIResponse_resourceConfig :: Lens' GetBackendAPIResponse (Maybe BackendAPIResourceConfig) Source #
The resource configuration for this response object.
getBackendAPIResponse_backendEnvironmentName :: Lens' GetBackendAPIResponse (Maybe Text) Source #
The name of the backend environment.
getBackendAPIResponse_httpStatus :: Lens' GetBackendAPIResponse Int Source #
The response's http status code.