aws-sdk-credentialbroker 1.0.0

AWS SDK for AWS IAM CredentialBroker
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartOAuthSession`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`credential_provider_arn(impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::credential_provider_arn) / [`set_credential_provider_arn(Option<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_credential_provider_arn):<br>required: **true**<br><p>Amazon Resource Name of the credential provider the user is granting consent for.</p><br>
    ///   - [`scopes(impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::scopes) / [`set_scopes(Option<Vec::<String>>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_scopes):<br>required: **false**<br><p>The OAuth scopes to request from the authorization server.</p><br>
    ///   - [`session_binding_url(impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::session_binding_url) / [`set_session_binding_url(Option<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_session_binding_url):<br>required: **true**<br><p>The URL the end user's browser is returned to once they have responded to the consent prompt. Must match one of the session-binding URLs allowed on the provider.</p><br>
    ///   - [`resources(impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::resources) / [`set_resources(Option<Vec::<String>>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_resources):<br>required: **false**<br><p>Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.</p><br>
    ///   - [`audiences(impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::audiences) / [`set_audiences(Option<Vec::<String>>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_audiences):<br>required: **false**<br><p>Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.</p><br>
    ///   - [`custom_parameters(impl Into<String>, impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::custom_parameters) / [`set_custom_parameters(Option<HashMap::<String, String>>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_custom_parameters):<br>required: **false**<br><p>Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.</p><br>
    ///   - [`custom_state(impl Into<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::custom_state) / [`set_custom_state(Option<String>)`](crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::set_custom_state):<br>required: **false**<br><p>An opaque string of your own that is sent back to your session-binding URL unchanged. Use it to tie the response to the request you issued, so your handler can reject a response it did not initiate.</p><br>
    /// - On success, responds with [`StartOAuthSessionOutput`](crate::operation::start_o_auth_session::StartOAuthSessionOutput) with field(s):
    ///   - [`authorization_url(Option<String>)`](crate::operation::start_o_auth_session::StartOAuthSessionOutput::authorization_url): <p>The URL to send the end user's browser to so they can grant consent. Present only when consent is required; absent when a token was available and is returned instead.</p>
    ///   - [`session_uri(Option<String>)`](crate::operation::start_o_auth_session::StartOAuthSessionOutput::session_uri): <p>Opaque handle to the pending consent session. Present only when interactive consent is required (absent when accessToken is returned).</p>
    ///   - [`session_status(Option<SessionStatus>)`](crate::operation::start_o_auth_session::StartOAuthSessionOutput::session_status): <p>Status of the session (IN_PROGRESS when consent is required).</p>
    ///   - [`access_token(Option<String>)`](crate::operation::start_o_auth_session::StartOAuthSessionOutput::access_token): <p>Present only when a valid token already existed (no consent needed).</p>
    ///   - [`expires_at(Option<DateTime>)`](crate::operation::start_o_auth_session::StartOAuthSessionOutput::expires_at): <p>Expiry of accessToken when returned.</p>
    /// - On failure, responds with [`SdkError<StartOAuthSessionError>`](crate::operation::start_o_auth_session::StartOAuthSessionError)
    pub fn start_o_auth_session(&self) -> crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder {
        crate::operation::start_o_auth_session::builders::StartOAuthSessionFluentBuilder::new(self.handle.clone())
    }
}