Struct aws_sdk_eventbridge::types::RunCommandTarget
source · #[non_exhaustive]pub struct RunCommandTarget {
pub key: String,
pub values: Vec<String>,
}
Expand description
Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget
block can include only one key, but this key may specify multiple values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key: String
Can be either tag:
tag-key or InstanceIds
.
values: Vec<String>
If Key
is tag:
tag-key, Values
is a list of tag values. If Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.
Implementations§
source§impl RunCommandTarget
impl RunCommandTarget
sourcepub fn builder() -> RunCommandTargetBuilder
pub fn builder() -> RunCommandTargetBuilder
Creates a new builder-style object to manufacture RunCommandTarget
.
Trait Implementations§
source§impl Clone for RunCommandTarget
impl Clone for RunCommandTarget
source§fn clone(&self) -> RunCommandTarget
fn clone(&self) -> RunCommandTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RunCommandTarget
impl Debug for RunCommandTarget
source§impl PartialEq for RunCommandTarget
impl PartialEq for RunCommandTarget
source§fn eq(&self, other: &RunCommandTarget) -> bool
fn eq(&self, other: &RunCommandTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RunCommandTarget
Auto Trait Implementations§
impl Freeze for RunCommandTarget
impl RefUnwindSafe for RunCommandTarget
impl Send for RunCommandTarget
impl Sync for RunCommandTarget
impl Unpin for RunCommandTarget
impl UnwindSafe for RunCommandTarget
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.