Skip to main content

ConnectorIntent

Enum ConnectorIntent 

Source
pub enum ConnectorIntent {
    AllIngress,
    HttpIngress,
    ShellIngress,
    Egress,
}
Expand description

Lambda-managed connector intents. Customer-managed VPC connectors use explicit ARNs.

Named for the intent rather than for the wire value, because the intent is what a caller has: “let the proxy reach the VM” and “let the VM reach the internet”. The wire spellings (ConnectorIntent::wire_name) are an implementation detail of the ARN.

Variants§

§

AllIngress

Lets the endpoint proxy reach the VM. Required for any session to work.

The union that cannot be intersected: the platform refuses to combine it with any other ingress connector, and only at token-mint time — see the module docs. A VM that needs a shell requests ConnectorIntent::HttpIngress plus ConnectorIntent::ShellIngress instead of this.

§

HttpIngress

Lets the endpoint proxy reach the VM’s HTTP surface, without the shell.

The finer-grained sibling of ConnectorIntent::AllIngress, and the half of the measured pair [HTTP_INGRESS, SHELL_INGRESS] that keeps the daemon reachable (docs/PLATFORM.md, measured 2026-08-15).

§

ShellIngress

Lets the VM mint shell tokens and serve its PTY WebSocket.

One interactive session, not programmatic exec — the module docs carry the revision of TRAP-11 that admitted this variant. Never combined with ConnectorIntent::AllIngress; the pair that launches and mints is with ConnectorIntent::HttpIngress.

§

Egress

Lets the VM reach the internet.

Omitted by default — the right default for a daemon that needs none. Omitting it omits the connector from the request; measured 2026-09-11 and 2026-09-12 the platform still gave such a VM outbound network (docs/PLATFORM.md, “A VM launched without the egress connector still has outbound network”).

Implementations§

Source§

impl ConnectorIntent

Source

pub const ALL: [ConnectorIntent; 4]

Every intent, so a test can enumerate the complete set.

Maintained by hand; the tests below assert its length, so an edit here is a deliberate one. The set grew from two to four when TRAP-11 was revised — see the module docs.

Source

pub fn wire_name(self) -> &'static str

The connector’s name as the ARN spells it.

INTERNET_EGRESS rather than EGRESS: the wire name is not the intent’s name, which is the second reason this is a table rather than a Display derive.

Source

pub fn arn(self, region: &Region) -> String

The fully-qualified ARN for this connector in region.

One interpolation for both directions. The Python client’s earlier shape derived the egress ARN by string-replacing ALL_INGRESS inside the ingress one, which produced a valid ARN only as long as the two names never became substrings of each other (sandbox.py:391-398).

The doubled aws-network-connector segment is not a typo: the resource type and the resource name are both present, and the format is copied from sandbox.py:398 rather than reconstructed from the ARN grammar.

Trait Implementations§

Source§

impl Clone for ConnectorIntent

Source§

fn clone(&self) -> ConnectorIntent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ConnectorIntent

Source§

impl Debug for ConnectorIntent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for ConnectorIntent

Source§

impl Hash for ConnectorIntent

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ConnectorIntent

Source§

fn eq(&self, other: &ConnectorIntent) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ConnectorIntent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsOut<T> for T
where T: Copy,

Source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more