From ddf36ca6d25a16f782af04aec4fddb436db0d392 Mon Sep 17 00:00:00 2001 From: Sam Bisciglia Date: Mon, 21 Aug 2023 21:40:56 +0000 Subject: [PATCH] Fixes serialization of requestless apis on json services --- .../include/aws/acm/ACMClient.h | 16 ++- .../include/aws/acm/ACMServiceClientModel.h | 3 +- .../model/GetAccountConfigurationRequest.h | 38 +++++ .../src/aws-cpp-sdk-acm/source/ACMClient.cpp | 27 ++-- .../model/GetAccountConfigurationRequest.cpp | 34 +++++ .../include/aws/config/ConfigServiceClient.h | 16 ++- .../config/ConfigServiceServiceClientModel.h | 3 +- .../GetComplianceSummaryByConfigRuleRequest.h | 38 +++++ .../source/ConfigServiceClient.cpp | 27 ++-- ...etComplianceSummaryByConfigRuleRequest.cpp | 34 +++++ .../aws/directconnect/DirectConnectClient.h | 48 ++++--- .../DirectConnectServiceClientModel.h | 9 +- .../model/DescribeCustomerMetadataRequest.h | 38 +++++ .../model/DescribeLocationsRequest.h | 38 +++++ .../model/DescribeVirtualGatewaysRequest.h | 38 +++++ .../source/DirectConnectClient.cpp | 81 +++++------ .../model/DescribeCustomerMetadataRequest.cpp | 34 +++++ .../source/model/DescribeLocationsRequest.cpp | 34 +++++ .../model/DescribeVirtualGatewaysRequest.cpp | 34 +++++ .../aws/dms/DatabaseMigrationServiceClient.h | 16 ++- ...tabaseMigrationServiceServiceClientModel.h | 3 +- .../model/RunFleetAdvisorLsaAnalysisRequest.h | 38 +++++ .../source/DatabaseMigrationServiceClient.cpp | 27 ++-- .../RunFleetAdvisorLsaAnalysisRequest.cpp | 34 +++++ .../aws/frauddetector/FraudDetectorClient.h | 16 ++- .../FraudDetectorServiceClientModel.h | 3 +- .../model/GetKMSEncryptionKeyRequest.h | 38 +++++ .../source/FraudDetectorClient.cpp | 27 ++-- .../model/GetKMSEncryptionKeyRequest.cpp | 34 +++++ .../include/aws/health/HealthClient.h | 48 ++++--- .../aws/health/HealthServiceClientModel.h | 9 +- ...ealthServiceStatusForOrganizationRequest.h | 38 +++++ ...ealthServiceAccessForOrganizationRequest.h | 38 +++++ ...ealthServiceAccessForOrganizationRequest.h | 38 +++++ .../source/HealthClient.cpp | 81 +++++------ ...lthServiceStatusForOrganizationRequest.cpp | 34 +++++ ...lthServiceAccessForOrganizationRequest.cpp | 34 +++++ ...lthServiceAccessForOrganizationRequest.cpp | 34 +++++ .../include/aws/inspector/InspectorClient.h | 16 ++- .../inspector/InspectorServiceClientModel.h | 3 +- .../DescribeCrossAccountAccessRoleRequest.h | 38 +++++ .../source/InspectorClient.cpp | 27 ++-- .../DescribeCrossAccountAccessRoleRequest.cpp | 34 +++++ .../include/aws/opsworks/OpsWorksClient.h | 32 +++-- .../aws/opsworks/OpsWorksServiceClientModel.h | 6 +- .../model/DescribeMyUserProfileRequest.h | 38 +++++ .../model/DescribeOperatingSystemsRequest.h | 38 +++++ .../source/OpsWorksClient.cpp | 54 ++++--- .../model/DescribeMyUserProfileRequest.cpp | 34 +++++ .../model/DescribeOperatingSystemsRequest.cpp | 34 +++++ .../aws/organizations/OrganizationsClient.h | 80 ++++++----- .../OrganizationsServiceClientModel.h | 15 +- .../model/DeleteOrganizationRequest.h | 38 +++++ .../model/DeleteResourcePolicyRequest.h | 38 +++++ .../model/DescribeOrganizationRequest.h | 38 +++++ .../model/DescribeResourcePolicyRequest.h | 38 +++++ .../model/LeaveOrganizationRequest.h | 38 +++++ .../source/OrganizationsClient.cpp | 135 +++++++++--------- .../model/DeleteOrganizationRequest.cpp | 34 +++++ .../model/DeleteResourcePolicyRequest.cpp | 34 +++++ .../model/DescribeOrganizationRequest.cpp | 34 +++++ .../model/DescribeResourcePolicyRequest.cpp | 34 +++++ .../source/model/LeaveOrganizationRequest.cpp | 34 +++++ .../codegeneration/Operation.java | 11 ++ .../domainmodels/codegeneration/Shape.java | 6 + .../codegeneration/ShapeMember.java | 6 + .../cpp/JsonCppClientGenerator.java | 37 ++++- .../cpp/ServiceClientHeaderOperations.vm | 15 +- .../cpp/json/JsonServiceClientHeader.vm | 3 + 69 files changed, 1803 insertions(+), 399 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-acm/include/aws/acm/model/GetAccountConfigurationRequest.h create mode 100644 generated/src/aws-cpp-sdk-acm/source/model/GetAccountConfigurationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-config/include/aws/config/model/GetComplianceSummaryByConfigRuleRequest.h create mode 100644 generated/src/aws-cpp-sdk-config/source/model/GetComplianceSummaryByConfigRuleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeCustomerMetadataRequest.h create mode 100644 generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeLocationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeVirtualGatewaysRequest.h create mode 100644 generated/src/aws-cpp-sdk-directconnect/source/model/DescribeCustomerMetadataRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-directconnect/source/model/DescribeLocationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-directconnect/source/model/DescribeVirtualGatewaysRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dms/include/aws/dms/model/RunFleetAdvisorLsaAnalysisRequest.h create mode 100644 generated/src/aws-cpp-sdk-dms/source/model/RunFleetAdvisorLsaAnalysisRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/model/GetKMSEncryptionKeyRequest.h create mode 100644 generated/src/aws-cpp-sdk-frauddetector/source/model/GetKMSEncryptionKeyRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-health/include/aws/health/model/DescribeHealthServiceStatusForOrganizationRequest.h create mode 100644 generated/src/aws-cpp-sdk-health/include/aws/health/model/DisableHealthServiceAccessForOrganizationRequest.h create mode 100644 generated/src/aws-cpp-sdk-health/include/aws/health/model/EnableHealthServiceAccessForOrganizationRequest.h create mode 100644 generated/src/aws-cpp-sdk-health/source/model/DescribeHealthServiceStatusForOrganizationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-health/source/model/DisableHealthServiceAccessForOrganizationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-health/source/model/EnableHealthServiceAccessForOrganizationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-inspector/include/aws/inspector/model/DescribeCrossAccountAccessRoleRequest.h create mode 100644 generated/src/aws-cpp-sdk-inspector/source/model/DescribeCrossAccountAccessRoleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeMyUserProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeOperatingSystemsRequest.h create mode 100644 generated/src/aws-cpp-sdk-opsworks/source/model/DescribeMyUserProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-opsworks/source/model/DescribeOperatingSystemsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h create mode 100644 generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h create mode 100644 generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h create mode 100644 generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h create mode 100644 generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h create mode 100644 generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-organizations/source/model/LeaveOrganizationRequest.cpp diff --git a/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMClient.h b/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMClient.h index 79b469000f9..5195ed1b3df 100644 --- a/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMClient.h +++ b/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMClient.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -219,25 +220,26 @@ namespace ACM * href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">AWS * API Reference

*/ - virtual Model::GetAccountConfigurationOutcome GetAccountConfiguration() const; + virtual Model::GetAccountConfigurationOutcome GetAccountConfiguration(const Model::GetAccountConfigurationRequest& request = {}) const; /** * A Callable wrapper for GetAccountConfiguration that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::GetAccountConfigurationOutcomeCallable GetAccountConfigurationCallable() const + template + Model::GetAccountConfigurationOutcomeCallable GetAccountConfigurationCallable(const GetAccountConfigurationRequestT& request = {}) const { - return SubmitCallable(&ACMClient::GetAccountConfiguration); + return SubmitCallable(&ACMClient::GetAccountConfiguration, request); } /** * An Async wrapper for GetAccountConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void GetAccountConfigurationAsync(const GetAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void GetAccountConfigurationAsync(const GetAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const GetAccountConfigurationRequestT& request = {}) const { - return SubmitAsync(&ACMClient::GetAccountConfiguration, handler, context); + return SubmitAsync(&ACMClient::GetAccountConfiguration, request, handler, context); } + /** *

Retrieves an Amazon-issued certificate and its certificate chain. The chain * consists of the certificate of the issuing CA and the intermediate certificates diff --git a/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMServiceClientModel.h b/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMServiceClientModel.h index dfc3ae4d7b6..dbb569c37c6 100644 --- a/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-acm/include/aws/acm/ACMServiceClientModel.h @@ -71,6 +71,7 @@ namespace Aws class DeleteCertificateRequest; class DescribeCertificateRequest; class ExportCertificateRequest; + class GetAccountConfigurationRequest; class GetCertificateRequest; class ImportCertificateRequest; class ListCertificatesRequest; @@ -127,7 +128,7 @@ namespace Aws typedef std::function&) > DeleteCertificateResponseReceivedHandler; typedef std::function&) > DescribeCertificateResponseReceivedHandler; typedef std::function&) > ExportCertificateResponseReceivedHandler; - typedef std::function&) > GetAccountConfigurationResponseReceivedHandler; + typedef std::function&) > GetAccountConfigurationResponseReceivedHandler; typedef std::function&) > GetCertificateResponseReceivedHandler; typedef std::function&) > ImportCertificateResponseReceivedHandler; typedef std::function&) > ListCertificatesResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-acm/include/aws/acm/model/GetAccountConfigurationRequest.h b/generated/src/aws-cpp-sdk-acm/include/aws/acm/model/GetAccountConfigurationRequest.h new file mode 100644 index 00000000000..36cba00e0f4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-acm/include/aws/acm/model/GetAccountConfigurationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ACM +{ +namespace Model +{ + + /** + */ + class GetAccountConfigurationRequest : public ACMRequest + { + public: + AWS_ACM_API GetAccountConfigurationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetAccountConfiguration"; } + + AWS_ACM_API Aws::String SerializePayload() const override; + + AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace ACM +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp b/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp index c507eaf7bb5..258518abe95 100644 --- a/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -272,32 +273,30 @@ ExportCertificateOutcome ACMClient::ExportCertificate(const ExportCertificateReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetAccountConfigurationOutcome ACMClient::GetAccountConfiguration() const +GetAccountConfigurationOutcome ACMClient::GetAccountConfiguration(const GetAccountConfigurationRequest& request) const { -AWS_OPERATION_GUARD(GetAccountConfiguration); + AWS_OPERATION_GUARD(GetAccountConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAccountConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, GetAccountConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAccountConfiguration", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "GetAccountConfiguration" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> GetAccountConfigurationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetAccountConfiguration"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetAccountConfigurationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "GetAccountConfiguration")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetAccountConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetAccountConfiguration"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } GetCertificateOutcome ACMClient::GetCertificate(const GetCertificateRequest& request) const diff --git a/generated/src/aws-cpp-sdk-acm/source/model/GetAccountConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-acm/source/model/GetAccountConfigurationRequest.cpp new file mode 100644 index 00000000000..15d8d894449 --- /dev/null +++ b/generated/src/aws-cpp-sdk-acm/source/model/GetAccountConfigurationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ACM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetAccountConfigurationRequest::GetAccountConfigurationRequest() +{ +} + +Aws::String GetAccountConfigurationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection GetAccountConfigurationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "CertificateManager.GetAccountConfiguration")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceClient.h b/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceClient.h index 3f985bb37cc..1a096593be3 100644 --- a/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceClient.h +++ b/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceClient.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -1590,25 +1591,26 @@ namespace ConfigService * href="http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByConfigRule">AWS * API Reference

