Skip to content

PutCodeBinding

Source: src/AWS/Schemas/PutCodeBinding.ts

Runtime binding for schemas:PutCodeBinding.

Kicks off code-binding generation for the bound Schema in a target language (Java8, Python36, TypeScript3, or Go1). Generation is asynchronous — poll DescribeCodeBinding until the status is CREATE_COMPLETE, then download the package with GetCodeBindingSource. The registry and schema names are injected from the binding. Provide the implementation with Effect.provide(AWS.Schemas.PutCodeBindingHttp).

// init — bind the operation to the schema
const putCodeBinding = yield* AWS.Schemas.PutCodeBinding(schema);
// runtime
const { Status } = yield* putCodeBinding({ Language: "Python36" });
// Status is "CREATE_IN_PROGRESS" until generation finishes