aws_sdk_evs/client/get_depot_url.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 [`GetDepotUrl`](crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`environment_id(impl Into<String>)`](crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder::set_environment_id):<br>required: **true**<br><p>The unique ID of the Amazon EVS environment to get the depot URL for.</p><br>
7 /// - [`rotate(bool)`](crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder::rotate) / [`set_rotate(Option<bool>)`](crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder::set_rotate):<br>required: **false**<br><p>Revokes the current authentication token and returns a new depot URL with a new token. Previously issued depot URLs will stop working within 5 minutes of rotation.</p><br>
8 /// - On success, responds with [`GetDepotUrlOutput`](crate::operation::get_depot_url::GetDepotUrlOutput) with field(s):
9 /// - [`depot_url(String)`](crate::operation::get_depot_url::GetDepotUrlOutput::depot_url): <p>The URL for accessing the Amazon EVS Custom Addon depot. This URL includes the authentication token as a path component.</p>
10 /// - [`token(String)`](crate::operation::get_depot_url::GetDepotUrlOutput::token): <p>The authentication token for depot access. This token is included in the depot URL and is used to authenticate requests.</p>
11 /// - On failure, responds with [`SdkError<GetDepotUrlError>`](crate::operation::get_depot_url::GetDepotUrlError)
12 pub fn get_depot_url(&self) -> crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder {
13 crate::operation::get_depot_url::builders::GetDepotUrlFluentBuilder::new(self.handle.clone())
14 }
15}