deleteHost method

Future<void> deleteHost({
  1. required String hostArn,
})

The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.

May throw ResourceNotFoundException. May throw ResourceUnavailableException.

Parameter hostArn : The Amazon Resource Name (ARN) of the host to be deleted.

Implementation

Future<void> deleteHost({
  required String hostArn,
}) async {
  ArgumentError.checkNotNull(hostArn, 'hostArn');
  _s.validateStringLength(
    'hostArn',
    hostArn,
    0,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'com.amazonaws.codestar.connections.CodeStar_connections_20191201.DeleteHost'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'HostArn': hostArn,
    },
  );
}