deleteLaunchConfiguration method

Future<void> deleteLaunchConfiguration({
  1. required String launchConfigurationName,
})

Deletes the specified launch configuration.

The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.

May throw ResourceInUseFault. May throw ResourceContentionFault.

Parameter launchConfigurationName : The name of the launch configuration.

Implementation

Future<void> deleteLaunchConfiguration({
  required String launchConfigurationName,
}) async {
  ArgumentError.checkNotNull(
      launchConfigurationName, 'launchConfigurationName');
  _s.validateStringLength(
    'launchConfigurationName',
    launchConfigurationName,
    1,
    255,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['LaunchConfigurationName'] = launchConfigurationName;
  await _protocol.send(
    $request,
    action: 'DeleteLaunchConfiguration',
    version: '2011-01-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['LaunchConfigurationNameType'],
    shapes: shapes,
  );
}