Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smithy refactor Json protocol with Single direction EventStreaming (v4/v4a/bearer) #3212

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/appconfig/AppConfigServiceClientModel.h>
#include <smithy/client/AwsSmithyClient.h>
#include <smithy/identity/auth/built-in/SigV4AuthSchemeResolver.h>
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
#include <smithy/client/serializer/JsonOutcomeSerializer.h>

namespace Aws
{
namespace AppConfig
{
AWS_APPCONFIG_API extern const char SERVICE_NAME[];
/**
* <p>AppConfig feature flags and dynamic configurations help software builders
* quickly and securely adjust application behavior in production environments
Expand Down Expand Up @@ -111,12 +114,19 @@ namespace AppConfig
* href="http://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html">AppConfig
* User Guide</a>.</p>
*/
class AWS_APPCONFIG_API AppConfigClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<AppConfigClient>
class AWS_APPCONFIG_API AppConfigClient : smithy::client::AwsSmithyClientT<Aws::AppConfig::SERVICE_NAME,
Aws::AppConfig::AppConfigClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
AppConfigEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<AppConfigClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "AppConfig"; }

typedef AppConfigClientConfiguration ClientConfigurationType;
typedef AppConfigEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -1397,8 +1407,6 @@ namespace AppConfig
friend class Aws::Client::ClientWithAsyncTemplateMethods<AppConfigClient>;
void init(const AppConfigClientConfiguration& clientConfiguration);

AppConfigClientConfiguration m_clientConfiguration;
std::shared_ptr<AppConfigEndpointProviderBase> m_endpointProvider;
};

} // namespace AppConfig
Expand Down
1,399 changes: 769 additions & 630 deletions generated/src/aws-cpp-sdk-appconfig/source/AppConfigClient.cpp

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/appconfigdata/AppConfigData_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/appconfigdata/AppConfigDataServiceClientModel.h>
#include <smithy/client/AwsSmithyClient.h>
#include <smithy/identity/auth/built-in/SigV4AuthSchemeResolver.h>
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
#include <smithy/client/serializer/JsonOutcomeSerializer.h>

namespace Aws
{
namespace AppConfigData
{
AWS_APPCONFIGDATA_API extern const char SERVICE_NAME[];
/**
* <p>AppConfig Data provides the data plane APIs your application uses to retrieve
* configuration data. Here's how it works:</p> <p>Your application retrieves
Expand Down Expand Up @@ -57,12 +60,19 @@ namespace AppConfigData
* href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration">Retrieving
* the configuration</a> in the <i>AppConfig User Guide</i>.</p>
*/
class AWS_APPCONFIGDATA_API AppConfigDataClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<AppConfigDataClient>
class AWS_APPCONFIGDATA_API AppConfigDataClient : smithy::client::AwsSmithyClientT<Aws::AppConfigData::SERVICE_NAME,
Aws::AppConfigData::AppConfigDataClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
AppConfigDataEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<AppConfigDataClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "AppConfigData"; }

typedef AppConfigDataClientConfiguration ClientConfigurationType;
typedef AppConfigDataEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -191,8 +201,6 @@ namespace AppConfigData
friend class Aws::Client::ClientWithAsyncTemplateMethods<AppConfigDataClient>;
void init(const AppConfigDataClientConfiguration& clientConfiguration);

AppConfigDataClientConfiguration m_clientConfiguration;
std::shared_ptr<AppConfigDataEndpointProviderBase> m_endpointProvider;
};

} // namespace AppConfigData
Expand Down
Loading
Loading