pub struct DeploymentConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> DeploymentConfigBuilder<S>
impl<S: State> DeploymentConfigBuilder<S>
Sourcepub fn build(self) -> DeploymentConfigwhere
S: IsComplete,
pub fn build(self) -> DeploymentConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn deployment_name(
self,
value: String,
) -> DeploymentConfigBuilder<SetDeploymentName<S>>where
S::DeploymentName: IsUnset,
pub fn deployment_name(
self,
value: String,
) -> DeploymentConfigBuilder<SetDeploymentName<S>>where
S::DeploymentName: IsUnset,
Sourcepub fn maybe_deployment_name(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetDeploymentName<S>>where
S::DeploymentName: IsUnset,
pub fn maybe_deployment_name(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetDeploymentName<S>>where
S::DeploymentName: IsUnset,
Sourcepub fn stack_settings(
self,
value: StackSettings,
) -> DeploymentConfigBuilder<SetStackSettings<S>>where
S::StackSettings: IsUnset,
pub fn stack_settings(
self,
value: StackSettings,
) -> DeploymentConfigBuilder<SetStackSettings<S>>where
S::StackSettings: IsUnset,
Required.
User-customizable deployment settings (network, deployment model, approvals). Provided by customer via CloudFormation, Terraform, CLI, or Helm.
Sourcepub fn management_config(
self,
value: ManagementConfig,
) -> DeploymentConfigBuilder<SetManagementConfig<S>>where
S::ManagementConfig: IsUnset,
pub fn management_config(
self,
value: ManagementConfig,
) -> DeploymentConfigBuilder<SetManagementConfig<S>>where
S::ManagementConfig: IsUnset,
Sourcepub fn maybe_management_config(
self,
value: Option<ManagementConfig>,
) -> DeploymentConfigBuilder<SetManagementConfig<S>>where
S::ManagementConfig: IsUnset,
pub fn maybe_management_config(
self,
value: Option<ManagementConfig>,
) -> DeploymentConfigBuilder<SetManagementConfig<S>>where
S::ManagementConfig: IsUnset,
Sourcepub fn environment_variables(
self,
value: EnvironmentVariablesSnapshot,
) -> DeploymentConfigBuilder<SetEnvironmentVariables<S>>where
S::EnvironmentVariables: IsUnset,
pub fn environment_variables(
self,
value: EnvironmentVariablesSnapshot,
) -> DeploymentConfigBuilder<SetEnvironmentVariables<S>>where
S::EnvironmentVariables: IsUnset,
Required.
Environment variables snapshot
Sourcepub fn allow_frozen_changes(
self,
value: bool,
) -> DeploymentConfigBuilder<SetAllowFrozenChanges<S>>where
S::AllowFrozenChanges: IsUnset,
pub fn allow_frozen_changes(
self,
value: bool,
) -> DeploymentConfigBuilder<SetAllowFrozenChanges<S>>where
S::AllowFrozenChanges: IsUnset,
Required.
Allow frozen resource changes during updates When true, skips the frozen resources compatibility check. This requires running with elevated cloud credentials.
Sourcepub fn compute_backend(
self,
value: ComputeBackend,
) -> DeploymentConfigBuilder<SetComputeBackend<S>>where
S::ComputeBackend: IsUnset,
pub fn compute_backend(
self,
value: ComputeBackend,
) -> DeploymentConfigBuilder<SetComputeBackend<S>>where
S::ComputeBackend: IsUnset,
Optional (Some / Option setters). Compute backend for Container and Worker resources. When None, the platform default is used for cloud platforms. Contains cluster IDs and management tokens for container orchestration. Worker runtime credentials are provided through cloud identity and vault-backed secrets.
Sourcepub fn maybe_compute_backend(
self,
value: Option<ComputeBackend>,
) -> DeploymentConfigBuilder<SetComputeBackend<S>>where
S::ComputeBackend: IsUnset,
pub fn maybe_compute_backend(
self,
value: Option<ComputeBackend>,
) -> DeploymentConfigBuilder<SetComputeBackend<S>>where
S::ComputeBackend: IsUnset,
Optional (Some / Option setters). Compute backend for Container and Worker resources. When None, the platform default is used for cloud platforms. Contains cluster IDs and management tokens for container orchestration. Worker runtime credentials are provided through cloud identity and vault-backed secrets.
Sourcepub fn external_bindings(
self,
value: ExternalBindings,
) -> DeploymentConfigBuilder<SetExternalBindings<S>>where
S::ExternalBindings: IsUnset,
pub fn external_bindings(
self,
value: ExternalBindings,
) -> DeploymentConfigBuilder<SetExternalBindings<S>>where
S::ExternalBindings: IsUnset,
Required.
External bindings for pre-existing services. Required for Kubernetes platform (all infrastructure resources). Optional for cloud platforms (override specific resources).
Sourcepub fn base_platform(
self,
value: Platform,
) -> DeploymentConfigBuilder<SetBasePlatform<S>>where
S::BasePlatform: IsUnset,
pub fn base_platform(
self,
value: Platform,
) -> DeploymentConfigBuilder<SetBasePlatform<S>>where
S::BasePlatform: IsUnset,
Sourcepub fn maybe_base_platform(
self,
value: Option<Platform>,
) -> DeploymentConfigBuilder<SetBasePlatform<S>>where
S::BasePlatform: IsUnset,
pub fn maybe_base_platform(
self,
value: Option<Platform>,
) -> DeploymentConfigBuilder<SetBasePlatform<S>>where
S::BasePlatform: IsUnset,
Sourcepub fn public_endpoints(
self,
value: HashMap<String, HashMap<String, String>>,
) -> DeploymentConfigBuilder<SetPublicEndpoints<S>>where
S::PublicEndpoints: IsUnset,
pub fn public_endpoints(
self,
value: HashMap<String, HashMap<String, String>>,
) -> DeploymentConfigBuilder<SetPublicEndpoints<S>>where
S::PublicEndpoints: IsUnset,
Optional (Some / Option setters). Public endpoint URLs for exposed resources (optional override).
Use this only when a caller already knows the public URL. Managed public
endpoint flows should prefer domain_metadata plus controller-reported
load balancer outputs so DNS, certificate renewal, and route readiness
stay tied to the resource state.
If not set, platforms determine public endpoint URLs from other sources:
- Managed DNS/TLS flows:
domain_metadataFQDN or load balancer DNS - Local:
http://localhost:{allocated_port} - Custom or disabled exposure: no public endpoint URL unless a controller reports one
Outer key: resource ID. Inner key: endpoint name. Value: public URL.
Sourcepub fn maybe_public_endpoints(
self,
value: Option<HashMap<String, HashMap<String, String>>>,
) -> DeploymentConfigBuilder<SetPublicEndpoints<S>>where
S::PublicEndpoints: IsUnset,
pub fn maybe_public_endpoints(
self,
value: Option<HashMap<String, HashMap<String, String>>>,
) -> DeploymentConfigBuilder<SetPublicEndpoints<S>>where
S::PublicEndpoints: IsUnset,
Optional (Some / Option setters). Public endpoint URLs for exposed resources (optional override).
Use this only when a caller already knows the public URL. Managed public
endpoint flows should prefer domain_metadata plus controller-reported
load balancer outputs so DNS, certificate renewal, and route readiness
stay tied to the resource state.
If not set, platforms determine public endpoint URLs from other sources:
- Managed DNS/TLS flows:
domain_metadataFQDN or load balancer DNS - Local:
http://localhost:{allocated_port} - Custom or disabled exposure: no public endpoint URL unless a controller reports one
Outer key: resource ID. Inner key: endpoint name. Value: public URL.
Sourcepub fn domain_metadata(
self,
value: DomainMetadata,
) -> DeploymentConfigBuilder<SetDomainMetadata<S>>where
S::DomainMetadata: IsUnset,
pub fn domain_metadata(
self,
value: DomainMetadata,
) -> DeploymentConfigBuilder<SetDomainMetadata<S>>where
S::DomainMetadata: IsUnset,
Optional (Some / Option setters). Domain metadata for auto-managed public resources.
Contains generated hostnames, DNS record state, certificate material,
and renewal markers for platforms that use managed public endpoints.
Kubernetes uses this only when its exposure mode is generated; BYO and
disabled Kubernetes exposure do not receive managed domain metadata.
Sourcepub fn maybe_domain_metadata(
self,
value: Option<DomainMetadata>,
) -> DeploymentConfigBuilder<SetDomainMetadata<S>>where
S::DomainMetadata: IsUnset,
pub fn maybe_domain_metadata(
self,
value: Option<DomainMetadata>,
) -> DeploymentConfigBuilder<SetDomainMetadata<S>>where
S::DomainMetadata: IsUnset,
Optional (Some / Option setters). Domain metadata for auto-managed public resources.
Contains generated hostnames, DNS record state, certificate material,
and renewal markers for platforms that use managed public endpoints.
Kubernetes uses this only when its exposure mode is generated; BYO and
disabled Kubernetes exposure do not receive managed domain metadata.
Sourcepub fn monitoring(
self,
value: OtlpConfig,
) -> DeploymentConfigBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
pub fn monitoring(
self,
value: OtlpConfig,
) -> DeploymentConfigBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
Optional (Some / Option setters). OTLP observability configuration for log export (optional).
When set, worker runtimes export captured application logs through this endpoint. Container orchestrators may use it for their node-level log collectors, but app container configs must not receive the auth header.
Sourcepub fn maybe_monitoring(
self,
value: Option<OtlpConfig>,
) -> DeploymentConfigBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
pub fn maybe_monitoring(
self,
value: Option<OtlpConfig>,
) -> DeploymentConfigBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
Optional (Some / Option setters). OTLP observability configuration for log export (optional).
When set, worker runtimes export captured application logs through this endpoint. Container orchestrators may use it for their node-level log collectors, but app container configs must not receive the auth header.
Sourcepub fn manager_url(
self,
value: String,
) -> DeploymentConfigBuilder<SetManagerUrl<S>>where
S::ManagerUrl: IsUnset,
pub fn manager_url(
self,
value: String,
) -> DeploymentConfigBuilder<SetManagerUrl<S>>where
S::ManagerUrl: IsUnset,
Optional (Some / Option setters). Manager base URL (e.g., “https://manager.alien.dev”).
The manager IS the container registry — its /v2/ endpoint serves as
the OCI Distribution API. Controllers derive the proxy host from this
to configure pull auth (RegistryCredentials, imagePullSecrets).
When None (e.g., alien dev), controllers use image URIs as-is.
Sourcepub fn maybe_manager_url(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetManagerUrl<S>>where
S::ManagerUrl: IsUnset,
pub fn maybe_manager_url(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetManagerUrl<S>>where
S::ManagerUrl: IsUnset,
Optional (Some / Option setters). Manager base URL (e.g., “https://manager.alien.dev”).
The manager IS the container registry — its /v2/ endpoint serves as
the OCI Distribution API. Controllers derive the proxy host from this
to configure pull auth (RegistryCredentials, imagePullSecrets).
When None (e.g., alien dev), controllers use image URIs as-is.
Sourcepub fn deployment_token(
self,
value: String,
) -> DeploymentConfigBuilder<SetDeploymentToken<S>>where
S::DeploymentToken: IsUnset,
pub fn deployment_token(
self,
value: String,
) -> DeploymentConfigBuilder<SetDeploymentToken<S>>where
S::DeploymentToken: IsUnset,
Sourcepub fn maybe_deployment_token(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetDeploymentToken<S>>where
S::DeploymentToken: IsUnset,
pub fn maybe_deployment_token(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetDeploymentToken<S>>where
S::DeploymentToken: IsUnset,
Sourcepub fn native_image_host(
self,
value: String,
) -> DeploymentConfigBuilder<SetNativeImageHost<S>>where
S::NativeImageHost: IsUnset,
pub fn native_image_host(
self,
value: String,
) -> DeploymentConfigBuilder<SetNativeImageHost<S>>where
S::NativeImageHost: IsUnset,
Optional (Some / Option setters). Native image registry host+prefix for platforms that require it.
Lambda (ECR) and Cloud Run (GAR) require native registry URIs. Other runtimes, including Azure Container Apps, pull through the manager’s registry proxy.
Derived by the manager from the artifact registry binding:
- ECR:
{account_id}.dkr.ecr.{region}.amazonaws.com/{repository_prefix} - GAR:
{region}-docker.pkg.dev/{project_id}/{repository_name}
Sourcepub fn maybe_native_image_host(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetNativeImageHost<S>>where
S::NativeImageHost: IsUnset,
pub fn maybe_native_image_host(
self,
value: Option<String>,
) -> DeploymentConfigBuilder<SetNativeImageHost<S>>where
S::NativeImageHost: IsUnset,
Optional (Some / Option setters). Native image registry host+prefix for platforms that require it.
Lambda (ECR) and Cloud Run (GAR) require native registry URIs. Other runtimes, including Azure Container Apps, pull through the manager’s registry proxy.
Derived by the manager from the artifact registry binding:
- ECR:
{account_id}.dkr.ecr.{region}.amazonaws.com/{repository_prefix} - GAR:
{region}-docker.pkg.dev/{project_id}/{repository_name}