pub struct GetAmiArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> GetAmiArgsBuilder<S>
impl<S: State> GetAmiArgsBuilder<S>
sourcepub fn build_struct(self) -> GetAmiArgswhere
S: IsComplete,
pub fn build_struct(self) -> GetAmiArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn executable_users(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> GetAmiArgsBuilder<SetExecutableUsers<S>>where
S::ExecutableUsers: IsUnset,
pub fn executable_users(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> GetAmiArgsBuilder<SetExecutableUsers<S>>where
S::ExecutableUsers: IsUnset,
sourcepub fn maybe_executable_users(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> GetAmiArgsBuilder<SetExecutableUsers<S>>where
S::ExecutableUsers: IsUnset,
pub fn maybe_executable_users(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> GetAmiArgsBuilder<SetExecutableUsers<S>>where
S::ExecutableUsers: IsUnset,
sourcepub fn filters(
self,
value: impl Into<Output<Option<Vec<GetAmiFilter>>>>,
) -> GetAmiArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn filters(
self,
value: impl Into<Output<Option<Vec<GetAmiFilter>>>>,
) -> GetAmiArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::super::types::ec2::GetAmiFilter>>,
> as Default>::default()
One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out [describe-images in the AWS CLI reference][1].
sourcepub fn maybe_filters(
self,
value: Option<impl Into<Output<Option<Vec<GetAmiFilter>>>>>,
) -> GetAmiArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn maybe_filters(
self,
value: Option<impl Into<Output<Option<Vec<GetAmiFilter>>>>>,
) -> GetAmiArgsBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::super::types::ec2::GetAmiFilter>>,
> as Default>::default()
One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out [describe-images in the AWS CLI reference][1].
sourcepub fn include_deprecated(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetAmiArgsBuilder<SetIncludeDeprecated<S>>where
S::IncludeDeprecated: IsUnset,
pub fn include_deprecated(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetAmiArgsBuilder<SetIncludeDeprecated<S>>where
S::IncludeDeprecated: IsUnset,
sourcepub fn maybe_include_deprecated(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetAmiArgsBuilder<SetIncludeDeprecated<S>>where
S::IncludeDeprecated: IsUnset,
pub fn maybe_include_deprecated(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetAmiArgsBuilder<SetIncludeDeprecated<S>>where
S::IncludeDeprecated: IsUnset,
sourcepub fn most_recent(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetAmiArgsBuilder<SetMostRecent<S>>where
S::MostRecent: IsUnset,
pub fn most_recent(
self,
value: impl Into<Output<Option<bool>>>,
) -> GetAmiArgsBuilder<SetMostRecent<S>>where
S::MostRecent: IsUnset,
sourcepub fn maybe_most_recent(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetAmiArgsBuilder<SetMostRecent<S>>where
S::MostRecent: IsUnset,
pub fn maybe_most_recent(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> GetAmiArgsBuilder<SetMostRecent<S>>where
S::MostRecent: IsUnset,
sourcepub fn name_regex(
self,
value: impl Into<Output<Option<String>>>,
) -> GetAmiArgsBuilder<SetNameRegex<S>>where
S::NameRegex: IsUnset,
pub fn name_regex(
self,
value: impl Into<Output<Option<String>>>,
) -> GetAmiArgsBuilder<SetNameRegex<S>>where
S::NameRegex: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Regex string to apply to the AMI list returned by AWS. This allows more advanced filtering not supported from the AWS API. This filtering is done locally on what AWS returns, and could have a performance impact if the result is large. Combine this with other options to narrow down the list AWS returns.
NOTE: If more or less than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single AMI ID only, or use
most_recent
to choose the most recent one. If you want to match multiple AMIs, use theaws.ec2.getAmiIds
data source instead.
sourcepub fn maybe_name_regex(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetAmiArgsBuilder<SetNameRegex<S>>where
S::NameRegex: IsUnset,
pub fn maybe_name_regex(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetAmiArgsBuilder<SetNameRegex<S>>where
S::NameRegex: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Regex string to apply to the AMI list returned by AWS. This allows more advanced filtering not supported from the AWS API. This filtering is done locally on what AWS returns, and could have a performance impact if the result is large. Combine this with other options to narrow down the list AWS returns.
NOTE: If more or less than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single AMI ID only, or use
most_recent
to choose the most recent one. If you want to match multiple AMIs, use theaws.ec2.getAmiIds
data source instead.