deleteApplication method

Future<void> deleteApplication({
  1. required String applicationName,
})

Deletes an application.

May throw ApplicationNameRequiredException. May throw InvalidApplicationNameException. May throw InvalidRoleException.

Parameter applicationName : The name of an AWS CodeDeploy application associated with the IAM user or AWS account.

Implementation

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