getAssociatedRole method
Retrieves the role associated with a particular group.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter groupId
:
The ID of the Greengrass group.
Implementation
Future<GetAssociatedRoleResponse> getAssociatedRole({
required String groupId,
}) async {
ArgumentError.checkNotNull(groupId, 'groupId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/greengrass/groups/${Uri.encodeComponent(groupId)}/role',
exceptionFnMap: _exceptionFns,
);
return GetAssociatedRoleResponse.fromJson(response);
}