Skip to content

CopyBlueprintStage

Source: src/AWS/BedrockDataAutomation/CopyBlueprintStage.ts

Runtime binding for the CopyBlueprintStage operation (IAM action bedrock:CopyBlueprintStage on the blueprint ARN) — copy the bound blueprint between its DEVELOPMENT and LIVE stages from a deployed Function (e.g. promote a tuned development schema to live).

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

// deploy time — bind the blueprint
const copyStage =
yield* AWS.BedrockDataAutomation.CopyBlueprintStage(blueprint);
// runtime — promote the development copy
yield* copyStage({ sourceStage: "DEVELOPMENT", targetStage: "LIVE" });