Skip to content

AcceptDataGrant

Source: src/AWS/DataExchange/AcceptDataGrant.ts

Runtime binding for dataexchange:AcceptDataGrant.

Accepts a data grant another account sent to this account, creating an entitled copy of the granted data set — the receiver-side automation of direct data sharing. Provide the implementation with Effect.provide(AWS.DataExchange.AcceptDataGrantHttp).

const acceptDataGrant = yield* AWS.DataExchange.AcceptDataGrant();
// runtime
const accepted = yield* acceptDataGrant({ DataGrantArn: grantArn });
yield* Effect.log(`entitled data set: ${accepted.DataSetId}`);