AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
STSClient.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/AmazonSerializableWebServiceRequest.h>
10#include <aws/core/client/AWSClient.h>
11#include <aws/core/client/AWSClientAsyncCRTP.h>
12#include <aws/core/utils/xml/XmlSerializer.h>
13#include <aws/sts/STSServiceClientModel.h>
14
15namespace Aws
16{
17namespace STS
18{
28 {
29 public:
31 static const char* GetServiceName();
32 static const char* GetAllocationTag();
33
36
42 std::shared_ptr<STSEndpointProviderBase> endpointProvider = nullptr);
43
49 std::shared_ptr<STSEndpointProviderBase> endpointProvider = nullptr,
51
56 STSClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
57 std::shared_ptr<STSEndpointProviderBase> endpointProvider = nullptr,
59
60
61 /* Legacy constructors due deprecation */
66 STSClient(const Aws::Client::ClientConfiguration& clientConfiguration);
67
73 const Aws::Client::ClientConfiguration& clientConfiguration);
74
79 STSClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
80 const Aws::Client::ClientConfiguration& clientConfiguration);
81
82 /* End of legacy constructors due deprecation */
83 virtual ~STSClient();
84
85
89 Aws::String ConvertRequestToPresignedUrl(const Aws::AmazonSerializableWebServiceRequest& requestToConvert, const char* region) const;
90
91
178
182 template<typename AssumeRoleRequestT = Model::AssumeRoleRequest>
183 Model::AssumeRoleOutcomeCallable AssumeRoleCallable(const AssumeRoleRequestT& request) const
184 {
185 return SubmitCallable(&STSClient::AssumeRole, request);
186 }
187
191 template<typename AssumeRoleRequestT = Model::AssumeRoleRequest>
192 void AssumeRoleAsync(const AssumeRoleRequestT& request, const AssumeRoleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
193 {
194 return SubmitAsync(&STSClient::AssumeRole, request, handler, context);
195 }
196
317
321 template<typename AssumeRoleWithSAMLRequestT = Model::AssumeRoleWithSAMLRequest>
322 Model::AssumeRoleWithSAMLOutcomeCallable AssumeRoleWithSAMLCallable(const AssumeRoleWithSAMLRequestT& request) const
323 {
324 return SubmitCallable(&STSClient::AssumeRoleWithSAML, request);
325 }
326
330 template<typename AssumeRoleWithSAMLRequestT = Model::AssumeRoleWithSAMLRequest>
331 void AssumeRoleWithSAMLAsync(const AssumeRoleWithSAMLRequestT& request, const AssumeRoleWithSAMLResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
332 {
333 return SubmitAsync(&STSClient::AssumeRoleWithSAML, request, handler, context);
334 }
335
470
474 template<typename AssumeRoleWithWebIdentityRequestT = Model::AssumeRoleWithWebIdentityRequest>
475 Model::AssumeRoleWithWebIdentityOutcomeCallable AssumeRoleWithWebIdentityCallable(const AssumeRoleWithWebIdentityRequestT& request) const
476 {
477 return SubmitCallable(&STSClient::AssumeRoleWithWebIdentity, request);
478 }
479
483 template<typename AssumeRoleWithWebIdentityRequestT = Model::AssumeRoleWithWebIdentityRequest>
484 void AssumeRoleWithWebIdentityAsync(const AssumeRoleWithWebIdentityRequestT& request, const AssumeRoleWithWebIdentityResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
485 {
486 return SubmitAsync(&STSClient::AssumeRoleWithWebIdentity, request, handler, context);
487 }
488
520
524 template<typename DecodeAuthorizationMessageRequestT = Model::DecodeAuthorizationMessageRequest>
525 Model::DecodeAuthorizationMessageOutcomeCallable DecodeAuthorizationMessageCallable(const DecodeAuthorizationMessageRequestT& request) const
526 {
527 return SubmitCallable(&STSClient::DecodeAuthorizationMessage, request);
528 }
529
533 template<typename DecodeAuthorizationMessageRequestT = Model::DecodeAuthorizationMessageRequest>
534 void DecodeAuthorizationMessageAsync(const DecodeAuthorizationMessageRequestT& request, const DecodeAuthorizationMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
535 {
536 return SubmitAsync(&STSClient::DecodeAuthorizationMessage, request, handler, context);
537 }
538
568
572 template<typename GetAccessKeyInfoRequestT = Model::GetAccessKeyInfoRequest>
573 Model::GetAccessKeyInfoOutcomeCallable GetAccessKeyInfoCallable(const GetAccessKeyInfoRequestT& request) const
574 {
575 return SubmitCallable(&STSClient::GetAccessKeyInfo, request);
576 }
577
581 template<typename GetAccessKeyInfoRequestT = Model::GetAccessKeyInfoRequest>
582 void GetAccessKeyInfoAsync(const GetAccessKeyInfoRequestT& request, const GetAccessKeyInfoResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
583 {
584 return SubmitAsync(&STSClient::GetAccessKeyInfo, request, handler, context);
585 }
586
602
606 template<typename GetCallerIdentityRequestT = Model::GetCallerIdentityRequest>
607 Model::GetCallerIdentityOutcomeCallable GetCallerIdentityCallable(const GetCallerIdentityRequestT& request = {}) const
608 {
609 return SubmitCallable(&STSClient::GetCallerIdentity, request);
610 }
611
615 template<typename GetCallerIdentityRequestT = Model::GetCallerIdentityRequest>
616 void GetCallerIdentityAsync(const GetCallerIdentityResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetCallerIdentityRequestT& request = {}) const
617 {
618 return SubmitAsync(&STSClient::GetCallerIdentity, request, handler, context);
619 }
620
712
716 template<typename GetFederationTokenRequestT = Model::GetFederationTokenRequest>
717 Model::GetFederationTokenOutcomeCallable GetFederationTokenCallable(const GetFederationTokenRequestT& request) const
718 {
719 return SubmitCallable(&STSClient::GetFederationToken, request);
720 }
721
725 template<typename GetFederationTokenRequestT = Model::GetFederationTokenRequest>
726 void GetFederationTokenAsync(const GetFederationTokenRequestT& request, const GetFederationTokenResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
727 {
728 return SubmitAsync(&STSClient::GetFederationToken, request, handler, context);
729 }
730
785
789 template<typename GetSessionTokenRequestT = Model::GetSessionTokenRequest>
790 Model::GetSessionTokenOutcomeCallable GetSessionTokenCallable(const GetSessionTokenRequestT& request = {}) const
791 {
792 return SubmitCallable(&STSClient::GetSessionToken, request);
793 }
794
798 template<typename GetSessionTokenRequestT = Model::GetSessionTokenRequest>
799 void GetSessionTokenAsync(const GetSessionTokenResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetSessionTokenRequestT& request = {}) const
800 {
801 return SubmitAsync(&STSClient::GetSessionToken, request, handler, context);
802 }
803
804
805 void OverrideEndpoint(const Aws::String& endpoint);
806 std::shared_ptr<STSEndpointProviderBase>& accessEndpointProvider();
807 private:
809 void init(const STSClientConfiguration& clientConfiguration);
810
811 STSClientConfiguration m_clientConfiguration;
812 std::shared_ptr<STSEndpointProviderBase> m_endpointProvider;
813 };
814
815} // namespace STS
816} // namespace Aws
Model::GetAccessKeyInfoOutcomeCallable GetAccessKeyInfoCallable(const GetAccessKeyInfoRequestT &request) const
Definition STSClient.h:573
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
Definition STSClient.h:582
virtual Model::GetAccessKeyInfoOutcome GetAccessKeyInfo(const Model::GetAccessKeyInfoRequest &request) const
Model::GetFederationTokenOutcomeCallable GetFederationTokenCallable(const GetFederationTokenRequestT &request) const
Definition STSClient.h:717
Model::AssumeRoleWithWebIdentityOutcomeCallable AssumeRoleWithWebIdentityCallable(const AssumeRoleWithWebIdentityRequestT &request) const
Definition STSClient.h:475
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
Definition STSClient.h:484
void AssumeRoleAsync(const AssumeRoleRequestT &request, const AssumeRoleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition STSClient.h:192
void DecodeAuthorizationMessageAsync(const DecodeAuthorizationMessageRequestT &request, const DecodeAuthorizationMessageResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition STSClient.h:534
void GetCallerIdentityAsync(const GetCallerIdentityResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetCallerIdentityRequestT &request={}) const
Definition STSClient.h:616
virtual Model::AssumeRoleWithSAMLOutcome AssumeRoleWithSAML(const Model::AssumeRoleWithSAMLRequest &request) const
Model::AssumeRoleWithSAMLOutcomeCallable AssumeRoleWithSAMLCallable(const AssumeRoleWithSAMLRequestT &request) const
Definition STSClient.h:322
void GetFederationTokenAsync(const GetFederationTokenRequestT &request, const GetFederationTokenResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition STSClient.h:726
STSClientConfiguration ClientConfigurationType
Definition STSClient.h:34
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
Definition STSClient.h:525
void GetSessionTokenAsync(const GetSessionTokenResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetSessionTokenRequestT &request={}) const
Definition STSClient.h:799
Model::AssumeRoleOutcomeCallable AssumeRoleCallable(const AssumeRoleRequestT &request) const
Definition STSClient.h:183
Model::GetCallerIdentityOutcomeCallable GetCallerIdentityCallable(const GetCallerIdentityRequestT &request={}) const
Definition STSClient.h:607
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::GetFederationTokenOutcome GetFederationToken(const Model::GetFederationTokenRequest &request) const
static const char * GetAllocationTag()
Aws::Client::AWSXMLClient BASECLASS
Definition STSClient.h:30
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
Definition STSClient.h:790
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
Definition STSClient.h:331
STSClient(const Aws::Client::ClientConfiguration &clientConfiguration)
STSEndpointProvider EndpointProviderType
Definition STSClient.h:35
std::future< GetCallerIdentityOutcome > GetCallerIdentityOutcomeCallable
std::future< AssumeRoleWithWebIdentityOutcome > AssumeRoleWithWebIdentityOutcomeCallable
std::future< GetAccessKeyInfoOutcome > GetAccessKeyInfoOutcomeCallable
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::GetCallerIdentityRequest &, const Model::GetCallerIdentityOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetCallerIdentityResponseReceivedHandler
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::AssumeRoleRequest &, const Model::AssumeRoleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > AssumeRoleResponseReceivedHandler
std::function< void(const STSClient *, const Model::AssumeRoleWithSAMLRequest &, const Model::AssumeRoleWithSAMLOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > AssumeRoleWithSAMLResponseReceivedHandler
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::GetAccessKeyInfoRequest &, const Model::GetAccessKeyInfoOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAccessKeyInfoResponseReceivedHandler
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String