import type * as bda from "@distilled.cloud/aws/bedrock-data-automation";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Blueprint } from "./Blueprint.ts";
/**
* `CreateBlueprintVersion` request with `blueprintArn` injected from the
* bound {@link Blueprint}.
*/
export interface CreateBlueprintVersionRequest extends Omit<
bda.CreateBlueprintVersionRequest,
"blueprintArn"
> {}
/**
* 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)`.
* ### Blueprint Management
* **Example:** Snapshot The Blueprint
* ```typescript
* // 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}`);
* ```
*
* @binding
*/
export interface CreateBlueprintVersion extends Binding.Service<
CreateBlueprintVersion,
"AWS.BedrockDataAutomation.CreateBlueprintVersion",
(
blueprint: Blueprint,
) => Effect.Effect<
(
request: CreateBlueprintVersionRequest,
) => Effect.Effect<bda.CreateBlueprintVersionResponse, bda.CreateBlueprintVersionError>
>
> {}
export const CreateBlueprintVersion = Binding.Service<CreateBlueprintVersion>(
"AWS.BedrockDataAutomation.CreateBlueprintVersion",
);