7#include <aws/core/AmazonSerializableWebServiceRequest.h>
8#include <aws/core/client/AWSClient.h>
9#include <aws/core/client/AWSClientAsyncCRTP.h>
10#include <aws/core/client/ClientConfiguration.h>
11#include <aws/core/utils/xml/XmlSerializer.h>
12#include <aws/sts/STSServiceClientModel.h>
13#include <aws/sts/STS_EXPORTS.h>
39 std::shared_ptr<STSEndpointProviderBase> endpointProvider =
nullptr);
52 STSClient(
const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
53 std::shared_ptr<STSEndpointProviderBase> endpointProvider =
nullptr,
73 STSClient(
const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
173 template <
typename AssumeRoleRequestT = Model::AssumeRoleRequest>
175 return SubmitCallable(&STSClient::AssumeRole, request);
182 template <
typename AssumeRoleRequestT = Model::AssumeRoleRequest>
184 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
185 return SubmitAsync(&STSClient::AssumeRole, request, handler, context);
313 template <
typename AssumeRoleWithSAMLRequestT = Model::AssumeRoleWithSAMLRequest>
315 return SubmitCallable(&STSClient::AssumeRoleWithSAML, request);
322 template <
typename AssumeRoleWithSAMLRequestT = Model::AssumeRoleWithSAMLRequest>
324 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
325 return SubmitAsync(&STSClient::AssumeRoleWithSAML, request, handler, context);
456 template <
typename AssumeRoleWithWebIdentityRequestT = Model::AssumeRoleWithWebIdentityRequest>
458 const AssumeRoleWithWebIdentityRequestT& request)
const {
459 return SubmitCallable(&STSClient::AssumeRoleWithWebIdentity, request);
466 template <
typename AssumeRoleWithWebIdentityRequestT = Model::AssumeRoleWithWebIdentityRequest>
469 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
470 return SubmitAsync(&STSClient::AssumeRoleWithWebIdentity, request, handler, context);
496 template <
typename AssumeRootRequestT = Model::AssumeRootRequest>
498 return SubmitCallable(&STSClient::AssumeRoot, request);
505 template <
typename AssumeRootRequestT = Model::AssumeRootRequest>
507 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
508 return SubmitAsync(&STSClient::AssumeRoot, request, handler, context);
548 template <
typename DecodeAuthorizationMessageRequestT = Model::DecodeAuthorizationMessageRequest>
550 const DecodeAuthorizationMessageRequestT& request)
const {
551 return SubmitCallable(&STSClient::DecodeAuthorizationMessage, request);
558 template <
typename DecodeAuthorizationMessageRequestT = Model::DecodeAuthorizationMessageRequest>
561 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
562 return SubmitAsync(&STSClient::DecodeAuthorizationMessage, request, handler, context);
599 template <
typename GetAccessKeyInfoRequestT = Model::GetAccessKeyInfoRequest>
601 return SubmitCallable(&STSClient::GetAccessKeyInfo, request);
608 template <
typename GetAccessKeyInfoRequestT = Model::GetAccessKeyInfoRequest>
610 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
611 return SubmitAsync(&STSClient::GetAccessKeyInfo, request, handler, context);
634 template <
typename GetCallerIdentityRequestT = Model::GetCallerIdentityRequest>
636 return SubmitCallable(&STSClient::GetCallerIdentity, request);
643 template <
typename GetCallerIdentityRequestT = Model::GetCallerIdentityRequest>
645 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr,
646 const GetCallerIdentityRequestT& request = {})
const {
647 return SubmitAsync(&STSClient::GetCallerIdentity, request, handler, context);
746 template <
typename GetFederationTokenRequestT = Model::GetFederationTokenRequest>
748 return SubmitCallable(&STSClient::GetFederationToken, request);
755 template <
typename GetFederationTokenRequestT = Model::GetFederationTokenRequest>
757 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
758 return SubmitAsync(&STSClient::GetFederationToken, request, handler, context);
819 template <
typename GetSessionTokenRequestT = Model::GetSessionTokenRequest>
821 return SubmitCallable(&STSClient::GetSessionToken, request);
828 template <
typename GetSessionTokenRequestT = Model::GetSessionTokenRequest>
830 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr,
831 const GetSessionTokenRequestT& request = {})
const {
832 return SubmitAsync(&STSClient::GetSessionToken, request, handler, context);
843 std::shared_ptr<STSEndpointProviderBase> m_endpointProvider;
Model::GetAccessKeyInfoOutcomeCallable GetAccessKeyInfoCallable(const GetAccessKeyInfoRequestT &request) const
STSClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< STSEndpointProviderBase > endpointProvider=nullptr, const Aws::STS::STSClientConfiguration &clientConfiguration=Aws::STS::STSClientConfiguration())
void GetAccessKeyInfoAsync(const GetAccessKeyInfoRequestT &request, const GetAccessKeyInfoResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GetAccessKeyInfoOutcome GetAccessKeyInfo(const Model::GetAccessKeyInfoRequest &request) const
Model::GetFederationTokenOutcomeCallable GetFederationTokenCallable(const GetFederationTokenRequestT &request) const
Model::AssumeRoleWithWebIdentityOutcomeCallable AssumeRoleWithWebIdentityCallable(const AssumeRoleWithWebIdentityRequestT &request) const
std::shared_ptr< STSEndpointProviderBase > & accessEndpointProvider()
virtual Model::GetCallerIdentityOutcome GetCallerIdentity(const Model::GetCallerIdentityRequest &request={}) const
STSClient(const Aws::STS::STSClientConfiguration &clientConfiguration=Aws::STS::STSClientConfiguration(), std::shared_ptr< STSEndpointProviderBase > endpointProvider=nullptr)
void AssumeRoleWithWebIdentityAsync(const AssumeRoleWithWebIdentityRequestT &request, const AssumeRoleWithWebIdentityResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void AssumeRoleAsync(const AssumeRoleRequestT &request, const AssumeRoleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void DecodeAuthorizationMessageAsync(const DecodeAuthorizationMessageRequestT &request, const DecodeAuthorizationMessageResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetCallerIdentityAsync(const GetCallerIdentityResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetCallerIdentityRequestT &request={}) const
virtual Model::AssumeRoleWithSAMLOutcome AssumeRoleWithSAML(const Model::AssumeRoleWithSAMLRequest &request) const
Model::AssumeRoleWithSAMLOutcomeCallable AssumeRoleWithSAMLCallable(const AssumeRoleWithSAMLRequestT &request) const
void GetFederationTokenAsync(const GetFederationTokenRequestT &request, const GetFederationTokenResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
STSClientConfiguration ClientConfigurationType
virtual Model::AssumeRoleWithWebIdentityOutcome AssumeRoleWithWebIdentity(const Model::AssumeRoleWithWebIdentityRequest &request) const
STSClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::AssumeRoleOutcome AssumeRole(const Model::AssumeRoleRequest &request) const
virtual Model::DecodeAuthorizationMessageOutcome DecodeAuthorizationMessage(const Model::DecodeAuthorizationMessageRequest &request) const
static const char * GetServiceName()
virtual Model::GetSessionTokenOutcome GetSessionToken(const Model::GetSessionTokenRequest &request={}) const
STSClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::DecodeAuthorizationMessageOutcomeCallable DecodeAuthorizationMessageCallable(const DecodeAuthorizationMessageRequestT &request) const
void GetSessionTokenAsync(const GetSessionTokenResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetSessionTokenRequestT &request={}) const
Model::AssumeRoleOutcomeCallable AssumeRoleCallable(const AssumeRoleRequestT &request) const
Model::AssumeRootOutcomeCallable AssumeRootCallable(const AssumeRootRequestT &request) const
Model::GetCallerIdentityOutcomeCallable GetCallerIdentityCallable(const GetCallerIdentityRequestT &request={}) const
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::GetFederationTokenOutcome GetFederationToken(const Model::GetFederationTokenRequest &request) const
static const char * GetAllocationTag()
void AssumeRootAsync(const AssumeRootRequestT &request, const AssumeRootResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::Client::AWSXMLClient BASECLASS
STSClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< STSEndpointProviderBase > endpointProvider=nullptr, const Aws::STS::STSClientConfiguration &clientConfiguration=Aws::STS::STSClientConfiguration())
Model::GetSessionTokenOutcomeCallable GetSessionTokenCallable(const GetSessionTokenRequestT &request={}) const
Aws::String ConvertRequestToPresignedUrl(const Aws::AmazonSerializableWebServiceRequest &requestToConvert, const char *region) const
void AssumeRoleWithSAMLAsync(const AssumeRoleWithSAMLRequestT &request, const AssumeRoleWithSAMLResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
STSClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::AssumeRootOutcome AssumeRoot(const Model::AssumeRootRequest &request) const
STSEndpointProvider EndpointProviderType
std::future< GetCallerIdentityOutcome > GetCallerIdentityOutcomeCallable
std::future< AssumeRoleWithWebIdentityOutcome > AssumeRoleWithWebIdentityOutcomeCallable
std::future< GetAccessKeyInfoOutcome > GetAccessKeyInfoOutcomeCallable
std::future< AssumeRootOutcome > AssumeRootOutcomeCallable
std::future< AssumeRoleWithSAMLOutcome > AssumeRoleWithSAMLOutcomeCallable
std::future< GetFederationTokenOutcome > GetFederationTokenOutcomeCallable
std::future< DecodeAuthorizationMessageOutcome > DecodeAuthorizationMessageOutcomeCallable
std::future< AssumeRoleOutcome > AssumeRoleOutcomeCallable
std::future< GetSessionTokenOutcome > GetSessionTokenOutcomeCallable
std::function< void(const STSClient *, const Model::AssumeRootRequest &, const Model::AssumeRootOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> AssumeRootResponseReceivedHandler
std::function< void(const STSClient *, const Model::DecodeAuthorizationMessageRequest &, const Model::DecodeAuthorizationMessageOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DecodeAuthorizationMessageResponseReceivedHandler
std::function< void(const STSClient *, const Model::AssumeRoleRequest &, const Model::AssumeRoleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> AssumeRoleResponseReceivedHandler
std::function< void(const STSClient *, const Model::GetSessionTokenRequest &, const Model::GetSessionTokenOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetSessionTokenResponseReceivedHandler
std::function< void(const STSClient *, const Model::GetAccessKeyInfoRequest &, const Model::GetAccessKeyInfoOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetAccessKeyInfoResponseReceivedHandler
std::function< void(const STSClient *, const Model::GetCallerIdentityRequest &, const Model::GetCallerIdentityOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetCallerIdentityResponseReceivedHandler
std::function< void(const STSClient *, const Model::GetFederationTokenRequest &, const Model::GetFederationTokenOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetFederationTokenResponseReceivedHandler
std::function< void(const STSClient *, const Model::AssumeRoleWithWebIdentityRequest &, const Model::AssumeRoleWithWebIdentityOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> AssumeRoleWithWebIdentityResponseReceivedHandler
std::function< void(const STSClient *, const Model::AssumeRoleWithSAMLRequest &, const Model::AssumeRoleWithSAMLOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> AssumeRoleWithSAMLResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String