pulumi_wasm_providers_aws_mini::functions::ec2::get_instance

Struct GetInstanceArgs

source
pub struct GetInstanceArgs {
    pub filters: Output<Option<Vec<GetInstanceFilter>>>,
    pub get_password_data: Output<Option<bool>>,
    pub get_user_data: Output<Option<bool>>,
    pub instance_id: Output<Option<String>>,
    pub instance_tags: Output<Option<HashMap<String, String>>>,
    pub tags: Output<Option<HashMap<String, String>>>,
}

Fields§

§filters: Output<Option<Vec<GetInstanceFilter>>>

One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-instances in the AWS CLI reference][1].

§get_password_data: Output<Option<bool>>

If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data attribute. See GetPasswordData for more information.

§get_user_data: Output<Option<bool>>

Retrieve Base64 encoded User Data contents into the user_data_base64 attribute. A SHA-1 hash of the User Data contents will always be present in the user_data attribute. Defaults to false.

NOTE: At least one of filter, instance_tags, or instance_id must be specified.

NOTE: If anything other than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single Instance ID only.

§instance_id: Output<Option<String>>

Specify the exact Instance ID with which to populate the data source.

§instance_tags: Output<Option<HashMap<String, String>>>

Map of tags, each pair of which must exactly match a pair on the desired Instance.

§tags: Output<Option<HashMap<String, String>>>

Map of tags assigned to the Instance.

Implementations§

source§

impl GetInstanceArgs

source

pub fn builder() -> GetInstanceArgsBuilder

Create an instance of GetInstanceArgs using the builder syntax

Trait Implementations§

source§

impl Clone for GetInstanceArgs

source§

fn clone(&self) -> GetInstanceArgs

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more

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> 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, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.