GetCodeBindingSource
Source:
src/AWS/Schemas/GetCodeBindingSource.ts
Runtime binding for schemas:GetCodeBindingSource.
Downloads the generated code-binding package (a zip archive, streamed as
Body) for the bound Schema in a target language. Generate the
package first with PutCodeBinding and wait for
DescribeCodeBinding to report CREATE_COMPLETE. The registry and
schema names are injected from the binding. Provide the implementation
with Effect.provide(AWS.Schemas.GetCodeBindingSourceHttp).
Code Bindings
Section titled “Code Bindings”// init — bind the operation to the schemaconst getCodeBindingSource = yield* AWS.Schemas.GetCodeBindingSource(schema);
// runtime — Body is a Stream of Uint8Array chunks (a zip archive)const { Body } = yield* getCodeBindingSource({ Language: "Python36" });const bytes = yield* Stream.runFold(Body!, 0, (n, chunk) => n + chunk.length);