Skip to main content

aws_sdk_emrserverless/client/
get_resource_dashboard.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 [`GetResourceDashboard`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_id(impl Into<String>)`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::set_application_id):<br>required: **true**<br><p>The ID of the application that the resource belongs to.</p><br>
7    ///   - [`resource_id(impl Into<String>)`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::set_resource_id):<br>required: **true**<br><p>The ID of the resource.</p><br>
8    ///   - [`resource_type(ResourceType)`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::resource_type) / [`set_resource_type(Option<ResourceType>)`](crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::set_resource_type):<br>required: **true**<br><p>The type of resource to access the dashboard for. Currently, only <code>Session</code> is supported.</p><br>
9    /// - On success, responds with [`GetResourceDashboardOutput`](crate::operation::get_resource_dashboard::GetResourceDashboardOutput) with field(s):
10    ///   - [`url(Option<String>)`](crate::operation::get_resource_dashboard::GetResourceDashboardOutput::url): <p>A URL to the resource dashboard. For an active resource, this URL opens the live application UI. For a terminated resource, this URL opens the persistent application UI. This value is not included in the response if the URL is not available.</p>
11    /// - On failure, responds with [`SdkError<GetResourceDashboardError>`](crate::operation::get_resource_dashboard::GetResourceDashboardError)
12    pub fn get_resource_dashboard(&self) -> crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder {
13        crate::operation::get_resource_dashboard::builders::GetResourceDashboardFluentBuilder::new(self.handle.clone())
14    }
15}