*/ - virtual Model::GetComplianceSummaryByConfigRuleOutcome GetComplianceSummaryByConfigRule() const; + virtual Model::GetComplianceSummaryByConfigRuleOutcome GetComplianceSummaryByConfigRule(const Model::GetComplianceSummaryByConfigRuleRequest& request = {}) const; /** * A Callable wrapper for GetComplianceSummaryByConfigRule that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::GetComplianceSummaryByConfigRuleOutcomeCallable GetComplianceSummaryByConfigRuleCallable() const + template + Model::GetComplianceSummaryByConfigRuleOutcomeCallable GetComplianceSummaryByConfigRuleCallable(const GetComplianceSummaryByConfigRuleRequestT& request = {}) const { - return SubmitCallable(&ConfigServiceClient::GetComplianceSummaryByConfigRule); + return SubmitCallable(&ConfigServiceClient::GetComplianceSummaryByConfigRule, request); } /** * An Async wrapper for GetComplianceSummaryByConfigRule that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void GetComplianceSummaryByConfigRuleAsync(const GetComplianceSummaryByConfigRuleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void GetComplianceSummaryByConfigRuleAsync(const GetComplianceSummaryByConfigRuleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const GetComplianceSummaryByConfigRuleRequestT& request = {}) const { - return SubmitAsync(&ConfigServiceClient::GetComplianceSummaryByConfigRule, handler, context); + return SubmitAsync(&ConfigServiceClient::GetComplianceSummaryByConfigRule, request, handler, context); } + /** *

Returns the number of resources that are compliant and the number that are * noncompliant. You can specify one or more resource types to get these numbers diff --git a/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceServiceClientModel.h b/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceServiceClientModel.h index 8e736b080e7..d067b622dbe 100644 --- a/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-config/include/aws/config/ConfigServiceServiceClientModel.h @@ -182,6 +182,7 @@ namespace Aws class GetAggregateResourceConfigRequest; class GetComplianceDetailsByConfigRuleRequest; class GetComplianceDetailsByResourceRequest; + class GetComplianceSummaryByConfigRuleRequest; class GetComplianceSummaryByResourceTypeRequest; class GetConformancePackComplianceDetailsRequest; class GetConformancePackComplianceSummaryRequest; @@ -469,7 +470,7 @@ namespace Aws typedef std::function&) > GetAggregateResourceConfigResponseReceivedHandler; typedef std::function&) > GetComplianceDetailsByConfigRuleResponseReceivedHandler; typedef std::function&) > GetComplianceDetailsByResourceResponseReceivedHandler; - typedef std::function&) > GetComplianceSummaryByConfigRuleResponseReceivedHandler; + typedef std::function&) > GetComplianceSummaryByConfigRuleResponseReceivedHandler; typedef std::function&) > GetComplianceSummaryByResourceTypeResponseReceivedHandler; typedef std::function&) > GetConformancePackComplianceDetailsResponseReceivedHandler; typedef std::function&) > GetConformancePackComplianceSummaryResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-config/include/aws/config/model/GetComplianceSummaryByConfigRuleRequest.h b/generated/src/aws-cpp-sdk-config/include/aws/config/model/GetComplianceSummaryByConfigRuleRequest.h new file mode 100644 index 00000000000..48070f535dc --- /dev/null +++ b/generated/src/aws-cpp-sdk-config/include/aws/config/model/GetComplianceSummaryByConfigRuleRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConfigService +{ +namespace Model +{ + + /** + */ + class GetComplianceSummaryByConfigRuleRequest : public ConfigServiceRequest + { + public: + AWS_CONFIGSERVICE_API GetComplianceSummaryByConfigRuleRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetComplianceSummaryByConfigRule"; } + + AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; + + AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace ConfigService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp b/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp index 1806d9e4867..f345c88df75 100644 --- a/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp @@ -71,6 +71,7 @@ #include #include #include +#include #include #include #include @@ -1545,32 +1546,30 @@ GetComplianceDetailsByResourceOutcome ConfigServiceClient::GetComplianceDetailsB {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetComplianceSummaryByConfigRuleOutcome ConfigServiceClient::GetComplianceSummaryByConfigRule() const +GetComplianceSummaryByConfigRuleOutcome ConfigServiceClient::GetComplianceSummaryByConfigRule(const GetComplianceSummaryByConfigRuleRequest& request) const { -AWS_OPERATION_GUARD(GetComplianceSummaryByConfigRule); + AWS_OPERATION_GUARD(GetComplianceSummaryByConfigRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetComplianceSummaryByConfigRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetComplianceSummaryByConfigRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, GetComplianceSummaryByConfigRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetComplianceSummaryByConfigRule", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "GetComplianceSummaryByConfigRule" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> GetComplianceSummaryByConfigRuleOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetComplianceSummaryByConfigRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetComplianceSummaryByConfigRule"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetComplianceSummaryByConfigRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetComplianceSummaryByConfigRuleOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "GetComplianceSummaryByConfigRule")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetComplianceSummaryByConfigRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetComplianceSummaryByConfigRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetComplianceSummaryByConfigRule"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } GetComplianceSummaryByResourceTypeOutcome ConfigServiceClient::GetComplianceSummaryByResourceType(const GetComplianceSummaryByResourceTypeRequest& request) const diff --git a/generated/src/aws-cpp-sdk-config/source/model/GetComplianceSummaryByConfigRuleRequest.cpp b/generated/src/aws-cpp-sdk-config/source/model/GetComplianceSummaryByConfigRuleRequest.cpp new file mode 100644 index 00000000000..6a9826782ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-config/source/model/GetComplianceSummaryByConfigRuleRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConfigService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetComplianceSummaryByConfigRuleRequest::GetComplianceSummaryByConfigRuleRequest() +{ +} + +Aws::String GetComplianceSummaryByConfigRuleRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection GetComplianceSummaryByConfigRuleRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StarlingDoveService.GetComplianceSummaryByConfigRule")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectClient.h b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectClient.h index 6183987a923..d7f1fb14906 100644 --- a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectClient.h +++ b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectClient.h @@ -10,6 +10,9 @@ #include #include #include +#include +#include +#include namespace Aws { @@ -1124,25 +1127,26 @@ namespace DirectConnect * href="http://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeCustomerMetadata">AWS * API Reference

