Struct aws_sdk_ssooidc::client::fluent_builders::RegisterClient
source · [−]pub struct RegisterClient { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterClient
.
Registers a client with Amazon Web Services SSO. This allows clients to initiate device authorization. The output should be persisted for reuse through many authentication requests.
Implementations
sourceimpl RegisterClient
impl RegisterClient
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RegisterClient, AwsResponseRetryClassifier>, SdkError<RegisterClientError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<RegisterClient, AwsResponseRetryClassifier>, SdkError<RegisterClientError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<RegisterClientOutput, SdkError<RegisterClientError>>
pub async fn send(
self
) -> Result<RegisterClientOutput, SdkError<RegisterClientError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn client_name(self, input: impl Into<String>) -> Self
pub fn client_name(self, input: impl Into<String>) -> Self
The friendly name of the client.
sourcepub fn set_client_name(self, input: Option<String>) -> Self
pub fn set_client_name(self, input: Option<String>) -> Self
The friendly name of the client.
sourcepub fn client_type(self, input: impl Into<String>) -> Self
pub fn client_type(self, input: impl Into<String>) -> Self
The type of client. The service supports only public
as a client type. Anything other than public will be rejected by the service.
sourcepub fn set_client_type(self, input: Option<String>) -> Self
pub fn set_client_type(self, input: Option<String>) -> Self
The type of client. The service supports only public
as a client type. Anything other than public will be rejected by the service.
sourcepub fn scopes(self, input: impl Into<String>) -> Self
pub fn scopes(self, input: impl Into<String>) -> Self
Appends an item to scopes
.
To override the contents of this collection use set_scopes
.
The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
sourcepub fn set_scopes(self, input: Option<Vec<String>>) -> Self
pub fn set_scopes(self, input: Option<Vec<String>>) -> Self
The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
Trait Implementations
sourceimpl Clone for RegisterClient
impl Clone for RegisterClient
sourcefn clone(&self) -> RegisterClient
fn clone(&self) -> RegisterClient
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more