/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 01bc6a428387 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { RemoteOperatorInstallReceipt, RemoteOperatorInstallReceipt$inboundSchema, } from "./remoteoperatorinstallreceipt.js"; export type RenderOperatorEcsCloudFormationResponse = { /** * CloudFormation JSON for an ECS Fargate service, or null while the immutable Operator image is building. The artifact contains no bootstrap credential values. */ template: string | null; /** * Suggested local CloudFormation filename */ filename: string; /** * Suggested stack name for this installation */ stackName: string; /** * Local bash/zsh bootstrap-and-deploy command, or null while the image is building. It prompts without echo for the one-time Alien token, preserves or generates the encryption key, writes both directly to customer-owned Secrets Manager, and passes only the secret ARN to CloudFormation. */ deployCommand: string | null; /** * Manager URL embedded in the task definition */ managerUrl: string; /** * Immutable Operator image reference, or */ image: string; /** * True until a ready Operator image digest is available. A pending template must not be deployed. */ imagePending: boolean; operatorImage: RemoteOperatorInstallReceipt | null; }; /** @internal */ export const RenderOperatorEcsCloudFormationResponse$inboundSchema: z.ZodType< RenderOperatorEcsCloudFormationResponse, unknown > = z.object({ template: z.nullable(z.string()), filename: z.string(), stackName: z.string(), deployCommand: z.nullable(z.string()), managerUrl: z.string(), image: z.string(), imagePending: z.boolean(), operatorImage: z.nullable(RemoteOperatorInstallReceipt$inboundSchema), }); export function renderOperatorEcsCloudFormationResponseFromJSON( jsonString: string, ): SafeParseResult< RenderOperatorEcsCloudFormationResponse, SDKValidationError > { return safeParse( jsonString, (x) => RenderOperatorEcsCloudFormationResponse$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'RenderOperatorEcsCloudFormationResponse' from JSON`, ); }