*/ - virtual Model::DescribeCustomerMetadataOutcome DescribeCustomerMetadata() const; + virtual Model::DescribeCustomerMetadataOutcome DescribeCustomerMetadata(const Model::DescribeCustomerMetadataRequest& request = {}) const; /** * A Callable wrapper for DescribeCustomerMetadata that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeCustomerMetadataOutcomeCallable DescribeCustomerMetadataCallable() const + template + Model::DescribeCustomerMetadataOutcomeCallable DescribeCustomerMetadataCallable(const DescribeCustomerMetadataRequestT& request = {}) const { - return SubmitCallable(&DirectConnectClient::DescribeCustomerMetadata); + return SubmitCallable(&DirectConnectClient::DescribeCustomerMetadata, request); } /** * An Async wrapper for DescribeCustomerMetadata that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeCustomerMetadataAsync(const DescribeCustomerMetadataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeCustomerMetadataAsync(const DescribeCustomerMetadataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeCustomerMetadataRequestT& request = {}) const { - return SubmitAsync(&DirectConnectClient::DescribeCustomerMetadata, handler, context); + return SubmitAsync(&DirectConnectClient::DescribeCustomerMetadata, request, handler, context); } + /** *

Describes one or more association proposals for connection between a virtual * private gateway or transit gateway and a Direct Connect gateway.

See @@ -1383,25 +1387,26 @@ namespace DirectConnect * href="http://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLocations">AWS * API Reference

*/ - virtual Model::DescribeLocationsOutcome DescribeLocations() const; + virtual Model::DescribeLocationsOutcome DescribeLocations(const Model::DescribeLocationsRequest& request = {}) const; /** * A Callable wrapper for DescribeLocations that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeLocationsOutcomeCallable DescribeLocationsCallable() const + template + Model::DescribeLocationsOutcomeCallable DescribeLocationsCallable(const DescribeLocationsRequestT& request = {}) const { - return SubmitCallable(&DirectConnectClient::DescribeLocations); + return SubmitCallable(&DirectConnectClient::DescribeLocations, request); } /** * An Async wrapper for DescribeLocations that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeLocationsAsync(const DescribeLocationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeLocationsAsync(const DescribeLocationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeLocationsRequestT& request = {}) const { - return SubmitAsync(&DirectConnectClient::DescribeLocations, handler, context); + return SubmitAsync(&DirectConnectClient::DescribeLocations, request, handler, context); } + /** *

Details about the router.

See Also:

AWS @@ -1460,25 +1465,26 @@ namespace DirectConnect * href="http://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualGateways">AWS * API Reference

*/ - virtual Model::DescribeVirtualGatewaysOutcome DescribeVirtualGateways() const; + virtual Model::DescribeVirtualGatewaysOutcome DescribeVirtualGateways(const Model::DescribeVirtualGatewaysRequest& request = {}) const; /** * A Callable wrapper for DescribeVirtualGateways that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeVirtualGatewaysOutcomeCallable DescribeVirtualGatewaysCallable() const + template + Model::DescribeVirtualGatewaysOutcomeCallable DescribeVirtualGatewaysCallable(const DescribeVirtualGatewaysRequestT& request = {}) const { - return SubmitCallable(&DirectConnectClient::DescribeVirtualGateways); + return SubmitCallable(&DirectConnectClient::DescribeVirtualGateways, request); } /** * An Async wrapper for DescribeVirtualGateways that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeVirtualGatewaysAsync(const DescribeVirtualGatewaysResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeVirtualGatewaysAsync(const DescribeVirtualGatewaysResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeVirtualGatewaysRequestT& request = {}) const { - return SubmitAsync(&DirectConnectClient::DescribeVirtualGateways, handler, context); + return SubmitAsync(&DirectConnectClient::DescribeVirtualGateways, request, handler, context); } + /** *

Displays all virtual interfaces for an Amazon Web Services account. Virtual * interfaces deleted fewer than 15 minutes before you make the request are also diff --git a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectServiceClientModel.h b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectServiceClientModel.h index 0d14116f8e9..2ecbb498c31 100644 --- a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/DirectConnectServiceClientModel.h @@ -150,6 +150,7 @@ namespace Aws class DeleteLagRequest; class DeleteVirtualInterfaceRequest; class DescribeConnectionsRequest; + class DescribeCustomerMetadataRequest; class DescribeDirectConnectGatewayAssociationProposalsRequest; class DescribeDirectConnectGatewayAssociationsRequest; class DescribeDirectConnectGatewayAttachmentsRequest; @@ -158,8 +159,10 @@ namespace Aws class DescribeInterconnectsRequest; class DescribeLagsRequest; class DescribeLoaRequest; + class DescribeLocationsRequest; class DescribeRouterConfigurationRequest; class DescribeTagsRequest; + class DescribeVirtualGatewaysRequest; class DescribeVirtualInterfacesRequest; class DisassociateConnectionFromLagRequest; class DisassociateMacSecKeyRequest; @@ -336,7 +339,7 @@ namespace Aws typedef std::function&) > DeleteLagResponseReceivedHandler; typedef std::function&) > DeleteVirtualInterfaceResponseReceivedHandler; typedef std::function&) > DescribeConnectionsResponseReceivedHandler; - typedef std::function&) > DescribeCustomerMetadataResponseReceivedHandler; + typedef std::function&) > DescribeCustomerMetadataResponseReceivedHandler; typedef std::function&) > DescribeDirectConnectGatewayAssociationProposalsResponseReceivedHandler; typedef std::function&) > DescribeDirectConnectGatewayAssociationsResponseReceivedHandler; typedef std::function&) > DescribeDirectConnectGatewayAttachmentsResponseReceivedHandler; @@ -345,10 +348,10 @@ namespace Aws typedef std::function&) > DescribeInterconnectsResponseReceivedHandler; typedef std::function&) > DescribeLagsResponseReceivedHandler; typedef std::function&) > DescribeLoaResponseReceivedHandler; - typedef std::function&) > DescribeLocationsResponseReceivedHandler; + typedef std::function&) > DescribeLocationsResponseReceivedHandler; typedef std::function&) > DescribeRouterConfigurationResponseReceivedHandler; typedef std::function&) > DescribeTagsResponseReceivedHandler; - typedef std::function&) > DescribeVirtualGatewaysResponseReceivedHandler; + typedef std::function&) > DescribeVirtualGatewaysResponseReceivedHandler; typedef std::function&) > DescribeVirtualInterfacesResponseReceivedHandler; typedef std::function&) > DisassociateConnectionFromLagResponseReceivedHandler; typedef std::function&) > DisassociateMacSecKeyResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeCustomerMetadataRequest.h b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeCustomerMetadataRequest.h new file mode 100644 index 00000000000..455ef371537 --- /dev/null +++ b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeCustomerMetadataRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DirectConnect +{ +namespace Model +{ + + /** + */ + class DescribeCustomerMetadataRequest : public DirectConnectRequest + { + public: + AWS_DIRECTCONNECT_API DescribeCustomerMetadataRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeCustomerMetadata"; } + + AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; + + AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace DirectConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeLocationsRequest.h b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeLocationsRequest.h new file mode 100644 index 00000000000..baa48a865a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeLocationsRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DirectConnect +{ +namespace Model +{ + + /** + */ + class DescribeLocationsRequest : public DirectConnectRequest + { + public: + AWS_DIRECTCONNECT_API DescribeLocationsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeLocations"; } + + AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; + + AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace DirectConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeVirtualGatewaysRequest.h b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeVirtualGatewaysRequest.h new file mode 100644 index 00000000000..182762cabbd --- /dev/null +++ b/generated/src/aws-cpp-sdk-directconnect/include/aws/directconnect/model/DescribeVirtualGatewaysRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DirectConnect +{ +namespace Model +{ + + /** + */ + class DescribeVirtualGatewaysRequest : public DirectConnectRequest + { + public: + AWS_DIRECTCONNECT_API DescribeVirtualGatewaysRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeVirtualGateways"; } + + AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; + + AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace DirectConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp b/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp index f264961065e..330c0454880 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp @@ -54,6 +54,7 @@ #include #include #include +#include #include #include #include @@ -62,8 +63,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -1068,32 +1071,30 @@ DescribeConnectionsOutcome DirectConnectClient::DescribeConnections(const Descri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeCustomerMetadataOutcome DirectConnectClient::DescribeCustomerMetadata() const +DescribeCustomerMetadataOutcome DirectConnectClient::DescribeCustomerMetadata(const DescribeCustomerMetadataRequest& request) const { -AWS_OPERATION_GUARD(DescribeCustomerMetadata); + AWS_OPERATION_GUARD(DescribeCustomerMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCustomerMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeCustomerMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeCustomerMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeCustomerMetadata", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeCustomerMetadata" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeCustomerMetadataOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCustomerMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeCustomerMetadata"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCustomerMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeCustomerMetadataOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeCustomerMetadata")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCustomerMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeCustomerMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeCustomerMetadata"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DescribeDirectConnectGatewayAssociationProposalsOutcome DirectConnectClient::DescribeDirectConnectGatewayAssociationProposals(const DescribeDirectConnectGatewayAssociationProposalsRequest& request) const @@ -1304,32 +1305,30 @@ DescribeLoaOutcome DirectConnectClient::DescribeLoa(const DescribeLoaRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeLocationsOutcome DirectConnectClient::DescribeLocations() const +DescribeLocationsOutcome DirectConnectClient::DescribeLocations(const DescribeLocationsRequest& request) const { -AWS_OPERATION_GUARD(DescribeLocations); + AWS_OPERATION_GUARD(DescribeLocations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLocations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeLocations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeLocations", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeLocations" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeLocationsOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeLocations"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeLocationsOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeLocations")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeLocationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeLocations"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DescribeRouterConfigurationOutcome DirectConnectClient::DescribeRouterConfiguration(const DescribeRouterConfigurationRequest& request) const @@ -1384,32 +1383,30 @@ DescribeTagsOutcome DirectConnectClient::DescribeTags(const DescribeTagsRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeVirtualGatewaysOutcome DirectConnectClient::DescribeVirtualGateways() const +DescribeVirtualGatewaysOutcome DirectConnectClient::DescribeVirtualGateways(const DescribeVirtualGatewaysRequest& request) const { -AWS_OPERATION_GUARD(DescribeVirtualGateways); + AWS_OPERATION_GUARD(DescribeVirtualGateways); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVirtualGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVirtualGateways, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeVirtualGateways, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeVirtualGateways", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeVirtualGateways" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeVirtualGatewaysOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVirtualGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeVirtualGateways"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVirtualGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeVirtualGatewaysOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeVirtualGateways")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVirtualGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeVirtualGatewaysOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeVirtualGateways"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DescribeVirtualInterfacesOutcome DirectConnectClient::DescribeVirtualInterfaces(const DescribeVirtualInterfacesRequest& request) const diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeCustomerMetadataRequest.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeCustomerMetadataRequest.cpp new file mode 100644 index 00000000000..93ea4933225 --- /dev/null +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeCustomerMetadataRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DirectConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeCustomerMetadataRequest::DescribeCustomerMetadataRequest() +{ +} + +Aws::String DescribeCustomerMetadataRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeCustomerMetadataRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OvertureService.DescribeCustomerMetadata")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeLocationsRequest.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeLocationsRequest.cpp new file mode 100644 index 00000000000..09196d64082 --- /dev/null +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeLocationsRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DirectConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeLocationsRequest::DescribeLocationsRequest() +{ +} + +Aws::String DescribeLocationsRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeLocationsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OvertureService.DescribeLocations")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeVirtualGatewaysRequest.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeVirtualGatewaysRequest.cpp new file mode 100644 index 00000000000..8b231c7a70b --- /dev/null +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DescribeVirtualGatewaysRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DirectConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeVirtualGatewaysRequest::DescribeVirtualGatewaysRequest() +{ +} + +Aws::String DescribeVirtualGatewaysRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeVirtualGatewaysRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OvertureService.DescribeVirtualGateways")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceClient.h b/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceClient.h index 24c12c5e360..fe9c98482c6 100644 --- a/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceClient.h +++ b/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceClient.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -2576,25 +2577,26 @@ namespace DatabaseMigrationService * href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RunFleetAdvisorLsaAnalysis">AWS * API Reference

*/ - virtual Model::RunFleetAdvisorLsaAnalysisOutcome RunFleetAdvisorLsaAnalysis() const; + virtual Model::RunFleetAdvisorLsaAnalysisOutcome RunFleetAdvisorLsaAnalysis(const Model::RunFleetAdvisorLsaAnalysisRequest& request = {}) const; /** * A Callable wrapper for RunFleetAdvisorLsaAnalysis that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::RunFleetAdvisorLsaAnalysisOutcomeCallable RunFleetAdvisorLsaAnalysisCallable() const + template + Model::RunFleetAdvisorLsaAnalysisOutcomeCallable RunFleetAdvisorLsaAnalysisCallable(const RunFleetAdvisorLsaAnalysisRequestT& request = {}) const { - return SubmitCallable(&DatabaseMigrationServiceClient::RunFleetAdvisorLsaAnalysis); + return SubmitCallable(&DatabaseMigrationServiceClient::RunFleetAdvisorLsaAnalysis, request); } /** * An Async wrapper for RunFleetAdvisorLsaAnalysis that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void RunFleetAdvisorLsaAnalysisAsync(const RunFleetAdvisorLsaAnalysisResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void RunFleetAdvisorLsaAnalysisAsync(const RunFleetAdvisorLsaAnalysisResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const RunFleetAdvisorLsaAnalysisRequestT& request = {}) const { - return SubmitAsync(&DatabaseMigrationServiceClient::RunFleetAdvisorLsaAnalysis, handler, context); + return SubmitAsync(&DatabaseMigrationServiceClient::RunFleetAdvisorLsaAnalysis, request, handler, context); } + /** *

Applies the extension pack to your target database. An extension pack is an * add-on module that emulates functions present in a source database that are diff --git a/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceServiceClientModel.h b/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceServiceClientModel.h index 237c0061cb9..f7db66f109b 100644 --- a/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-dms/include/aws/dms/DatabaseMigrationServiceServiceClientModel.h @@ -253,6 +253,7 @@ namespace Aws class ReloadReplicationTablesRequest; class ReloadTablesRequest; class RemoveTagsFromResourceRequest; + class RunFleetAdvisorLsaAnalysisRequest; class StartExtensionPackAssociationRequest; class StartMetadataModelAssessmentRequest; class StartMetadataModelConversionRequest; @@ -582,7 +583,7 @@ namespace Aws typedef std::function&) > ReloadReplicationTablesResponseReceivedHandler; typedef std::function&) > ReloadTablesResponseReceivedHandler; typedef std::function&) > RemoveTagsFromResourceResponseReceivedHandler; - typedef std::function&) > RunFleetAdvisorLsaAnalysisResponseReceivedHandler; + typedef std::function&) > RunFleetAdvisorLsaAnalysisResponseReceivedHandler; typedef std::function&) > StartExtensionPackAssociationResponseReceivedHandler; typedef std::function&) > StartMetadataModelAssessmentResponseReceivedHandler; typedef std::function&) > StartMetadataModelConversionResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-dms/include/aws/dms/model/RunFleetAdvisorLsaAnalysisRequest.h b/generated/src/aws-cpp-sdk-dms/include/aws/dms/model/RunFleetAdvisorLsaAnalysisRequest.h new file mode 100644 index 00000000000..baf9220c43f --- /dev/null +++ b/generated/src/aws-cpp-sdk-dms/include/aws/dms/model/RunFleetAdvisorLsaAnalysisRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DatabaseMigrationService +{ +namespace Model +{ + + /** + */ + class RunFleetAdvisorLsaAnalysisRequest : public DatabaseMigrationServiceRequest + { + public: + AWS_DATABASEMIGRATIONSERVICE_API RunFleetAdvisorLsaAnalysisRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "RunFleetAdvisorLsaAnalysis"; } + + AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override; + + AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace DatabaseMigrationService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp b/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp index d928fae2fa1..31581881582 100644 --- a/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp @@ -111,6 +111,7 @@ #include #include #include +#include #include #include #include @@ -2599,32 +2600,30 @@ RemoveTagsFromResourceOutcome DatabaseMigrationServiceClient::RemoveTagsFromReso {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RunFleetAdvisorLsaAnalysisOutcome DatabaseMigrationServiceClient::RunFleetAdvisorLsaAnalysis() const +RunFleetAdvisorLsaAnalysisOutcome DatabaseMigrationServiceClient::RunFleetAdvisorLsaAnalysis(const RunFleetAdvisorLsaAnalysisRequest& request) const { -AWS_OPERATION_GUARD(RunFleetAdvisorLsaAnalysis); + AWS_OPERATION_GUARD(RunFleetAdvisorLsaAnalysis); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RunFleetAdvisorLsaAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RunFleetAdvisorLsaAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, RunFleetAdvisorLsaAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RunFleetAdvisorLsaAnalysis", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "RunFleetAdvisorLsaAnalysis" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> RunFleetAdvisorLsaAnalysisOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RunFleetAdvisorLsaAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "RunFleetAdvisorLsaAnalysis"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RunFleetAdvisorLsaAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RunFleetAdvisorLsaAnalysisOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "RunFleetAdvisorLsaAnalysis")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RunFleetAdvisorLsaAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RunFleetAdvisorLsaAnalysisOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "RunFleetAdvisorLsaAnalysis"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } StartExtensionPackAssociationOutcome DatabaseMigrationServiceClient::StartExtensionPackAssociation(const StartExtensionPackAssociationRequest& request) const diff --git a/generated/src/aws-cpp-sdk-dms/source/model/RunFleetAdvisorLsaAnalysisRequest.cpp b/generated/src/aws-cpp-sdk-dms/source/model/RunFleetAdvisorLsaAnalysisRequest.cpp new file mode 100644 index 00000000000..e8286f4a8b7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dms/source/model/RunFleetAdvisorLsaAnalysisRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DatabaseMigrationService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +RunFleetAdvisorLsaAnalysisRequest::RunFleetAdvisorLsaAnalysisRequest() +{ +} + +Aws::String RunFleetAdvisorLsaAnalysisRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection RunFleetAdvisorLsaAnalysisRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDMSv20160101.RunFleetAdvisorLsaAnalysis")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorClient.h b/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorClient.h index 0c4c379ff21..dd95819efaf 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorClient.h +++ b/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorClient.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -1223,25 +1224,26 @@ namespace FraudDetector * href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetKMSEncryptionKey">AWS * API Reference

*/ - virtual Model::GetKMSEncryptionKeyOutcome GetKMSEncryptionKey() const; + virtual Model::GetKMSEncryptionKeyOutcome GetKMSEncryptionKey(const Model::GetKMSEncryptionKeyRequest& request = {}) const; /** * A Callable wrapper for GetKMSEncryptionKey that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::GetKMSEncryptionKeyOutcomeCallable GetKMSEncryptionKeyCallable() const + template + Model::GetKMSEncryptionKeyOutcomeCallable GetKMSEncryptionKeyCallable(const GetKMSEncryptionKeyRequestT& request = {}) const { - return SubmitCallable(&FraudDetectorClient::GetKMSEncryptionKey); + return SubmitCallable(&FraudDetectorClient::GetKMSEncryptionKey, request); } /** * An Async wrapper for GetKMSEncryptionKey that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void GetKMSEncryptionKeyAsync(const GetKMSEncryptionKeyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void GetKMSEncryptionKeyAsync(const GetKMSEncryptionKeyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const GetKMSEncryptionKeyRequestT& request = {}) const { - return SubmitAsync(&FraudDetectorClient::GetKMSEncryptionKey, handler, context); + return SubmitAsync(&FraudDetectorClient::GetKMSEncryptionKey, request, handler, context); } + /** *

Gets all labels or a specific label if name is provided. This is a paginated * API. If you provide a null maxResults, this action retrieves a diff --git a/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorServiceClientModel.h b/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorServiceClientModel.h index 0e342169966..b922192a280 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/FraudDetectorServiceClientModel.h @@ -172,6 +172,7 @@ namespace Aws class GetEventPredictionMetadataRequest; class GetEventTypesRequest; class GetExternalModelsRequest; + class GetKMSEncryptionKeyRequest; class GetLabelsRequest; class GetListElementsRequest; class GetListsMetadataRequest; @@ -402,7 +403,7 @@ namespace Aws typedef std::function&) > GetEventPredictionMetadataResponseReceivedHandler; typedef std::function&) > GetEventTypesResponseReceivedHandler; typedef std::function&) > GetExternalModelsResponseReceivedHandler; - typedef std::function&) > GetKMSEncryptionKeyResponseReceivedHandler; + typedef std::function&) > GetKMSEncryptionKeyResponseReceivedHandler; typedef std::function&) > GetLabelsResponseReceivedHandler; typedef std::function&) > GetListElementsResponseReceivedHandler; typedef std::function&) > GetListsMetadataResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/model/GetKMSEncryptionKeyRequest.h b/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/model/GetKMSEncryptionKeyRequest.h new file mode 100644 index 00000000000..722e06eb06b --- /dev/null +++ b/generated/src/aws-cpp-sdk-frauddetector/include/aws/frauddetector/model/GetKMSEncryptionKeyRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace FraudDetector +{ +namespace Model +{ + + /** + */ + class GetKMSEncryptionKeyRequest : public FraudDetectorRequest + { + public: + AWS_FRAUDDETECTOR_API GetKMSEncryptionKeyRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetKMSEncryptionKey"; } + + AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; + + AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace FraudDetector +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp index 2052742e965..0e9ee873cfa 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp @@ -62,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -1292,32 +1293,30 @@ GetExternalModelsOutcome FraudDetectorClient::GetExternalModels(const GetExterna {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetKMSEncryptionKeyOutcome FraudDetectorClient::GetKMSEncryptionKey() const +GetKMSEncryptionKeyOutcome FraudDetectorClient::GetKMSEncryptionKey(const GetKMSEncryptionKeyRequest& request) const { -AWS_OPERATION_GUARD(GetKMSEncryptionKey); + AWS_OPERATION_GUARD(GetKMSEncryptionKey); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetKMSEncryptionKey, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetKMSEncryptionKey, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, GetKMSEncryptionKey, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetKMSEncryptionKey", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "GetKMSEncryptionKey" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> GetKMSEncryptionKeyOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetKMSEncryptionKey, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetKMSEncryptionKey"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetKMSEncryptionKey, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetKMSEncryptionKeyOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "GetKMSEncryptionKey")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetKMSEncryptionKey, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetKMSEncryptionKeyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetKMSEncryptionKey"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } GetLabelsOutcome FraudDetectorClient::GetLabels(const GetLabelsRequest& request) const diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/GetKMSEncryptionKeyRequest.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/GetKMSEncryptionKeyRequest.cpp new file mode 100644 index 00000000000..a966de84bff --- /dev/null +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/GetKMSEncryptionKeyRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::FraudDetector::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetKMSEncryptionKeyRequest::GetKMSEncryptionKeyRequest() +{ +} + +Aws::String GetKMSEncryptionKeyRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection GetKMSEncryptionKeyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSHawksNestServiceFacade.GetKMSEncryptionKey")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-health/include/aws/health/HealthClient.h b/generated/src/aws-cpp-sdk-health/include/aws/health/HealthClient.h index 6d66d16f4af..1b31df65994 100644 --- a/generated/src/aws-cpp-sdk-health/include/aws/health/HealthClient.h +++ b/generated/src/aws-cpp-sdk-health/include/aws/health/HealthClient.h @@ -10,6 +10,9 @@ #include #include #include +#include +#include +#include namespace Aws { @@ -513,25 +516,26 @@ namespace Health * href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">AWS * API Reference

*/ - virtual Model::DescribeHealthServiceStatusForOrganizationOutcome DescribeHealthServiceStatusForOrganization() const; + virtual Model::DescribeHealthServiceStatusForOrganizationOutcome DescribeHealthServiceStatusForOrganization(const Model::DescribeHealthServiceStatusForOrganizationRequest& request = {}) const; /** * A Callable wrapper for DescribeHealthServiceStatusForOrganization that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeHealthServiceStatusForOrganizationOutcomeCallable DescribeHealthServiceStatusForOrganizationCallable() const + template + Model::DescribeHealthServiceStatusForOrganizationOutcomeCallable DescribeHealthServiceStatusForOrganizationCallable(const DescribeHealthServiceStatusForOrganizationRequestT& request = {}) const { - return SubmitCallable(&HealthClient::DescribeHealthServiceStatusForOrganization); + return SubmitCallable(&HealthClient::DescribeHealthServiceStatusForOrganization, request); } /** * An Async wrapper for DescribeHealthServiceStatusForOrganization that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeHealthServiceStatusForOrganizationAsync(const DescribeHealthServiceStatusForOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeHealthServiceStatusForOrganizationAsync(const DescribeHealthServiceStatusForOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeHealthServiceStatusForOrganizationRequestT& request = {}) const { - return SubmitAsync(&HealthClient::DescribeHealthServiceStatusForOrganization, handler, context); + return SubmitAsync(&HealthClient::DescribeHealthServiceStatusForOrganization, request, handler, context); } + /** *

Disables Health from working with Organizations. To call this operation, you * must sign in to the organization's management account. For more information, see @@ -553,25 +557,26 @@ namespace Health * href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">AWS * API Reference

*/ - virtual Model::DisableHealthServiceAccessForOrganizationOutcome DisableHealthServiceAccessForOrganization() const; + virtual Model::DisableHealthServiceAccessForOrganizationOutcome DisableHealthServiceAccessForOrganization(const Model::DisableHealthServiceAccessForOrganizationRequest& request = {}) const; /** * A Callable wrapper for DisableHealthServiceAccessForOrganization that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DisableHealthServiceAccessForOrganizationOutcomeCallable DisableHealthServiceAccessForOrganizationCallable() const + template + Model::DisableHealthServiceAccessForOrganizationOutcomeCallable DisableHealthServiceAccessForOrganizationCallable(const DisableHealthServiceAccessForOrganizationRequestT& request = {}) const { - return SubmitCallable(&HealthClient::DisableHealthServiceAccessForOrganization); + return SubmitCallable(&HealthClient::DisableHealthServiceAccessForOrganization, request); } /** * An Async wrapper for DisableHealthServiceAccessForOrganization that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DisableHealthServiceAccessForOrganizationAsync(const DisableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DisableHealthServiceAccessForOrganizationAsync(const DisableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DisableHealthServiceAccessForOrganizationRequestT& request = {}) const { - return SubmitAsync(&HealthClient::DisableHealthServiceAccessForOrganization, handler, context); + return SubmitAsync(&HealthClient::DisableHealthServiceAccessForOrganization, request, handler, context); } + /** *

Enables Health to work with Organizations. You can use the organizational * view feature to aggregate events from all Amazon Web Services accounts in your @@ -594,26 +599,27 @@ namespace Health * href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">AWS * API Reference

*/ - virtual Model::EnableHealthServiceAccessForOrganizationOutcome EnableHealthServiceAccessForOrganization() const; + virtual Model::EnableHealthServiceAccessForOrganizationOutcome EnableHealthServiceAccessForOrganization(const Model::EnableHealthServiceAccessForOrganizationRequest& request = {}) const; /** * A Callable wrapper for EnableHealthServiceAccessForOrganization that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::EnableHealthServiceAccessForOrganizationOutcomeCallable EnableHealthServiceAccessForOrganizationCallable() const + template + Model::EnableHealthServiceAccessForOrganizationOutcomeCallable EnableHealthServiceAccessForOrganizationCallable(const EnableHealthServiceAccessForOrganizationRequestT& request = {}) const { - return SubmitCallable(&HealthClient::EnableHealthServiceAccessForOrganization); + return SubmitCallable(&HealthClient::EnableHealthServiceAccessForOrganization, request); } /** * An Async wrapper for EnableHealthServiceAccessForOrganization that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void EnableHealthServiceAccessForOrganizationAsync(const EnableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void EnableHealthServiceAccessForOrganizationAsync(const EnableHealthServiceAccessForOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const EnableHealthServiceAccessForOrganizationRequestT& request = {}) const { - return SubmitAsync(&HealthClient::EnableHealthServiceAccessForOrganization, handler, context); + return SubmitAsync(&HealthClient::EnableHealthServiceAccessForOrganization, request, handler, context); } + void OverrideEndpoint(const Aws::String& endpoint); std::shared_ptr& accessEndpointProvider(); private: diff --git a/generated/src/aws-cpp-sdk-health/include/aws/health/HealthServiceClientModel.h b/generated/src/aws-cpp-sdk-health/include/aws/health/HealthServiceClientModel.h index 688c1e228f8..cae3c2de13c 100644 --- a/generated/src/aws-cpp-sdk-health/include/aws/health/HealthServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-health/include/aws/health/HealthServiceClientModel.h @@ -80,6 +80,9 @@ namespace Aws class DescribeEventTypesRequest; class DescribeEventsRequest; class DescribeEventsForOrganizationRequest; + class DescribeHealthServiceStatusForOrganizationRequest; + class DisableHealthServiceAccessForOrganizationRequest; + class EnableHealthServiceAccessForOrganizationRequest; /* End of service model forward declarations required in HealthClient header */ /* Service model Outcome class definitions */ @@ -128,9 +131,9 @@ namespace Aws typedef std::function&) > DescribeEventTypesResponseReceivedHandler; typedef std::function&) > DescribeEventsResponseReceivedHandler; typedef std::function&) > DescribeEventsForOrganizationResponseReceivedHandler; - typedef std::function&) > DescribeHealthServiceStatusForOrganizationResponseReceivedHandler; - typedef std::function&) > DisableHealthServiceAccessForOrganizationResponseReceivedHandler; - typedef std::function&) > EnableHealthServiceAccessForOrganizationResponseReceivedHandler; + typedef std::function&) > DescribeHealthServiceStatusForOrganizationResponseReceivedHandler; + typedef std::function&) > DisableHealthServiceAccessForOrganizationResponseReceivedHandler; + typedef std::function&) > EnableHealthServiceAccessForOrganizationResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace Health } // namespace Aws diff --git a/generated/src/aws-cpp-sdk-health/include/aws/health/model/DescribeHealthServiceStatusForOrganizationRequest.h b/generated/src/aws-cpp-sdk-health/include/aws/health/model/DescribeHealthServiceStatusForOrganizationRequest.h new file mode 100644 index 00000000000..7379eddc54c --- /dev/null +++ b/generated/src/aws-cpp-sdk-health/include/aws/health/model/DescribeHealthServiceStatusForOrganizationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Health +{ +namespace Model +{ + + /** + */ + class DescribeHealthServiceStatusForOrganizationRequest : public HealthRequest + { + public: + AWS_HEALTH_API DescribeHealthServiceStatusForOrganizationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeHealthServiceStatusForOrganization"; } + + AWS_HEALTH_API Aws::String SerializePayload() const override; + + AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Health +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-health/include/aws/health/model/DisableHealthServiceAccessForOrganizationRequest.h b/generated/src/aws-cpp-sdk-health/include/aws/health/model/DisableHealthServiceAccessForOrganizationRequest.h new file mode 100644 index 00000000000..8f1c6253b03 --- /dev/null +++ b/generated/src/aws-cpp-sdk-health/include/aws/health/model/DisableHealthServiceAccessForOrganizationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Health +{ +namespace Model +{ + + /** + */ + class DisableHealthServiceAccessForOrganizationRequest : public HealthRequest + { + public: + AWS_HEALTH_API DisableHealthServiceAccessForOrganizationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DisableHealthServiceAccessForOrganization"; } + + AWS_HEALTH_API Aws::String SerializePayload() const override; + + AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Health +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-health/include/aws/health/model/EnableHealthServiceAccessForOrganizationRequest.h b/generated/src/aws-cpp-sdk-health/include/aws/health/model/EnableHealthServiceAccessForOrganizationRequest.h new file mode 100644 index 00000000000..48e2d1829e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-health/include/aws/health/model/EnableHealthServiceAccessForOrganizationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Health +{ +namespace Model +{ + + /** + */ + class EnableHealthServiceAccessForOrganizationRequest : public HealthRequest + { + public: + AWS_HEALTH_API EnableHealthServiceAccessForOrganizationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "EnableHealthServiceAccessForOrganization"; } + + AWS_HEALTH_API Aws::String SerializePayload() const override; + + AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Health +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp b/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp index 07c67d73e6f..5468d3d6489 100644 --- a/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp +++ b/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp @@ -31,6 +31,9 @@ #include #include #include +#include +#include +#include #include @@ -424,87 +427,81 @@ DescribeEventsForOrganizationOutcome HealthClient::DescribeEventsForOrganization {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeHealthServiceStatusForOrganizationOutcome HealthClient::DescribeHealthServiceStatusForOrganization() const +DescribeHealthServiceStatusForOrganizationOutcome HealthClient::DescribeHealthServiceStatusForOrganization(const DescribeHealthServiceStatusForOrganizationRequest& request) const { -AWS_OPERATION_GUARD(DescribeHealthServiceStatusForOrganization); + AWS_OPERATION_GUARD(DescribeHealthServiceStatusForOrganization); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeHealthServiceStatusForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeHealthServiceStatusForOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeHealthServiceStatusForOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeHealthServiceStatusForOrganization", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeHealthServiceStatusForOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeHealthServiceStatusForOrganizationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeHealthServiceStatusForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeHealthServiceStatusForOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeHealthServiceStatusForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeHealthServiceStatusForOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeHealthServiceStatusForOrganization")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeHealthServiceStatusForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeHealthServiceStatusForOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeHealthServiceStatusForOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisableHealthServiceAccessForOrganizationOutcome HealthClient::DisableHealthServiceAccessForOrganization() const +DisableHealthServiceAccessForOrganizationOutcome HealthClient::DisableHealthServiceAccessForOrganization(const DisableHealthServiceAccessForOrganizationRequest& request) const { -AWS_OPERATION_GUARD(DisableHealthServiceAccessForOrganization); + AWS_OPERATION_GUARD(DisableHealthServiceAccessForOrganization); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DisableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisableHealthServiceAccessForOrganization", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DisableHealthServiceAccessForOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DisableHealthServiceAccessForOrganizationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DisableHealthServiceAccessForOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisableHealthServiceAccessForOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DisableHealthServiceAccessForOrganization")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisableHealthServiceAccessForOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DisableHealthServiceAccessForOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -EnableHealthServiceAccessForOrganizationOutcome HealthClient::EnableHealthServiceAccessForOrganization() const +EnableHealthServiceAccessForOrganizationOutcome HealthClient::EnableHealthServiceAccessForOrganization(const EnableHealthServiceAccessForOrganizationRequest& request) const { -AWS_OPERATION_GUARD(EnableHealthServiceAccessForOrganization); + AWS_OPERATION_GUARD(EnableHealthServiceAccessForOrganization); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, EnableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".EnableHealthServiceAccessForOrganization", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "EnableHealthServiceAccessForOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> EnableHealthServiceAccessForOrganizationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "EnableHealthServiceAccessForOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return EnableHealthServiceAccessForOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "EnableHealthServiceAccessForOrganization")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableHealthServiceAccessForOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableHealthServiceAccessForOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "EnableHealthServiceAccessForOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-health/source/model/DescribeHealthServiceStatusForOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-health/source/model/DescribeHealthServiceStatusForOrganizationRequest.cpp new file mode 100644 index 00000000000..6140255fae4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-health/source/model/DescribeHealthServiceStatusForOrganizationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Health::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeHealthServiceStatusForOrganizationRequest::DescribeHealthServiceStatusForOrganizationRequest() +{ +} + +Aws::String DescribeHealthServiceStatusForOrganizationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeHealthServiceStatusForOrganizationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-health/source/model/DisableHealthServiceAccessForOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-health/source/model/DisableHealthServiceAccessForOrganizationRequest.cpp new file mode 100644 index 00000000000..f8eb0339cd6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-health/source/model/DisableHealthServiceAccessForOrganizationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Health::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisableHealthServiceAccessForOrganizationRequest::DisableHealthServiceAccessForOrganizationRequest() +{ +} + +Aws::String DisableHealthServiceAccessForOrganizationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DisableHealthServiceAccessForOrganizationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSHealth_20160804.DisableHealthServiceAccessForOrganization")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-health/source/model/EnableHealthServiceAccessForOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-health/source/model/EnableHealthServiceAccessForOrganizationRequest.cpp new file mode 100644 index 00000000000..a045b018555 --- /dev/null +++ b/generated/src/aws-cpp-sdk-health/source/model/EnableHealthServiceAccessForOrganizationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Health::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +EnableHealthServiceAccessForOrganizationRequest::EnableHealthServiceAccessForOrganizationRequest() +{ +} + +Aws::String EnableHealthServiceAccessForOrganizationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection EnableHealthServiceAccessForOrganizationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSHealth_20160804.EnableHealthServiceAccessForOrganization")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/InspectorClient.h b/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/InspectorClient.h index 12a882e0868..5aecd711bd4 100644 --- a/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/InspectorClient.h +++ b/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/InspectorClient.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -391,25 +392,26 @@ namespace Inspector * href="http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeCrossAccountAccessRole">AWS * API Reference

