1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetResourceMetadata`](crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`GetResourceMetadataOutput`](crate::operation::get_resource_metadata::GetResourceMetadataOutput) with field(s):
    ///   - [`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>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<GetResourceMetadataError>`](crate::operation::get_resource_metadata::GetResourceMetadataError)
    pub fn get_resource_metadata(&self) -> crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder {
        crate::operation::get_resource_metadata::builders::GetResourceMetadataFluentBuilder::new(self.handle.clone())
    }
}