Skip to content

AcceptResourceShareInvitation

Source: src/AWS/RAM/AcceptResourceShareInvitation.ts

Runtime binding for ram:AcceptResourceShareInvitation.

Accepts an invitation to a resource share from another account, granting this account access to the shared resources. Account-level operation — the target shares, invitations, and permissions are chosen per request at runtime, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.RAM.AcceptResourceShareInvitationHttp).

// init — account-level binding, no resource argument
const acceptResourceShareInvitation = yield* AWS.RAM.AcceptResourceShareInvitation();
// runtime
const { resourceShareInvitation } =
yield* acceptResourceShareInvitation({
resourceShareInvitationArn: invitationArn,
});