pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn new() -> Self
pub fn finish(&self)
pub fn new_output<T>(&self, value: &T) -> Output<T>
pub fn new_secret<T>(&self, value: &T) -> Output<T>
pub fn add_export(&self, key: &str, output: &impl ToPulumiValue)
pub fn register_resource( &self, request: RegisterResourceRequest<'_>, ) -> CompositeOutput
pub fn invoke_resource( &self, request: InvokeResourceRequest<'_>, ) -> CompositeOutput
pub fn require_config(&self, name: Option<&str>, key: &str) -> Result<String>
pub fn require_config_deserialize<T>(
&self,
name: Option<&str>,
key: &str,
) -> Result<T>where
T: for<'de> Deserialize<'de>,
pub fn require_config_secret( &self, name: Option<&str>, key: &str, ) -> Result<Output<String>>
pub fn require_config_secret_deserialize<T>( &self, name: Option<&str>, key: &str, ) -> Result<Output<T>>
pub fn get_organization(&self) -> &str
pub fn get_project(&self) -> &str
pub fn get_stack(&self) -> &str
pub fn get_root_directory(&self) -> &str
pub fn require_pulumi_version(&self, version_range: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl !UnwindSafe for Context
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].