#[non_exhaustive]pub struct InstanceEventWindowAssociationRequest {
pub instance_ids: Option<Vec<String>>,
pub instance_tags: Option<Vec<Tag>>,
pub dedicated_host_ids: Option<Vec<String>>,
}
Expand description
One or more targets associated with the specified event window. Only one type of target (instance ID, instance tag, or Dedicated Host ID) can be associated with an event window.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_ids: Option<Vec<String>>
The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.
The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window.
dedicated_host_ids: Option<Vec<String>>
The IDs of the Dedicated Hosts to associate with the event window.
Implementations§
source§impl InstanceEventWindowAssociationRequest
impl InstanceEventWindowAssociationRequest
sourcepub fn instance_ids(&self) -> &[String]
pub fn instance_ids(&self) -> &[String]
The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instance_ids.is_none()
.
The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instance_tags.is_none()
.
sourcepub fn dedicated_host_ids(&self) -> &[String]
pub fn dedicated_host_ids(&self) -> &[String]
The IDs of the Dedicated Hosts to associate with the event window.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .dedicated_host_ids.is_none()
.
source§impl InstanceEventWindowAssociationRequest
impl InstanceEventWindowAssociationRequest
sourcepub fn builder() -> InstanceEventWindowAssociationRequestBuilder
pub fn builder() -> InstanceEventWindowAssociationRequestBuilder
Creates a new builder-style object to manufacture InstanceEventWindowAssociationRequest
.
Trait Implementations§
source§impl Clone for InstanceEventWindowAssociationRequest
impl Clone for InstanceEventWindowAssociationRequest
source§fn clone(&self) -> InstanceEventWindowAssociationRequest
fn clone(&self) -> InstanceEventWindowAssociationRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for InstanceEventWindowAssociationRequest
impl PartialEq for InstanceEventWindowAssociationRequest
source§fn eq(&self, other: &InstanceEventWindowAssociationRequest) -> bool
fn eq(&self, other: &InstanceEventWindowAssociationRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceEventWindowAssociationRequest
Auto Trait Implementations§
impl Freeze for InstanceEventWindowAssociationRequest
impl RefUnwindSafe for InstanceEventWindowAssociationRequest
impl Send for InstanceEventWindowAssociationRequest
impl Sync for InstanceEventWindowAssociationRequest
impl Unpin for InstanceEventWindowAssociationRequest
impl UnwindSafe for InstanceEventWindowAssociationRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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 more