Skip to content

Refactor with smithy client for json protocol non customized services [Work in Progress] #3208

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

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -2285,6 +2285,7 @@ namespace DynamoDB
friend class Aws::Client::ClientWithAsyncTemplateMethods<DynamoDBClient>;
void init(const DynamoDBClientConfiguration& clientConfiguration);


void OptionallyUpdateDescribeEndpointsCache(Aws::Endpoint::AWSEndpoint& resolvedEndpoint,
const Aws::String& operationName,
const Aws::String& endpointKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/logs/CloudWatchLogs_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/logs/CloudWatchLogsServiceClientModel.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 CloudWatchLogs
{
AWS_CLOUDWATCHLOGS_API extern const char SERVICE_NAME[];
/**
* <p>You can use Amazon CloudWatch Logs to monitor, store, and access your log
* files from EC2 instances, CloudTrail, and other sources. You can then retrieve
Expand Down Expand Up @@ -42,12 +45,19 @@ namespace CloudWatchLogs
* log service. You can then access the raw log data when you need it.</p> </li>
* </ul>
*/
class AWS_CLOUDWATCHLOGS_API CloudWatchLogsClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>
class AWS_CLOUDWATCHLOGS_API CloudWatchLogsClient : smithy::client::AwsSmithyClientT<Aws::CloudWatchLogs::SERVICE_NAME,
Aws::CloudWatchLogs::CloudWatchLogsClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
CloudWatchLogsEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "CloudWatch Logs"; }

typedef CloudWatchLogsClientConfiguration ClientConfigurationType;
typedef CloudWatchLogsEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -3098,8 +3108,7 @@ namespace CloudWatchLogs
friend class Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>;
void init(const CloudWatchLogsClientConfiguration& clientConfiguration);

CloudWatchLogsClientConfiguration m_clientConfiguration;
std::shared_ptr<CloudWatchLogsEndpointProviderBase> m_endpointProvider;

};

} // namespace CloudWatchLogs
Expand Down
1,451 changes: 564 additions & 887 deletions generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.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/marketplace-catalog/MarketplaceCatalog_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/marketplace-catalog/MarketplaceCatalogServiceClientModel.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 MarketplaceCatalog
{
AWS_MARKETPLACECATALOG_API extern const char SERVICE_NAME[];
/**
* <p>Catalog API actions allow you to manage your entities through list, describe,
* and update capabilities. An entity can be a product or an offer on AWS
Expand All @@ -23,12 +26,19 @@ namespace MarketplaceCatalog
* deployment pipelines. You can also create your own applications on top of the
* Catalog API to manage your products on AWS Marketplace.</p>
*/
class AWS_MARKETPLACECATALOG_API MarketplaceCatalogClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>
class AWS_MARKETPLACECATALOG_API MarketplaceCatalogClient : smithy::client::AwsSmithyClientT<Aws::MarketplaceCatalog::SERVICE_NAME,
Aws::MarketplaceCatalog::MarketplaceCatalogClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
MarketplaceCatalogEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "Marketplace Catalog"; }

typedef MarketplaceCatalogClientConfiguration ClientConfigurationType;
typedef MarketplaceCatalogEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -459,8 +469,7 @@ namespace MarketplaceCatalog
friend class Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>;
void init(const MarketplaceCatalogClientConfiguration& clientConfiguration);

MarketplaceCatalogClientConfiguration m_clientConfiguration;
std::shared_ptr<MarketplaceCatalogEndpointProviderBase> m_endpointProvider;

};

} // namespace MarketplaceCatalog
Expand Down
Loading
Loading