Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ EC2ProtocolClient::EC2ProtocolClient(const std::shared_ptr<AWSCredentialsProvide
/* Legacy constructors due deprecation */
EC2ProtocolClient::EC2ProtocolClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<EC2ProtocolErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<EC2ProtocolEndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ JsonProtocolClient::JsonProtocolClient(const std::shared_ptr<AWSCredentialsProvi
/* Legacy constructors due deprecation */
JsonProtocolClient::JsonProtocolClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<JsonProtocolErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<JsonProtocolEndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ JSONRPC10Client::JSONRPC10Client(const std::shared_ptr<AWSCredentialsProvider>&
/* Legacy constructors due deprecation */
JSONRPC10Client::JSONRPC10Client(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<JSONRPC10ErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<JSONRPC10EndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ ProtocolMockClient::ProtocolMockClient(const std::shared_ptr<AWSCredentialsProvi
/* Legacy constructors due deprecation */
ProtocolMockClient::ProtocolMockClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ProtocolMockErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<ProtocolMockEndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ QueryCompatibleJSONRPC10Client::QueryCompatibleJSONRPC10Client(
/* Legacy constructors due deprecation */
QueryCompatibleJSONRPC10Client::QueryCompatibleJSONRPC10Client(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<QueryCompatibleJSONRPC10ErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<QueryCompatibleJSONRPC10EndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ QueryProtocolClient::QueryProtocolClient(const std::shared_ptr<AWSCredentialsPro
/* Legacy constructors due deprecation */
QueryProtocolClient::QueryProtocolClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<QueryProtocolErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<QueryProtocolEndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ RestJsonProtocolClient::RestJsonProtocolClient(const std::shared_ptr<AWSCredenti
RestJsonProtocolClient::RestJsonProtocolClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<Aws::Auth::DefaultAuthSignerProvider>(
ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG), SERVICE_NAME,
Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<RestJsonProtocolErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<RestJsonProtocolEndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ RestXmlProtocolClient::RestXmlProtocolClient(const std::shared_ptr<AWSCredential
RestXmlProtocolClient::RestXmlProtocolClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<Aws::Auth::DefaultAuthSignerProvider>(
ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG), SERVICE_NAME,
Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<RestXmlProtocolErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<RestXmlProtocolEndpointProvider>(ALLOCATION_TAG)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ class AWS_RPCV2PROTOCOL_API RpcV2ProtocolRequest : public Aws::AmazonSerializabl
if (headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) {
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-07-14"));
headers.emplace(Aws::Http::HeaderValuePair("smithy-protocol", "rpc-v2-cbor"));
headers.emplace(Aws::Http::HeaderValuePair("Accept", "application/cbor"));

return headers;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ RpcV2ProtocolClient::RpcV2ProtocolClient(const std::shared_ptr<AWSCredentialsPro
/* Legacy constructors due deprecation */
RpcV2ProtocolClient::RpcV2ProtocolClient(const Client::ClientConfiguration& clientConfiguration)
: BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<AWSAuthV4Signer>(
ALLOCATION_TAG,
Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG, clientConfiguration.credentialProviderConfig),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<RpcV2ProtocolErrorMarshaller>(ALLOCATION_TAG)),
m_clientConfiguration(clientConfiguration),
m_endpointProvider(Aws::MakeShared<RpcV2ProtocolEndpointProvider>(ALLOCATION_TAG)) {
Expand Down Expand Up @@ -165,7 +167,7 @@ EmptyInputOutputOutcome RpcV2ProtocolClient::EmptyInputOutput(const EmptyInputOu
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EmptyInputOutput, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/EmptyInputOutput");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/EmptyInputOutput");
return EmptyInputOutputOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -195,7 +197,7 @@ Float16Outcome RpcV2ProtocolClient::Float16(const Float16Request& request) const
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, Float16, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/Float16");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/Float16");
return Float16Outcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -225,7 +227,7 @@ FractionalSecondsOutcome RpcV2ProtocolClient::FractionalSeconds(const Fractional
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, FractionalSeconds, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/FractionalSeconds");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/FractionalSeconds");
return FractionalSecondsOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -255,7 +257,7 @@ GreetingWithErrorsOutcome RpcV2ProtocolClient::GreetingWithErrors(const Greeting
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GreetingWithErrors, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/GreetingWithErrors");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/GreetingWithErrors");
return GreetingWithErrorsOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -285,7 +287,7 @@ NoInputOutputOutcome RpcV2ProtocolClient::NoInputOutput(const NoInputOutputReque
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, NoInputOutput, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/NoInputOutput");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/NoInputOutput");
return NoInputOutputOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -315,7 +317,7 @@ OptionalInputOutputOutcome RpcV2ProtocolClient::OptionalInputOutput(const Option
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, OptionalInputOutput, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/OptionalInputOutput");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/OptionalInputOutput");
return OptionalInputOutputOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -345,7 +347,7 @@ RecursiveShapesOutcome RpcV2ProtocolClient::RecursiveShapes(const RecursiveShape
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RecursiveShapes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/RecursiveShapes");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/RecursiveShapes");
return RecursiveShapesOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -375,7 +377,7 @@ RpcV2CborDenseMapsOutcome RpcV2ProtocolClient::RpcV2CborDenseMaps(const RpcV2Cbo
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RpcV2CborDenseMaps, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/RpcV2CborDenseMaps");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/RpcV2CborDenseMaps");
return RpcV2CborDenseMapsOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -405,7 +407,7 @@ RpcV2CborListsOutcome RpcV2ProtocolClient::RpcV2CborLists(const RpcV2CborListsRe
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RpcV2CborLists, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/RpcV2CborLists");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/RpcV2CborLists");
return RpcV2CborListsOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down Expand Up @@ -435,7 +437,7 @@ SimpleScalarPropertiesOutcome RpcV2ProtocolClient::SimpleScalarProperties(const
{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SimpleScalarProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE,
endpointResolutionOutcome.GetError().GetMessage());
endpointResolutionOutcome.GetResult().AddPathSegment("/service/RpcV2Protocol/operation/SimpleScalarProperties");
endpointResolutionOutcome.GetResult().AddPathSegments("/service/RpcV2Protocol/operation/SimpleScalarProperties");
return SimpleScalarPropertiesOutcome(
MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ Aws::String EmptyInputOutputRequest::SerializePayload() const {

Aws::Http::HeaderValueCollection EmptyInputOutputRequest::GetRequestSpecificHeaders() const {
Aws::Http::HeaderValueCollection headers;
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::CBOR_CONTENT_TYPE));
headers.emplace("smithy-protocol", "rpc-v2-cbor");
headers.emplace(Aws::Http::CONTENT_TYPE_HEADER, Aws::CBOR_CONTENT_TYPE);
headers.emplace(Aws::Http::ACCEPT_HEADER, Aws::CBOR_CONTENT_TYPE);
Aws::StringStream ss;
if (m_requestIdHasBeenSet) {
ss << m_requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ Aws::String Float16Request::SerializePayload() const { return {}; }

Aws::Http::HeaderValueCollection Float16Request::GetRequestSpecificHeaders() const {
Aws::Http::HeaderValueCollection headers;
headers.emplace("smithy-protocol", "rpc-v2-cbor");
headers.emplace(Aws::Http::ACCEPT_HEADER, Aws::CBOR_CONTENT_TYPE);
return headers;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ Aws::String FractionalSecondsRequest::SerializePayload() const { return {}; }

Aws::Http::HeaderValueCollection FractionalSecondsRequest::GetRequestSpecificHeaders() const {
Aws::Http::HeaderValueCollection headers;
headers.emplace("smithy-protocol", "rpc-v2-cbor");
headers.emplace(Aws::Http::ACCEPT_HEADER, Aws::CBOR_CONTENT_TYPE);
return headers;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ Aws::String GreetingWithErrorsRequest::SerializePayload() const { return {}; }

Aws::Http::HeaderValueCollection GreetingWithErrorsRequest::GetRequestSpecificHeaders() const {
Aws::Http::HeaderValueCollection headers;
headers.emplace("smithy-protocol", "rpc-v2-cbor");
headers.emplace(Aws::Http::ACCEPT_HEADER, Aws::CBOR_CONTENT_TYPE);
return headers;
}
Loading
Loading