pub struct EmitContext<'a> {
pub stack: &'a Stack,
pub resource: &'a ResourceEntry,
pub resource_id: &'a str,
pub platform: Platform,
pub targets_kubernetes: bool,
pub stack_settings: &'a StackSettings,
pub names: &'a IndexMap<String, String>,
pub pins: &'a SetupPins,
}Expand description
Context passed to generator-side import emitters.
Fields§
§stack: &'a StackThe source stack being rendered.
resource: &'a ResourceEntryThe stack resource entry currently being emitted.
resource_id: &'a strStable resource id for the current entry.
platform: PlatformTarget platform for this emission pass.
targets_kubernetes: boolWhether the artifact runs workloads on Kubernetes rather than on the cloud’s own compute.
platform names the cloud the cluster runs in, so it reads the same for an EKS package as
for a plain AWS one. Anything whose answer differs between the two — a resource skipped on
Kubernetes, and every expression that has to agree with that skip — needs this instead.
stack_settings: &'a StackSettingsUser-selected stack settings for the setup artifact.
names: &'a IndexMap<String, String>Stable names precomputed by the outer generator.
pins: &'a SetupPinsWhat the CLI build pins for a protected setup: the verifier images and the machine-image publisher.