pub struct GetInstancesArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> GetInstancesArgsBuilder<S>
impl<S: State> GetInstancesArgsBuilder<S>
sourcepub fn build_struct(self) -> GetInstancesArgswhere
S: IsComplete,
pub fn build_struct(self) -> GetInstancesArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn filters(
self,
value: impl Into<Output<Option<Vec<GetInstancesFilter>>>>,
) -> GetInstancesArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn filters(
self,
value: impl Into<Output<Option<Vec<GetInstancesFilter>>>>,
) -> GetInstancesArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::super::types::ec2::GetInstancesFilter>>,
> 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<GetInstancesFilter>>>>>,
) -> GetInstancesArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn maybe_filters(
self,
value: Option<impl Into<Output<Option<Vec<GetInstancesFilter>>>>>,
) -> GetInstancesArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::super::types::ec2::GetInstancesFilter>>,
> 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 instance_state_names(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> GetInstancesArgsBuilder<SetInstanceStateNames<S>>where
S::InstanceStateNames: IsUnset,
pub fn instance_state_names(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> GetInstancesArgsBuilder<SetInstanceStateNames<S>>where
S::InstanceStateNames: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
List of instance states that should be applicable to the desired instances. The permitted values are: pending, running, shutting-down, stopped, stopping, terminated
. The default value is running
.
sourcepub fn maybe_instance_state_names(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> GetInstancesArgsBuilder<SetInstanceStateNames<S>>where
S::InstanceStateNames: IsUnset,
pub fn maybe_instance_state_names(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> GetInstancesArgsBuilder<SetInstanceStateNames<S>>where
S::InstanceStateNames: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
List of instance states that should be applicable to the desired instances. The permitted values are: pending, running, shutting-down, stopped, stopping, terminated
. The default value is running
.