pub enum SandboxBinding {
Aws(AwsSandboxBinding),
Azure(AzureSandboxBinding),
GcpAgentPlatform(GcpAgentPlatformSandboxBinding),
Kubernetes(KubernetesSandboxBinding),
Local(LocalSandboxBinding),
}Expand description
Represents a sandbox binding for creating and reaching sandboxes.
Service tags are prefixed with sandbox- because serde selects the variant on the service
field alone. An unprefixed local would deserialize as another resource’s local binding by
silently dropping the fields that differ.
Variants§
Aws(AwsSandboxBinding)
AWS Lambda MicroVM sandboxes
Azure(AzureSandboxBinding)
Azure Container Apps Sandboxes
GcpAgentPlatform(GcpAgentPlatformSandboxBinding)
GCP Agent Platform sandboxes, created under a durable Agent Engine
Kubernetes(KubernetesSandboxBinding)
Sandbox pods under a sandboxed runtime class
Local(LocalSandboxBinding)
Local Docker sandboxes managed by the local sandbox manager
Implementations§
Source§impl SandboxBinding
impl SandboxBinding
Sourcepub fn aws(
image_arn: impl Into<BindingValue<String>>,
image_version: impl Into<BindingValue<String>>,
region: impl Into<BindingValue<String>>,
) -> Self
pub fn aws( image_arn: impl Into<BindingValue<String>>, image_version: impl Into<BindingValue<String>>, region: impl Into<BindingValue<String>>, ) -> Self
Creates an AWS sandbox binding.
Sourcepub fn azure(
sandbox_group: impl Into<BindingValue<String>>,
data_plane_endpoint: impl Into<BindingValue<String>>,
region: impl Into<BindingValue<String>>,
resource_group: impl Into<BindingValue<String>>,
disk_image: impl Into<BindingValue<String>>,
egress: SandboxEgress,
idle_pause_seconds: Option<u32>,
) -> Self
pub fn azure( sandbox_group: impl Into<BindingValue<String>>, data_plane_endpoint: impl Into<BindingValue<String>>, region: impl Into<BindingValue<String>>, resource_group: impl Into<BindingValue<String>>, disk_image: impl Into<BindingValue<String>>, egress: SandboxEgress, idle_pause_seconds: Option<u32>, ) -> Self
Creates an Azure sandbox binding.
Sourcepub fn gcp_agent_platform(
engine: impl Into<BindingValue<String>>,
template: impl Into<BindingValue<String>>,
region: impl Into<BindingValue<String>>,
max_lifetime_seconds: Option<u32>,
) -> Self
pub fn gcp_agent_platform( engine: impl Into<BindingValue<String>>, template: impl Into<BindingValue<String>>, region: impl Into<BindingValue<String>>, max_lifetime_seconds: Option<u32>, ) -> Self
Creates a GCP Agent Platform sandbox binding.
Sourcepub fn kubernetes(
namespace: impl Into<BindingValue<String>>,
runtime_class: impl Into<BindingValue<String>>,
selector: impl Into<BindingValue<String>>,
broker_url: impl Into<BindingValue<String>>,
key_name: impl Into<BindingValue<String>>,
token_path: impl Into<BindingValue<String>>,
) -> Self
pub fn kubernetes( namespace: impl Into<BindingValue<String>>, runtime_class: impl Into<BindingValue<String>>, selector: impl Into<BindingValue<String>>, broker_url: impl Into<BindingValue<String>>, key_name: impl Into<BindingValue<String>>, token_path: impl Into<BindingValue<String>>, ) -> Self
Creates a Kubernetes sandbox binding.
Sourcepub fn local(
manager_url: impl Into<BindingValue<String>>,
sandbox_key: impl Into<BindingValue<String>>,
token_path: impl Into<BindingValue<String>>,
) -> Self
pub fn local( manager_url: impl Into<BindingValue<String>>, sandbox_key: impl Into<BindingValue<String>>, token_path: impl Into<BindingValue<String>>, ) -> Self
Creates a local sandbox binding.
Trait Implementations§
Source§impl Clone for SandboxBinding
impl Clone for SandboxBinding
Source§impl Debug for SandboxBinding
impl Debug for SandboxBinding
Source§impl<'de> Deserialize<'de> for SandboxBinding
impl<'de> Deserialize<'de> for SandboxBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SandboxBinding
Source§impl PartialEq for SandboxBinding
impl PartialEq for SandboxBinding
Source§impl Serialize for SandboxBinding
impl Serialize for SandboxBinding
impl StructuralPartialEq for SandboxBinding
Auto Trait Implementations§
impl Freeze for SandboxBinding
impl RefUnwindSafe for SandboxBinding
impl Send for SandboxBinding
impl Sync for SandboxBinding
impl Unpin for SandboxBinding
impl UnsafeUnpin for SandboxBinding
impl UnwindSafe for SandboxBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.