Skip to content

DescribeCodeBinding

Source: src/AWS/Schemas/DescribeCodeBinding.ts

Runtime binding for schemas:DescribeCodeBinding.

Reads the code-binding generation status for the bound Schema in a target language — poll it after PutCodeBinding until the status is CREATE_COMPLETE. The registry and schema names are injected from the binding. Provide the implementation with Effect.provide(AWS.Schemas.DescribeCodeBindingHttp).

// init — bind the operation to the schema
const describeCodeBinding = yield* AWS.Schemas.DescribeCodeBinding(schema);
// runtime
const { Status } = yield* describeCodeBinding({ Language: "Python36" });
if (Status === "CREATE_COMPLETE") {
// the package is ready to download via GetCodeBindingSource
}