| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.AmplifyBackend.CloneBackend
Description
This operation clones an existing backend.
Synopsis
- data CloneBackend = CloneBackend' {}
 - newCloneBackend :: Text -> Text -> Text -> CloneBackend
 - cloneBackend_appId :: Lens' CloneBackend Text
 - cloneBackend_backendEnvironmentName :: Lens' CloneBackend Text
 - cloneBackend_targetEnvironmentName :: Lens' CloneBackend Text
 - data CloneBackendResponse = CloneBackendResponse' {}
 - newCloneBackendResponse :: Int -> CloneBackendResponse
 - cloneBackendResponse_appId :: Lens' CloneBackendResponse (Maybe Text)
 - cloneBackendResponse_backendEnvironmentName :: Lens' CloneBackendResponse (Maybe Text)
 - cloneBackendResponse_error :: Lens' CloneBackendResponse (Maybe Text)
 - cloneBackendResponse_jobId :: Lens' CloneBackendResponse (Maybe Text)
 - cloneBackendResponse_operation :: Lens' CloneBackendResponse (Maybe Text)
 - cloneBackendResponse_status :: Lens' CloneBackendResponse (Maybe Text)
 - cloneBackendResponse_httpStatus :: Lens' CloneBackendResponse Int
 
Creating a Request
data CloneBackend Source #
The request body for CloneBackend.
See: newCloneBackend smart constructor.
Constructors
| CloneBackend' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CloneBackend | 
Create a value of CloneBackend 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:
CloneBackend, cloneBackend_appId - The app ID.
CloneBackend, cloneBackend_backendEnvironmentName - The name of the backend environment.
$sel:targetEnvironmentName:CloneBackend', cloneBackend_targetEnvironmentName - The name of the destination backend environment to be created.
Request Lenses
cloneBackend_appId :: Lens' CloneBackend Text Source #
The app ID.
cloneBackend_backendEnvironmentName :: Lens' CloneBackend Text Source #
The name of the backend environment.
cloneBackend_targetEnvironmentName :: Lens' CloneBackend Text Source #
The name of the destination backend environment to be created.
Destructuring the Response
data CloneBackendResponse Source #
See: newCloneBackendResponse smart constructor.
Constructors
| CloneBackendResponse' | |
Fields 
  | |
Instances
newCloneBackendResponse Source #
Arguments
| :: Int | |
| -> CloneBackendResponse | 
Create a value of CloneBackendResponse 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:
CloneBackend, cloneBackendResponse_appId - The app ID.
CloneBackend, cloneBackendResponse_backendEnvironmentName - The name of the backend environment.
CloneBackendResponse, cloneBackendResponse_error - If the request fails, this error is returned.
CloneBackendResponse, cloneBackendResponse_jobId - The ID for the job.
CloneBackendResponse, cloneBackendResponse_operation - The name of the operation.
CloneBackendResponse, cloneBackendResponse_status - The current status of the request.
$sel:httpStatus:CloneBackendResponse', cloneBackendResponse_httpStatus - The response's http status code.
Response Lenses
cloneBackendResponse_appId :: Lens' CloneBackendResponse (Maybe Text) Source #
The app ID.
cloneBackendResponse_backendEnvironmentName :: Lens' CloneBackendResponse (Maybe Text) Source #
The name of the backend environment.
cloneBackendResponse_error :: Lens' CloneBackendResponse (Maybe Text) Source #
If the request fails, this error is returned.
cloneBackendResponse_jobId :: Lens' CloneBackendResponse (Maybe Text) Source #
The ID for the job.
cloneBackendResponse_operation :: Lens' CloneBackendResponse (Maybe Text) Source #
The name of the operation.
cloneBackendResponse_status :: Lens' CloneBackendResponse (Maybe Text) Source #
The current status of the request.
cloneBackendResponse_httpStatus :: Lens' CloneBackendResponse Int Source #
The response's http status code.