Skip to content

Commit

Permalink
add smithy refactor for services with response stream but no request …
Browse files Browse the repository at this point in the history
…stream
  • Loading branch information
sbera87 committed Dec 4, 2024
1 parent f375469 commit 08d9c36
Show file tree
Hide file tree
Showing 9 changed files with 689 additions and 913 deletions.
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 @@ -205,6 +205,7 @@ BatchDescribeEntitiesOutcome MarketplaceCatalogClient::BatchDescribeEntities(con
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -244,6 +245,7 @@ CancelChangeSetOutcome MarketplaceCatalogClient::CancelChangeSet(const CancelCha
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -278,6 +280,7 @@ DeleteResourcePolicyOutcome MarketplaceCatalogClient::DeleteResourcePolicy(const
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -317,6 +320,7 @@ DescribeChangeSetOutcome MarketplaceCatalogClient::DescribeChangeSet(const Descr
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -356,6 +360,7 @@ DescribeEntityOutcome MarketplaceCatalogClient::DescribeEntity(const DescribeEnt
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -390,6 +395,7 @@ GetResourcePolicyOutcome MarketplaceCatalogClient::GetResourcePolicy(const GetRe
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -419,6 +425,7 @@ ListChangeSetsOutcome MarketplaceCatalogClient::ListChangeSets(const ListChangeS
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -448,6 +455,7 @@ ListEntitiesOutcome MarketplaceCatalogClient::ListEntities(const ListEntitiesReq
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -477,6 +485,7 @@ ListTagsForResourceOutcome MarketplaceCatalogClient::ListTagsForResource(const L
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -506,6 +515,7 @@ PutResourcePolicyOutcome MarketplaceCatalogClient::PutResourcePolicy(const PutRe
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -535,6 +545,7 @@ StartChangeSetOutcome MarketplaceCatalogClient::StartChangeSet(const StartChange
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -564,6 +575,7 @@ TagResourceOutcome MarketplaceCatalogClient::TagResource(const TagResourceReques
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down Expand Up @@ -593,6 +605,7 @@ UntagResourceOutcome MarketplaceCatalogClient::UntagResource(const UntagResource
}
resolvedEndpoint.SetRfc3986Encoded(endpointOverrides.setRfc3986Encoded);
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
}));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
Expand Down
Loading

0 comments on commit 08d9c36

Please sign in to comment.