deleteEnvironment method

Future<void> deleteEnvironment({
  1. required String domainIdentifier,
  2. required String identifier,
})

Deletes an environment in Amazon DataZone.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter domainIdentifier : The ID of the Amazon DataZone domain in which the environment is deleted.

Parameter identifier : The identifier of the environment that is to be deleted.

Implementation

Future<void> deleteEnvironment({
  required String domainIdentifier,
  required String identifier,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/domains/${Uri.encodeComponent(domainIdentifier)}/environments/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
}