grantFlowEntitlements method
Grants entitlements to an existing flow.
May throw BadRequestException.
May throw ForbiddenException.
May throw GrantFlowEntitlements420Exception.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
Parameter entitlements :
The list of entitlements that you want to grant.
Parameter flowArn :
The Amazon Resource Name (ARN) of the flow that you want to grant
entitlements on.
Implementation
Future<GrantFlowEntitlementsResponse> grantFlowEntitlements({
required List<GrantEntitlementRequest> entitlements,
required String flowArn,
}) async {
final $payload = <String, dynamic>{
'entitlements': entitlements,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}/entitlements',
exceptionFnMap: _exceptionFns,
);
return GrantFlowEntitlementsResponse.fromJson(response);
}