deleteExpressGatewayService method
- required String serviceArn,
Deletes an Express service and removes all associated Amazon Web Services resources. This operation stops service tasks, removes the Application Load Balancer, target groups, security groups, auto-scaling policies, and other managed infrastructure components.
The service enters a DRAINING state where existing tasks
complete current requests without starting new tasks. After all tasks
stop, the service and infrastructure are permanently removed.
This operation cannot be reversed. Back up important data and verify the service is no longer needed before deletion.
May throw AccessDeniedException.
May throw ClientException.
May throw ClusterNotFoundException.
May throw InvalidParameterException.
May throw ServerException.
May throw ServiceNotActiveException.
May throw ServiceNotFoundException.
May throw UnsupportedFeatureException.
Parameter serviceArn :
The Amazon Resource Name (ARN) of the Express service to delete. The ARN
uniquely identifies the service within your Amazon Web Services account
and region.
Implementation
Future<DeleteExpressGatewayServiceResponse> deleteExpressGatewayService({
required String serviceArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AmazonEC2ContainerServiceV20141113.DeleteExpressGatewayService'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'serviceArn': serviceArn,
},
);
return DeleteExpressGatewayServiceResponse.fromJson(jsonResponse.body);
}