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
, orinstance_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.
Map of tags, each pair of which must exactly match a pair on the desired Instance.
Map of tags assigned to the Instance.
Implementations§
source§impl GetInstanceArgs
impl GetInstanceArgs
sourcepub fn builder() -> GetInstanceArgsBuilder
pub fn builder() -> GetInstanceArgsBuilder
Create an instance of GetInstanceArgs
using the builder syntax
Trait Implementations§
source§impl Clone for GetInstanceArgs
impl Clone for GetInstanceArgs
source§fn clone(&self) -> GetInstanceArgs
fn clone(&self) -> GetInstanceArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetInstanceArgs
impl RefUnwindSafe for GetInstanceArgs
impl Send for GetInstanceArgs
impl Sync for GetInstanceArgs
impl Unpin for GetInstanceArgs
impl UnwindSafe for GetInstanceArgs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)