Skip to content

GetDataGrant

Source: src/AWS/DataExchange/GetDataGrant.ts

Runtime binding for dataexchange:GetDataGrant.

Reads a sent data grant’s detail — receiver, acceptance state, and expiration. Provide the implementation with Effect.provide(AWS.DataExchange.GetDataGrantHttp).

const getDataGrant = yield* AWS.DataExchange.GetDataGrant();
// runtime
const grant = yield* getDataGrant({ DataGrantId: grantId });
yield* Effect.log(`state: ${grant.AcceptanceState}`);