#[non_exhaustive]pub struct PutQueryDefinitionInput {
pub name: Option<String>,
pub query_definition_id: Option<String>,
pub log_group_names: Option<Vec<String>>,
pub query_string: Option<String>,
pub client_token: Option<String>,
}
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.name: Option<String>
A name for the query definition. If you are saving numerous query definitions, we recommend that you name them. This way, you can find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.
query_definition_id: Option<String>
If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
log_group_names: Option<Vec<String>>
Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
query_string: Option<String>
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
client_token: Option<String>
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.
Implementations§
source§impl PutQueryDefinitionInput
impl PutQueryDefinitionInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A name for the query definition. If you are saving numerous query definitions, we recommend that you name them. This way, you can find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.
sourcepub fn query_definition_id(&self) -> Option<&str>
pub fn query_definition_id(&self) -> Option<&str>
If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
sourcepub fn log_group_names(&self) -> &[String]
pub fn log_group_names(&self) -> &[String]
Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .log_group_names.is_none()
.
sourcepub fn query_string(&self) -> Option<&str>
pub fn query_string(&self) -> Option<&str>
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.
source§impl PutQueryDefinitionInput
impl PutQueryDefinitionInput
sourcepub fn builder() -> PutQueryDefinitionInputBuilder
pub fn builder() -> PutQueryDefinitionInputBuilder
Creates a new builder-style object to manufacture PutQueryDefinitionInput
.
Trait Implementations§
source§impl Clone for PutQueryDefinitionInput
impl Clone for PutQueryDefinitionInput
source§fn clone(&self) -> PutQueryDefinitionInput
fn clone(&self) -> PutQueryDefinitionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutQueryDefinitionInput
impl Debug for PutQueryDefinitionInput
source§impl PartialEq for PutQueryDefinitionInput
impl PartialEq for PutQueryDefinitionInput
source§fn eq(&self, other: &PutQueryDefinitionInput) -> bool
fn eq(&self, other: &PutQueryDefinitionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutQueryDefinitionInput
Auto Trait Implementations§
impl Freeze for PutQueryDefinitionInput
impl RefUnwindSafe for PutQueryDefinitionInput
impl Send for PutQueryDefinitionInput
impl Sync for PutQueryDefinitionInput
impl Unpin for PutQueryDefinitionInput
impl UnwindSafe for PutQueryDefinitionInput
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> 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