disassociateEnvironmentRole method

Future<void> disassociateEnvironmentRole({
  1. required String domainIdentifier,
  2. required String environmentIdentifier,
  3. required String environmentRoleArn,
})

Disassociates the environment role in Amazon DataZone.

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

Parameter domainIdentifier : The ID of the Amazon DataZone domain in which an environment role is disassociated.

Parameter environmentIdentifier : The ID of the environment.

Parameter environmentRoleArn : The ARN of the environment role.

Implementation

Future<void> disassociateEnvironmentRole({
  required String domainIdentifier,
  required String environmentIdentifier,
  required String environmentRoleArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/domains/${Uri.encodeComponent(domainIdentifier)}/environments/${Uri.encodeComponent(environmentIdentifier)}/roles/${Uri.encodeComponent(environmentRoleArn)}',
    exceptionFnMap: _exceptionFns,
  );
}