Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type * as appconfig from "@distilled.cloud/aws/appconfig";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Application } from "./Application.ts";
import type { ConfigurationProfile } from "./ConfigurationProfile.ts";
import type { DeploymentStrategy } from "./DeploymentStrategy.ts";
import type { Environment } from "./Environment.ts";
export interface StartDeploymentRequest extends Omit<
appconfig.StartDeploymentRequest,
| "ApplicationId"
| "EnvironmentId"
| "ConfigurationProfileId"
| "DeploymentStrategyId"
> {}
/**
* Start an AppConfig deployment from a Lambda (or other AWS runtime) — roll a
* configuration version out to an environment following a deployment
* strategy. Pairs with {@link CreateHostedConfigurationVersion} to build
* runtime feature-flag/configuration management services.
*
* Provide `AppConfig.StartDeploymentHttp` on the hosting function's Effect to
* implement the binding.
*
* @binding
* @section Deploying Configuration at Runtime
* @example Roll out a configuration version
* ```typescript
* const startDeployment = yield* AppConfig.StartDeployment(
* app,
* env,
* profile,
* strategy,
* );
* const deployment = yield* startDeployment({
* ConfigurationVersion: "2",
* });
* // deployment.DeploymentNumber, deployment.State ("DEPLOYING", ...)
* ```
*/
export interface StartDeployment extends Binding.Service<
StartDeployment,
"AWS.AppConfig.StartDeployment",
(
application: Application,
environment: Environment,
configurationProfile: ConfigurationProfile,
deploymentStrategy: DeploymentStrategy,
) => Effect.Effect<
(
request: StartDeploymentRequest,
) => Effect.Effect<appconfig.Deployment, appconfig.StartDeploymentError>
>
> {}
export const StartDeployment = Binding.Service<StartDeployment>(
"AWS.AppConfig.StartDeployment",
);