AutoScaling / Client / delete_launch_configuration

delete_launch_configuration#

AutoScaling.Client.delete_launch_configuration(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.delete_launch_configuration(
    LaunchConfigurationName='string'
)
Parameters:

LaunchConfigurationName (string) –

[REQUIRED]

The name of the launch configuration.

Returns:

None

Exceptions

  • AutoScaling.Client.exceptions.ResourceInUseFault

  • AutoScaling.Client.exceptions.ResourceContentionFault

Examples

This example deletes the specified launch configuration.

response = client.delete_launch_configuration(
    LaunchConfigurationName='my-launch-config',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}