aws-sdk-cloudwatchomni 1.2.0

AWS SDK for CloudWatch Omni
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateOneTimeDeepLinkCode`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_id(impl Into<String>)`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::domain_id) / [`set_domain_id(Option<String>)`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::set_domain_id):<br>required: **true**<br>The ID of the domain to generate the code for.<br>
    ///   - [`ttl_seconds(i32)`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::ttl_seconds) / [`set_ttl_seconds(Option<i32>)`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::set_ttl_seconds):<br>required: **false**<br>How long the code remains valid, in seconds. Defaults to 300.<br>
    ///   - [`redirect_url(impl Into<String>)`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::redirect_url) / [`set_redirect_url(Option<String>)`](crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::set_redirect_url):<br>required: **false**<br>The URL to redirect to after the deep-link code is used. Must be an HTTPS URL in the domain with a path of /auth/callback, and cannot include a query string or fragment. If omitted, no redirect is applied.<br>
    /// - On success, responds with [`CreateOneTimeDeepLinkCodeOutput`](crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeOutput) with field(s):
    ///   - [`code(String)`](crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeOutput::code): The one-time deep-link code.
    ///   - [`deep_link_url(String)`](crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeOutput::deep_link_url): The deep-link URL containing the one-time code.
    ///   - [`expires_at(DateTime)`](crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeOutput::expires_at): The timestamp when the code expires.
    /// - On failure, responds with [`SdkError<CreateOneTimeDeepLinkCodeError>`](crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError)
    pub fn create_one_time_deep_link_code(
        &self,
    ) -> crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder {
        crate::operation::create_one_time_deep_link_code::builders::CreateOneTimeDeepLinkCodeFluentBuilder::new(self.handle.clone())
    }
}