deleteEndpointConfig method
Deletes an endpoint configuration. The DeleteEndpointConfig
API deletes only the specified configuration. It does not delete endpoints
created using the configuration.
You must not delete an EndpointConfig
in use by an endpoint
that is live or while the UpdateEndpoint
or
CreateEndpoint
operations are being performed on the
endpoint. If you delete the EndpointConfig
of an endpoint
that is active or being created or updated you may lose visibility into
the instance type the endpoint is using. The endpoint must be deleted in
order to stop incurring charges.
Parameter endpointConfigName
:
The name of the endpoint configuration that you want to delete.
Implementation
Future<void> deleteEndpointConfig({
required String endpointConfigName,
}) async {
ArgumentError.checkNotNull(endpointConfigName, 'endpointConfigName');
_s.validateStringLength(
'endpointConfigName',
endpointConfigName,
0,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteEndpointConfig'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EndpointConfigName': endpointConfigName,
},
);
}