Skip to content

CreateBlueprintVersion

Source: src/AWS/BedrockDataAutomation/CreateBlueprintVersion.ts

Runtime binding for the CreateBlueprintVersion operation (IAM action bedrock:CreateBlueprintVersion on the blueprint ARN) — snapshot the bound blueprint’s current schema as an immutable version from a deployed Function.

Provide the implementation with Effect.provide(AWS.BedrockDataAutomation.CreateBlueprintVersionHttp).

// deploy time — bind the blueprint
const createVersion =
yield* AWS.BedrockDataAutomation.CreateBlueprintVersion(blueprint);
// runtime — freeze the current schema as a new version
const { blueprint: version } = yield* createVersion({});
yield* Effect.log(`created version ${version.blueprintVersion}`);