GetComponent
Source:
src/AWS/GreengrassV2/GetComponent.ts
Runtime binding for greengrass:GetComponent.
Fetches the bound ComponentVersion’s recipe (JSON or YAML, as raw
bytes) so a function can inspect or mirror the component definition. The
component version ARN is injected from the binding. Provide the
implementation with Effect.provide(AWS.GreengrassV2.GetComponentHttp).
Reading Components
Section titled “Reading Components”// init — bind the operation to the component versionconst getComponent = yield* AWS.GreengrassV2.GetComponent(component);
// runtimeconst { recipe } = yield* getComponent({ recipeOutputFormat: "JSON" });const text = new TextDecoder().decode(recipe);