getDeployment method

Future<GetDeploymentResponse> getDeployment({
  1. required String applicationId,
  2. required String deploymentId,
})

Gets details of a specific deployment with a given deployment identifier.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter applicationId : The unique identifier of the application.

Parameter deploymentId : The unique identifier for the deployment.

Implementation

Future<GetDeploymentResponse> getDeployment({
  required String applicationId,
  required String deploymentId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/deployments/${Uri.encodeComponent(deploymentId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDeploymentResponse.fromJson(response);
}