deleteDeploymentConfig method

Future<void> deleteDeploymentConfig({
  1. required String deploymentConfigName,
})

Deletes a deployment configuration.

May throw InvalidDeploymentConfigNameException. May throw DeploymentConfigNameRequiredException. May throw DeploymentConfigInUseException. May throw InvalidOperationException.

Parameter deploymentConfigName : The name of a deployment configuration associated with the IAM user or AWS account.

Implementation

Future<void> deleteDeploymentConfig({
  required String deploymentConfigName,
}) async {
  ArgumentError.checkNotNull(deploymentConfigName, 'deploymentConfigName');
  _s.validateStringLength(
    'deploymentConfigName',
    deploymentConfigName,
    1,
    100,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeDeploy_20141006.DeleteDeploymentConfig'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'deploymentConfigName': deploymentConfigName,
    },
  );
}