deleteFleet method
Deletes a fleet. Prevents users from accessing previously associated websites.
May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.
Parameter fleetArn
:
The ARN of the fleet.
Implementation
Future<void> deleteFleet({
required String fleetArn,
}) async {
ArgumentError.checkNotNull(fleetArn, 'fleetArn');
_s.validateStringLength(
'fleetArn',
fleetArn,
20,
2048,
isRequired: true,
);
final $payload = <String, dynamic>{
'FleetArn': fleetArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/deleteFleet',
exceptionFnMap: _exceptionFns,
);
}