pub struct GetInstanceArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> GetInstanceArgsBuilder<S>
impl<S: State> GetInstanceArgsBuilder<S>
sourcepub fn build_struct(self) -> GetInstanceArgswhere
S: IsComplete,
pub fn build_struct(self) -> GetInstanceArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn filters(
self,
value: impl Into<Output<Option<Vec<GetInstanceFilter>>>>,
) -> GetInstanceArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn filters(
self,
value: impl Into<Output<Option<Vec<GetInstanceFilter>>>>,
) -> GetInstanceArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::super::types::ec2::GetInstanceFilter>>,
> as Default>::default()
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].
sourcepub fn maybe_filters(
self,
value: Option<impl Into<Output<Option<Vec<GetInstanceFilter>>>>>,
) -> GetInstanceArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn maybe_filters(
self,
value: Option<impl Into<Output<Option<Vec<GetInstanceFilter>>>>>,
) -> GetInstanceArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::super::types::ec2::GetInstanceFilter>>,
> as Default>::default()
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].
sourcepub fn get_password_data(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetInstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
pub fn get_password_data(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetInstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn maybe_get_password_data(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetInstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
pub fn maybe_get_password_data(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetInstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn get_user_data(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetInstanceArgsBuilder<SetGetUserData<S>>where
S::GetUserData: IsUnset,
pub fn get_user_data(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetInstanceArgsBuilder<SetGetUserData<S>>where
S::GetUserData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn maybe_get_user_data(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetInstanceArgsBuilder<SetGetUserData<S>>where
S::GetUserData: IsUnset,
pub fn maybe_get_user_data(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetInstanceArgsBuilder<SetGetUserData<S>>where
S::GetUserData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.