deleteDeployment method

Future<DeleteDeploymentOutput> deleteDeployment({
  1. required String id,
})

Delete the deployment.

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

Parameter id : The ID of the deployment to delete.

Implementation

Future<DeleteDeploymentOutput> deleteDeployment({
  required String id,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AwsProton20200720.DeleteDeployment'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'id': id,
    },
  );

  return DeleteDeploymentOutput.fromJson(jsonResponse.body);
}