Struct aws_sdk_amp::operation::create_scraper::CreateScraperInput
source · #[non_exhaustive]pub struct CreateScraperInput {
pub alias: Option<String>,
pub scrape_configuration: Option<ScrapeConfiguration>,
pub source: Option<Source>,
pub destination: Option<Destination>,
pub client_token: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Represents the input of a CreateScraper
operation.
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.alias: Option<String>
(optional) a name to associate with the scraper. This is for your use, and does not need to be unique.
scrape_configuration: Option<ScrapeConfiguration>
The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.
source: Option<Source>
The Amazon EKS cluster from which the scraper will collect metrics.
destination: Option<Destination>
The Amazon Managed Service for Prometheus workspace to send metrics to.
client_token: Option<String>
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
(Optional) The list of tag keys and values to associate with the scraper.
Implementations§
source§impl CreateScraperInput
impl CreateScraperInput
sourcepub fn alias(&self) -> Option<&str>
pub fn alias(&self) -> Option<&str>
(optional) a name to associate with the scraper. This is for your use, and does not need to be unique.
sourcepub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
pub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn source(&self) -> Option<&Source>
pub fn source(&self) -> Option<&Source>
The Amazon EKS cluster from which the scraper will collect metrics.
sourcepub fn destination(&self) -> Option<&Destination>
pub fn destination(&self) -> Option<&Destination>
The Amazon Managed Service for Prometheus workspace to send metrics to.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
(Optional) The list of tag keys and values to associate with the scraper.
source§impl CreateScraperInput
impl CreateScraperInput
sourcepub fn builder() -> CreateScraperInputBuilder
pub fn builder() -> CreateScraperInputBuilder
Creates a new builder-style object to manufacture CreateScraperInput
.
Trait Implementations§
source§impl Clone for CreateScraperInput
impl Clone for CreateScraperInput
source§fn clone(&self) -> CreateScraperInput
fn clone(&self) -> CreateScraperInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateScraperInput
impl Debug for CreateScraperInput
source§impl PartialEq for CreateScraperInput
impl PartialEq for CreateScraperInput
impl StructuralPartialEq for CreateScraperInput
Auto Trait Implementations§
impl Freeze for CreateScraperInput
impl RefUnwindSafe for CreateScraperInput
impl Send for CreateScraperInput
impl Sync for CreateScraperInput
impl Unpin for CreateScraperInput
impl UnwindSafe for CreateScraperInput
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