/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 32862c395f5b */ import * as z from "zod/v4"; import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Failure-domain policy selected for a compute pool. */ export type DeploymentSetupStackSettingsPolicyFailureDomains2 = { /** * Concrete provider domains selected during setup. * * @remarks * Empty delegates deterministic selection to the provider setup implementation. */ selectedFailureDomains?: Array | undefined; /** * Number of distinct failure domains across which new stateful replicas may be spread. */ spread: number; }; export type DeploymentSetupStackSettingsPolicyFailureDomainsUnion2 = | DeploymentSetupStackSettingsPolicyFailureDomains2 | any; export type DeploymentSetupStackSettingsPolicyPoolsAutoscale = { failureDomains?: | DeploymentSetupStackSettingsPolicyFailureDomains2 | any | null | undefined; /** * Provider machine type selected for this deployment. */ machine?: string | null | undefined; /** * Maximum machine count. */ max: number; /** * Minimum machine count. */ min: number; mode: "autoscale"; }; /** * Failure-domain policy selected for a compute pool. */ export type DeploymentSetupStackSettingsPolicyFailureDomains1 = { /** * Concrete provider domains selected during setup. * * @remarks * Empty delegates deterministic selection to the provider setup implementation. */ selectedFailureDomains?: Array | undefined; /** * Number of distinct failure domains across which new stateful replicas may be spread. */ spread: number; }; export type DeploymentSetupStackSettingsPolicyFailureDomainsUnion1 = | DeploymentSetupStackSettingsPolicyFailureDomains1 | any; export type DeploymentSetupStackSettingsPolicyPoolsFixed = { failureDomains?: | DeploymentSetupStackSettingsPolicyFailureDomains1 | any | null | undefined; /** * Provider machine type selected for this deployment. */ machine?: string | null | undefined; /** * Number of machines to run. */ machines: number; mode: "fixed"; }; /** * User-selected deployment settings for one compute pool. */ export type DeploymentSetupStackSettingsPolicyPoolsUnion = | DeploymentSetupStackSettingsPolicyPoolsFixed | DeploymentSetupStackSettingsPolicyPoolsAutoscale; /** * Deployment-time compute choices for Alien-managed compute pools. * * @remarks * * Application source declares portable pool requirements. This settings * object stores the concrete choices made for one deployment, such as the * provider machine type and selected machine counts. */ export type DeploymentSetupStackSettingsPolicyCompute = { /** * Selected compute choices keyed by pool ID. */ pools?: { [k: string]: | DeploymentSetupStackSettingsPolicyPoolsFixed | DeploymentSetupStackSettingsPolicyPoolsAutoscale; } | undefined; }; export type DeploymentSetupStackSettingsPolicyComputeUnion = | DeploymentSetupStackSettingsPolicyCompute | any; /** * Deployment model: how updates are delivered to the remote environment. */ export const DeploymentSetupStackSettingsPolicyDeploymentModel = { Push: "push", Pull: "pull", } as const; /** * Deployment model: how updates are delivered to the remote environment. */ export type DeploymentSetupStackSettingsPolicyDeploymentModel = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyDeploymentModel >; export type DeploymentSetupStackSettingsPolicyAws = { certificateArn: string; }; export type DeploymentSetupStackSettingsPolicyAwsUnion = | DeploymentSetupStackSettingsPolicyAws | any; export type DeploymentSetupStackSettingsPolicyAzure = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; export type DeploymentSetupStackSettingsPolicyAzureUnion = | DeploymentSetupStackSettingsPolicyAzure | any; export type DeploymentSetupStackSettingsPolicyGcp = { certificateName: string; }; export type DeploymentSetupStackSettingsPolicyGcpUnion = | DeploymentSetupStackSettingsPolicyGcp | any; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentSetupStackSettingsPolicyTlsSecretRef = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; }; export type DeploymentSetupStackSettingsPolicyDomainsKubernetes = { /** * Namespace-scoped Kubernetes TLS Secret reference. */ tlsSecretRef: DeploymentSetupStackSettingsPolicyTlsSecretRef; }; export type DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion = | DeploymentSetupStackSettingsPolicyDomainsKubernetes | any; /** * Platform-specific certificate references for custom domains. */ export type DeploymentSetupStackSettingsPolicyDomainsCertificate = { aws?: DeploymentSetupStackSettingsPolicyAws | any | null | undefined; azure?: DeploymentSetupStackSettingsPolicyAzure | any | null | undefined; gcp?: DeploymentSetupStackSettingsPolicyGcp | any | null | undefined; kubernetes?: | DeploymentSetupStackSettingsPolicyDomainsKubernetes | any | null | undefined; }; /** * Custom domain configuration for a single resource. */ export type DeploymentSetupStackSettingsPolicyCustomDomains = { /** * Platform-specific certificate references for custom domains. */ certificate: DeploymentSetupStackSettingsPolicyDomainsCertificate; /** * Fully qualified domain name to use. */ domain: string; }; export const DeploymentSetupStackSettingsPolicyModeLoadBalancer = { LoadBalancer: "loadBalancer", } as const; export type DeploymentSetupStackSettingsPolicyModeLoadBalancer = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyModeLoadBalancer >; export type DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer = { /** * DNS name or URL for the external load balancer. */ cnameTarget: string; mode: DeploymentSetupStackSettingsPolicyModeLoadBalancer; }; export const DeploymentSetupStackSettingsPolicyModeMachineAddresses = { MachineAddresses: "machineAddresses", } as const; export type DeploymentSetupStackSettingsPolicyModeMachineAddresses = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyModeMachineAddresses >; export type DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses = { mode: DeploymentSetupStackSettingsPolicyModeMachineAddresses; }; export type DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion = | DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer | DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses | any; /** * Domain configuration for the stack. * * @remarks * * When `custom_domains` is set, the specified resources use customer-provided * domains and certificates. Otherwise, Alien auto-generates domains. */ export type DeploymentSetupStackSettingsPolicyDomains = { /** * Custom domain configuration per resource ID. */ customDomains?: | { [k: string]: DeploymentSetupStackSettingsPolicyCustomDomains } | null | undefined; publicEndpointTarget?: | DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer | DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses | any | null | undefined; }; export type DeploymentSetupStackSettingsPolicyDomainsUnion = | DeploymentSetupStackSettingsPolicyDomains | any; /** * External bindings for pre-existing infrastructure. * * @remarks * Allows using existing resources (MinIO, Redis, shared Container Apps * Environment, etc.) instead of having Alien provision them. * Required for Kubernetes platform, optional for cloud platforms. */ export type DeploymentSetupStackSettingsPolicyExternalBindings = {}; /** * How heartbeat health checks are handled. */ export const DeploymentSetupStackSettingsPolicyHeartbeats = { Off: "off", On: "on", } as const; /** * How heartbeat health checks are handled. */ export type DeploymentSetupStackSettingsPolicyHeartbeats = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyHeartbeats >; /** * Optional provider-specific identity for a cloud-backed Kubernetes cluster. */ export type DeploymentSetupStackSettingsPolicyCloud = { accountId?: string | null | undefined; clusterId?: string | null | undefined; clusterName?: string | null | undefined; projectId?: string | null | undefined; region?: string | null | undefined; resourceGroup?: string | null | undefined; subscriptionId?: string | null | undefined; }; export type DeploymentSetupStackSettingsPolicyCloudUnion = | DeploymentSetupStackSettingsPolicyCloud | any; /** * Ownership model for the Kubernetes cluster. */ export const DeploymentSetupStackSettingsPolicyOwnership = { Managed: "managed", Existing: "existing", External: "external", } as const; /** * Ownership model for the Kubernetes cluster. */ export type DeploymentSetupStackSettingsPolicyOwnership = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyOwnership >; /** * Kubernetes cluster setup settings. */ export type DeploymentSetupStackSettingsPolicyCluster = { cloud?: DeploymentSetupStackSettingsPolicyCloud | any | null | undefined; /** * Namespace where the Alien chart and application resources run. */ namespace?: string | null | undefined; /** * Ownership model for the Kubernetes cluster. */ ownership: DeploymentSetupStackSettingsPolicyOwnership; }; export type DeploymentSetupStackSettingsPolicyClusterUnion = | DeploymentSetupStackSettingsPolicyCluster | any; export type DeploymentSetupStackSettingsPolicyCertificateNone2 = { mode: "none"; }; export type DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2 = { mode: "managedAcmImport"; /** * ACM region. Defaults to the deployment region when omitted. */ region?: string | null | undefined; /** * Tags applied to runtime-imported ACM certificates. */ tags?: { [k: string]: string } | undefined; }; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2 = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; mode: "tlsSecretRef"; }; /** * Certificate publication or reference mode for Kubernetes public endpoints. */ export type DeploymentSetupStackSettingsPolicyCertificateUnion2 = | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2 | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2 | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2 | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2 | DeploymentSetupStackSettingsPolicyCertificateNone2; export const DeploymentSetupStackSettingsPolicyModeCustom = { Custom: "custom", } as const; export type DeploymentSetupStackSettingsPolicyModeCustom = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyModeCustom >; export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4 >; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4; }; export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4 = { GkeGateway: "gkeGateway", } as const; export type DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4 = ClosedEnum; export type DeploymentSetupStackSettingsPolicyProviderGkeGateway4 = { provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4 = { AwsAlb: "awsAlb", } as const; export type DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4 >; export type DeploymentSetupStackSettingsPolicyProviderAwsAlb4 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentSetupStackSettingsPolicyProviderUnion4 = | DeploymentSetupStackSettingsPolicyProviderAwsAlb4 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4 | DeploymentSetupStackSettingsPolicyProviderGkeGateway4 | any; /** * Shared Gateway API route profile values. */ export type DeploymentSetupStackSettingsPolicyRouteGateway2 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example a cloud Gateway controller. */ controller?: string | null | undefined; /** * GatewayClass selected for generated Gateways. */ gatewayClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; /** * Listener port, usually 443. */ listenerPort: number; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb4 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4 | DeploymentSetupStackSettingsPolicyProviderGkeGateway4 | any | null | undefined; routeApi: "gateway"; }; export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3 >; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3; }; export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3 = { GkeGateway: "gkeGateway", } as const; export type DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3 = ClosedEnum; export type DeploymentSetupStackSettingsPolicyProviderGkeGateway3 = { provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3 = { AwsAlb: "awsAlb", } as const; export type DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3 >; export type DeploymentSetupStackSettingsPolicyProviderAwsAlb3 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentSetupStackSettingsPolicyProviderUnion3 = | DeploymentSetupStackSettingsPolicyProviderAwsAlb3 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3 | DeploymentSetupStackSettingsPolicyProviderGkeGateway3 | any; /** * Shared Ingress route profile values. */ export type DeploymentSetupStackSettingsPolicyRouteIngress2 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example `eks.amazonaws.com/alb`. */ controller?: string | null | undefined; /** * `spec.ingressClassName` for generated Ingresses. */ ingressClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb3 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3 | DeploymentSetupStackSettingsPolicyProviderGkeGateway3 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type DeploymentSetupStackSettingsPolicyRouteUnion2 = | DeploymentSetupStackSettingsPolicyRouteIngress2 | DeploymentSetupStackSettingsPolicyRouteGateway2; export type DeploymentSetupStackSettingsPolicyExposureCustom = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2 | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2 | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2 | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2 | DeploymentSetupStackSettingsPolicyCertificateNone2; /** * Hostname routed by the Kubernetes public endpoint. */ domain: string; mode: DeploymentSetupStackSettingsPolicyModeCustom; /** * Kubernetes route API selected for public endpoints. */ route: | DeploymentSetupStackSettingsPolicyRouteIngress2 | DeploymentSetupStackSettingsPolicyRouteGateway2; }; export type DeploymentSetupStackSettingsPolicyCertificateNone1 = { mode: "none"; }; export type DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1 = { mode: "managedAcmImport"; /** * ACM region. Defaults to the deployment region when omitted. */ region?: string | null | undefined; /** * Tags applied to runtime-imported ACM certificates. */ tags?: { [k: string]: string } | undefined; }; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1 = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; mode: "tlsSecretRef"; }; /** * Certificate publication or reference mode for Kubernetes public endpoints. */ export type DeploymentSetupStackSettingsPolicyCertificateUnion1 = | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1 | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1 | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1 | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1 | DeploymentSetupStackSettingsPolicyCertificateNone1; export const DeploymentSetupStackSettingsPolicyModeGenerated = { Generated: "generated", } as const; export type DeploymentSetupStackSettingsPolicyModeGenerated = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyModeGenerated >; export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2 >; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2; }; export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2 = { GkeGateway: "gkeGateway", } as const; export type DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2 = ClosedEnum; export type DeploymentSetupStackSettingsPolicyProviderGkeGateway2 = { provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2 = { AwsAlb: "awsAlb", } as const; export type DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2 >; export type DeploymentSetupStackSettingsPolicyProviderAwsAlb2 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentSetupStackSettingsPolicyProviderUnion2 = | DeploymentSetupStackSettingsPolicyProviderAwsAlb2 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2 | DeploymentSetupStackSettingsPolicyProviderGkeGateway2 | any; /** * Shared Gateway API route profile values. */ export type DeploymentSetupStackSettingsPolicyRouteGateway1 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example a cloud Gateway controller. */ controller?: string | null | undefined; /** * GatewayClass selected for generated Gateways. */ gatewayClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; /** * Listener port, usually 443. */ listenerPort: number; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb2 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2 | DeploymentSetupStackSettingsPolicyProviderGkeGateway2 | any | null | undefined; routeApi: "gateway"; }; export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1 >; export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1; }; export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1 = { GkeGateway: "gkeGateway", } as const; export type DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1 = ClosedEnum; export type DeploymentSetupStackSettingsPolicyProviderGkeGateway1 = { provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1 = { AwsAlb: "awsAlb", } as const; export type DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1 = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1 >; export type DeploymentSetupStackSettingsPolicyProviderAwsAlb1 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentSetupStackSettingsPolicyProviderUnion1 = | DeploymentSetupStackSettingsPolicyProviderAwsAlb1 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1 | DeploymentSetupStackSettingsPolicyProviderGkeGateway1 | any; /** * Shared Ingress route profile values. */ export type DeploymentSetupStackSettingsPolicyRouteIngress1 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example `eks.amazonaws.com/alb`. */ controller?: string | null | undefined; /** * `spec.ingressClassName` for generated Ingresses. */ ingressClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb1 | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1 | DeploymentSetupStackSettingsPolicyProviderGkeGateway1 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type DeploymentSetupStackSettingsPolicyRouteUnion1 = | DeploymentSetupStackSettingsPolicyRouteIngress1 | DeploymentSetupStackSettingsPolicyRouteGateway1; export type DeploymentSetupStackSettingsPolicyExposureGenerated = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1 | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1 | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1 | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1 | DeploymentSetupStackSettingsPolicyCertificateNone1; mode: DeploymentSetupStackSettingsPolicyModeGenerated; /** * Kubernetes route API selected for public endpoints. */ route: | DeploymentSetupStackSettingsPolicyRouteIngress1 | DeploymentSetupStackSettingsPolicyRouteGateway1; }; export const DeploymentSetupStackSettingsPolicyModeDisabled = { Disabled: "disabled", } as const; export type DeploymentSetupStackSettingsPolicyModeDisabled = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyModeDisabled >; export type DeploymentSetupStackSettingsPolicyExposureDisabled = { mode: DeploymentSetupStackSettingsPolicyModeDisabled; }; export type DeploymentSetupStackSettingsPolicyExposureUnion = | DeploymentSetupStackSettingsPolicyExposureCustom | DeploymentSetupStackSettingsPolicyExposureGenerated | DeploymentSetupStackSettingsPolicyExposureDisabled | any; /** * Kubernetes runtime substrate configuration. * * @remarks * * This controls how setup chooses the cluster backing `Platform::Kubernetes` * deployments. When omitted, cloud-backed Kubernetes deployments default to a * managed cluster and generic/on-prem Kubernetes defaults to an external * cluster. */ export type DeploymentSetupStackSettingsPolicyKubernetes = { cluster?: DeploymentSetupStackSettingsPolicyCluster | any | null | undefined; exposure?: | DeploymentSetupStackSettingsPolicyExposureCustom | DeploymentSetupStackSettingsPolicyExposureGenerated | DeploymentSetupStackSettingsPolicyExposureDisabled | any | null | undefined; }; export type DeploymentSetupStackSettingsPolicyKubernetesUnion = | DeploymentSetupStackSettingsPolicyKubernetes | any; export const DeploymentSetupStackSettingsPolicyTypeByoVnetAzure = { ByoVnetAzure: "byo-vnet-azure", } as const; export type DeploymentSetupStackSettingsPolicyTypeByoVnetAzure = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyTypeByoVnetAzure >; export type DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure = { /** * Name of the dedicated classic Application Gateway subnet within the VNet. */ applicationGatewaySubnetName?: string | null | undefined; /** * Name of the dedicated subnet that hosts Private Endpoints (e.g. for a * * @remarks * Postgres Flexible Server). A Private Endpoint must not share the private * subnet, which is already claimed by the Container Apps environment's * `infrastructure_subnet_id`. Required only when the stack contains a * Postgres resource; otherwise unused. */ privateEndpointSubnetName?: string | null | undefined; /** * Name of the private subnet within the VNet */ privateSubnetName: string; /** * Name of the public subnet within the VNet */ publicSubnetName: string; type: DeploymentSetupStackSettingsPolicyTypeByoVnetAzure; /** * The full resource ID of the existing VNet */ vnetResourceId: string; }; export const DeploymentSetupStackSettingsPolicyTypeByoVpcGcp = { ByoVpcGcp: "byo-vpc-gcp", } as const; export type DeploymentSetupStackSettingsPolicyTypeByoVpcGcp = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyTypeByoVpcGcp >; export type DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp = { /** * The name of the existing VPC network */ networkName: string; /** * The region of the subnet */ region: string; /** * The name of the subnet to use */ subnetName: string; type: DeploymentSetupStackSettingsPolicyTypeByoVpcGcp; }; export const DeploymentSetupStackSettingsPolicyTypeByoVpcAws = { ByoVpcAws: "byo-vpc-aws", } as const; export type DeploymentSetupStackSettingsPolicyTypeByoVpcAws = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyTypeByoVpcAws >; export type DeploymentSetupStackSettingsPolicyNetworkByoVpcAws = { /** * IDs of private subnets */ privateSubnetIds: Array; /** * IDs of public subnets (required for public ingress) */ publicSubnetIds: Array; /** * Optional security group IDs to use */ securityGroupIds?: Array | undefined; type: DeploymentSetupStackSettingsPolicyTypeByoVpcAws; /** * The ID of the existing VPC */ vpcId: string; }; export const DeploymentSetupStackSettingsPolicyTypeCreate = { Create: "create", } as const; export type DeploymentSetupStackSettingsPolicyTypeCreate = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyTypeCreate >; export type DeploymentSetupStackSettingsPolicyNetworkCreate = { /** * Number of availability zones (default: 2). */ availabilityZones?: number | undefined; /** * VPC/VNet CIDR block. If not specified, auto-generated from stack ID * * @remarks * to reduce conflicts (e.g., "10.{hash}.0.0/16"). */ cidr?: string | null | undefined; type: DeploymentSetupStackSettingsPolicyTypeCreate; }; export const DeploymentSetupStackSettingsPolicyTypeUseDefault = { UseDefault: "use-default", } as const; export type DeploymentSetupStackSettingsPolicyTypeUseDefault = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyTypeUseDefault >; export type DeploymentSetupStackSettingsPolicyNetworkUseDefault = { type: DeploymentSetupStackSettingsPolicyTypeUseDefault; }; export type DeploymentSetupStackSettingsPolicyNetworkUnion = | DeploymentSetupStackSettingsPolicyNetworkByoVpcAws | DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp | DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure | DeploymentSetupStackSettingsPolicyNetworkUseDefault | DeploymentSetupStackSettingsPolicyNetworkCreate | any; /** * How telemetry (logs, metrics, traces) is handled. */ export const DeploymentSetupStackSettingsPolicyTelemetry = { Off: "off", Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How telemetry (logs, metrics, traces) is handled. */ export type DeploymentSetupStackSettingsPolicyTelemetry = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyTelemetry >; /** * How updates are delivered to the deployment. */ export const DeploymentSetupStackSettingsPolicyUpdates = { Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How updates are delivered to the deployment. */ export type DeploymentSetupStackSettingsPolicyUpdates = ClosedEnum< typeof DeploymentSetupStackSettingsPolicyUpdates >; /** * User-customizable deployment settings specified at deploy time. * * @remarks * * These settings are provided by the customer via CloudFormation parameters, * Terraform attributes, CLI flags, or Helm values. They customize how the * deployment runs and what capabilities are enabled. * * **Key distinction**: StackSettings is user-customizable, while ManagementConfig * is platform-derived (from the Manager's ServiceAccount). */ export type Defaults = { compute?: DeploymentSetupStackSettingsPolicyCompute | any | null | undefined; /** * Deployment model: how updates are delivered to the remote environment. */ deploymentModel?: | DeploymentSetupStackSettingsPolicyDeploymentModel | undefined; domains?: DeploymentSetupStackSettingsPolicyDomains | any | null | undefined; /** * External bindings for pre-existing infrastructure. * * @remarks * Allows using existing resources (MinIO, Redis, shared Container Apps * Environment, etc.) instead of having Alien provision them. * Required for Kubernetes platform, optional for cloud platforms. */ externalBindings?: | DeploymentSetupStackSettingsPolicyExternalBindings | null | undefined; /** * How heartbeat health checks are handled. */ heartbeats?: DeploymentSetupStackSettingsPolicyHeartbeats | undefined; kubernetes?: | DeploymentSetupStackSettingsPolicyKubernetes | any | null | undefined; network?: | DeploymentSetupStackSettingsPolicyNetworkByoVpcAws | DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp | DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure | DeploymentSetupStackSettingsPolicyNetworkUseDefault | DeploymentSetupStackSettingsPolicyNetworkCreate | any | null | undefined; /** * Exact externally managed endpoint URLs, keyed by resource ID and endpoint name. * * @remarks * * This is intended for adopted Machines deployments whose DNS and certificates remain * customer-owned. The platform passes these URLs to the runtime without creating or * replacing DNS records or certificates. */ publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined; /** * How telemetry (logs, metrics, traces) is handled. */ telemetry?: DeploymentSetupStackSettingsPolicyTelemetry | undefined; /** * How updates are delivered to the deployment. */ updates?: DeploymentSetupStackSettingsPolicyUpdates | undefined; }; export const AllowedDeploymentModel = { Push: "push", Pull: "pull", Airgapped: "airgapped", } as const; export type AllowedDeploymentModel = ClosedEnum; export const AllowedNetworkMode = { None: "none", Create: "create", Default: "default", Byo: "byo", } as const; export type AllowedNetworkMode = ClosedEnum; export const AllowedUpdatesMode = { Auto: "auto", ApprovalRequired: "approval-required", } as const; export type AllowedUpdatesMode = ClosedEnum; export const AllowedTelemetryMode = { Auto: "auto", ApprovalRequired: "approval-required", Off: "off", } as const; export type AllowedTelemetryMode = ClosedEnum; export const AllowedHeartbeatsMode = { On: "on", Off: "off", } as const; export type AllowedHeartbeatsMode = ClosedEnum; export type DeploymentSetupStackSettingsPolicy = { /** * User-customizable deployment settings specified at deploy time. * * @remarks * * These settings are provided by the customer via CloudFormation parameters, * Terraform attributes, CLI flags, or Helm values. They customize how the * deployment runs and what capabilities are enabled. * * **Key distinction**: StackSettings is user-customizable, while ManagementConfig * is platform-derived (from the Manager's ServiceAccount). */ defaults?: Defaults | undefined; allowedDeploymentModels?: Array | undefined; allowedNetworkModes?: Array | undefined; allowedUpdatesModes?: Array | undefined; allowedTelemetryModes?: Array | undefined; allowedHeartbeatsModes?: Array | undefined; allowExternalBindings?: boolean | undefined; allowCustomRegistry?: boolean | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomains2$inboundSchema: z.ZodType = z .object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyFailureDomains2$Outbound = { selectedFailureDomains?: Array | undefined; spread: number; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomains2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyFailureDomains2$Outbound, DeploymentSetupStackSettingsPolicyFailureDomains2 > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function deploymentSetupStackSettingsPolicyFailureDomains2ToJSON( deploymentSetupStackSettingsPolicyFailureDomains2: DeploymentSetupStackSettingsPolicyFailureDomains2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyFailureDomains2$outboundSchema.parse( deploymentSetupStackSettingsPolicyFailureDomains2, ), ); } export function deploymentSetupStackSettingsPolicyFailureDomains2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyFailureDomains2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyFailureDomains2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyFailureDomains2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomainsUnion2$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains2$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyFailureDomainsUnion2$Outbound = | DeploymentSetupStackSettingsPolicyFailureDomains2$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomainsUnion2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyFailureDomainsUnion2$Outbound, DeploymentSetupStackSettingsPolicyFailureDomainsUnion2 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains2$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyFailureDomainsUnion2ToJSON( deploymentSetupStackSettingsPolicyFailureDomainsUnion2: DeploymentSetupStackSettingsPolicyFailureDomainsUnion2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyFailureDomainsUnion2$outboundSchema.parse( deploymentSetupStackSettingsPolicyFailureDomainsUnion2, ), ); } export function deploymentSetupStackSettingsPolicyFailureDomainsUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyFailureDomainsUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyFailureDomainsUnion2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyFailureDomainsUnion2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyPoolsAutoscale$inboundSchema: z.ZodType = z .object({ failure_domains: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains2$inboundSchema ), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), max: z.int(), min: z.int(), mode: z.literal("autoscale"), }).transform((v) => { return remap$(v, { "failure_domains": "failureDomains", }); }); /** @internal */ export type DeploymentSetupStackSettingsPolicyPoolsAutoscale$Outbound = { failure_domains?: | DeploymentSetupStackSettingsPolicyFailureDomains2$Outbound | any | null | undefined; machine?: string | null | undefined; max: number; min: number; mode: "autoscale"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyPoolsAutoscale$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPoolsAutoscale$Outbound, DeploymentSetupStackSettingsPolicyPoolsAutoscale > = z.object({ failureDomains: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains2$outboundSchema ), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), max: z.int(), min: z.int(), mode: z.literal("autoscale"), }).transform((v) => { return remap$(v, { failureDomains: "failure_domains", }); }); export function deploymentSetupStackSettingsPolicyPoolsAutoscaleToJSON( deploymentSetupStackSettingsPolicyPoolsAutoscale: DeploymentSetupStackSettingsPolicyPoolsAutoscale, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyPoolsAutoscale$outboundSchema.parse( deploymentSetupStackSettingsPolicyPoolsAutoscale, ), ); } export function deploymentSetupStackSettingsPolicyPoolsAutoscaleFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyPoolsAutoscale, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyPoolsAutoscale$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyPoolsAutoscale' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomains1$inboundSchema: z.ZodType = z .object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyFailureDomains1$Outbound = { selectedFailureDomains?: Array | undefined; spread: number; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomains1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyFailureDomains1$Outbound, DeploymentSetupStackSettingsPolicyFailureDomains1 > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function deploymentSetupStackSettingsPolicyFailureDomains1ToJSON( deploymentSetupStackSettingsPolicyFailureDomains1: DeploymentSetupStackSettingsPolicyFailureDomains1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyFailureDomains1$outboundSchema.parse( deploymentSetupStackSettingsPolicyFailureDomains1, ), ); } export function deploymentSetupStackSettingsPolicyFailureDomains1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyFailureDomains1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyFailureDomains1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyFailureDomains1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomainsUnion1$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains1$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyFailureDomainsUnion1$Outbound = | DeploymentSetupStackSettingsPolicyFailureDomains1$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyFailureDomainsUnion1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyFailureDomainsUnion1$Outbound, DeploymentSetupStackSettingsPolicyFailureDomainsUnion1 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains1$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyFailureDomainsUnion1ToJSON( deploymentSetupStackSettingsPolicyFailureDomainsUnion1: DeploymentSetupStackSettingsPolicyFailureDomainsUnion1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyFailureDomainsUnion1$outboundSchema.parse( deploymentSetupStackSettingsPolicyFailureDomainsUnion1, ), ); } export function deploymentSetupStackSettingsPolicyFailureDomainsUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyFailureDomainsUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyFailureDomainsUnion1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyFailureDomainsUnion1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyPoolsFixed$inboundSchema: z.ZodType = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains1$inboundSchema ), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), machines: z.int(), mode: z.literal("fixed"), }).transform((v) => { return remap$(v, { "failure_domains": "failureDomains", }); }); /** @internal */ export type DeploymentSetupStackSettingsPolicyPoolsFixed$Outbound = { failure_domains?: | DeploymentSetupStackSettingsPolicyFailureDomains1$Outbound | any | null | undefined; machine?: string | null | undefined; machines: number; mode: "fixed"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyPoolsFixed$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPoolsFixed$Outbound, DeploymentSetupStackSettingsPolicyPoolsFixed > = z.object({ failureDomains: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyFailureDomains1$outboundSchema ), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), machines: z.int(), mode: z.literal("fixed"), }).transform((v) => { return remap$(v, { failureDomains: "failure_domains", }); }); export function deploymentSetupStackSettingsPolicyPoolsFixedToJSON( deploymentSetupStackSettingsPolicyPoolsFixed: DeploymentSetupStackSettingsPolicyPoolsFixed, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyPoolsFixed$outboundSchema.parse( deploymentSetupStackSettingsPolicyPoolsFixed, ), ); } export function deploymentSetupStackSettingsPolicyPoolsFixedFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyPoolsFixed, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyPoolsFixed$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyPoolsFixed' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyPoolsUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsFixed$inboundSchema), z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsAutoscale$inboundSchema ), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyPoolsUnion$Outbound = | DeploymentSetupStackSettingsPolicyPoolsFixed$Outbound | DeploymentSetupStackSettingsPolicyPoolsAutoscale$Outbound; /** @internal */ export const DeploymentSetupStackSettingsPolicyPoolsUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPoolsUnion$Outbound, DeploymentSetupStackSettingsPolicyPoolsUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsFixed$outboundSchema), z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsAutoscale$outboundSchema ), ]); export function deploymentSetupStackSettingsPolicyPoolsUnionToJSON( deploymentSetupStackSettingsPolicyPoolsUnion: DeploymentSetupStackSettingsPolicyPoolsUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyPoolsUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyPoolsUnion, ), ); } export function deploymentSetupStackSettingsPolicyPoolsUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyPoolsUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyPoolsUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyPoolsUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCompute$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCompute, unknown > = z.object({ pools: z.record( z.string(), z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsFixed$inboundSchema), z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsAutoscale$inboundSchema ), ]), ).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCompute$Outbound = { pools?: { [k: string]: | DeploymentSetupStackSettingsPolicyPoolsFixed$Outbound | DeploymentSetupStackSettingsPolicyPoolsAutoscale$Outbound; } | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCompute$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCompute$Outbound, DeploymentSetupStackSettingsPolicyCompute > = z.object({ pools: z.record( z.string(), z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsFixed$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyPoolsAutoscale$outboundSchema ), ]), ).optional(), }); export function deploymentSetupStackSettingsPolicyComputeToJSON( deploymentSetupStackSettingsPolicyCompute: DeploymentSetupStackSettingsPolicyCompute, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCompute$outboundSchema.parse( deploymentSetupStackSettingsPolicyCompute, ), ); } export function deploymentSetupStackSettingsPolicyComputeFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCompute, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCompute$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCompute' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyComputeUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCompute$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyComputeUnion$Outbound = | DeploymentSetupStackSettingsPolicyCompute$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyComputeUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyComputeUnion$Outbound, DeploymentSetupStackSettingsPolicyComputeUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCompute$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyComputeUnionToJSON( deploymentSetupStackSettingsPolicyComputeUnion: DeploymentSetupStackSettingsPolicyComputeUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyComputeUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyComputeUnion, ), ); } export function deploymentSetupStackSettingsPolicyComputeUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyComputeUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyComputeUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyComputeUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyDeploymentModel$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyDeploymentModel, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyDeploymentModel$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyDeploymentModel$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyAws$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyAws, unknown > = z.object({ certificateArn: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyAws$Outbound = { certificateArn: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyAws$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyAws$Outbound, DeploymentSetupStackSettingsPolicyAws > = z.object({ certificateArn: z.string(), }); export function deploymentSetupStackSettingsPolicyAwsToJSON( deploymentSetupStackSettingsPolicyAws: DeploymentSetupStackSettingsPolicyAws, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyAws$outboundSchema.parse( deploymentSetupStackSettingsPolicyAws, ), ); } export function deploymentSetupStackSettingsPolicyAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyAws' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyAwsUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAws$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyAwsUnion$Outbound = | DeploymentSetupStackSettingsPolicyAws$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyAwsUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyAwsUnion$Outbound, DeploymentSetupStackSettingsPolicyAwsUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAws$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyAwsUnionToJSON( deploymentSetupStackSettingsPolicyAwsUnion: DeploymentSetupStackSettingsPolicyAwsUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyAwsUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyAwsUnion, ), ); } export function deploymentSetupStackSettingsPolicyAwsUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyAwsUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyAwsUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyAwsUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyAzure$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyAzure, unknown > = z.object({ keyVaultCertificateId: z.string(), keyVaultResourceId: z.nullable(z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyAzure$Outbound = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyAzure$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyAzure$Outbound, DeploymentSetupStackSettingsPolicyAzure > = z.object({ keyVaultCertificateId: z.string(), keyVaultResourceId: z.nullable(z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyAzureToJSON( deploymentSetupStackSettingsPolicyAzure: DeploymentSetupStackSettingsPolicyAzure, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyAzure$outboundSchema.parse( deploymentSetupStackSettingsPolicyAzure, ), ); } export function deploymentSetupStackSettingsPolicyAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyAzure' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyAzureUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAzure$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyAzureUnion$Outbound = | DeploymentSetupStackSettingsPolicyAzure$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyAzureUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyAzureUnion$Outbound, DeploymentSetupStackSettingsPolicyAzureUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAzure$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyAzureUnionToJSON( deploymentSetupStackSettingsPolicyAzureUnion: DeploymentSetupStackSettingsPolicyAzureUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyAzureUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyAzureUnion, ), ); } export function deploymentSetupStackSettingsPolicyAzureUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyAzureUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyAzureUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyAzureUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyGcp$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyGcp, unknown > = z.object({ certificateName: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyGcp$Outbound = { certificateName: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyGcp$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyGcp$Outbound, DeploymentSetupStackSettingsPolicyGcp > = z.object({ certificateName: z.string(), }); export function deploymentSetupStackSettingsPolicyGcpToJSON( deploymentSetupStackSettingsPolicyGcp: DeploymentSetupStackSettingsPolicyGcp, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyGcp$outboundSchema.parse( deploymentSetupStackSettingsPolicyGcp, ), ); } export function deploymentSetupStackSettingsPolicyGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyGcp' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyGcpUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyGcp$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyGcpUnion$Outbound = | DeploymentSetupStackSettingsPolicyGcp$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyGcpUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyGcpUnion$Outbound, DeploymentSetupStackSettingsPolicyGcpUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyGcp$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyGcpUnionToJSON( deploymentSetupStackSettingsPolicyGcpUnion: DeploymentSetupStackSettingsPolicyGcpUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyGcpUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyGcpUnion, ), ); } export function deploymentSetupStackSettingsPolicyGcpUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyGcpUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyGcpUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyGcpUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTlsSecretRef$inboundSchema: z.ZodType = z.object( { namespace: z.nullable(z.string()).optional(), secretName: z.string(), }, ); /** @internal */ export type DeploymentSetupStackSettingsPolicyTlsSecretRef$Outbound = { namespace?: string | null | undefined; secretName: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyTlsSecretRef$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyTlsSecretRef$Outbound, DeploymentSetupStackSettingsPolicyTlsSecretRef > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), }); export function deploymentSetupStackSettingsPolicyTlsSecretRefToJSON( deploymentSetupStackSettingsPolicyTlsSecretRef: DeploymentSetupStackSettingsPolicyTlsSecretRef, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyTlsSecretRef$outboundSchema.parse( deploymentSetupStackSettingsPolicyTlsSecretRef, ), ); } export function deploymentSetupStackSettingsPolicyTlsSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyTlsSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyTlsSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyTlsSecretRef' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsKubernetes$inboundSchema: z.ZodType = z .object({ tlsSecretRef: z.lazy(() => DeploymentSetupStackSettingsPolicyTlsSecretRef$inboundSchema ), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyDomainsKubernetes$Outbound = { tlsSecretRef: DeploymentSetupStackSettingsPolicyTlsSecretRef$Outbound; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsKubernetes$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyDomainsKubernetes$Outbound, DeploymentSetupStackSettingsPolicyDomainsKubernetes > = z.object({ tlsSecretRef: z.lazy(() => DeploymentSetupStackSettingsPolicyTlsSecretRef$outboundSchema ), }); export function deploymentSetupStackSettingsPolicyDomainsKubernetesToJSON( deploymentSetupStackSettingsPolicyDomainsKubernetes: DeploymentSetupStackSettingsPolicyDomainsKubernetes, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyDomainsKubernetes$outboundSchema.parse( deploymentSetupStackSettingsPolicyDomainsKubernetes, ), ); } export function deploymentSetupStackSettingsPolicyDomainsKubernetesFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyDomainsKubernetes, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyDomainsKubernetes$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyDomainsKubernetes' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomainsKubernetes$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion$Outbound = | DeploymentSetupStackSettingsPolicyDomainsKubernetes$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion$Outbound, DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomainsKubernetes$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyDomainsKubernetesUnionToJSON( deploymentSetupStackSettingsPolicyDomainsKubernetesUnion: DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion$outboundSchema .parse(deploymentSetupStackSettingsPolicyDomainsKubernetesUnion), ); } export function deploymentSetupStackSettingsPolicyDomainsKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyDomainsKubernetesUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsCertificate$inboundSchema: z.ZodType = z .object({ aws: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAws$inboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAzure$inboundSchema), z.any(), ]), ).optional(), gcp: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyGcp$inboundSchema), z.any(), ]), ).optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomainsKubernetes$inboundSchema ), z.any(), ]), ).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyDomainsCertificate$Outbound = { aws?: DeploymentSetupStackSettingsPolicyAws$Outbound | any | null | undefined; azure?: | DeploymentSetupStackSettingsPolicyAzure$Outbound | any | null | undefined; gcp?: DeploymentSetupStackSettingsPolicyGcp$Outbound | any | null | undefined; kubernetes?: | DeploymentSetupStackSettingsPolicyDomainsKubernetes$Outbound | any | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsCertificate$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyDomainsCertificate$Outbound, DeploymentSetupStackSettingsPolicyDomainsCertificate > = z.object({ aws: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAws$outboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyAzure$outboundSchema), z.any(), ]), ).optional(), gcp: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyGcp$outboundSchema), z.any(), ]), ).optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomainsKubernetes$outboundSchema ), z.any(), ]), ).optional(), }); export function deploymentSetupStackSettingsPolicyDomainsCertificateToJSON( deploymentSetupStackSettingsPolicyDomainsCertificate: DeploymentSetupStackSettingsPolicyDomainsCertificate, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyDomainsCertificate$outboundSchema.parse( deploymentSetupStackSettingsPolicyDomainsCertificate, ), ); } export function deploymentSetupStackSettingsPolicyDomainsCertificateFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyDomainsCertificate, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyDomainsCertificate$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyDomainsCertificate' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCustomDomains$inboundSchema: z.ZodType = z .object({ certificate: z.lazy(() => DeploymentSetupStackSettingsPolicyDomainsCertificate$inboundSchema ), domain: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCustomDomains$Outbound = { certificate: DeploymentSetupStackSettingsPolicyDomainsCertificate$Outbound; domain: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCustomDomains$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCustomDomains$Outbound, DeploymentSetupStackSettingsPolicyCustomDomains > = z.object({ certificate: z.lazy(() => DeploymentSetupStackSettingsPolicyDomainsCertificate$outboundSchema ), domain: z.string(), }); export function deploymentSetupStackSettingsPolicyCustomDomainsToJSON( deploymentSetupStackSettingsPolicyCustomDomains: DeploymentSetupStackSettingsPolicyCustomDomains, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCustomDomains$outboundSchema.parse( deploymentSetupStackSettingsPolicyCustomDomains, ), ); } export function deploymentSetupStackSettingsPolicyCustomDomainsFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCustomDomains, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCustomDomains$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCustomDomains' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyModeLoadBalancer$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyModeLoadBalancer, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyModeLoadBalancer$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyModeLoadBalancer$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer, unknown > = z.object({ cnameTarget: z.string(), mode: DeploymentSetupStackSettingsPolicyModeLoadBalancer$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$Outbound = { cnameTarget: string; mode: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$Outbound, DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer > = z.object({ cnameTarget: z.string(), mode: DeploymentSetupStackSettingsPolicyModeLoadBalancer$outboundSchema, }); export function deploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancerToJSON( deploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer: DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$outboundSchema .parse( deploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer, ), ); } export function deploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancerFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyModeMachineAddresses$inboundSchema: z.ZodEnum = z .enum(DeploymentSetupStackSettingsPolicyModeMachineAddresses); /** @internal */ export const DeploymentSetupStackSettingsPolicyModeMachineAddresses$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyModeMachineAddresses$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses, unknown > = z.object({ mode: DeploymentSetupStackSettingsPolicyModeMachineAddresses$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$Outbound = { mode: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$Outbound, DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses > = z.object({ mode: DeploymentSetupStackSettingsPolicyModeMachineAddresses$outboundSchema, }); export function deploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddressesToJSON( deploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses: DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$outboundSchema .parse( deploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses, ), ); } export function deploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddressesFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion, unknown > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion$Outbound = | DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$Outbound | DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion$Outbound, DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyPublicEndpointTargetUnionToJSON( deploymentSetupStackSettingsPolicyPublicEndpointTargetUnion: DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion$outboundSchema .parse(deploymentSetupStackSettingsPolicyPublicEndpointTargetUnion), ); } export function deploymentSetupStackSettingsPolicyPublicEndpointTargetUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyPublicEndpointTargetUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyDomains$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyDomains, unknown > = z.object({ customDomains: z.nullable( z.record( z.string(), z.lazy(() => DeploymentSetupStackSettingsPolicyCustomDomains$inboundSchema ), ), ).optional(), publicEndpointTarget: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]), ).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyDomains$Outbound = { customDomains?: | { [k: string]: DeploymentSetupStackSettingsPolicyCustomDomains$Outbound } | null | undefined; publicEndpointTarget?: | DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$Outbound | DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$Outbound | any | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyDomains$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyDomains$Outbound, DeploymentSetupStackSettingsPolicyDomains > = z.object({ customDomains: z.nullable( z.record( z.string(), z.lazy(() => DeploymentSetupStackSettingsPolicyCustomDomains$outboundSchema ), ), ).optional(), publicEndpointTarget: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetLoadBalancer$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyPublicEndpointTargetMachineAddresses$outboundSchema ), z.any(), ]), ).optional(), }); export function deploymentSetupStackSettingsPolicyDomainsToJSON( deploymentSetupStackSettingsPolicyDomains: DeploymentSetupStackSettingsPolicyDomains, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyDomains$outboundSchema.parse( deploymentSetupStackSettingsPolicyDomains, ), ); } export function deploymentSetupStackSettingsPolicyDomainsFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyDomains, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyDomains$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyDomains' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomains$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyDomainsUnion$Outbound = | DeploymentSetupStackSettingsPolicyDomains$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyDomainsUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyDomainsUnion$Outbound, DeploymentSetupStackSettingsPolicyDomainsUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomains$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyDomainsUnionToJSON( deploymentSetupStackSettingsPolicyDomainsUnion: DeploymentSetupStackSettingsPolicyDomainsUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyDomainsUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyDomainsUnion, ), ); } export function deploymentSetupStackSettingsPolicyDomainsUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyDomainsUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyDomainsUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyDomainsUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyExternalBindings$inboundSchema: z.ZodType = z .object({}); /** @internal */ export type DeploymentSetupStackSettingsPolicyExternalBindings$Outbound = {}; /** @internal */ export const DeploymentSetupStackSettingsPolicyExternalBindings$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyExternalBindings$Outbound, DeploymentSetupStackSettingsPolicyExternalBindings > = z.object({}); export function deploymentSetupStackSettingsPolicyExternalBindingsToJSON( deploymentSetupStackSettingsPolicyExternalBindings: DeploymentSetupStackSettingsPolicyExternalBindings, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyExternalBindings$outboundSchema.parse( deploymentSetupStackSettingsPolicyExternalBindings, ), ); } export function deploymentSetupStackSettingsPolicyExternalBindingsFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyExternalBindings, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyExternalBindings$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyExternalBindings' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyHeartbeats$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyHeartbeats, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyHeartbeats$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyHeartbeats$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyCloud$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCloud, unknown > = z.object({ accountId: z.nullable(z.string()).optional(), clusterId: z.nullable(z.string()).optional(), clusterName: z.nullable(z.string()).optional(), projectId: z.nullable(z.string()).optional(), region: z.nullable(z.string()).optional(), resourceGroup: z.nullable(z.string()).optional(), subscriptionId: z.nullable(z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCloud$Outbound = { accountId?: string | null | undefined; clusterId?: string | null | undefined; clusterName?: string | null | undefined; projectId?: string | null | undefined; region?: string | null | undefined; resourceGroup?: string | null | undefined; subscriptionId?: string | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCloud$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCloud$Outbound, DeploymentSetupStackSettingsPolicyCloud > = z.object({ accountId: z.nullable(z.string()).optional(), clusterId: z.nullable(z.string()).optional(), clusterName: z.nullable(z.string()).optional(), projectId: z.nullable(z.string()).optional(), region: z.nullable(z.string()).optional(), resourceGroup: z.nullable(z.string()).optional(), subscriptionId: z.nullable(z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyCloudToJSON( deploymentSetupStackSettingsPolicyCloud: DeploymentSetupStackSettingsPolicyCloud, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCloud$outboundSchema.parse( deploymentSetupStackSettingsPolicyCloud, ), ); } export function deploymentSetupStackSettingsPolicyCloudFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCloud, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCloud$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCloud' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCloudUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCloud$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyCloudUnion$Outbound = | DeploymentSetupStackSettingsPolicyCloud$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyCloudUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCloudUnion$Outbound, DeploymentSetupStackSettingsPolicyCloudUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCloud$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyCloudUnionToJSON( deploymentSetupStackSettingsPolicyCloudUnion: DeploymentSetupStackSettingsPolicyCloudUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCloudUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyCloudUnion, ), ); } export function deploymentSetupStackSettingsPolicyCloudUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCloudUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCloudUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCloudUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyOwnership$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyOwnership, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyOwnership$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyOwnership$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyCluster$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCluster, unknown > = z.object({ cloud: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCloud$inboundSchema), z.any(), ]), ).optional(), namespace: z.nullable(z.string()).optional(), ownership: DeploymentSetupStackSettingsPolicyOwnership$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCluster$Outbound = { cloud?: | DeploymentSetupStackSettingsPolicyCloud$Outbound | any | null | undefined; namespace?: string | null | undefined; ownership: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCluster$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCluster$Outbound, DeploymentSetupStackSettingsPolicyCluster > = z.object({ cloud: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCloud$outboundSchema), z.any(), ]), ).optional(), namespace: z.nullable(z.string()).optional(), ownership: DeploymentSetupStackSettingsPolicyOwnership$outboundSchema, }); export function deploymentSetupStackSettingsPolicyClusterToJSON( deploymentSetupStackSettingsPolicyCluster: DeploymentSetupStackSettingsPolicyCluster, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCluster$outboundSchema.parse( deploymentSetupStackSettingsPolicyCluster, ), ); } export function deploymentSetupStackSettingsPolicyClusterFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCluster, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCluster$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCluster' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyClusterUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCluster$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyClusterUnion$Outbound = | DeploymentSetupStackSettingsPolicyCluster$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyClusterUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyClusterUnion$Outbound, DeploymentSetupStackSettingsPolicyClusterUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCluster$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyClusterUnionToJSON( deploymentSetupStackSettingsPolicyClusterUnion: DeploymentSetupStackSettingsPolicyClusterUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyClusterUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyClusterUnion, ), ); } export function deploymentSetupStackSettingsPolicyClusterUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyClusterUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyClusterUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyClusterUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateNone2$inboundSchema: z.ZodType = z .object({ mode: z.literal("none"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateNone2$Outbound = { mode: "none"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateNone2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateNone2$Outbound, DeploymentSetupStackSettingsPolicyCertificateNone2 > = z.object({ mode: z.literal("none"), }); export function deploymentSetupStackSettingsPolicyCertificateNone2ToJSON( deploymentSetupStackSettingsPolicyCertificateNone2: DeploymentSetupStackSettingsPolicyCertificateNone2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateNone2$outboundSchema.parse( deploymentSetupStackSettingsPolicyCertificateNone2, ), ); } export function deploymentSetupStackSettingsPolicyCertificateNone2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateNone2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateNone2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateNone2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2, unknown > = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$Outbound = { mode: "managedTlsSecret"; secretNameTemplate: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$Outbound, DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2 > = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2ToJSON( deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2: DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2), ); } export function deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$inboundSchema: z.ZodType = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$Outbound = { certificateArn: string; mode: "awsAcmArn"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$Outbound, DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2 > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function deploymentSetupStackSettingsPolicyCertificateAwsAcmArn2ToJSON( deploymentSetupStackSettingsPolicyCertificateAwsAcmArn2: DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateAwsAcmArn2), ); } export function deploymentSetupStackSettingsPolicyCertificateAwsAcmArn2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2, unknown > = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$Outbound = { mode: "managedAcmImport"; region?: string | null | undefined; tags?: { [k: string]: string } | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$Outbound, DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2 > = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyCertificateManagedAcmImport2ToJSON( deploymentSetupStackSettingsPolicyCertificateManagedAcmImport2: DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateManagedAcmImport2), ); } export function deploymentSetupStackSettingsPolicyCertificateManagedAcmImport2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$Outbound = { namespace?: string | null | undefined; secretName: string; mode: "tlsSecretRef"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$Outbound, DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2 > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function deploymentSetupStackSettingsPolicyCertificateTLSSecretRef2ToJSON( deploymentSetupStackSettingsPolicyCertificateTLSSecretRef2: DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateTLSSecretRef2), ); } export function deploymentSetupStackSettingsPolicyCertificateTLSSecretRef2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateUnion2$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone2$inboundSchema ), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateUnion2$Outbound = | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$Outbound | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$Outbound | DeploymentSetupStackSettingsPolicyCertificateNone2$Outbound; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateUnion2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateUnion2$Outbound, DeploymentSetupStackSettingsPolicyCertificateUnion2 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone2$outboundSchema ), ]); export function deploymentSetupStackSettingsPolicyCertificateUnion2ToJSON( deploymentSetupStackSettingsPolicyCertificateUnion2: DeploymentSetupStackSettingsPolicyCertificateUnion2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateUnion2$outboundSchema.parse( deploymentSetupStackSettingsPolicyCertificateUnion2, ), ); } export function deploymentSetupStackSettingsPolicyCertificateUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateUnion2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyModeCustom$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyModeCustom, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyModeCustom$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyModeCustom$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4$inboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4 > = z.enum( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4$outboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4 > = DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$Outbound, DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum4$outboundSchema, }); export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4ToJSON( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$outboundSchema .parse( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4, ), ); } export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4$inboundSchema: z.ZodEnum = z.enum(DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway4$inboundSchema: z.ZodType = z .object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderGkeGateway4$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway4$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderGkeGateway4$Outbound, DeploymentSetupStackSettingsPolicyProviderGkeGateway4 > = z.object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum4$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyProviderGkeGateway4ToJSON( deploymentSetupStackSettingsPolicyProviderGkeGateway4: DeploymentSetupStackSettingsPolicyProviderGkeGateway4, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderGkeGateway4$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderGkeGateway4, ), ); } export function deploymentSetupStackSettingsPolicyProviderGkeGateway4FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderGkeGateway4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderGkeGateway4$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderGkeGateway4' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4$inboundSchema: z.ZodEnum = z .enum(DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb4$inboundSchema: z.ZodType = z .object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAwsAlb4$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb4$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAwsAlb4$Outbound, DeploymentSetupStackSettingsPolicyProviderAwsAlb4 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum4$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentSetupStackSettingsPolicyProviderAwsAlb4ToJSON( deploymentSetupStackSettingsPolicyProviderAwsAlb4: DeploymentSetupStackSettingsPolicyProviderAwsAlb4, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAwsAlb4$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderAwsAlb4, ), ); } export function deploymentSetupStackSettingsPolicyProviderAwsAlb4FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAwsAlb4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAwsAlb4$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAwsAlb4' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion4$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb4$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway4$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderUnion4$Outbound = | DeploymentSetupStackSettingsPolicyProviderAwsAlb4$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway4$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion4$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderUnion4$Outbound, DeploymentSetupStackSettingsPolicyProviderUnion4 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb4$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway4$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyProviderUnion4ToJSON( deploymentSetupStackSettingsPolicyProviderUnion4: DeploymentSetupStackSettingsPolicyProviderUnion4, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderUnion4$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderUnion4, ), ); } export function deploymentSetupStackSettingsPolicyProviderUnion4FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderUnion4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderUnion4$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderUnion4' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteGateway2$inboundSchema: z.ZodType = z .object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb4$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway4$inboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyRouteGateway2$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; gatewayClassName: string; labels?: { [k: string]: string } | undefined; listenerPort: number; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb4$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway4$Outbound | any | null | undefined; routeApi: "gateway"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteGateway2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyRouteGateway2$Outbound, DeploymentSetupStackSettingsPolicyRouteGateway2 > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb4$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers4$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway4$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function deploymentSetupStackSettingsPolicyRouteGateway2ToJSON( deploymentSetupStackSettingsPolicyRouteGateway2: DeploymentSetupStackSettingsPolicyRouteGateway2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyRouteGateway2$outboundSchema.parse( deploymentSetupStackSettingsPolicyRouteGateway2, ), ); } export function deploymentSetupStackSettingsPolicyRouteGateway2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyRouteGateway2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyRouteGateway2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyRouteGateway2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3$inboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3 > = z.enum( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3$outboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3 > = DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$Outbound, DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum3$outboundSchema, }); export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3ToJSON( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$outboundSchema .parse( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3, ), ); } export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3$inboundSchema: z.ZodEnum = z.enum(DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway3$inboundSchema: z.ZodType = z .object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderGkeGateway3$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway3$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderGkeGateway3$Outbound, DeploymentSetupStackSettingsPolicyProviderGkeGateway3 > = z.object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum3$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyProviderGkeGateway3ToJSON( deploymentSetupStackSettingsPolicyProviderGkeGateway3: DeploymentSetupStackSettingsPolicyProviderGkeGateway3, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderGkeGateway3$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderGkeGateway3, ), ); } export function deploymentSetupStackSettingsPolicyProviderGkeGateway3FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderGkeGateway3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderGkeGateway3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderGkeGateway3' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3$inboundSchema: z.ZodEnum = z .enum(DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb3$inboundSchema: z.ZodType = z .object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAwsAlb3$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb3$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAwsAlb3$Outbound, DeploymentSetupStackSettingsPolicyProviderAwsAlb3 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum3$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentSetupStackSettingsPolicyProviderAwsAlb3ToJSON( deploymentSetupStackSettingsPolicyProviderAwsAlb3: DeploymentSetupStackSettingsPolicyProviderAwsAlb3, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAwsAlb3$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderAwsAlb3, ), ); } export function deploymentSetupStackSettingsPolicyProviderAwsAlb3FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAwsAlb3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAwsAlb3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAwsAlb3' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion3$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb3$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway3$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderUnion3$Outbound = | DeploymentSetupStackSettingsPolicyProviderAwsAlb3$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway3$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion3$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderUnion3$Outbound, DeploymentSetupStackSettingsPolicyProviderUnion3 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb3$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway3$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyProviderUnion3ToJSON( deploymentSetupStackSettingsPolicyProviderUnion3: DeploymentSetupStackSettingsPolicyProviderUnion3, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderUnion3$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderUnion3, ), ); } export function deploymentSetupStackSettingsPolicyProviderUnion3FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderUnion3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderUnion3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderUnion3' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteIngress2$inboundSchema: z.ZodType = z .object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb3$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway3$inboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyRouteIngress2$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; ingressClassName: string; labels?: { [k: string]: string } | undefined; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb3$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway3$Outbound | any | null | undefined; routeApi: "ingress"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteIngress2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyRouteIngress2$Outbound, DeploymentSetupStackSettingsPolicyRouteIngress2 > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb3$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers3$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway3$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function deploymentSetupStackSettingsPolicyRouteIngress2ToJSON( deploymentSetupStackSettingsPolicyRouteIngress2: DeploymentSetupStackSettingsPolicyRouteIngress2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyRouteIngress2$outboundSchema.parse( deploymentSetupStackSettingsPolicyRouteIngress2, ), ); } export function deploymentSetupStackSettingsPolicyRouteIngress2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyRouteIngress2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyRouteIngress2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyRouteIngress2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteUnion2$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress2$inboundSchema), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway2$inboundSchema), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyRouteUnion2$Outbound = | DeploymentSetupStackSettingsPolicyRouteIngress2$Outbound | DeploymentSetupStackSettingsPolicyRouteGateway2$Outbound; /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteUnion2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyRouteUnion2$Outbound, DeploymentSetupStackSettingsPolicyRouteUnion2 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway2$outboundSchema ), ]); export function deploymentSetupStackSettingsPolicyRouteUnion2ToJSON( deploymentSetupStackSettingsPolicyRouteUnion2: DeploymentSetupStackSettingsPolicyRouteUnion2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyRouteUnion2$outboundSchema.parse( deploymentSetupStackSettingsPolicyRouteUnion2, ), ); } export function deploymentSetupStackSettingsPolicyRouteUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyRouteUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyRouteUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyRouteUnion2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureCustom$inboundSchema: z.ZodType = z .object({ certificate: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone2$inboundSchema ), ]), domain: z.string(), mode: DeploymentSetupStackSettingsPolicyModeCustom$inboundSchema, route: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway2$inboundSchema ), ]), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyExposureCustom$Outbound = { certificate: | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$Outbound | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$Outbound | DeploymentSetupStackSettingsPolicyCertificateNone2$Outbound; domain: string; mode: string; route: | DeploymentSetupStackSettingsPolicyRouteIngress2$Outbound | DeploymentSetupStackSettingsPolicyRouteGateway2$Outbound; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureCustom$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyExposureCustom$Outbound, DeploymentSetupStackSettingsPolicyExposureCustom > = z.object({ certificate: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone2$outboundSchema ), ]), domain: z.string(), mode: DeploymentSetupStackSettingsPolicyModeCustom$outboundSchema, route: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway2$outboundSchema ), ]), }); export function deploymentSetupStackSettingsPolicyExposureCustomToJSON( deploymentSetupStackSettingsPolicyExposureCustom: DeploymentSetupStackSettingsPolicyExposureCustom, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyExposureCustom$outboundSchema.parse( deploymentSetupStackSettingsPolicyExposureCustom, ), ); } export function deploymentSetupStackSettingsPolicyExposureCustomFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyExposureCustom, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyExposureCustom$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyExposureCustom' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateNone1$inboundSchema: z.ZodType = z .object({ mode: z.literal("none"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateNone1$Outbound = { mode: "none"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateNone1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateNone1$Outbound, DeploymentSetupStackSettingsPolicyCertificateNone1 > = z.object({ mode: z.literal("none"), }); export function deploymentSetupStackSettingsPolicyCertificateNone1ToJSON( deploymentSetupStackSettingsPolicyCertificateNone1: DeploymentSetupStackSettingsPolicyCertificateNone1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateNone1$outboundSchema.parse( deploymentSetupStackSettingsPolicyCertificateNone1, ), ); } export function deploymentSetupStackSettingsPolicyCertificateNone1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateNone1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateNone1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateNone1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1, unknown > = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$Outbound = { mode: "managedTlsSecret"; secretNameTemplate: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$Outbound, DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1 > = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1ToJSON( deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1: DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1), ); } export function deploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$inboundSchema: z.ZodType = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$Outbound = { certificateArn: string; mode: "awsAcmArn"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$Outbound, DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1 > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function deploymentSetupStackSettingsPolicyCertificateAwsAcmArn1ToJSON( deploymentSetupStackSettingsPolicyCertificateAwsAcmArn1: DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateAwsAcmArn1), ); } export function deploymentSetupStackSettingsPolicyCertificateAwsAcmArn1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1, unknown > = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$Outbound = { mode: "managedAcmImport"; region?: string | null | undefined; tags?: { [k: string]: string } | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$Outbound, DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1 > = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyCertificateManagedAcmImport1ToJSON( deploymentSetupStackSettingsPolicyCertificateManagedAcmImport1: DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateManagedAcmImport1), ); } export function deploymentSetupStackSettingsPolicyCertificateManagedAcmImport1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$Outbound = { namespace?: string | null | undefined; secretName: string; mode: "tlsSecretRef"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$Outbound, DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1 > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function deploymentSetupStackSettingsPolicyCertificateTLSSecretRef1ToJSON( deploymentSetupStackSettingsPolicyCertificateTLSSecretRef1: DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$outboundSchema .parse(deploymentSetupStackSettingsPolicyCertificateTLSSecretRef1), ); } export function deploymentSetupStackSettingsPolicyCertificateTLSSecretRef1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateUnion1$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone1$inboundSchema ), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyCertificateUnion1$Outbound = | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$Outbound | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$Outbound | DeploymentSetupStackSettingsPolicyCertificateNone1$Outbound; /** @internal */ export const DeploymentSetupStackSettingsPolicyCertificateUnion1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyCertificateUnion1$Outbound, DeploymentSetupStackSettingsPolicyCertificateUnion1 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone1$outboundSchema ), ]); export function deploymentSetupStackSettingsPolicyCertificateUnion1ToJSON( deploymentSetupStackSettingsPolicyCertificateUnion1: DeploymentSetupStackSettingsPolicyCertificateUnion1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyCertificateUnion1$outboundSchema.parse( deploymentSetupStackSettingsPolicyCertificateUnion1, ), ); } export function deploymentSetupStackSettingsPolicyCertificateUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyCertificateUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyCertificateUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyCertificateUnion1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyModeGenerated$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyModeGenerated, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyModeGenerated$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyModeGenerated$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2$inboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2 > = z.enum( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2$outboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2 > = DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$Outbound, DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum2$outboundSchema, }); export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2ToJSON( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$outboundSchema .parse( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2, ), ); } export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2$inboundSchema: z.ZodEnum = z.enum(DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway2$inboundSchema: z.ZodType = z .object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderGkeGateway2$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderGkeGateway2$Outbound, DeploymentSetupStackSettingsPolicyProviderGkeGateway2 > = z.object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum2$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyProviderGkeGateway2ToJSON( deploymentSetupStackSettingsPolicyProviderGkeGateway2: DeploymentSetupStackSettingsPolicyProviderGkeGateway2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderGkeGateway2$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderGkeGateway2, ), ); } export function deploymentSetupStackSettingsPolicyProviderGkeGateway2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderGkeGateway2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderGkeGateway2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderGkeGateway2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2$inboundSchema: z.ZodEnum = z .enum(DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb2$inboundSchema: z.ZodType = z .object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAwsAlb2$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAwsAlb2$Outbound, DeploymentSetupStackSettingsPolicyProviderAwsAlb2 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum2$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentSetupStackSettingsPolicyProviderAwsAlb2ToJSON( deploymentSetupStackSettingsPolicyProviderAwsAlb2: DeploymentSetupStackSettingsPolicyProviderAwsAlb2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAwsAlb2$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderAwsAlb2, ), ); } export function deploymentSetupStackSettingsPolicyProviderAwsAlb2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAwsAlb2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAwsAlb2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAwsAlb2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion2$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway2$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderUnion2$Outbound = | DeploymentSetupStackSettingsPolicyProviderAwsAlb2$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway2$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion2$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderUnion2$Outbound, DeploymentSetupStackSettingsPolicyProviderUnion2 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway2$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyProviderUnion2ToJSON( deploymentSetupStackSettingsPolicyProviderUnion2: DeploymentSetupStackSettingsPolicyProviderUnion2, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderUnion2$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderUnion2, ), ); } export function deploymentSetupStackSettingsPolicyProviderUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderUnion2' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteGateway1$inboundSchema: z.ZodType = z .object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway2$inboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyRouteGateway1$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; gatewayClassName: string; labels?: { [k: string]: string } | undefined; listenerPort: number; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb2$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway2$Outbound | any | null | undefined; routeApi: "gateway"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteGateway1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyRouteGateway1$Outbound, DeploymentSetupStackSettingsPolicyRouteGateway1 > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers2$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway2$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function deploymentSetupStackSettingsPolicyRouteGateway1ToJSON( deploymentSetupStackSettingsPolicyRouteGateway1: DeploymentSetupStackSettingsPolicyRouteGateway1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyRouteGateway1$outboundSchema.parse( deploymentSetupStackSettingsPolicyRouteGateway1, ), ); } export function deploymentSetupStackSettingsPolicyRouteGateway1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyRouteGateway1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyRouteGateway1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyRouteGateway1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1$inboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1 > = z.enum( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1$outboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1 > = DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$Outbound, DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainersEnum1$outboundSchema, }); export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1ToJSON( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1: DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$outboundSchema .parse( deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1, ), ); } export function deploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1$inboundSchema: z.ZodEnum = z.enum(DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway1$inboundSchema: z.ZodType = z .object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderGkeGateway1$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderGkeGateway1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderGkeGateway1$Outbound, DeploymentSetupStackSettingsPolicyProviderGkeGateway1 > = z.object({ provider: DeploymentSetupStackSettingsPolicyProviderGkeGatewayEnum1$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentSetupStackSettingsPolicyProviderGkeGateway1ToJSON( deploymentSetupStackSettingsPolicyProviderGkeGateway1: DeploymentSetupStackSettingsPolicyProviderGkeGateway1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderGkeGateway1$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderGkeGateway1, ), ); } export function deploymentSetupStackSettingsPolicyProviderGkeGateway1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderGkeGateway1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderGkeGateway1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderGkeGateway1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1$inboundSchema: z.ZodEnum = z .enum(DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1); /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb1$inboundSchema: z.ZodType = z .object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderAwsAlb1$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderAwsAlb1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderAwsAlb1$Outbound, DeploymentSetupStackSettingsPolicyProviderAwsAlb1 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentSetupStackSettingsPolicyProviderAwsAlbEnum1$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentSetupStackSettingsPolicyProviderAwsAlb1ToJSON( deploymentSetupStackSettingsPolicyProviderAwsAlb1: DeploymentSetupStackSettingsPolicyProviderAwsAlb1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderAwsAlb1$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderAwsAlb1, ), ); } export function deploymentSetupStackSettingsPolicyProviderAwsAlb1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderAwsAlb1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderAwsAlb1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderAwsAlb1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion1$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway1$inboundSchema ), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyProviderUnion1$Outbound = | DeploymentSetupStackSettingsPolicyProviderAwsAlb1$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway1$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyProviderUnion1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyProviderUnion1$Outbound, DeploymentSetupStackSettingsPolicyProviderUnion1 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway1$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyProviderUnion1ToJSON( deploymentSetupStackSettingsPolicyProviderUnion1: DeploymentSetupStackSettingsPolicyProviderUnion1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyProviderUnion1$outboundSchema.parse( deploymentSetupStackSettingsPolicyProviderUnion1, ), ); } export function deploymentSetupStackSettingsPolicyProviderUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyProviderUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyProviderUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyProviderUnion1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteIngress1$inboundSchema: z.ZodType = z .object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway1$inboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyRouteIngress1$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; ingressClassName: string; labels?: { [k: string]: string } | undefined; provider?: | DeploymentSetupStackSettingsPolicyProviderAwsAlb1$Outbound | DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$Outbound | DeploymentSetupStackSettingsPolicyProviderGkeGateway1$Outbound | any | null | undefined; routeApi: "ingress"; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteIngress1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyRouteIngress1$Outbound, DeploymentSetupStackSettingsPolicyRouteIngress1 > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAwsAlb1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderAzureApplicationGatewayForContainers1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyProviderGkeGateway1$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function deploymentSetupStackSettingsPolicyRouteIngress1ToJSON( deploymentSetupStackSettingsPolicyRouteIngress1: DeploymentSetupStackSettingsPolicyRouteIngress1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyRouteIngress1$outboundSchema.parse( deploymentSetupStackSettingsPolicyRouteIngress1, ), ); } export function deploymentSetupStackSettingsPolicyRouteIngress1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyRouteIngress1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyRouteIngress1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyRouteIngress1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteUnion1$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress1$inboundSchema), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway1$inboundSchema), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyRouteUnion1$Outbound = | DeploymentSetupStackSettingsPolicyRouteIngress1$Outbound | DeploymentSetupStackSettingsPolicyRouteGateway1$Outbound; /** @internal */ export const DeploymentSetupStackSettingsPolicyRouteUnion1$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyRouteUnion1$Outbound, DeploymentSetupStackSettingsPolicyRouteUnion1 > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway1$outboundSchema ), ]); export function deploymentSetupStackSettingsPolicyRouteUnion1ToJSON( deploymentSetupStackSettingsPolicyRouteUnion1: DeploymentSetupStackSettingsPolicyRouteUnion1, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyRouteUnion1$outboundSchema.parse( deploymentSetupStackSettingsPolicyRouteUnion1, ), ); } export function deploymentSetupStackSettingsPolicyRouteUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyRouteUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyRouteUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyRouteUnion1' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureGenerated$inboundSchema: z.ZodType = z .object({ certificate: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone1$inboundSchema ), ]), mode: DeploymentSetupStackSettingsPolicyModeGenerated$inboundSchema, route: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress1$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway1$inboundSchema ), ]), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyExposureGenerated$Outbound = { certificate: | DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$Outbound | DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$Outbound | DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$Outbound | DeploymentSetupStackSettingsPolicyCertificateNone1$Outbound; mode: string; route: | DeploymentSetupStackSettingsPolicyRouteIngress1$Outbound | DeploymentSetupStackSettingsPolicyRouteGateway1$Outbound; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureGenerated$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyExposureGenerated$Outbound, DeploymentSetupStackSettingsPolicyExposureGenerated > = z.object({ certificate: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateTLSSecretRef1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedAcmImport1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateAwsAcmArn1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateManagedTLSSecret1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyCertificateNone1$outboundSchema ), ]), mode: DeploymentSetupStackSettingsPolicyModeGenerated$outboundSchema, route: z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyRouteIngress1$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyRouteGateway1$outboundSchema ), ]), }); export function deploymentSetupStackSettingsPolicyExposureGeneratedToJSON( deploymentSetupStackSettingsPolicyExposureGenerated: DeploymentSetupStackSettingsPolicyExposureGenerated, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyExposureGenerated$outboundSchema.parse( deploymentSetupStackSettingsPolicyExposureGenerated, ), ); } export function deploymentSetupStackSettingsPolicyExposureGeneratedFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyExposureGenerated, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyExposureGenerated$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyExposureGenerated' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyModeDisabled$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyModeDisabled, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyModeDisabled$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyModeDisabled$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureDisabled$inboundSchema: z.ZodType = z .object({ mode: DeploymentSetupStackSettingsPolicyModeDisabled$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyExposureDisabled$Outbound = { mode: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureDisabled$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyExposureDisabled$Outbound, DeploymentSetupStackSettingsPolicyExposureDisabled > = z.object({ mode: DeploymentSetupStackSettingsPolicyModeDisabled$outboundSchema, }); export function deploymentSetupStackSettingsPolicyExposureDisabledToJSON( deploymentSetupStackSettingsPolicyExposureDisabled: DeploymentSetupStackSettingsPolicyExposureDisabled, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyExposureDisabled$outboundSchema.parse( deploymentSetupStackSettingsPolicyExposureDisabled, ), ); } export function deploymentSetupStackSettingsPolicyExposureDisabledFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyExposureDisabled, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyExposureDisabled$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyExposureDisabled' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureUnion$inboundSchema: z.ZodType = z.union( [ z.lazy(() => DeploymentSetupStackSettingsPolicyExposureCustom$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureGenerated$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureDisabled$inboundSchema ), z.any(), ], ); /** @internal */ export type DeploymentSetupStackSettingsPolicyExposureUnion$Outbound = | DeploymentSetupStackSettingsPolicyExposureCustom$Outbound | DeploymentSetupStackSettingsPolicyExposureGenerated$Outbound | DeploymentSetupStackSettingsPolicyExposureDisabled$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyExposureUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyExposureUnion$Outbound, DeploymentSetupStackSettingsPolicyExposureUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyExposureCustom$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureGenerated$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureDisabled$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyExposureUnionToJSON( deploymentSetupStackSettingsPolicyExposureUnion: DeploymentSetupStackSettingsPolicyExposureUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyExposureUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyExposureUnion, ), ); } export function deploymentSetupStackSettingsPolicyExposureUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyExposureUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyExposureUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyExposureUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyKubernetes$inboundSchema: z.ZodType = z.object({ cluster: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCluster$inboundSchema), z.any(), ]), ).optional(), exposure: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyExposureCustom$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureGenerated$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureDisabled$inboundSchema ), z.any(), ]), ).optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicyKubernetes$Outbound = { cluster?: | DeploymentSetupStackSettingsPolicyCluster$Outbound | any | null | undefined; exposure?: | DeploymentSetupStackSettingsPolicyExposureCustom$Outbound | DeploymentSetupStackSettingsPolicyExposureGenerated$Outbound | DeploymentSetupStackSettingsPolicyExposureDisabled$Outbound | any | null | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyKubernetes$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyKubernetes$Outbound, DeploymentSetupStackSettingsPolicyKubernetes > = z.object({ cluster: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCluster$outboundSchema), z.any(), ]), ).optional(), exposure: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyExposureCustom$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureGenerated$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyExposureDisabled$outboundSchema ), z.any(), ]), ).optional(), }); export function deploymentSetupStackSettingsPolicyKubernetesToJSON( deploymentSetupStackSettingsPolicyKubernetes: DeploymentSetupStackSettingsPolicyKubernetes, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyKubernetes$outboundSchema.parse( deploymentSetupStackSettingsPolicyKubernetes, ), ); } export function deploymentSetupStackSettingsPolicyKubernetesFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyKubernetes, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyKubernetes$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyKubernetes' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyKubernetesUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentSetupStackSettingsPolicyKubernetes$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyKubernetesUnion$Outbound = | DeploymentSetupStackSettingsPolicyKubernetes$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyKubernetesUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyKubernetesUnion$Outbound, DeploymentSetupStackSettingsPolicyKubernetesUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyKubernetes$outboundSchema), z.any(), ]); export function deploymentSetupStackSettingsPolicyKubernetesUnionToJSON( deploymentSetupStackSettingsPolicyKubernetesUnion: DeploymentSetupStackSettingsPolicyKubernetesUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyKubernetesUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyKubernetesUnion, ), ); } export function deploymentSetupStackSettingsPolicyKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyKubernetesUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyKubernetesUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyKubernetesUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeByoVnetAzure$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyTypeByoVnetAzure, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeByoVnetAzure$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyTypeByoVnetAzure$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$inboundSchema: z.ZodType = z .object({ application_gateway_subnet_name: z.nullable(z.string()).optional(), private_endpoint_subnet_name: z.nullable(z.string()).optional(), private_subnet_name: z.string(), public_subnet_name: z.string(), type: DeploymentSetupStackSettingsPolicyTypeByoVnetAzure$inboundSchema, vnet_resource_id: z.string(), }).transform((v) => { return remap$(v, { "application_gateway_subnet_name": "applicationGatewaySubnetName", "private_endpoint_subnet_name": "privateEndpointSubnetName", "private_subnet_name": "privateSubnetName", "public_subnet_name": "publicSubnetName", "vnet_resource_id": "vnetResourceId", }); }); /** @internal */ export type DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$Outbound = { application_gateway_subnet_name?: string | null | undefined; private_endpoint_subnet_name?: string | null | undefined; private_subnet_name: string; public_subnet_name: string; type: string; vnet_resource_id: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$Outbound, DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure > = z.object({ applicationGatewaySubnetName: z.nullable(z.string()).optional(), privateEndpointSubnetName: z.nullable(z.string()).optional(), privateSubnetName: z.string(), publicSubnetName: z.string(), type: DeploymentSetupStackSettingsPolicyTypeByoVnetAzure$outboundSchema, vnetResourceId: z.string(), }).transform((v) => { return remap$(v, { applicationGatewaySubnetName: "application_gateway_subnet_name", privateEndpointSubnetName: "private_endpoint_subnet_name", privateSubnetName: "private_subnet_name", publicSubnetName: "public_subnet_name", vnetResourceId: "vnet_resource_id", }); }); export function deploymentSetupStackSettingsPolicyNetworkByoVnetAzureToJSON( deploymentSetupStackSettingsPolicyNetworkByoVnetAzure: DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$outboundSchema.parse( deploymentSetupStackSettingsPolicyNetworkByoVnetAzure, ), ); } export function deploymentSetupStackSettingsPolicyNetworkByoVnetAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeByoVpcGcp$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyTypeByoVpcGcp, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeByoVpcGcp$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyTypeByoVpcGcp$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$inboundSchema: z.ZodType = z .object({ network_name: z.string(), region: z.string(), subnet_name: z.string(), type: DeploymentSetupStackSettingsPolicyTypeByoVpcGcp$inboundSchema, }).transform((v) => { return remap$(v, { "network_name": "networkName", "subnet_name": "subnetName", }); }); /** @internal */ export type DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$Outbound = { network_name: string; region: string; subnet_name: string; type: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$Outbound, DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp > = z.object({ networkName: z.string(), region: z.string(), subnetName: z.string(), type: DeploymentSetupStackSettingsPolicyTypeByoVpcGcp$outboundSchema, }).transform((v) => { return remap$(v, { networkName: "network_name", subnetName: "subnet_name", }); }); export function deploymentSetupStackSettingsPolicyNetworkByoVpcGcpToJSON( deploymentSetupStackSettingsPolicyNetworkByoVpcGcp: DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$outboundSchema.parse( deploymentSetupStackSettingsPolicyNetworkByoVpcGcp, ), ); } export function deploymentSetupStackSettingsPolicyNetworkByoVpcGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeByoVpcAws$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyTypeByoVpcAws, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeByoVpcAws$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyTypeByoVpcAws$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$inboundSchema: z.ZodType = z .object({ private_subnet_ids: z.array(z.string()), public_subnet_ids: z.array(z.string()), security_group_ids: z.array(z.string()).optional(), type: DeploymentSetupStackSettingsPolicyTypeByoVpcAws$inboundSchema, vpc_id: z.string(), }).transform((v) => { return remap$(v, { "private_subnet_ids": "privateSubnetIds", "public_subnet_ids": "publicSubnetIds", "security_group_ids": "securityGroupIds", "vpc_id": "vpcId", }); }); /** @internal */ export type DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$Outbound = { private_subnet_ids: Array; public_subnet_ids: Array; security_group_ids?: Array | undefined; type: string; vpc_id: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$Outbound, DeploymentSetupStackSettingsPolicyNetworkByoVpcAws > = z.object({ privateSubnetIds: z.array(z.string()), publicSubnetIds: z.array(z.string()), securityGroupIds: z.array(z.string()).optional(), type: DeploymentSetupStackSettingsPolicyTypeByoVpcAws$outboundSchema, vpcId: z.string(), }).transform((v) => { return remap$(v, { privateSubnetIds: "private_subnet_ids", publicSubnetIds: "public_subnet_ids", securityGroupIds: "security_group_ids", vpcId: "vpc_id", }); }); export function deploymentSetupStackSettingsPolicyNetworkByoVpcAwsToJSON( deploymentSetupStackSettingsPolicyNetworkByoVpcAws: DeploymentSetupStackSettingsPolicyNetworkByoVpcAws, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$outboundSchema.parse( deploymentSetupStackSettingsPolicyNetworkByoVpcAws, ), ); } export function deploymentSetupStackSettingsPolicyNetworkByoVpcAwsFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyNetworkByoVpcAws, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyNetworkByoVpcAws' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeCreate$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyTypeCreate, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeCreate$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyTypeCreate$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkCreate$inboundSchema: z.ZodType = z .object({ availability_zones: z.int().optional(), cidr: z.nullable(z.string()).optional(), type: DeploymentSetupStackSettingsPolicyTypeCreate$inboundSchema, }).transform((v) => { return remap$(v, { "availability_zones": "availabilityZones", }); }); /** @internal */ export type DeploymentSetupStackSettingsPolicyNetworkCreate$Outbound = { availability_zones?: number | undefined; cidr?: string | null | undefined; type: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkCreate$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyNetworkCreate$Outbound, DeploymentSetupStackSettingsPolicyNetworkCreate > = z.object({ availabilityZones: z.int().optional(), cidr: z.nullable(z.string()).optional(), type: DeploymentSetupStackSettingsPolicyTypeCreate$outboundSchema, }).transform((v) => { return remap$(v, { availabilityZones: "availability_zones", }); }); export function deploymentSetupStackSettingsPolicyNetworkCreateToJSON( deploymentSetupStackSettingsPolicyNetworkCreate: DeploymentSetupStackSettingsPolicyNetworkCreate, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyNetworkCreate$outboundSchema.parse( deploymentSetupStackSettingsPolicyNetworkCreate, ), ); } export function deploymentSetupStackSettingsPolicyNetworkCreateFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyNetworkCreate, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyNetworkCreate$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyNetworkCreate' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeUseDefault$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyTypeUseDefault, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyTypeUseDefault$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyTypeUseDefault$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkUseDefault$inboundSchema: z.ZodType = z .object({ type: DeploymentSetupStackSettingsPolicyTypeUseDefault$inboundSchema, }); /** @internal */ export type DeploymentSetupStackSettingsPolicyNetworkUseDefault$Outbound = { type: string; }; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkUseDefault$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyNetworkUseDefault$Outbound, DeploymentSetupStackSettingsPolicyNetworkUseDefault > = z.object({ type: DeploymentSetupStackSettingsPolicyTypeUseDefault$outboundSchema, }); export function deploymentSetupStackSettingsPolicyNetworkUseDefaultToJSON( deploymentSetupStackSettingsPolicyNetworkUseDefault: DeploymentSetupStackSettingsPolicyNetworkUseDefault, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyNetworkUseDefault$outboundSchema.parse( deploymentSetupStackSettingsPolicyNetworkUseDefault, ), ); } export function deploymentSetupStackSettingsPolicyNetworkUseDefaultFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyNetworkUseDefault, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyNetworkUseDefault$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyNetworkUseDefault' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkUseDefault$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkCreate$inboundSchema), z.any(), ]); /** @internal */ export type DeploymentSetupStackSettingsPolicyNetworkUnion$Outbound = | DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$Outbound | DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$Outbound | DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$Outbound | DeploymentSetupStackSettingsPolicyNetworkUseDefault$Outbound | DeploymentSetupStackSettingsPolicyNetworkCreate$Outbound | any; /** @internal */ export const DeploymentSetupStackSettingsPolicyNetworkUnion$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicyNetworkUnion$Outbound, DeploymentSetupStackSettingsPolicyNetworkUnion > = z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkUseDefault$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkCreate$outboundSchema ), z.any(), ]); export function deploymentSetupStackSettingsPolicyNetworkUnionToJSON( deploymentSetupStackSettingsPolicyNetworkUnion: DeploymentSetupStackSettingsPolicyNetworkUnion, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicyNetworkUnion$outboundSchema.parse( deploymentSetupStackSettingsPolicyNetworkUnion, ), ); } export function deploymentSetupStackSettingsPolicyNetworkUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentSetupStackSettingsPolicyNetworkUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicyNetworkUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentSetupStackSettingsPolicyNetworkUnion' from JSON`, ); } /** @internal */ export const DeploymentSetupStackSettingsPolicyTelemetry$inboundSchema: z.ZodEnum = z.enum( DeploymentSetupStackSettingsPolicyTelemetry, ); /** @internal */ export const DeploymentSetupStackSettingsPolicyTelemetry$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyTelemetry$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicyUpdates$inboundSchema: z.ZodEnum< typeof DeploymentSetupStackSettingsPolicyUpdates > = z.enum(DeploymentSetupStackSettingsPolicyUpdates); /** @internal */ export const DeploymentSetupStackSettingsPolicyUpdates$outboundSchema: z.ZodEnum = DeploymentSetupStackSettingsPolicyUpdates$inboundSchema; /** @internal */ export const Defaults$inboundSchema: z.ZodType = z.object({ compute: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCompute$inboundSchema), z.any(), ]), ).optional(), deploymentModel: DeploymentSetupStackSettingsPolicyDeploymentModel$inboundSchema.optional(), domains: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomains$inboundSchema), z.any(), ]), ).optional(), externalBindings: z.nullable( z.lazy(() => DeploymentSetupStackSettingsPolicyExternalBindings$inboundSchema ), ).optional(), heartbeats: DeploymentSetupStackSettingsPolicyHeartbeats$inboundSchema .optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyKubernetes$inboundSchema), z.any(), ]), ).optional(), network: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkUseDefault$inboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkCreate$inboundSchema ), z.any(), ]), ).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), telemetry: DeploymentSetupStackSettingsPolicyTelemetry$inboundSchema .optional(), updates: DeploymentSetupStackSettingsPolicyUpdates$inboundSchema.optional(), }); /** @internal */ export type Defaults$Outbound = { compute?: | DeploymentSetupStackSettingsPolicyCompute$Outbound | any | null | undefined; deploymentModel?: string | undefined; domains?: | DeploymentSetupStackSettingsPolicyDomains$Outbound | any | null | undefined; externalBindings?: | DeploymentSetupStackSettingsPolicyExternalBindings$Outbound | null | undefined; heartbeats?: string | undefined; kubernetes?: | DeploymentSetupStackSettingsPolicyKubernetes$Outbound | any | null | undefined; network?: | DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$Outbound | DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$Outbound | DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$Outbound | DeploymentSetupStackSettingsPolicyNetworkUseDefault$Outbound | DeploymentSetupStackSettingsPolicyNetworkCreate$Outbound | any | null | undefined; publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined; telemetry?: string | undefined; updates?: string | undefined; }; /** @internal */ export const Defaults$outboundSchema: z.ZodType = z .object({ compute: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyCompute$outboundSchema), z.any(), ]), ).optional(), deploymentModel: DeploymentSetupStackSettingsPolicyDeploymentModel$outboundSchema .optional(), domains: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyDomains$outboundSchema), z.any(), ]), ).optional(), externalBindings: z.nullable( z.lazy(() => DeploymentSetupStackSettingsPolicyExternalBindings$outboundSchema ), ).optional(), heartbeats: DeploymentSetupStackSettingsPolicyHeartbeats$outboundSchema .optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyKubernetes$outboundSchema ), z.any(), ]), ).optional(), network: z.nullable( z.union([ z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcAws$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVpcGcp$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkByoVnetAzure$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkUseDefault$outboundSchema ), z.lazy(() => DeploymentSetupStackSettingsPolicyNetworkCreate$outboundSchema ), z.any(), ]), ).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), telemetry: DeploymentSetupStackSettingsPolicyTelemetry$outboundSchema .optional(), updates: DeploymentSetupStackSettingsPolicyUpdates$outboundSchema .optional(), }); export function defaultsToJSON(defaults: Defaults): string { return JSON.stringify(Defaults$outboundSchema.parse(defaults)); } export function defaultsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Defaults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Defaults' from JSON`, ); } /** @internal */ export const AllowedDeploymentModel$inboundSchema: z.ZodEnum< typeof AllowedDeploymentModel > = z.enum(AllowedDeploymentModel); /** @internal */ export const AllowedDeploymentModel$outboundSchema: z.ZodEnum< typeof AllowedDeploymentModel > = AllowedDeploymentModel$inboundSchema; /** @internal */ export const AllowedNetworkMode$inboundSchema: z.ZodEnum< typeof AllowedNetworkMode > = z.enum(AllowedNetworkMode); /** @internal */ export const AllowedNetworkMode$outboundSchema: z.ZodEnum< typeof AllowedNetworkMode > = AllowedNetworkMode$inboundSchema; /** @internal */ export const AllowedUpdatesMode$inboundSchema: z.ZodEnum< typeof AllowedUpdatesMode > = z.enum(AllowedUpdatesMode); /** @internal */ export const AllowedUpdatesMode$outboundSchema: z.ZodEnum< typeof AllowedUpdatesMode > = AllowedUpdatesMode$inboundSchema; /** @internal */ export const AllowedTelemetryMode$inboundSchema: z.ZodEnum< typeof AllowedTelemetryMode > = z.enum(AllowedTelemetryMode); /** @internal */ export const AllowedTelemetryMode$outboundSchema: z.ZodEnum< typeof AllowedTelemetryMode > = AllowedTelemetryMode$inboundSchema; /** @internal */ export const AllowedHeartbeatsMode$inboundSchema: z.ZodEnum< typeof AllowedHeartbeatsMode > = z.enum(AllowedHeartbeatsMode); /** @internal */ export const AllowedHeartbeatsMode$outboundSchema: z.ZodEnum< typeof AllowedHeartbeatsMode > = AllowedHeartbeatsMode$inboundSchema; /** @internal */ export const DeploymentSetupStackSettingsPolicy$inboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicy, unknown > = z.object({ defaults: z.lazy(() => Defaults$inboundSchema).optional(), allowedDeploymentModels: z.array(AllowedDeploymentModel$inboundSchema) .optional(), allowedNetworkModes: z.array(AllowedNetworkMode$inboundSchema).optional(), allowedUpdatesModes: z.array(AllowedUpdatesMode$inboundSchema).optional(), allowedTelemetryModes: z.array(AllowedTelemetryMode$inboundSchema).optional(), allowedHeartbeatsModes: z.array(AllowedHeartbeatsMode$inboundSchema) .optional(), allowExternalBindings: z.boolean().optional(), allowCustomRegistry: z.boolean().optional(), }); /** @internal */ export type DeploymentSetupStackSettingsPolicy$Outbound = { defaults?: Defaults$Outbound | undefined; allowedDeploymentModels?: Array | undefined; allowedNetworkModes?: Array | undefined; allowedUpdatesModes?: Array | undefined; allowedTelemetryModes?: Array | undefined; allowedHeartbeatsModes?: Array | undefined; allowExternalBindings?: boolean | undefined; allowCustomRegistry?: boolean | undefined; }; /** @internal */ export const DeploymentSetupStackSettingsPolicy$outboundSchema: z.ZodType< DeploymentSetupStackSettingsPolicy$Outbound, DeploymentSetupStackSettingsPolicy > = z.object({ defaults: z.lazy(() => Defaults$outboundSchema).optional(), allowedDeploymentModels: z.array(AllowedDeploymentModel$outboundSchema) .optional(), allowedNetworkModes: z.array(AllowedNetworkMode$outboundSchema).optional(), allowedUpdatesModes: z.array(AllowedUpdatesMode$outboundSchema).optional(), allowedTelemetryModes: z.array(AllowedTelemetryMode$outboundSchema) .optional(), allowedHeartbeatsModes: z.array(AllowedHeartbeatsMode$outboundSchema) .optional(), allowExternalBindings: z.boolean().optional(), allowCustomRegistry: z.boolean().optional(), }); export function deploymentSetupStackSettingsPolicyToJSON( deploymentSetupStackSettingsPolicy: DeploymentSetupStackSettingsPolicy, ): string { return JSON.stringify( DeploymentSetupStackSettingsPolicy$outboundSchema.parse( deploymentSetupStackSettingsPolicy, ), ); } export function deploymentSetupStackSettingsPolicyFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentSetupStackSettingsPolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentSetupStackSettingsPolicy' from JSON`, ); }