associateEnvironmentRole method
Associates 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 the environment role is
associated.
Parameter environmentIdentifier :
The ID of the Amazon DataZone environment.
Parameter environmentRoleArn :
The ARN of the environment role.
Implementation
Future<void> associateEnvironmentRole({
required String domainIdentifier,
required String environmentIdentifier,
required String environmentRoleArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/v2/domains/${Uri.encodeComponent(domainIdentifier)}/environments/${Uri.encodeComponent(environmentIdentifier)}/roles/${Uri.encodeComponent(environmentRoleArn)}',
exceptionFnMap: _exceptionFns,
);
}