deleteEnvironmentConfiguration method

Future<void> deleteEnvironmentConfiguration(
  1. {required String applicationName,
  2. required String environmentName}
)

Deletes the draft configuration associated with the running environment.

Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.

Parameter applicationName : The name of the application the environment is associated with.

Parameter environmentName : The name of the environment to delete the draft configuration from.

Implementation

Future<void> deleteEnvironmentConfiguration({
  required String applicationName,
  required String environmentName,
}) async {
  ArgumentError.checkNotNull(applicationName, 'applicationName');
  _s.validateStringLength(
    'applicationName',
    applicationName,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(environmentName, 'environmentName');
  _s.validateStringLength(
    'environmentName',
    environmentName,
    4,
    40,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ApplicationName'] = applicationName;
  $request['EnvironmentName'] = environmentName;
  await _protocol.send(
    $request,
    action: 'DeleteEnvironmentConfiguration',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteEnvironmentConfigurationMessage'],
    shapes: shapes,
  );
}