*/ - virtual Model::DescribeCrossAccountAccessRoleOutcome DescribeCrossAccountAccessRole() const; + virtual Model::DescribeCrossAccountAccessRoleOutcome DescribeCrossAccountAccessRole(const Model::DescribeCrossAccountAccessRoleRequest& request = {}) const; /** * A Callable wrapper for DescribeCrossAccountAccessRole that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeCrossAccountAccessRoleOutcomeCallable DescribeCrossAccountAccessRoleCallable() const + template + Model::DescribeCrossAccountAccessRoleOutcomeCallable DescribeCrossAccountAccessRoleCallable(const DescribeCrossAccountAccessRoleRequestT& request = {}) const { - return SubmitCallable(&InspectorClient::DescribeCrossAccountAccessRole); + return SubmitCallable(&InspectorClient::DescribeCrossAccountAccessRole, request); } /** * An Async wrapper for DescribeCrossAccountAccessRole that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeCrossAccountAccessRoleAsync(const DescribeCrossAccountAccessRoleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeCrossAccountAccessRoleAsync(const DescribeCrossAccountAccessRoleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeCrossAccountAccessRoleRequestT& request = {}) const { - return SubmitAsync(&InspectorClient::DescribeCrossAccountAccessRole, handler, context); + return SubmitAsync(&InspectorClient::DescribeCrossAccountAccessRole, request, handler, context); } + /** *

Describes the exclusions that are specified by the exclusions' * ARNs.

See Also:

&) > DescribeAssessmentRunsResponseReceivedHandler; typedef std::function&) > DescribeAssessmentTargetsResponseReceivedHandler; typedef std::function&) > DescribeAssessmentTemplatesResponseReceivedHandler; - typedef std::function&) > DescribeCrossAccountAccessRoleResponseReceivedHandler; + typedef std::function&) > DescribeCrossAccountAccessRoleResponseReceivedHandler; typedef std::function&) > DescribeExclusionsResponseReceivedHandler; typedef std::function&) > DescribeFindingsResponseReceivedHandler; typedef std::function&) > DescribeResourceGroupsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/model/DescribeCrossAccountAccessRoleRequest.h b/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/model/DescribeCrossAccountAccessRoleRequest.h new file mode 100644 index 00000000000..73f52ae7537 --- /dev/null +++ b/generated/src/aws-cpp-sdk-inspector/include/aws/inspector/model/DescribeCrossAccountAccessRoleRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Inspector +{ +namespace Model +{ + + /** + */ + class DescribeCrossAccountAccessRoleRequest : public InspectorRequest + { + public: + AWS_INSPECTOR_API DescribeCrossAccountAccessRoleRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeCrossAccountAccessRole"; } + + AWS_INSPECTOR_API Aws::String SerializePayload() const override; + + AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Inspector +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp b/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp index b6fc05fb2ce..c36ffff7c92 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -476,32 +477,30 @@ DescribeAssessmentTemplatesOutcome InspectorClient::DescribeAssessmentTemplates( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeCrossAccountAccessRoleOutcome InspectorClient::DescribeCrossAccountAccessRole() const +DescribeCrossAccountAccessRoleOutcome InspectorClient::DescribeCrossAccountAccessRole(const DescribeCrossAccountAccessRoleRequest& request) const { -AWS_OPERATION_GUARD(DescribeCrossAccountAccessRole); + AWS_OPERATION_GUARD(DescribeCrossAccountAccessRole); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCrossAccountAccessRole, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeCrossAccountAccessRole, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeCrossAccountAccessRole, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeCrossAccountAccessRole", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeCrossAccountAccessRole" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeCrossAccountAccessRoleOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCrossAccountAccessRole, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeCrossAccountAccessRole"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCrossAccountAccessRole, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeCrossAccountAccessRoleOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeCrossAccountAccessRole")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCrossAccountAccessRole, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeCrossAccountAccessRoleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeCrossAccountAccessRole"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DescribeExclusionsOutcome InspectorClient::DescribeExclusions(const DescribeExclusionsRequest& request) const diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/DescribeCrossAccountAccessRoleRequest.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/DescribeCrossAccountAccessRoleRequest.cpp new file mode 100644 index 00000000000..b722f6e0579 --- /dev/null +++ b/generated/src/aws-cpp-sdk-inspector/source/model/DescribeCrossAccountAccessRoleRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Inspector::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeCrossAccountAccessRoleRequest::DescribeCrossAccountAccessRoleRequest() +{ +} + +Aws::String DescribeCrossAccountAccessRoleRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeCrossAccountAccessRoleRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "InspectorService.DescribeCrossAccountAccessRole")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksClient.h b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksClient.h index a33080b6fb8..cc4848e6153 100644 --- a/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksClient.h +++ b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksClient.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include namespace Aws { @@ -1141,50 +1143,52 @@ namespace OpsWorks * href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeMyUserProfile">AWS * API Reference

*/ - virtual Model::DescribeMyUserProfileOutcome DescribeMyUserProfile() const; + virtual Model::DescribeMyUserProfileOutcome DescribeMyUserProfile(const Model::DescribeMyUserProfileRequest& request = {}) const; /** * A Callable wrapper for DescribeMyUserProfile that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeMyUserProfileOutcomeCallable DescribeMyUserProfileCallable() const + template + Model::DescribeMyUserProfileOutcomeCallable DescribeMyUserProfileCallable(const DescribeMyUserProfileRequestT& request = {}) const { - return SubmitCallable(&OpsWorksClient::DescribeMyUserProfile); + return SubmitCallable(&OpsWorksClient::DescribeMyUserProfile, request); } /** * An Async wrapper for DescribeMyUserProfile that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeMyUserProfileAsync(const DescribeMyUserProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeMyUserProfileAsync(const DescribeMyUserProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeMyUserProfileRequestT& request = {}) const { - return SubmitAsync(&OpsWorksClient::DescribeMyUserProfile, handler, context); + return SubmitAsync(&OpsWorksClient::DescribeMyUserProfile, request, handler, context); } + /** *

Describes the operating systems that are supported by AWS OpsWorks * Stacks.

See Also:

AWS * API Reference

*/ - virtual Model::DescribeOperatingSystemsOutcome DescribeOperatingSystems() const; + virtual Model::DescribeOperatingSystemsOutcome DescribeOperatingSystems(const Model::DescribeOperatingSystemsRequest& request = {}) const; /** * A Callable wrapper for DescribeOperatingSystems that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeOperatingSystemsOutcomeCallable DescribeOperatingSystemsCallable() const + template + Model::DescribeOperatingSystemsOutcomeCallable DescribeOperatingSystemsCallable(const DescribeOperatingSystemsRequestT& request = {}) const { - return SubmitCallable(&OpsWorksClient::DescribeOperatingSystems); + return SubmitCallable(&OpsWorksClient::DescribeOperatingSystems, request); } /** * An Async wrapper for DescribeOperatingSystems that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeOperatingSystemsAsync(const DescribeOperatingSystemsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeOperatingSystemsAsync(const DescribeOperatingSystemsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeOperatingSystemsRequestT& request = {}) const { - return SubmitAsync(&OpsWorksClient::DescribeOperatingSystems, handler, context); + return SubmitAsync(&OpsWorksClient::DescribeOperatingSystems, request, handler, context); } + /** *

Describes the permissions for a specified stack.

Required * Permissions: To use this action, an IAM user must have a Manage permissions diff --git a/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksServiceClientModel.h b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksServiceClientModel.h index 41707ca8fc6..e2c5f134723 100644 --- a/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/OpsWorksServiceClientModel.h @@ -126,6 +126,8 @@ namespace Aws class DescribeInstancesRequest; class DescribeLayersRequest; class DescribeLoadBasedAutoScalingRequest; + class DescribeMyUserProfileRequest; + class DescribeOperatingSystemsRequest; class DescribePermissionsRequest; class DescribeRaidArraysRequest; class DescribeRdsDbInstancesRequest; @@ -358,8 +360,8 @@ namespace Aws typedef std::function&) > DescribeInstancesResponseReceivedHandler; typedef std::function&) > DescribeLayersResponseReceivedHandler; typedef std::function&) > DescribeLoadBasedAutoScalingResponseReceivedHandler; - typedef std::function&) > DescribeMyUserProfileResponseReceivedHandler; - typedef std::function&) > DescribeOperatingSystemsResponseReceivedHandler; + typedef std::function&) > DescribeMyUserProfileResponseReceivedHandler; + typedef std::function&) > DescribeOperatingSystemsResponseReceivedHandler; typedef std::function&) > DescribePermissionsResponseReceivedHandler; typedef std::function&) > DescribeRaidArraysResponseReceivedHandler; typedef std::function&) > DescribeRdsDbInstancesResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeMyUserProfileRequest.h b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeMyUserProfileRequest.h new file mode 100644 index 00000000000..a3f4b489d36 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeMyUserProfileRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace OpsWorks +{ +namespace Model +{ + + /** + */ + class DescribeMyUserProfileRequest : public OpsWorksRequest + { + public: + AWS_OPSWORKS_API DescribeMyUserProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeMyUserProfile"; } + + AWS_OPSWORKS_API Aws::String SerializePayload() const override; + + AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace OpsWorks +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeOperatingSystemsRequest.h b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeOperatingSystemsRequest.h new file mode 100644 index 00000000000..f53ed28f42a --- /dev/null +++ b/generated/src/aws-cpp-sdk-opsworks/include/aws/opsworks/model/DescribeOperatingSystemsRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace OpsWorks +{ +namespace Model +{ + + /** + */ + class DescribeOperatingSystemsRequest : public OpsWorksRequest + { + public: + AWS_OPSWORKS_API DescribeOperatingSystemsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeOperatingSystems"; } + + AWS_OPSWORKS_API Aws::String SerializePayload() const override; + + AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace OpsWorks +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opsworks/source/OpsWorksClient.cpp b/generated/src/aws-cpp-sdk-opsworks/source/OpsWorksClient.cpp index 18c7bb0b3d0..255a4981476 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/OpsWorksClient.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/OpsWorksClient.cpp @@ -52,6 +52,8 @@ #include #include #include +#include +#include #include #include #include @@ -1032,60 +1034,56 @@ DescribeLoadBasedAutoScalingOutcome OpsWorksClient::DescribeLoadBasedAutoScaling {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeMyUserProfileOutcome OpsWorksClient::DescribeMyUserProfile() const +DescribeMyUserProfileOutcome OpsWorksClient::DescribeMyUserProfile(const DescribeMyUserProfileRequest& request) const { -AWS_OPERATION_GUARD(DescribeMyUserProfile); + AWS_OPERATION_GUARD(DescribeMyUserProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeMyUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeMyUserProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeMyUserProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeMyUserProfile", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeMyUserProfile" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeMyUserProfileOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeMyUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeMyUserProfile"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeMyUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeMyUserProfileOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeMyUserProfile")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeMyUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeMyUserProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeMyUserProfile"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeOperatingSystemsOutcome OpsWorksClient::DescribeOperatingSystems() const +DescribeOperatingSystemsOutcome OpsWorksClient::DescribeOperatingSystems(const DescribeOperatingSystemsRequest& request) const { -AWS_OPERATION_GUARD(DescribeOperatingSystems); + AWS_OPERATION_GUARD(DescribeOperatingSystems); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOperatingSystems, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeOperatingSystems, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeOperatingSystems, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeOperatingSystems", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOperatingSystems" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeOperatingSystemsOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOperatingSystems, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOperatingSystems"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeOperatingSystems, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeOperatingSystemsOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeOperatingSystems")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeOperatingSystems, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeOperatingSystemsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOperatingSystems"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DescribePermissionsOutcome OpsWorksClient::DescribePermissions(const DescribePermissionsRequest& request) const diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/DescribeMyUserProfileRequest.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/DescribeMyUserProfileRequest.cpp new file mode 100644 index 00000000000..e9c89ea7b67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/DescribeMyUserProfileRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::OpsWorks::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeMyUserProfileRequest::DescribeMyUserProfileRequest() +{ +} + +Aws::String DescribeMyUserProfileRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeMyUserProfileRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OpsWorks_20130218.DescribeMyUserProfile")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/DescribeOperatingSystemsRequest.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/DescribeOperatingSystemsRequest.cpp new file mode 100644 index 00000000000..e6a84747a7c --- /dev/null +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/DescribeOperatingSystemsRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::OpsWorks::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeOperatingSystemsRequest::DescribeOperatingSystemsRequest() +{ +} + +Aws::String DescribeOperatingSystemsRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeOperatingSystemsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OpsWorks_20130218.DescribeOperatingSystems")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h index 62b329d3f93..5103151c4df 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h @@ -10,6 +10,11 @@ #include #include #include +#include +#include +#include +#include +#include namespace Aws { @@ -658,25 +663,26 @@ namespace Organizations * href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganization">AWS * API Reference

*/ - virtual Model::DeleteOrganizationOutcome DeleteOrganization() const; + virtual Model::DeleteOrganizationOutcome DeleteOrganization(const Model::DeleteOrganizationRequest& request = {}) const; /** * A Callable wrapper for DeleteOrganization that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DeleteOrganizationOutcomeCallable DeleteOrganizationCallable() const + template + Model::DeleteOrganizationOutcomeCallable DeleteOrganizationCallable(const DeleteOrganizationRequestT& request = {}) const { - return SubmitCallable(&OrganizationsClient::DeleteOrganization); + return SubmitCallable(&OrganizationsClient::DeleteOrganization, request); } /** * An Async wrapper for DeleteOrganization that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DeleteOrganizationAsync(const DeleteOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DeleteOrganizationAsync(const DeleteOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DeleteOrganizationRequestT& request = {}) const { - return SubmitAsync(&OrganizationsClient::DeleteOrganization, handler, context); + return SubmitAsync(&OrganizationsClient::DeleteOrganization, request, handler, context); } + /** *

Deletes an organizational unit (OU) from a root or another OU. You must first * remove all accounts and child OUs from the OU that you want to delete.

@@ -740,25 +746,26 @@ namespace Organizations * href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteResourcePolicy">AWS * API Reference

*/ - virtual Model::DeleteResourcePolicyOutcome DeleteResourcePolicy() const; + virtual Model::DeleteResourcePolicyOutcome DeleteResourcePolicy(const Model::DeleteResourcePolicyRequest& request = {}) const; /** * A Callable wrapper for DeleteResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DeleteResourcePolicyOutcomeCallable DeleteResourcePolicyCallable() const + template + Model::DeleteResourcePolicyOutcomeCallable DeleteResourcePolicyCallable(const DeleteResourcePolicyRequestT& request = {}) const { - return SubmitCallable(&OrganizationsClient::DeleteResourcePolicy); + return SubmitCallable(&OrganizationsClient::DeleteResourcePolicy, request); } /** * An Async wrapper for DeleteResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DeleteResourcePolicyAsync(const DeleteResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DeleteResourcePolicyAsync(const DeleteResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DeleteResourcePolicyRequestT& request = {}) const { - return SubmitAsync(&OrganizationsClient::DeleteResourcePolicy, handler, context); + return SubmitAsync(&OrganizationsClient::DeleteResourcePolicy, request, handler, context); } + /** *

Removes the specified member Amazon Web Services account as a delegated * administrator for the specified Amazon Web Services service.

@@ -928,25 +935,26 @@ namespace Organizations * href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganization">AWS * API Reference

*/ - virtual Model::DescribeOrganizationOutcome DescribeOrganization() const; + virtual Model::DescribeOrganizationOutcome DescribeOrganization(const Model::DescribeOrganizationRequest& request = {}) const; /** * A Callable wrapper for DescribeOrganization that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeOrganizationOutcomeCallable DescribeOrganizationCallable() const + template + Model::DescribeOrganizationOutcomeCallable DescribeOrganizationCallable(const DescribeOrganizationRequestT& request = {}) const { - return SubmitCallable(&OrganizationsClient::DescribeOrganization); + return SubmitCallable(&OrganizationsClient::DescribeOrganization, request); } /** * An Async wrapper for DescribeOrganization that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeOrganizationAsync(const DescribeOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeOrganizationAsync(const DescribeOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeOrganizationRequestT& request = {}) const { - return SubmitAsync(&OrganizationsClient::DescribeOrganization, handler, context); + return SubmitAsync(&OrganizationsClient::DescribeOrganization, request, handler, context); } + /** *

Retrieves information about an organizational unit (OU).

This * operation can be called only from the organization's management account or by a @@ -1011,25 +1019,26 @@ namespace Organizations * href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeResourcePolicy">AWS * API Reference

*/ - virtual Model::DescribeResourcePolicyOutcome DescribeResourcePolicy() const; + virtual Model::DescribeResourcePolicyOutcome DescribeResourcePolicy(const Model::DescribeResourcePolicyRequest& request = {}) const; /** * A Callable wrapper for DescribeResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::DescribeResourcePolicyOutcomeCallable DescribeResourcePolicyCallable() const + template + Model::DescribeResourcePolicyOutcomeCallable DescribeResourcePolicyCallable(const DescribeResourcePolicyRequestT& request = {}) const { - return SubmitCallable(&OrganizationsClient::DescribeResourcePolicy); + return SubmitCallable(&OrganizationsClient::DescribeResourcePolicy, request); } /** * An Async wrapper for DescribeResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void DescribeResourcePolicyAsync(const DescribeResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void DescribeResourcePolicyAsync(const DescribeResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeResourcePolicyRequestT& request = {}) const { - return SubmitAsync(&OrganizationsClient::DescribeResourcePolicy, handler, context); + return SubmitAsync(&OrganizationsClient::DescribeResourcePolicy, request, handler, context); } + /** *

Detaches a policy from a target root, organizational unit (OU), or * account.

If the policy being detached is a service control @@ -1396,25 +1405,26 @@ namespace Organizations * href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/LeaveOrganization">AWS * API Reference

*/ - virtual Model::LeaveOrganizationOutcome LeaveOrganization() const; + virtual Model::LeaveOrganizationOutcome LeaveOrganization(const Model::LeaveOrganizationRequest& request = {}) const; /** * A Callable wrapper for LeaveOrganization that returns a future to the operation so that it can be executed in parallel to other requests. */ - template - Model::LeaveOrganizationOutcomeCallable LeaveOrganizationCallable() const + template + Model::LeaveOrganizationOutcomeCallable LeaveOrganizationCallable(const LeaveOrganizationRequestT& request = {}) const { - return SubmitCallable(&OrganizationsClient::LeaveOrganization); + return SubmitCallable(&OrganizationsClient::LeaveOrganization, request); } /** * An Async wrapper for LeaveOrganization that queues the request into a thread executor and triggers associated callback when operation has finished. */ - template - void LeaveOrganizationAsync(const LeaveOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + template + void LeaveOrganizationAsync(const LeaveOrganizationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const LeaveOrganizationRequestT& request = {}) const { - return SubmitAsync(&OrganizationsClient::LeaveOrganization, handler, context); + return SubmitAsync(&OrganizationsClient::LeaveOrganization, request, handler, context); } + /** *

Returns a list of the Amazon Web Services services that you enabled to * integrate with your organization. After a service on this list creates the diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h index e4b7dbbbf20..1e51420ca83 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h @@ -108,15 +108,19 @@ namespace Aws class CreateOrganizationalUnitRequest; class CreatePolicyRequest; class DeclineHandshakeRequest; + class DeleteOrganizationRequest; class DeleteOrganizationalUnitRequest; class DeletePolicyRequest; + class DeleteResourcePolicyRequest; class DeregisterDelegatedAdministratorRequest; class DescribeAccountRequest; class DescribeCreateAccountStatusRequest; class DescribeEffectivePolicyRequest; class DescribeHandshakeRequest; + class DescribeOrganizationRequest; class DescribeOrganizationalUnitRequest; class DescribePolicyRequest; + class DescribeResourcePolicyRequest; class DetachPolicyRequest; class DisableAWSServiceAccessRequest; class DisablePolicyTypeRequest; @@ -124,6 +128,7 @@ namespace Aws class EnableAllFeaturesRequest; class EnablePolicyTypeRequest; class InviteAccountToOrganizationRequest; + class LeaveOrganizationRequest; class ListAWSServiceAccessForOrganizationRequest; class ListAccountsRequest; class ListAccountsForParentRequest; @@ -280,19 +285,19 @@ namespace Aws typedef std::function&) > CreateOrganizationalUnitResponseReceivedHandler; typedef std::function&) > CreatePolicyResponseReceivedHandler; typedef std::function&) > DeclineHandshakeResponseReceivedHandler; - typedef std::function&) > DeleteOrganizationResponseReceivedHandler; + typedef std::function&) > DeleteOrganizationResponseReceivedHandler; typedef std::function&) > DeleteOrganizationalUnitResponseReceivedHandler; typedef std::function&) > DeletePolicyResponseReceivedHandler; - typedef std::function&) > DeleteResourcePolicyResponseReceivedHandler; + typedef std::function&) > DeleteResourcePolicyResponseReceivedHandler; typedef std::function&) > DeregisterDelegatedAdministratorResponseReceivedHandler; typedef std::function&) > DescribeAccountResponseReceivedHandler; typedef std::function&) > DescribeCreateAccountStatusResponseReceivedHandler; typedef std::function&) > DescribeEffectivePolicyResponseReceivedHandler; typedef std::function&) > DescribeHandshakeResponseReceivedHandler; - typedef std::function&) > DescribeOrganizationResponseReceivedHandler; + typedef std::function&) > DescribeOrganizationResponseReceivedHandler; typedef std::function&) > DescribeOrganizationalUnitResponseReceivedHandler; typedef std::function&) > DescribePolicyResponseReceivedHandler; - typedef std::function&) > DescribeResourcePolicyResponseReceivedHandler; + typedef std::function&) > DescribeResourcePolicyResponseReceivedHandler; typedef std::function&) > DetachPolicyResponseReceivedHandler; typedef std::function&) > DisableAWSServiceAccessResponseReceivedHandler; typedef std::function&) > DisablePolicyTypeResponseReceivedHandler; @@ -300,7 +305,7 @@ namespace Aws typedef std::function&) > EnableAllFeaturesResponseReceivedHandler; typedef std::function&) > EnablePolicyTypeResponseReceivedHandler; typedef std::function&) > InviteAccountToOrganizationResponseReceivedHandler; - typedef std::function&) > LeaveOrganizationResponseReceivedHandler; + typedef std::function&) > LeaveOrganizationResponseReceivedHandler; typedef std::function&) > ListAWSServiceAccessForOrganizationResponseReceivedHandler; typedef std::function&) > ListAccountsResponseReceivedHandler; typedef std::function&) > ListAccountsForParentResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h new file mode 100644 index 00000000000..db76070cb38 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Organizations +{ +namespace Model +{ + + /** + */ + class DeleteOrganizationRequest : public OrganizationsRequest + { + public: + AWS_ORGANIZATIONS_API DeleteOrganizationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteOrganization"; } + + AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; + + AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Organizations +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h new file mode 100644 index 00000000000..44630d79361 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Organizations +{ +namespace Model +{ + + /** + */ + class DeleteResourcePolicyRequest : public OrganizationsRequest + { + public: + AWS_ORGANIZATIONS_API DeleteResourcePolicyRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteResourcePolicy"; } + + AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; + + AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Organizations +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h new file mode 100644 index 00000000000..178c6da66f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Organizations +{ +namespace Model +{ + + /** + */ + class DescribeOrganizationRequest : public OrganizationsRequest + { + public: + AWS_ORGANIZATIONS_API DescribeOrganizationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeOrganization"; } + + AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; + + AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Organizations +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h new file mode 100644 index 00000000000..849832e3fc2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Organizations +{ +namespace Model +{ + + /** + */ + class DescribeResourcePolicyRequest : public OrganizationsRequest + { + public: + AWS_ORGANIZATIONS_API DescribeResourcePolicyRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeResourcePolicy"; } + + AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; + + AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Organizations +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h new file mode 100644 index 00000000000..84a69e538af --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Organizations +{ +namespace Model +{ + + /** + */ + class LeaveOrganizationRequest : public OrganizationsRequest + { + public: + AWS_ORGANIZATIONS_API LeaveOrganizationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "LeaveOrganization"; } + + AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; + + AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + }; + +} // namespace Model +} // namespace Organizations +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp index 6f8fc528383..c771794aeba 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp @@ -31,15 +31,19 @@ #include #include #include +#include #include #include +#include #include #include #include #include #include +#include #include #include +#include #include #include #include @@ -47,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -464,32 +469,30 @@ DeclineHandshakeOutcome OrganizationsClient::DeclineHandshake(const DeclineHands {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteOrganizationOutcome OrganizationsClient::DeleteOrganization() const +DeleteOrganizationOutcome OrganizationsClient::DeleteOrganization(const DeleteOrganizationRequest& request) const { -AWS_OPERATION_GUARD(DeleteOrganization); + AWS_OPERATION_GUARD(DeleteOrganization); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DeleteOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteOrganization", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DeleteOrganizationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DeleteOrganization")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DeleteOrganizationalUnitOutcome OrganizationsClient::DeleteOrganizationalUnit(const DeleteOrganizationalUnitRequest& request) const @@ -544,32 +547,30 @@ DeletePolicyOutcome OrganizationsClient::DeletePolicy(const DeletePolicyRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteResourcePolicyOutcome OrganizationsClient::DeleteResourcePolicy() const +DeleteResourcePolicyOutcome OrganizationsClient::DeleteResourcePolicy(const DeleteResourcePolicyRequest& request) const { -AWS_OPERATION_GUARD(DeleteResourcePolicy); + AWS_OPERATION_GUARD(DeleteResourcePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteResourcePolicy", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteResourcePolicy" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DeleteResourcePolicyOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteResourcePolicyOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DeleteResourcePolicy")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DeregisterDelegatedAdministratorOutcome OrganizationsClient::DeregisterDelegatedAdministrator(const DeregisterDelegatedAdministratorRequest& request) const @@ -702,32 +703,30 @@ DescribeHandshakeOutcome OrganizationsClient::DescribeHandshake(const DescribeHa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeOrganizationOutcome OrganizationsClient::DescribeOrganization() const +DescribeOrganizationOutcome OrganizationsClient::DescribeOrganization(const DescribeOrganizationRequest& request) const { -AWS_OPERATION_GUARD(DescribeOrganization); + AWS_OPERATION_GUARD(DescribeOrganization); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeOrganization", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeOrganizationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeOrganization")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DescribeOrganizationalUnitOutcome OrganizationsClient::DescribeOrganizationalUnit(const DescribeOrganizationalUnitRequest& request) const @@ -782,32 +781,30 @@ DescribePolicyOutcome OrganizationsClient::DescribePolicy(const DescribePolicyRe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeResourcePolicyOutcome OrganizationsClient::DescribeResourcePolicy() const +DescribeResourcePolicyOutcome OrganizationsClient::DescribeResourcePolicy(const DescribeResourcePolicyRequest& request) const { -AWS_OPERATION_GUARD(DescribeResourcePolicy); + AWS_OPERATION_GUARD(DescribeResourcePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, DescribeResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeResourcePolicy", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeResourcePolicy" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> DescribeResourcePolicyOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeResourcePolicyOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeResourcePolicy")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } DetachPolicyOutcome OrganizationsClient::DetachPolicy(const DetachPolicyRequest& request) const @@ -992,32 +989,30 @@ InviteAccountToOrganizationOutcome OrganizationsClient::InviteAccountToOrganizat {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -LeaveOrganizationOutcome OrganizationsClient::LeaveOrganization() const +LeaveOrganizationOutcome OrganizationsClient::LeaveOrganization(const LeaveOrganizationRequest& request) const { -AWS_OPERATION_GUARD(LeaveOrganization); + AWS_OPERATION_GUARD(LeaveOrganization); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); AWS_OPERATION_CHECK_PTR(m_telemetryProvider, LeaveOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); AWS_OPERATION_CHECK_PTR(meter, LeaveOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".LeaveOrganization", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "LeaveOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); return TracingUtils::MakeCallWithTiming( [&]()-> LeaveOrganizationOutcome { - - AWS_OPERATION_CHECK_PTR(m_endpointProvider, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - const Aws::Vector staticEndpointParameters; - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "LeaveOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return LeaveOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "LeaveOrganization")); + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return LeaveOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, "LeaveOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } ListAWSServiceAccessForOrganizationOutcome OrganizationsClient::ListAWSServiceAccessForOrganization(const ListAWSServiceAccessForOrganizationRequest& request) const diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp new file mode 100644 index 00000000000..31defe37950 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Organizations::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteOrganizationRequest::DeleteOrganizationRequest() +{ +} + +Aws::String DeleteOrganizationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DeleteOrganizationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DeleteOrganization")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp new file mode 100644 index 00000000000..d279ac76218 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Organizations::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteResourcePolicyRequest::DeleteResourcePolicyRequest() +{ +} + +Aws::String DeleteResourcePolicyRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DeleteResourcePolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DeleteResourcePolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp new file mode 100644 index 00000000000..3eeeec82bea --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Organizations::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeOrganizationRequest::DescribeOrganizationRequest() +{ +} + +Aws::String DescribeOrganizationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeOrganizationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DescribeOrganization")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp new file mode 100644 index 00000000000..03f1ecdaf65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Organizations::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeResourcePolicyRequest::DescribeResourcePolicyRequest() +{ +} + +Aws::String DescribeResourcePolicyRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection DescribeResourcePolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DescribeResourcePolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/LeaveOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/LeaveOrganizationRequest.cpp new file mode 100644 index 00000000000..4f1aff846d6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-organizations/source/model/LeaveOrganizationRequest.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Organizations::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +LeaveOrganizationRequest::LeaveOrganizationRequest() +{ +} + +Aws::String LeaveOrganizationRequest::SerializePayload() const +{ + return "{}"; +} + +Aws::Http::HeaderValueCollection LeaveOrganizationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.LeaveOrganization")); + return headers; + +} + + + + diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Operation.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Operation.java index 742f2d70844..e9288838070 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Operation.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Operation.java @@ -73,4 +73,15 @@ public class Operation { private List responseAlgorithms; private boolean requestCompressionRequired; private boolean requestCompressionRequiredGzip; + + // For Requestless Defaults + private boolean requestlessDefault = false; + + public boolean hasRequest() { + return this.request != null; + } + + public void addRequest(final ShapeMember request) { + this.request = request; + } } diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Shape.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Shape.java index 00c40beab86..29d22198440 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Shape.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/Shape.java @@ -5,7 +5,10 @@ package com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration; +import lombok.AllArgsConstructor; +import lombok.Builder; import lombok.Data; +import lombok.NoArgsConstructor; import java.util.LinkedHashMap; import java.util.List; @@ -16,6 +19,9 @@ import java.util.stream.Collectors; @Data +@Builder +@NoArgsConstructor +@AllArgsConstructor public class Shape { private String name; private String type; diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/ShapeMember.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/ShapeMember.java index 541c90704e3..f32487ec5fc 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/ShapeMember.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/ShapeMember.java @@ -5,11 +5,17 @@ package com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration; +import lombok.AllArgsConstructor; +import lombok.Builder; import lombok.Data; +import lombok.NoArgsConstructor; import java.util.Map; @Data +@Builder +@NoArgsConstructor +@AllArgsConstructor public class ShapeMember { Shape shape; boolean idempotencyToken; diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java index 16ab5e42fde..fb407b021fe 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java @@ -12,21 +12,55 @@ import com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration.ShapeMember; import com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration.cpp.CppShapeInformation; import com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration.cpp.CppViewHelper; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Sets; +import org.apache.commons.lang3.StringUtils; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; +import java.util.HashSet; import java.util.List; -import java.util.Map;; +import java.util.Map; +import java.util.Optional; +import java.util.Set;; public class JsonCppClientGenerator extends CppClientGenerator { + private final Set requestlessOperations = new HashSet<>(); + public JsonCppClientGenerator() throws Exception { super(); } + @Override + public SdkFileEntry[] generateSourceFiles(ServiceModel serviceModel) throws Exception { + serviceModel.getOperations().values().stream() + .filter(__ -> StringUtils.isNotEmpty(serviceModel.getMetadata().getTargetPrefix())) + .filter(operation -> !operation.hasRequest()) + .forEach(operation -> { + Shape requestShape = Shape.builder() + .name(operation.getName() + "Request") + .referencedBy(Sets.newHashSet(operation.getName())) + .type("structure") + .isRequest(true) + .isReferenced(true) + .members(ImmutableMap.of()) + .enumValues(ImmutableList.of()) + .build(); + operation.setRequestlessDefault(true); + serviceModel.getShapes().put(requestShape.getName(), requestShape); + operation.addRequest(ShapeMember.builder().shape(requestShape).build()); + requestlessOperations.add(operation.getName()); + }); + + return super.generateSourceFiles(serviceModel); + } + @Override protected SdkFileEntry generateErrorMarshallerHeaderFile(ServiceModel serviceModel) throws Exception { Template template = velocityEngine.getTemplate("/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonErrorMarshallerHeader.vm", StandardCharsets.UTF_8.name()); @@ -161,6 +195,7 @@ protected SdkFileEntry generateClientHeaderFile(final ServiceModel serviceModel) VelocityContext context = createContext(serviceModel); context.put("CppViewHelper", CppViewHelper.class); + context.put("RequestlessOperations", requestlessOperations); String fileName = String.format("include/aws/%s/%sClient.h", serviceModel.getMetadata().getProjectName(), serviceModel.getMetadata().getClassNamePrefix()); diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceClientHeaderOperations.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceClientHeaderOperations.vm index a7dc43da73e..f6b5f44e13c 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceClientHeaderOperations.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceClientHeaderOperations.vm @@ -12,6 +12,11 @@ #if(!$operation.documentation) #set($operation.documentation = '') #end +#if($operation.isRequestlessDefault()) +#set($defaultOp = " = {}") +#else +#set($defaultOp = "") +#end #if($operation.request) #if($operation.request.shape.hasEventStreamMembers()) /** @@ -30,7 +35,7 @@ /** * ${operation.documentation} */ - $virtual Model::${operation.name}Outcome ${operation.name}(${constText}Model::${operation.request.shape.name}& request) const; + $virtual Model::${operation.name}Outcome ${operation.name}(${constText}Model::${operation.request.shape.name}& request${defaultOp}) const; #if($serviceNamespace != "S3Crt" || !$operation.s3CrtEnabled) ##S3 CRT-backed Operations do not support Async Callable API @@ -42,7 +47,7 @@ $virtual Model::${operation.name}OutcomeCallable ${operation.name}Callable(${constText}Model::${operation.request.shape.name}& request) const; #else template - Model::${operation.name}OutcomeCallable ${operation.name}Callable(${constText}${operation.name}RequestT& request) const + Model::${operation.name}OutcomeCallable ${operation.name}Callable(${constText}${operation.name}RequestT& request${defaultOp}) const { return SubmitCallable(&${className}::${operation.name}, request); } @@ -55,6 +60,12 @@ #if($serviceModel.metadata.serviceId == "S3" && $operation.s3CrtEnabled) ##S3 CRT-backed Operations are primarly based on Async implementation not sync blocking calls $virtual void ${operation.name}Async(${constText}Model::${operation.request.shape.name}& request, const ${operation.name}ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; +#elseif($operation.isRequestlessDefault()) + template + void ${operation.name}Async(const ${operation.name}ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, ${constText}${operation.name}RequestT& request${defaultOp}) const + { + return SubmitAsync(&${className}::${operation.name}, request, handler, context); + } #else template void ${operation.name}Async(${constText}${operation.name}RequestT& request, const ${operation.name}ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonServiceClientHeader.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonServiceClientHeader.vm index fbdfb55c405..675f8b2e614 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonServiceClientHeader.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonServiceClientHeader.vm @@ -11,6 +11,9 @@ \#include \#include \#include +#foreach($RequestImport in $RequestlessOperations) +\#include +#end namespace ${rootNamespace} {