aws_sdk_elasticbeanstalk/client/
describe_environment_resources.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 [`DescribeEnvironmentResources`](crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`environment_id(impl Into<String>)`](crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder::set_environment_id):<br>required: **false**<br><p>The ID of the environment to retrieve AWS resource usage data.</p> <p>Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns <code>MissingRequiredParameter</code> error.</p><br>
7    ///   - [`environment_name(impl Into<String>)`](crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder::set_environment_name):<br>required: **false**<br><p>The name of the environment to retrieve AWS resource usage data.</p> <p>Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns <code>MissingRequiredParameter</code> error.</p><br>
8    /// - On success, responds with [`DescribeEnvironmentResourcesOutput`](crate::operation::describe_environment_resources::DescribeEnvironmentResourcesOutput) with field(s):
9    ///   - [`environment_resources(Option<EnvironmentResourceDescription>)`](crate::operation::describe_environment_resources::DescribeEnvironmentResourcesOutput::environment_resources): <p>A list of <code>EnvironmentResourceDescription</code>.</p>
10    /// - On failure, responds with [`SdkError<DescribeEnvironmentResourcesError>`](crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError)
11    pub fn describe_environment_resources(
12        &self,
13    ) -> crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder {
14        crate::operation::describe_environment_resources::builders::DescribeEnvironmentResourcesFluentBuilder::new(self.handle.clone())
15    }
16}