pub struct Ec2SelectArgs {
pub filter: Option<Vec<String>>,
pub docproc: bool,
pub avscan: bool,
pub no_avscan: bool,
pub stepfile: bool,
pub no_stepfile: bool,
pub query: Vec<String>,
}
Fields§
§filter: Option<Vec<String>>
Raw filters passed to AWS API (--filter key=value[,value2...]
)
For possible values see the ‘Filter.N’ section of DescribeInstances: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
docproc: bool
Only ‘regular’ doc-proc servers
This is a shortcut for --filter tag:AV_Scan=false --filter tag:StepfileProcessor=false
avscan: bool
Only av-scan doc-proc servers
This is a shortcut for --filter tag:AV_Scan=true
no_avscan: bool
Exclude av-scan doc-proc servers
This is a shortcut for --filter tag:AV_Scan=false
stepfile: bool
Only stepfile-processor doc-proc servers
This is a shortcut for --filter tag:StepfileProcessor=true
no_stepfile: bool
Exclude stepfile-processor doc-proc servers
This is a shortcut for --filter tag:StepfileProcessor=false
query: Vec<String>
Filter instances
- start with
i-
to filter (starts_with) match on aws instance id - numbers will only match on the end of the name, intended for cluster-id filtering
- anything else will be matched (contains) on the tag
Name
Implementations§
Source§impl Ec2SelectArgs
impl Ec2SelectArgs
pub fn filter_with_extra_flags(&self) -> Vec<String>
pub fn has_no_filters(&self) -> bool
Trait Implementations§
Source§impl Args for Ec2SelectArgs
impl Args for Ec2SelectArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Debug for Ec2SelectArgs
impl Debug for Ec2SelectArgs
Source§impl FromArgMatches for Ec2SelectArgs
impl FromArgMatches for Ec2SelectArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for Ec2SelectArgs
impl RefUnwindSafe for Ec2SelectArgs
impl Send for Ec2SelectArgs
impl Sync for Ec2SelectArgs
impl Unpin for Ec2SelectArgs
impl UnwindSafe for Ec2SelectArgs
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.