Struct aws_sdk_sso::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Single Sign-On
Client for invoking operations on AWS Single Sign-On. Each operation on AWS Single Sign-On is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn get_role_credentials(&self) -> GetRoleCredentials
pub fn get_role_credentials(&self) -> GetRoleCredentials
Constructs a fluent builder for the GetRoleCredentials
operation.
- The fluent builder is configurable:
role_name(impl Into<String>)
/set_role_name(Option<String>)
:The friendly name of the role that is assigned to the user.
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The identifier for the AWS account that is assigned to the user.
access_token(impl Into<String>)
/set_access_token(Option<String>)
:The token issued by the
CreateToken
API call. For more information, see CreateToken in the AWS SSO OIDC API Reference Guide.
- On success, responds with
GetRoleCredentialsOutput
with field(s):role_credentials(Option<RoleCredentials>)
:The credentials for the role that is assigned to the user.
- On failure, responds with
SdkError<GetRoleCredentialsError>
sourcepub fn list_account_roles(&self) -> ListAccountRoles
pub fn list_account_roles(&self) -> ListAccountRoles
Constructs a fluent builder for the ListAccountRoles
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The page token from the previous response output when you request subsequent pages.
max_results(i32)
/set_max_results(Option<i32>)
:The number of items that clients can request per page.
access_token(impl Into<String>)
/set_access_token(Option<String>)
:The token issued by the
CreateToken
API call. For more information, see CreateToken in the AWS SSO OIDC API Reference Guide.account_id(impl Into<String>)
/set_account_id(Option<String>)
:The identifier for the AWS account that is assigned to the user.
- On success, responds with
ListAccountRolesOutput
with field(s):next_token(Option<String>)
:The page token client that is used to retrieve the list of accounts.
role_list(Option<Vec<RoleInfo>>)
:A paginated response with the list of roles and the next token if more results are available.
- On failure, responds with
SdkError<ListAccountRolesError>
sourcepub fn list_accounts(&self) -> ListAccounts
pub fn list_accounts(&self) -> ListAccounts
Constructs a fluent builder for the ListAccounts
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:(Optional) When requesting subsequent pages, this is the page token from the previous response output.
max_results(i32)
/set_max_results(Option<i32>)
:This is the number of items clients can request per page.
access_token(impl Into<String>)
/set_access_token(Option<String>)
:The token issued by the
CreateToken
API call. For more information, see CreateToken in the AWS SSO OIDC API Reference Guide.
- On success, responds with
ListAccountsOutput
with field(s):next_token(Option<String>)
:The page token client that is used to retrieve the list of accounts.
account_list(Option<Vec<AccountInfo>>)
:A paginated response with the list of account information and the next token if more results are available.
- On failure, responds with
SdkError<ListAccountsError>
sourcepub fn logout(&self) -> Logout
pub fn logout(&self) -> Logout
Constructs a fluent builder for the Logout
operation.
- The fluent builder is configurable:
access_token(impl Into<String>)
/set_access_token(Option<String>)
:The token issued by the
CreateToken
API call. For more information, see CreateToken in the AWS SSO OIDC API Reference Guide.
- On success, responds with
LogoutOutput
- On failure, responds with
SdkError<LogoutError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more