aws_sdk_pi/client/
get_resource_metadata.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetResourceMetadata`](crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_type(ServiceType)`](crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder::service_type) / [`set_service_type(Option<ServiceType>)`](crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder::set_service_type):<br>required: **true**<br><p>The Amazon Web Services service for which Performance Insights returns metrics.</p><br>
7    ///   - [`identifier(impl Into<String>)`](crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder::set_identifier):<br>required: **true**<br><p>An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its <code>DbiResourceId</code> value. For example, specify <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.</p><br>
8    /// - On success, responds with [`GetResourceMetadataOutput`](crate::operation::get_resource_metadata::GetResourceMetadataOutput) with field(s):
9    ///   - [`identifier(Option<String>)`](crate::operation::get_resource_metadata::GetResourceMetadataOutput::identifier): <p>An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its <code>DbiResourceId</code> value. For example, specify <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.</p>
10    ///   - [`features(Option<HashMap::<String, FeatureMetadata>>)`](crate::operation::get_resource_metadata::GetResourceMetadataOutput::features): <p>The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.</p>
11    /// - On failure, responds with [`SdkError<GetResourceMetadataError>`](crate::operation::get_resource_metadata::GetResourceMetadataError)
12    pub fn get_resource_metadata(&self) -> crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder {
13        crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder::new(self.handle.clone())
14    }
15}