Skip to content

CreateDataGrant

Source: src/AWS/DataExchange/CreateDataGrant.ts

Runtime binding for dataexchange:CreateDataGrant.

Creates a data grant sharing an owned data set with another AWS account directly (without an AWS Marketplace product). The receiver must accept the grant to get an entitled copy of the data set. Provide the implementation with Effect.provide(AWS.DataExchange.CreateDataGrantHttp).

const createDataGrant = yield* AWS.DataExchange.CreateDataGrant();
// runtime
const grant = yield* createDataGrant({
Name: "prices-for-analytics",
SourceDataSetId: dataSetId,
ReceiverPrincipal: "111122223333",
GrantDistributionScope: "NONE",
});