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 deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository.
Synopsis
- data CreateDeployment = CreateDeployment' {}
- newCreateDeployment :: Text -> Text -> CreateDeployment
- createDeployment_fileMap :: Lens' CreateDeployment (Maybe (HashMap Text Text))
- createDeployment_appId :: Lens' CreateDeployment Text
- createDeployment_branchName :: Lens' CreateDeployment Text
- data CreateDeploymentResponse = CreateDeploymentResponse' {
- jobId :: Maybe Text
- httpStatus :: Int
- fileUploadUrls :: HashMap Text Text
- zipUploadUrl :: Text
- newCreateDeploymentResponse :: Int -> Text -> CreateDeploymentResponse
- createDeploymentResponse_jobId :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int
- createDeploymentResponse_fileUploadUrls :: Lens' CreateDeploymentResponse (HashMap Text Text)
- createDeploymentResponse_zipUploadUrl :: Lens' CreateDeploymentResponse Text
Creating a Request
data CreateDeployment Source #
The request structure for the create a new deployment request.
See: newCreateDeployment
smart constructor.
CreateDeployment' | |
|
Instances
Create a value of CreateDeployment
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:fileMap:CreateDeployment'
, createDeployment_fileMap
- An optional file map that contains the file name as the key and the file
content md5 hash as the value. If this argument is provided, the service
will generate a unique upload URL per file. Otherwise, the service will
only generate a single upload URL for the zipped files.
$sel:appId:CreateDeployment'
, createDeployment_appId
- The unique ID for an Amplify app.
$sel:branchName:CreateDeployment'
, createDeployment_branchName
- The name for the branch, for the job.
Request Lenses
createDeployment_fileMap :: Lens' CreateDeployment (Maybe (HashMap Text Text)) Source #
An optional file map that contains the file name as the key and the file content md5 hash as the value. If this argument is provided, the service will generate a unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files.
createDeployment_appId :: Lens' CreateDeployment Text Source #
The unique ID for an Amplify app.
createDeployment_branchName :: Lens' CreateDeployment Text Source #
The name for the branch, for the job.
Destructuring the Response
data CreateDeploymentResponse Source #
The result structure for the create a new deployment request.
See: newCreateDeploymentResponse
smart constructor.
CreateDeploymentResponse' | |
|
Instances
newCreateDeploymentResponse Source #
:: Int | |
-> Text | |
-> CreateDeploymentResponse |
Create a value of CreateDeploymentResponse
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:jobId:CreateDeploymentResponse'
, createDeploymentResponse_jobId
- The job ID for this deployment. will supply to start deployment api.
$sel:httpStatus:CreateDeploymentResponse'
, createDeploymentResponse_httpStatus
- The response's http status code.
$sel:fileUploadUrls:CreateDeploymentResponse'
, createDeploymentResponse_fileUploadUrls
- When the fileMap
argument is provided in the request, fileUploadUrls
will contain a map of file names to upload URLs.
$sel:zipUploadUrl:CreateDeploymentResponse'
, createDeploymentResponse_zipUploadUrl
- When the fileMap
argument is not provided in the request, this
zipUploadUrl
is returned.
Response Lenses
createDeploymentResponse_jobId :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The job ID for this deployment. will supply to start deployment api.
createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int Source #
The response's http status code.
createDeploymentResponse_fileUploadUrls :: Lens' CreateDeploymentResponse (HashMap Text Text) Source #
When the fileMap
argument is provided in the request, fileUploadUrls
will contain a map of file names to upload URLs.
createDeploymentResponse_zipUploadUrl :: Lens' CreateDeploymentResponse Text Source #
When the fileMap
argument is not provided in the request, this
zipUploadUrl
is returned.