Skip to content

GetResourcePolicy

Source: src/AWS/Kinesis/GetResourcePolicy.ts

Runtime binding for kinesis:GetResourcePolicy.

Bind this operation to a Stream to read the resource policy attached to it (set via the stream’s resourcePolicy prop) — the stream ARN is injected automatically. Provide the implementation with Effect.provide(AWS.Kinesis.GetResourcePolicyHttp).

// init
const getResourcePolicy = yield* AWS.Kinesis.GetResourcePolicy(stream);
// runtime
const result = yield* getResourcePolicy();
const policy = JSON.parse(result.Policy);