diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs
index 3d08dd2a201e..f72b176bc398 100644
--- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs
+++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs
@@ -567,16 +567,9 @@ public override string TransformText()
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new Amazon");
+");
#line 235 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
- this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
-
- #line default
- #line hidden
- this.Write("AuthSchemeHandler());\r\n");
-
- #line 236 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride;
if (pipelineOverrides != null)
@@ -591,14 +584,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" if(");
- #line 245 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 244 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.Condition));
#line default
#line hidden
this.Write(")\r\n {\r\n");
- #line 247 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 246 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
if(o.OverrideMethod == "remove")
{
@@ -608,14 +601,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 251 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 250 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("();\r\n");
- #line 252 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 251 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
}
else
@@ -626,28 +619,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("(new ");
- #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType));
#line default
#line hidden
this.Write("(");
- #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput));
#line default
#line hidden
this.Write("));\r\n");
- #line 258 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
}
@@ -656,7 +649,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" }\r\n");
- #line 262 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
}
else if(o.OverrideMethod == "remove")
@@ -667,14 +660,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 267 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 266 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("();\r\n");
- #line 268 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 267 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
}
else
@@ -685,28 +678,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("(new ");
- #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType));
#line default
#line hidden
this.Write("(");
- #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput));
#line default
#line hidden
this.Write("));\r\n");
- #line 274 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
}
}
@@ -716,7 +709,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line default
#line hidden
- #line 279 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 278 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
if (this.Config.EndpointsRuleSet != null) {
#line default
@@ -725,19 +718,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
" pipeline.AddHandlerAfter(new Ama" +
"zon");
- #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 280 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EndpointResolver());\r\n");
- #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
}
#line default
#line hidden
- this.Write(@" }
+ this.Write(" pipeline.AddHandlerAfter(new Amaz" +
+ "on");
+
+ #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt"
+ this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
+
+ #line default
+ #line hidden
+ this.Write(@"AuthSchemeHandler());
+ }
///
/// Capture metadata for the service.
diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt
index cabc1f31d266..13f06d814429 100644
--- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt
+++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt
@@ -232,7 +232,6 @@ namespace <#=this.Config.Namespace#>
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new Amazon<#=this.Config.ClassName#>AuthSchemeHandler());
<#
var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride;
if (pipelineOverrides != null)
@@ -280,6 +279,7 @@ namespace <#=this.Config.Namespace#>
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new Amazon<#=this.Config.ClassName#>EndpointResolver());
<# } #>
+ pipeline.AddHandlerAfter(new Amazon<#=this.Config.ClassName#>AuthSchemeHandler());
}
///
diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs
index dcab501c285e..9099d6768671 100644
--- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs
+++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs
@@ -567,16 +567,9 @@ public override string TransformText()
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new Amazon");
+");
#line 239 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
- this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
-
- #line default
- #line hidden
- this.Write("AuthSchemeHandler());\r\n");
-
- #line 240 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride;
if (pipelineOverrides != null)
@@ -591,14 +584,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" if(");
- #line 249 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 248 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.Condition));
#line default
#line hidden
this.Write(")\r\n {\r\n");
- #line 251 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 250 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
if(o.OverrideMethod == "remove")
{
@@ -608,14 +601,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 255 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 254 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("();\r\n");
- #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 255 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
}
else
@@ -626,28 +619,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 260 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("(new ");
- #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 260 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType));
#line default
#line hidden
this.Write("(");
- #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 260 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput));
#line default
#line hidden
this.Write("));\r\n");
- #line 262 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
}
@@ -656,7 +649,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" }\r\n");
- #line 266 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 265 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
}
else if(o.OverrideMethod == "remove")
@@ -667,14 +660,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 271 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 270 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("();\r\n");
- #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 271 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
}
else
@@ -685,28 +678,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line hidden
this.Write(" pipeline.");
- #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 276 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod));
#line default
#line hidden
this.Write("(new ");
- #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 276 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType));
#line default
#line hidden
this.Write("(");
- #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 276 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput));
#line default
#line hidden
this.Write("));\r\n");
- #line 278 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
}
}
@@ -716,7 +709,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
#line default
#line hidden
- #line 283 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
if (this.Config.EndpointsRuleSet != null) {
#line default
@@ -725,19 +718,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
" pipeline.AddHandlerAfter(new Ama" +
"zon");
- #line 285 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 284 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EndpointResolver());\r\n");
- #line 286 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ #line 285 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
}
#line default
#line hidden
- this.Write(@" }
+ this.Write(" pipeline.AddHandlerAfter(new Amaz" +
+ "on");
+
+ #line 286 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt"
+ this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
+
+ #line default
+ #line hidden
+ this.Write(@"AuthSchemeHandler());
+ }
///
/// Capture metadata for the service.
diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt
index 35752ab338aa..536a0be4bbd9 100644
--- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt
+++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt
@@ -236,7 +236,6 @@ namespace <#=this.Config.Namespace#>
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new Amazon<#=this.Config.ClassName#>AuthSchemeHandler());
<#
var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride;
if (pipelineOverrides != null)
@@ -284,6 +283,7 @@ namespace <#=this.Config.Namespace#>
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new Amazon<#=this.Config.ClassName#>EndpointResolver());
<# } #>
+ pipeline.AddHandlerAfter(new Amazon<#=this.Config.ClassName#>AuthSchemeHandler());
}
///
diff --git a/sdk/src/Core/Amazon.Runtime/IClientConfig.cs b/sdk/src/Core/Amazon.Runtime/IClientConfig.cs
index c33b114f4d96..ee0e1690ae5f 100644
--- a/sdk/src/Core/Amazon.Runtime/IClientConfig.cs
+++ b/sdk/src/Core/Amazon.Runtime/IClientConfig.cs
@@ -57,14 +57,19 @@ public partial interface IClientConfig
///
Profile Profile { get; }
- ///
- /// Gets the default by the service client.
- ///
- ///
- /// Credentials provided directly to constructor
- /// will take precedence over these default credentials.
- ///
- ///
+ ///
+ ///
+ /// The AWS credentials used for authenticating calls to AWS for services using AWS signature version 4 (SigV4).
+ /// SigV4 is the most common authentication mechanism used for AWS service calls. If AWSCredentials are used as a
+ /// parameter to the service client's constructor the value will be set on this property.
+ ///
+ ///
+ /// Common instances of AWSCredentials are for static credentials and
+ /// for getting credentials by assuming an IAM role.
+ ///
+ ///
+ /// If null, the SDK will determine which credentials to use at request time using information from the source service model.
+ ///
///
AWSCredentials DefaultAWSCredentials { get; }
diff --git a/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs b/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs
index 1cd8f5027728..ac233d29593b 100644
--- a/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs
+++ b/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs
@@ -238,9 +238,9 @@ public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey,
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new AmazonAutoScalingAuthSchemeHandler());
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonAutoScalingEndpointResolver());
+ pipeline.AddHandlerAfter(new AmazonAutoScalingAuthSchemeHandler());
}
///
diff --git a/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs b/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs
index 1cd96cea02b6..bf10fbdab776 100644
--- a/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs
+++ b/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs
@@ -242,9 +242,9 @@ public IAutoScalingPaginatorFactory Paginators
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new AmazonAutoScalingAuthSchemeHandler());
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonAutoScalingEndpointResolver());
+ pipeline.AddHandlerAfter(new AmazonAutoScalingAuthSchemeHandler());
}
///
diff --git a/sdk/src/Services/S3/Generated/_bcl/AmazonS3Client.cs b/sdk/src/Services/S3/Generated/_bcl/AmazonS3Client.cs
index 6f2b3f83468f..eebc48beab85 100644
--- a/sdk/src/Services/S3/Generated/_bcl/AmazonS3Client.cs
+++ b/sdk/src/Services/S3/Generated/_bcl/AmazonS3Client.cs
@@ -228,7 +228,6 @@ public AmazonS3Client(string awsAccessKeyId, string awsSecretAccessKey, string a
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new AmazonS3AuthSchemeHandler());
pipeline.AddHandlerBefore(new Amazon.S3.Internal.AmazonS3PreMarshallHandler());
pipeline.AddHandlerAfter(new Amazon.S3.Internal.AmazonS3KmsHandler());
pipeline.AddHandlerBefore(new Amazon.S3.Internal.AmazonS3ResponseHandler());
@@ -246,6 +245,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
}
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonS3EndpointResolver());
+ pipeline.AddHandlerAfter(new AmazonS3AuthSchemeHandler());
}
///
diff --git a/sdk/src/Services/S3/Generated/_netstandard/AmazonS3Client.cs b/sdk/src/Services/S3/Generated/_netstandard/AmazonS3Client.cs
index 80d7089e3c6e..7e319e439f00 100644
--- a/sdk/src/Services/S3/Generated/_netstandard/AmazonS3Client.cs
+++ b/sdk/src/Services/S3/Generated/_netstandard/AmazonS3Client.cs
@@ -232,7 +232,6 @@ public IS3PaginatorFactory Paginators
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
- pipeline.AddHandlerBefore(new AmazonS3AuthSchemeHandler());
pipeline.AddHandlerBefore(new Amazon.S3.Internal.AmazonS3PreMarshallHandler());
pipeline.AddHandlerAfter(new Amazon.S3.Internal.AmazonS3KmsHandler());
pipeline.AddHandlerBefore(new Amazon.S3.Internal.AmazonS3ResponseHandler());
@@ -250,6 +249,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
}
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonS3EndpointResolver());
+ pipeline.AddHandlerAfter(new AmazonS3AuthSchemeHandler());
}
///
diff --git a/sdk/test/UnitTests/Custom/Runtime/AmazonServiceClientTests.cs b/sdk/test/UnitTests/Custom/Runtime/AmazonServiceClientTests.cs
index a573e04b8867..7956530b47e7 100644
--- a/sdk/test/UnitTests/Custom/Runtime/AmazonServiceClientTests.cs
+++ b/sdk/test/UnitTests/Custom/Runtime/AmazonServiceClientTests.cs
@@ -78,7 +78,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
var httpHandler = new HttpHandler(_requestFactory, this);
pipeline.ReplaceHandler>(httpHandler);
- pipeline.AddHandlerBefore(new AmazonElasticTranscoderAuthSchemeHandler());
+ pipeline.AddHandlerAfter(new AmazonElasticTranscoderAuthSchemeHandler());
}
}
}