diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs index dca9d1f165ca..8fbd42392322 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs @@ -18,7 +18,7 @@ namespace ServiceClientGenerator.Generators.SourceFiles /// Class to produce the template output /// - #line 1 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 1 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] public partial class ServiceClientsNetFramework : BaseGenerator { @@ -29,7 +29,7 @@ public partial class ServiceClientsNetFramework : BaseGenerator public override string TransformText() { - #line 6 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 6 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" AddLicenseHeader(); @@ -40,21 +40,21 @@ public override string TransformText() "g;\r\nusing System.Threading.Tasks;\r\nusing System.Collections.Generic;\r\nusing Syst" + "em.Net;\r\n\r\nusing "); - #line 18 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 18 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write(".Model;\r\nusing "); - #line 19 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 19 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write(".Model.Internal.MarshallTransformations;\r\nusing "); - #line 20 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 20 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default @@ -63,42 +63,42 @@ public override string TransformText() "untime.Internal.Auth;\r\nusing Amazon.Runtime.Internal.Transform;\r\nusing Amazon.Ru" + "ntime.Endpoints;\r\n\r\n#pragma warning disable CS1570\r\nnamespace "); - #line 28 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 28 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write("\r\n{\r\n"); - #line 30 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 30 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatServiceClientDocumentation(this.Config.ServiceModel.Documentation); #line default #line hidden this.Write(" public partial class Amazon"); - #line 31 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 31 "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("Client : AmazonServiceClient, IAmazon"); - #line 31 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 31 "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("\r\n {\r\n\t\tprivate static IServiceMetadata serviceMetadata = new Amazon"); - #line 33 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 33 "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("Metadata();\r\n"); - #line 34 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 34 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" // Creates paginators for service if available if (this.Config.ServiceModel.HasPaginators) @@ -109,7 +109,7 @@ public override string TransformText() #line hidden this.Write(" private I"); - #line 39 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 39 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -117,7 +117,7 @@ public override string TransformText() this.Write("PaginatorFactory _paginators;\r\n\r\n /// \r\n /// Paginators fo" + "r the service\r\n /// \r\n public I"); - #line 44 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 44 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -126,7 +126,7 @@ public override string TransformText() " if (this._paginators == null) \r\n {\r\n " + "this._paginators = new "); - #line 50 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 50 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -134,7 +134,7 @@ public override string TransformText() this.Write("PaginatorFactory(this);\r\n }\r\n return this._paginato" + "rs;\r\n }\r\n }\r\n"); - #line 55 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 55 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -142,7 +142,7 @@ public override string TransformText() #line default #line hidden - #line 58 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 58 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" // Generates basic constructors for the service if enabled in the model if(this.Config.GenerateConstructors) @@ -156,7 +156,7 @@ public override string TransformText() this.Write(" #region Constructors\r\n\r\n /// \r\n /// Constructs Ama" + "zon"); - #line 68 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 68 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -177,28 +177,56 @@ public override string TransformText() /// public Amazon"); - #line 82 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 82 "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("Client()\r\n : base(FallbackCredentialsFactory.GetCredentials("); + this.Write("Client()\r\n"); - #line 83 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 83 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + if (this.Config.ClassName == "AutoScaling") { + + #line default + #line hidden + this.Write(" : base(new Amazon"); + + #line 84 "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("Config()) { }\r\n"); + + #line 85 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" +} else { + + #line default + #line hidden + this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); + + #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); #line default #line hidden this.Write("), new Amazon"); - #line 83 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 86 "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("Config()) { }\r\n\r\n /// \r\n /// Constructs Amazon"); + this.Write("Config()) { }\r\n"); - #line 86 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 87 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" +} + + #line default + #line hidden + this.Write("\r\n /// \r\n /// Constructs Amazon"); + + #line 90 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -220,30 +248,56 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 101 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 105 "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("Client(RegionEndpoint region)\r\n : base(FallbackCredentialsFactory.GetC" + - "redentials("); + this.Write("Client(RegionEndpoint region)\r\n"); + + #line 106 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + if (this.Config.ClassName == "AutoScaling") { + + #line default + #line hidden + this.Write(" : base(new Amazon"); - #line 102 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 107 "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("Config{RegionEndpoint = region}) { }\r\n"); + + #line 108 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" +} else { + + #line default + #line hidden + this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); + + #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); #line default #line hidden this.Write("), new Amazon"); - #line 102 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 109 "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("Config{RegionEndpoint = region}) { }\r\n\r\n /// \r\n /// Constr" + - "ucts Amazon"); + this.Write("Config{RegionEndpoint = region}) { }\r\n"); - #line 105 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 110 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" +} + + #line default + #line hidden + this.Write("\r\n /// \r\n /// Constructs Amazon"); + + #line 113 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -264,36 +318,56 @@ public override string TransformText() /// /// The Amazon"); - #line 119 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 127 "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("Client Configuration Object\r\n public Amazon"); - #line 120 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 128 "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("Client(Amazon"); - #line 120 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 128 "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("Config config)\r\n : base(FallbackCredentialsFactory.GetCredentials(conf" + - "ig"); + this.Write("Config config)\r\n"); + + #line 129 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + if (this.Config.ClassName == "AutoScaling") { + + #line default + #line hidden + this.Write(" : base(config) { }\r\n"); + + #line 131 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" +} else { + + #line default + #line hidden + this.Write(" : base(FallbackCredentialsFactory.GetCredentials(config"); - #line 121 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 132 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : "")); #line default #line hidden - this.Write("), config){}\r\n\r\n /// \r\n /// Constructs Amazon"); + this.Write("), config){}\r\n"); + + #line 133 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" +} + + #line default + #line hidden + this.Write("\r\n /// \r\n /// Constructs Amazon"); - #line 124 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 136 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -301,14 +375,14 @@ public override string TransformText() this.Write("Client with AWS Credentials\r\n /// \r\n /// AWS Credentials\r\n public Amazon"); - #line 127 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 139 "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("Client(AWSCredentials credentials)\r\n : this(credentials, new Amazon"); - #line 128 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 140 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -316,7 +390,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 133 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 145 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -325,7 +399,7 @@ public override string TransformText() "dentials\">AWS Credentials\r\n /// The region t" + "o connect.\r\n public Amazon"); - #line 137 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 149 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -333,7 +407,7 @@ public override string TransformText() this.Write("Client(AWSCredentials credentials, RegionEndpoint region)\r\n : this(cre" + "dentials, new Amazon"); - #line 138 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 150 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -341,14 +415,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 143 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 155 "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("Client with AWS Credentials and an\r\n /// Amazon"); - #line 144 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 156 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -357,21 +431,21 @@ public override string TransformText() "edentials\">AWS Credentials\r\n /// The A" + "mazon"); - #line 147 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 159 "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("Client Configuration Object\r\n public Amazon"); - #line 148 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 160 "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("Client(AWSCredentials credentials, Amazon"); - #line 148 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 160 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -379,7 +453,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(credentials, clientConfig)\r\n {\r\n " + " }\r\n\r\n /// \r\n /// Constructs Amazon"); - #line 154 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 166 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -388,7 +462,7 @@ public override string TransformText() " /// AWS Access Key ID\r\n /// AWS Secret Access Key\r\n public Amazon"); - #line 158 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 170 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -396,7 +470,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey)\r\n : this(awsA" + "ccessKeyId, awsSecretAccessKey, new Amazon"); - #line 159 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 171 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -404,7 +478,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 164 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 176 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -416,7 +490,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 169 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 181 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -424,7 +498,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)\r\n" + " : this(awsAccessKeyId, awsSecretAccessKey, new Amazon"); - #line 170 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 182 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -432,14 +506,14 @@ public override string TransformText() this.Write("Config() {RegionEndpoint=region})\r\n {\r\n }\r\n\r\n /// \r" + "\n /// Constructs Amazon"); - #line 175 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 187 "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("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 176 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 188 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -449,21 +523,21 @@ public override string TransformText() "ssKey\">AWS Secret Access Key\r\n /// The" + " Amazon"); - #line 180 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 192 "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("Client Configuration Object\r\n public Amazon"); - #line 181 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 193 "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("Client(string awsAccessKeyId, string awsSecretAccessKey, Amazon"); - #line 181 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 193 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -472,7 +546,7 @@ public override string TransformText() "ntConfig)\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs" + " Amazon"); - #line 187 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 199 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -484,7 +558,7 @@ public override string TransformText() /// AWS Session Token public Amazon"); - #line 192 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 204 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -493,7 +567,7 @@ public override string TransformText() "\n : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new Ama" + "zon"); - #line 193 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 205 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -501,7 +575,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 198 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 210 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -514,7 +588,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 204 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 216 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -523,7 +597,7 @@ public override string TransformText() "RegionEndpoint region)\r\n : this(awsAccessKeyId, awsSecretAccessKey, a" + "wsSessionToken, new Amazon"); - #line 205 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 217 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -531,14 +605,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 210 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 222 "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("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 211 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 223 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -550,14 +624,14 @@ public override string TransformText() /// AWS Session Token /// The Amazon"); - #line 216 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 228 "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("Client Configuration Object\r\n public Amazon"); - #line 217 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 229 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -565,7 +639,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, " + "Amazon"); - #line 217 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 229 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -573,7 +647,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(awsAccessKeyId, awsSecretAccessKey, awsS" + "essionToken, clientConfig)\r\n {\r\n }\r\n\r\n #endregion\r\n"); - #line 223 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 235 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -584,14 +658,14 @@ public override string TransformText() "ner for the service.\r\n /// \r\n protected override Abstrac" + "tAWSSigner CreateSigner()\r\n {\r\n return new "); - #line 234 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 246 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName))); #line default #line hidden this.Write("();\r\n } \r\n\r\n"); - #line 237 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 249 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(this.Config.ServiceModel.Customizations.PipelineOverride != null || this.Config.EndpointsRuleSet != null) { #line default @@ -600,7 +674,7 @@ public override string TransformText() "\r\n /// \r\n protected override void C" + "ustomizeRuntimePipeline(RuntimePipeline pipeline)\r\n {\r\n"); - #line 244 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride; if (pipelineOverrides != null) @@ -615,14 +689,14 @@ public override string TransformText() #line hidden this.Write(" if("); - #line 253 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 265 "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 255 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 267 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(o.OverrideMethod == "remove") { @@ -632,14 +706,14 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 259 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 271 "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 260 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } else @@ -650,28 +724,28 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 265 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 277 "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 265 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 277 "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 265 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 277 "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 266 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 278 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -680,7 +754,7 @@ public override string TransformText() #line hidden this.Write(" }\r\n"); - #line 270 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } else if(o.OverrideMethod == "remove") @@ -691,14 +765,14 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 275 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 287 "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 276 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 288 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } else @@ -709,28 +783,28 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 281 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 293 "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 281 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 293 "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 281 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 293 "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 282 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 294 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } } @@ -740,7 +814,7 @@ public override string TransformText() #line default #line hidden - #line 287 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 299 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -749,21 +823,21 @@ public override string TransformText() " pipeline.AddHandlerAfter(new Ama" + "zon"); - #line 289 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 301 "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 290 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 302 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } #line default #line hidden this.Write(" }\t\r\n"); - #line 292 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 304 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -792,7 +866,7 @@ protected override void Dispose(bool disposing) { "); - #line 315 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 327 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(this.Config.ServiceId == "S3") { @@ -805,7 +879,7 @@ protected override void Dispose(bool disposing) " {\r\n clientConfig.S3ExpressCredentialProvider.Dispose();\r\n " + " }\r\n"); - #line 324 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 336 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -814,7 +888,7 @@ protected override void Dispose(bool disposing) #line hidden this.Write(" base.Dispose(disposing);\r\n }\r\n\r\n #endregion\r\n\r\n"); - #line 332 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 344 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" var endpointOperation = this.Config.ServiceModel.FindEndpointOperation(); if(endpointOperation != null) @@ -836,14 +910,14 @@ protected override IEnumerable EndpointOperation(Endpoint { var request = new "); - #line 348 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 360 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default #line hidden this.Write("Request\r\n\t\t\t\t{\r\n"); - #line 350 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 362 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(endpointOperation.RequestHasOperationEndpointOperationMember) { @@ -853,7 +927,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t\tOperation = context.OperationName,\r\n"); - #line 355 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 367 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } if(endpointOperation.RequestHasIdentifiersEndpointOperationMember) @@ -865,7 +939,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("\t\t\t\t\tIdentifiers = new Dictionary(context.EndpointDiscoveryData.I" + "dentifiers),\r\n"); - #line 361 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 373 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -874,7 +948,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tvar response = "); - #line 366 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 378 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default @@ -898,7 +972,7 @@ protected override IEnumerable EndpointOperation(Endpoint #endregion "); - #line 383 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 395 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -910,14 +984,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n #region "); - #line 390 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 402 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("\r\n\r\n"); - #line 392 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 404 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" // Creates a version of the operation that takes no arguments and passes a request with no set members if specified in the customizations if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) @@ -927,7 +1001,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 397 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 409 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatOperationDocumentationSync(operation, false); if(operation.IsDeprecated) @@ -938,14 +1012,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 402 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 414 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 403 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 415 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -954,35 +1028,35 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" public virtual "); - #line 406 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 418 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 406 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 418 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("()\r\n {\r\n return "); - #line 408 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 420 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("(new "); - #line 408 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 420 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request());\r\n }\r\n\r\n"); - #line 411 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 423 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } // Adds any simple method forms specified in the customizations file @@ -992,7 +1066,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 416 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 428 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatOperationDocumentationSync(operation, true); if(operation.IsDeprecated) @@ -1003,14 +1077,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 421 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 433 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 422 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 434 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1019,28 +1093,28 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" "); - #line 425 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.IsInternal ? "internal" : "public")); #line default #line hidden this.Write(" virtual "); - #line 425 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 425 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("("); - #line 425 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1048,21 +1122,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Request request)\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 428 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 440 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 429 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 441 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 430 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 442 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1072,7 +1146,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 434 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 446 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1080,7 +1154,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 436 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 448 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1089,14 +1163,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n return Invoke<"); - #line 440 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 452 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response>(request, options);\r\n }\r\n\r\n"); - #line 443 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 455 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" // Creates a version of the operation that takes no arguments and passes a request with no set members if specified in the customizations if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) @@ -1106,7 +1180,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 448 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 460 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatOperationDocumentationAsync(operation, false); if(operation.IsDeprecated) @@ -1117,14 +1191,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 453 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 465 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 454 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 466 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1133,14 +1207,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" public virtual Task<"); - #line 457 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 457 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1148,21 +1222,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Async(System.Threading.CancellationToken cancellationToken = default(Cancellation" + "Token))\r\n {\r\n return "); - #line 459 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 471 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async(new "); - #line 459 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 471 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request(), cancellationToken);\r\n }\r\n"); - #line 461 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 473 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1178,14 +1252,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 471 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 483 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 472 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1194,28 +1268,28 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" "); - #line 475 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.IsInternal ? "internal" : "public")); #line default #line hidden this.Write(" virtual Task<"); - #line 475 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 475 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async("); - #line 475 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1224,21 +1298,21 @@ protected override IEnumerable EndpointOperation(Endpoint "ancellationToken))\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 478 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 490 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 479 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 491 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 480 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 492 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1248,7 +1322,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 484 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 496 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1256,7 +1330,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 486 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 498 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1265,7 +1339,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" \r\n return InvokeAsync<"); - #line 490 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 502 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1273,7 +1347,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Response>(request, options, cancellationToken);\r\n }\r\n\r\n #endregion\r" + "\n "); - #line 494 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 506 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1282,7 +1356,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n"); - #line 498 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 510 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -1304,7 +1378,7 @@ public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(Amazo "); - #line 514 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 526 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } #line default diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt index f5ce9216eec2..640a17a5b27b 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt @@ -80,7 +80,11 @@ namespace <#=this.Config.Namespace#> /// /// public Amazon<#=this.Config.ClassName#>Client() +<# if (this.Config.ClassName == "AutoScaling") { #> + : base(new Amazon<#=this.Config.ClassName#>Config()) { } +<#} else {#> : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config()) { } +<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -99,7 +103,11 @@ namespace <#=this.Config.Namespace#> /// /// The region to connect. public Amazon<#=this.Config.ClassName#>Client(RegionEndpoint region) +<# if (this.Config.ClassName == "AutoScaling") { #> + : base(new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } +<#} else {#> : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } +<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -118,7 +126,11 @@ namespace <#=this.Config.Namespace#> /// /// The Amazon<#=this.Config.ClassName#>Client Configuration Object public Amazon<#=this.Config.ClassName#>Client(Amazon<#=this.Config.ClassName#>Config config) +<# if (this.Config.ClassName == "AutoScaling") { #> + : base(config) { } +<#} else {#> : base(FallbackCredentialsFactory.GetCredentials(config<#= fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : ""#>), config){} +<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with AWS Credentials diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs index 8c462dae27be..ea8821de77b3 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs @@ -18,7 +18,7 @@ namespace ServiceClientGenerator.Generators.SourceFiles /// Class to produce the template output /// - #line 1 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 1 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] public partial class ServiceClientsNetStandard : BaseGenerator { @@ -29,7 +29,7 @@ public partial class ServiceClientsNetStandard : BaseGenerator public override string TransformText() { - #line 6 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 6 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" AddLicenseHeader(); @@ -40,21 +40,21 @@ public override string TransformText() "g;\r\nusing System.Threading.Tasks;\r\nusing System.Collections.Generic;\r\nusing Syst" + "em.Net;\r\n\r\nusing "); - #line 18 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 18 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write(".Model;\r\nusing "); - #line 19 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 19 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write(".Model.Internal.MarshallTransformations;\r\nusing "); - #line 20 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 20 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default @@ -63,42 +63,42 @@ public override string TransformText() "untime.Internal.Auth;\r\nusing Amazon.Runtime.Internal.Transform;\r\nusing Amazon.Ru" + "ntime.Endpoints;\r\n\r\n#pragma warning disable CS1570\r\nnamespace "); - #line 28 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 28 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write("\r\n{\r\n"); - #line 30 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 30 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.FormatServiceClientDocumentation(this.Config.ServiceModel.Documentation); #line default #line hidden this.Write(" public partial class Amazon"); - #line 31 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 31 "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("Client : AmazonServiceClient, IAmazon"); - #line 31 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 31 "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("\r\n {\r\n\t\tprivate static IServiceMetadata serviceMetadata = new Amazon"); - #line 33 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 33 "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("Metadata();\r\n \r\n"); - #line 35 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 35 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" // Generates generic constructors for the service if enabled in the model if(this.Config.GenerateConstructors) @@ -112,7 +112,7 @@ public override string TransformText() this.Write(" #region Constructors\r\n\r\n /// \r\n /// Constructs Ama" + "zon"); - #line 45 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 45 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -133,28 +133,56 @@ public override string TransformText() /// public Amazon"); - #line 59 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 59 "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("Client()\r\n : base(FallbackCredentialsFactory.GetCredentials("); + this.Write("Client()\r\n"); - #line 60 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 60 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + if (this.Config.ClassName == "AutoScaling") { + + #line default + #line hidden + this.Write(" : base(new Amazon"); + + #line 61 "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("Config()) { }\r\n"); + + #line 62 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" +} else { + + #line default + #line hidden + this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); + + #line 63 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); #line default #line hidden this.Write("), new Amazon"); - #line 60 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 63 "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("Config()) { }\r\n\r\n /// \r\n /// Constructs Amazon"); + this.Write("Config()) { }\r\n"); - #line 63 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 64 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" +} + + #line default + #line hidden + this.Write("\r\n /// \r\n /// Constructs Amazon"); + + #line 67 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -176,30 +204,56 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 78 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 82 "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("Client(RegionEndpoint region)\r\n : base(FallbackCredentialsFactory.GetC" + - "redentials("); + this.Write("Client(RegionEndpoint region)\r\n"); + + #line 83 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + if (this.Config.ClassName == "AutoScaling") { + + #line default + #line hidden + this.Write(" : base(new Amazon"); - #line 79 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 84 "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("Config{RegionEndpoint = region}) { }\r\n"); + + #line 85 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" +} else { + + #line default + #line hidden + this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); + + #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); #line default #line hidden this.Write("), new Amazon"); - #line 79 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 86 "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("Config{RegionEndpoint = region}) { }\r\n\r\n /// \r\n /// Constr" + - "ucts Amazon"); + this.Write("Config{RegionEndpoint = region}) { }\r\n"); - #line 82 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 87 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" +} + + #line default + #line hidden + this.Write("\r\n /// \r\n /// Constructs Amazon"); + + #line 90 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -220,36 +274,56 @@ public override string TransformText() /// /// The Amazon"); - #line 96 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 104 "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("Client Configuration Object\r\n public Amazon"); - #line 97 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 105 "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("Client(Amazon"); - #line 97 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 105 "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("Config config)\r\n : base(FallbackCredentialsFactory.GetCredentials(conf" + - "ig"); + this.Write("Config config)\r\n"); + + #line 106 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + if (this.Config.ClassName == "AutoScaling") { + + #line default + #line hidden + this.Write(" : base(config) { }\r\n"); + + #line 108 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" +} else { + + #line default + #line hidden + this.Write(" : base(FallbackCredentialsFactory.GetCredentials(config"); - #line 98 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : "")); #line default #line hidden - this.Write("), config){}\r\n\r\n\r\n /// \r\n /// Constructs Amazon"); + this.Write("), config){}\r\n"); + + #line 110 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" +} + + #line default + #line hidden + this.Write("\r\n\r\n /// \r\n /// Constructs Amazon"); - #line 102 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 114 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -257,14 +331,14 @@ public override string TransformText() this.Write("Client with AWS Credentials\r\n /// \r\n /// AWS Credentials\r\n public Amazon"); - #line 105 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 117 "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("Client(AWSCredentials credentials)\r\n : this(credentials, new Amazon"); - #line 106 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 118 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -272,7 +346,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 111 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 123 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -281,7 +355,7 @@ public override string TransformText() "dentials\">AWS Credentials\r\n /// The region t" + "o connect.\r\n public Amazon"); - #line 115 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 127 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -289,7 +363,7 @@ public override string TransformText() this.Write("Client(AWSCredentials credentials, RegionEndpoint region)\r\n : this(cre" + "dentials, new Amazon"); - #line 116 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 128 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -297,14 +371,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 121 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 133 "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("Client with AWS Credentials and an\r\n /// Amazon"); - #line 122 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 134 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -313,21 +387,21 @@ public override string TransformText() "edentials\">AWS Credentials\r\n /// The A" + "mazon"); - #line 125 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 137 "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("Client Configuration Object\r\n public Amazon"); - #line 126 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 138 "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("Client(AWSCredentials credentials, Amazon"); - #line 126 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 138 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -335,7 +409,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(credentials, clientConfig)\r\n {\r\n " + " }\r\n\r\n /// \r\n /// Constructs Amazon"); - #line 132 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 144 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -344,7 +418,7 @@ public override string TransformText() " /// AWS Access Key ID\r\n /// AWS Secret Access Key\r\n public Amazon"); - #line 136 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 148 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -352,7 +426,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey)\r\n : this(awsA" + "ccessKeyId, awsSecretAccessKey, new Amazon"); - #line 137 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 149 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -360,7 +434,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 142 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 154 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -372,7 +446,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 147 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -380,7 +454,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)\r\n" + " : this(awsAccessKeyId, awsSecretAccessKey, new Amazon"); - #line 148 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 160 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -388,14 +462,14 @@ public override string TransformText() this.Write("Config() {RegionEndpoint=region})\r\n {\r\n }\r\n\r\n /// \r" + "\n /// Constructs Amazon"); - #line 153 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 165 "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("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 154 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 166 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -405,21 +479,21 @@ public override string TransformText() "ssKey\">AWS Secret Access Key\r\n /// The" + " Amazon"); - #line 158 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 170 "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("Client Configuration Object\r\n public Amazon"); - #line 159 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 171 "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("Client(string awsAccessKeyId, string awsSecretAccessKey, Amazon"); - #line 159 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 171 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -428,7 +502,7 @@ public override string TransformText() "ntConfig)\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs" + " Amazon"); - #line 165 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 177 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -440,7 +514,7 @@ public override string TransformText() /// AWS Session Token public Amazon"); - #line 170 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 182 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -449,7 +523,7 @@ public override string TransformText() "\n : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new Ama" + "zon"); - #line 171 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 183 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -457,7 +531,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 176 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 188 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -470,7 +544,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 182 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 194 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -479,7 +553,7 @@ public override string TransformText() "RegionEndpoint region)\r\n : this(awsAccessKeyId, awsSecretAccessKey, a" + "wsSessionToken, new Amazon"); - #line 183 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 195 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -487,14 +561,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 188 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 200 "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("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 189 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 201 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -506,14 +580,14 @@ public override string TransformText() /// AWS Session Token /// The Amazon"); - #line 194 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 206 "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("Client Configuration Object\r\n public Amazon"); - #line 195 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 207 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -521,7 +595,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, " + "Amazon"); - #line 195 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 207 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -529,7 +603,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(awsAccessKeyId, awsSecretAccessKey, awsS" + "essionToken, clientConfig)\r\n {\r\n }\r\n\r\n #endregion\r\n"); - #line 201 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 213 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -537,7 +611,7 @@ public override string TransformText() #line default #line hidden - #line 204 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 216 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" // Creates paginators for service if available if (this.Config.ServiceModel.HasPaginators) @@ -548,7 +622,7 @@ public override string TransformText() #line hidden this.Write("#if AWS_ASYNC_ENUMERABLES_API\r\n private I"); - #line 210 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 222 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -556,7 +630,7 @@ public override string TransformText() this.Write("PaginatorFactory _paginators;\r\n\r\n /// \r\n /// Paginators fo" + "r the service\r\n /// \r\n public I"); - #line 215 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 227 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -565,7 +639,7 @@ public override string TransformText() " if (this._paginators == null) \r\n {\r\n " + "this._paginators = new "); - #line 221 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 233 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -573,7 +647,7 @@ public override string TransformText() this.Write("PaginatorFactory(this);\r\n }\r\n return this._paginato" + "rs;\r\n }\r\n }\r\n#endif\r\n"); - #line 227 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 239 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -584,14 +658,14 @@ public override string TransformText() "r the service.\r\n /// \r\n protected override AbstractAWSSi" + "gner CreateSigner()\r\n {\r\n return new "); - #line 238 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 250 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName))); #line default #line hidden this.Write("();\r\n } \r\n\r\n"); - #line 241 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 253 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(this.Config.ServiceModel.Customizations.PipelineOverride != null || this.Config.EndpointsRuleSet != null) { #line default @@ -604,7 +678,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { "); - #line 248 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 260 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride; if (pipelineOverrides != null) @@ -619,14 +693,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" if("); - #line 257 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 269 "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 259 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 271 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(o.OverrideMethod == "remove") { @@ -636,14 +710,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 263 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 275 "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 264 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 276 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } else @@ -654,28 +728,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 269 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 281 "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 269 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 281 "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 269 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 281 "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 270 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -684,7 +758,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" }\r\n"); - #line 274 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 286 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } else if(o.OverrideMethod == "remove") @@ -695,14 +769,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 279 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 291 "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 280 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 292 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } else @@ -713,28 +787,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 285 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 297 "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 285 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 297 "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 285 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 297 "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 286 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 298 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } } @@ -744,7 +818,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line default #line hidden - #line 291 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 303 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -753,21 +827,21 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) " pipeline.AddHandlerAfter(new Ama" + "zon"); - #line 293 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 305 "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 294 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 306 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } #line default #line hidden this.Write(" }\r\n"); - #line 296 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 308 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -796,7 +870,7 @@ protected override void Dispose(bool disposing) { "); - #line 319 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 331 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(this.Config.ServiceId == "S3") { @@ -809,7 +883,7 @@ protected override void Dispose(bool disposing) " {\r\n clientConfig.S3ExpressCredentialProvider.Dispose();\r\n " + " }\r\n"); - #line 328 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 340 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -818,7 +892,7 @@ protected override void Dispose(bool disposing) #line hidden this.Write(" base.Dispose(disposing);\r\n }\r\n\r\n #endregion\r\n\r\n"); - #line 336 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 348 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" var endpointOperation = this.Config.ServiceModel.FindEndpointOperation(); if(endpointOperation != null) @@ -840,14 +914,14 @@ protected override IEnumerable EndpointOperation(Endpoint { var request = new "); - #line 352 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 364 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default #line hidden this.Write("Request\r\n\t\t\t\t{\r\n"); - #line 354 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 366 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(endpointOperation.RequestHasOperationEndpointOperationMember) { @@ -857,7 +931,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t\tOperation = context.OperationName,\r\n"); - #line 359 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 371 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } if(endpointOperation.RequestHasIdentifiersEndpointOperationMember) @@ -869,7 +943,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("\t\t\t\t\tIdentifiers = new Dictionary(context.EndpointDiscoveryData.I" + "dentifiers),\r\n"); - #line 365 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 377 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -878,7 +952,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t};\r\n\t\t\t\t \r\n\t\t\t\tvar response = "); - #line 370 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 382 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default @@ -902,7 +976,7 @@ protected override IEnumerable EndpointOperation(Endpoint #endregion "); - #line 387 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -915,14 +989,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n #region "); - #line 395 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 407 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("\r\n\r\n"); - #line 397 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 409 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) { @@ -934,14 +1008,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 403 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 415 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 404 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 416 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -950,35 +1024,35 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" internal virtual "); - #line 407 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 419 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 407 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 419 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("()\r\n {\r\n return "); - #line 409 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("(new "); - #line 409 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request());\r\n }\r\n"); - #line 411 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 423 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } if(operation.IsDeprecated) @@ -989,14 +1063,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 416 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 428 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 417 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 429 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1005,21 +1079,21 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" internal virtual "); - #line 420 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 420 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("("); - #line 420 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1027,21 +1101,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Request request)\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 423 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 435 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 424 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 436 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 425 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1051,7 +1125,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 429 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 441 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1059,7 +1133,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 431 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 443 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1068,14 +1142,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n return Invoke<"); - #line 435 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 447 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response>(request, options);\r\n }\r\n\r\n"); - #line 438 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 450 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" // Creates a version of the operation that takes no arguments and passes a request with no set members if specified in the customizations if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) @@ -1085,7 +1159,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 443 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 455 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.FormatOperationDocumentationAsync(operation, false); if(operation.IsDeprecated) @@ -1096,14 +1170,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 448 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 460 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 449 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 461 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1112,14 +1186,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" public virtual Task<"); - #line 452 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 452 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1127,21 +1201,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Async(System.Threading.CancellationToken cancellationToken = default(Cancellation" + "Token))\r\n {\r\n return "); - #line 454 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 466 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async(new "); - #line 454 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 466 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request(), cancellationToken);\r\n }\r\n\r\n"); - #line 457 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } // Add async simple methods @@ -1152,7 +1226,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n"); - #line 463 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 475 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.FormatOperationDocumentationAsync(operation, true); if(operation.IsDeprecated) @@ -1163,14 +1237,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 468 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 480 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 469 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 481 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1179,28 +1253,28 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" "); - #line 472 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.IsInternal ? "internal" : "public")); #line default #line hidden this.Write(" virtual Task<"); - #line 472 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 472 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async("); - #line 472 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1209,21 +1283,21 @@ protected override IEnumerable EndpointOperation(Endpoint "ancellationToken))\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 475 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 476 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 488 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 477 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 489 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1233,7 +1307,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 481 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 493 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1241,7 +1315,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 483 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 495 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1250,7 +1324,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n return InvokeAsync<"); - #line 487 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 499 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1258,7 +1332,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Response>(request, options, cancellationToken);\r\n }\r\n\r\n #endregion\r" + "\n "); - #line 491 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 503 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1267,7 +1341,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n"); - #line 495 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 507 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -1289,7 +1363,7 @@ public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(Amazo "); - #line 511 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 523 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } #line default diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt index 040db34815aa..251012a0f9d6 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt @@ -57,7 +57,11 @@ namespace <#=this.Config.Namespace#> /// /// public Amazon<#=this.Config.ClassName#>Client() +<# if (this.Config.ClassName == "AutoScaling") { #> + : base(new Amazon<#=this.Config.ClassName#>Config()) { } +<#} else {#> : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config()) { } +<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -76,7 +80,11 @@ namespace <#=this.Config.Namespace#> /// /// The region to connect. public Amazon<#=this.Config.ClassName#>Client(RegionEndpoint region) +<# if (this.Config.ClassName == "AutoScaling") { #> + : base(new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } +<#} else {#> : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } +<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -95,7 +103,11 @@ namespace <#=this.Config.Namespace#> /// /// The Amazon<#=this.Config.ClassName#>Client Configuration Object public Amazon<#=this.Config.ClassName#>Client(Amazon<#=this.Config.ClassName#>Config config) +<# if (this.Config.ClassName == "AutoScaling") { #> + : base(config) { } +<#} else {#> : base(FallbackCredentialsFactory.GetCredentials(config<#= fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : ""#>), config){} +<#}#> /// diff --git a/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs b/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs index 07d69da85bf2..af4c29dd347c 100644 --- a/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs +++ b/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs @@ -43,7 +43,7 @@ public abstract class AmazonServiceClient : IDisposable private Logger _logger; protected EndpointDiscoveryResolverBase EndpointDiscoveryResolver { get; private set; } protected RuntimePipeline RuntimePipeline { get; set; } - protected internal AWSCredentials Credentials { get; private set; } + protected internal AWSCredentials DefaultAWSCredentials { get; private set; } public IClientConfig Config => _config; private readonly ClientConfig _config; protected virtual IServiceMetadata ServiceMetadata { get; } = new ServiceMetadata(); @@ -160,7 +160,7 @@ protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config) _logger = Logger.GetLogger(this.GetType()); config.Validate(); - this.Credentials = credentials; + this.DefaultAWSCredentials = credentials; _config = config; Signer = CreateSigner(); EndpointDiscoveryResolver = new EndpointDiscoveryResolver(config, _logger); @@ -390,7 +390,7 @@ private void BuildRuntimePipeline() // ChecksumHandler must come after EndpointsResolver because of an upcoming project. new ChecksumHandler(), // CredentialsRetriever must come after RetryHandler because of any credential related changes. - new CredentialsRetriever(this.Credentials), + new CredentialsRetriever(this.DefaultAWSCredentials), new RetryHandler(retryPolicy), new CompressionHandler(), postMarshallHandler, diff --git a/sdk/src/Core/Amazon.Runtime/ClientConfig.cs b/sdk/src/Core/Amazon.Runtime/ClientConfig.cs index a07bb0555c09..2e64b8745ecd 100644 --- a/sdk/src/Core/Amazon.Runtime/ClientConfig.cs +++ b/sdk/src/Core/Amazon.Runtime/ClientConfig.cs @@ -16,10 +16,11 @@ using System.Collections.Generic; using System.Net; using System.Threading; +using System.Globalization; +using Smithy.Identity.Abstractions; using Amazon.Util; -using System.Globalization; using Amazon.Internal; using Amazon.Runtime.Endpoints; using Amazon.Runtime.Internal; @@ -27,6 +28,7 @@ using Amazon.Runtime.CredentialManagement; using Amazon.Runtime.Internal.Settings; using Amazon.Runtime.Telemetry; +using Amazon.Runtime.Credentials.Internal.IdentityResolvers; #if NETSTANDARD using System.Runtime.InteropServices; @@ -88,6 +90,7 @@ public abstract partial class ClientConfig : IClientConfig private const int MaxRetriesDefault = 2; private const long DefaultMinCompressionSizeBytes = 10240; private bool didProcessServiceURL = false; + private IIdentityResolverConfiguration _identityResolverConfiguration = DefaultIdentityResolverConfiguration.Instance; private IAWSTokenProvider _awsTokenProvider = new DefaultAWSTokenProviderChain(); private TelemetryProvider telemetryProvider = AWSConfigs.TelemetryProvider; private AccountIdEndpointMode? accountIdEndpointMode = null; @@ -179,8 +182,15 @@ private static Amazon.Runtime.Internal.Util.WebProxy GetWebProxyWithCredentials( return null; } + /// + public IIdentityResolverConfiguration IdentityResolverConfiguration + { + get { return this._identityResolverConfiguration; } + set { this._identityResolverConfiguration = value; } + } /// + [Obsolete("This property is deprecated in favor of the new Identity resolvers configured through IdentityResolverConfiguration.")] public IAWSTokenProvider AWSTokenProvider { get { return this._awsTokenProvider; } @@ -335,7 +345,7 @@ public string ServiceURL } else { - CredentialProfileStoreChain.TryGetProfile(FallbackCredentialsFactory.GetProfileName(), out profile); + CredentialProfileStoreChain.TryGetProfile(DefaultAWSCredentialsIdentityResolver.GetProfileName(), out profile); } if(profile != null) { diff --git a/sdk/src/Core/Amazon.Runtime/Credentials/Internal/IdentityResolvers/DefaultAWSCredentialsIdentityResolver.cs b/sdk/src/Core/Amazon.Runtime/Credentials/Internal/IdentityResolvers/DefaultAWSCredentialsIdentityResolver.cs index 82c86b58d110..8c50ab30f2ed 100644 --- a/sdk/src/Core/Amazon.Runtime/Credentials/Internal/IdentityResolvers/DefaultAWSCredentialsIdentityResolver.cs +++ b/sdk/src/Core/Amazon.Runtime/Credentials/Internal/IdentityResolvers/DefaultAWSCredentialsIdentityResolver.cs @@ -150,7 +150,7 @@ private static AWSCredentials GetAWSCredentials(ICredentialProfileSource source) throw new AmazonClientException($"Unable to find the \"{profileName}\" profile in CredentialProfileStoreChain."); } - private static string GetProfileName() + internal static string GetProfileName() { var profileName = AWSConfigs.AWSProfileName; diff --git a/sdk/src/Core/Amazon.Runtime/IClientConfig.cs b/sdk/src/Core/Amazon.Runtime/IClientConfig.cs index c120e558a59f..170ea881faf7 100644 --- a/sdk/src/Core/Amazon.Runtime/IClientConfig.cs +++ b/sdk/src/Core/Amazon.Runtime/IClientConfig.cs @@ -14,11 +14,13 @@ */ using System; using System.Net; +using Smithy.Identity.Abstractions; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Runtime.Internal.Auth; using Amazon.Util; using Amazon.Runtime.Telemetry; +using Amazon.Runtime.Credentials.Internal.IdentityResolvers; #if NETSTANDARD using System.Net.Http; #endif @@ -55,6 +57,15 @@ public partial interface IClientConfig /// Profile Profile { get; } + /// + /// Gets the configuration for identity resolvers used by the service client, which manages + /// the resolvers used to obtain various types of identities. + /// Use this to retrieve and manage specific identity resolvers based on the required identity type. + /// + /// See for additional information. + /// + IIdentityResolverConfiguration IdentityResolverConfiguration { get; } + /// /// For Services using Bearer authentication, this controls how /// resolves a . diff --git a/sdk/src/Core/Amazon.Runtime/Internal/ServiceClientHelpers.cs b/sdk/src/Core/Amazon.Runtime/Internal/ServiceClientHelpers.cs index b6daef4ac7b1..f89b802ab339 100644 --- a/sdk/src/Core/Amazon.Runtime/Internal/ServiceClientHelpers.cs +++ b/sdk/src/Core/Amazon.Runtime/Internal/ServiceClientHelpers.cs @@ -34,7 +34,7 @@ public static TClient CreateServiceFromAnother(AmazonServiceCl where TConfig : ClientConfig, new () where TClient : AmazonServiceClient { - var credentials = originalServiceClient.Credentials; + var credentials = originalServiceClient.DefaultAWSCredentials; var newConfig = originalServiceClient.CloneConfig(); var newServiceClientTypeInfo = typeof(TClient); @@ -126,7 +126,7 @@ public static TClient CreateServiceFromAssembly(string assemblyName, st config.GetType() }); - var newServiceClient = constructor.Invoke(new object[] { originalServiceClient.Credentials, config }) as TClient; + var newServiceClient = constructor.Invoke(new object[] { originalServiceClient.DefaultAWSCredentials, config }) as TClient; return newServiceClient; } diff --git a/sdk/src/Core/Amazon.Runtime/Internal/Util/SdkCache.cs b/sdk/src/Core/Amazon.Runtime/Internal/Util/SdkCache.cs index c87013bca13e..6a3e3a159039 100644 --- a/sdk/src/Core/Amazon.Runtime/Internal/Util/SdkCache.cs +++ b/sdk/src/Core/Amazon.Runtime/Internal/Util/SdkCache.cs @@ -227,7 +227,7 @@ public static CacheKey Create(AmazonServiceClient client, object cacheType) var key = new CacheKey(); - var credentials = client.Credentials; + var credentials = client.DefaultAWSCredentials; key.ImmutableCredentials = credentials == null ? null : credentials.GetCredentials(); key.RegionEndpoint = client.Config.RegionEndpoint; diff --git a/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs b/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs index cb124dcb3c7b..5cf18a20e472 100644 --- a/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs +++ b/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs @@ -89,7 +89,7 @@ public IAutoScalingPaginatorFactory Paginators /// /// public AmazonAutoScalingClient() - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig()) { } + : base(new AmazonAutoScalingConfig()) { } /// /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's @@ -108,7 +108,7 @@ public AmazonAutoScalingClient() /// /// The region to connect. public AmazonAutoScalingClient(RegionEndpoint region) - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig{RegionEndpoint = region}) { } + : base(new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's @@ -127,7 +127,7 @@ public AmazonAutoScalingClient(RegionEndpoint region) /// /// The AmazonAutoScalingClient Configuration Object public AmazonAutoScalingClient(AmazonAutoScalingConfig config) - : base(FallbackCredentialsFactory.GetCredentials(config), config){} + : base(config) { } /// /// Constructs AmazonAutoScalingClient with AWS Credentials diff --git a/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs b/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs index 67e0afc30335..afd0110c867d 100644 --- a/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs +++ b/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs @@ -74,7 +74,7 @@ public partial class AmazonAutoScalingClient : AmazonServiceClient, IAmazonAutoS /// /// public AmazonAutoScalingClient() - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig()) { } + : base(new AmazonAutoScalingConfig()) { } /// /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's @@ -93,7 +93,7 @@ public AmazonAutoScalingClient() /// /// The region to connect. public AmazonAutoScalingClient(RegionEndpoint region) - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig{RegionEndpoint = region}) { } + : base(new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's @@ -112,7 +112,7 @@ public AmazonAutoScalingClient(RegionEndpoint region) /// /// The AmazonAutoScalingClient Configuration Object public AmazonAutoScalingClient(AmazonAutoScalingConfig config) - : base(FallbackCredentialsFactory.GetCredentials(config), config){} + : base(config) { } /// diff --git a/sdk/src/Services/S3/Custom/AmazonS3Client.Extensions.cs b/sdk/src/Services/S3/Custom/AmazonS3Client.Extensions.cs index d824b3e9b46a..343a234c13fd 100644 --- a/sdk/src/Services/S3/Custom/AmazonS3Client.Extensions.cs +++ b/sdk/src/Services/S3/Custom/AmazonS3Client.Extensions.cs @@ -87,7 +87,7 @@ protected override void Initialize() /// internal string GetPreSignedURLInternal(GetPreSignedUrlRequest request, bool useSigV2Fallback = true) { - if (Credentials == null) + if (DefaultAWSCredentials == null) throw new AmazonS3Exception("Credentials must be specified, cannot call method anonymously"); if (request == null) @@ -97,7 +97,7 @@ internal string GetPreSignedURLInternal(GetPreSignedUrlRequest request, bool use throw new InvalidOperationException("The Expires specified is null!"); Arn arn = null; var signatureVersionToUse = DetermineSignatureVersionToUse(request, ref arn, useSigV2Fallback); - var immutableCredentials = Credentials.GetCredentials(); + var immutableCredentials = DefaultAWSCredentials.GetCredentials(); var irequest = Marshall(this.Config, request, immutableCredentials.AccessKey, immutableCredentials.Token, signatureVersionToUse); var context = new Amazon.Runtime.Internal.ExecutionContext(new Amazon.Runtime.Internal.RequestContext(true, new NullSigner()) { Request = irequest, ClientConfig = this.Config }, null); @@ -150,7 +150,7 @@ internal string GetPreSignedURLInternal(GetPreSignedUrlRequest request, bool use [SuppressMessage("AWSSDKRules", "CR1004")] internal async Task GetPreSignedURLInternalAsync(GetPreSignedUrlRequest request, bool useSigV2Fallback = true) { - if (Credentials == null) + if (DefaultAWSCredentials == null) throw new AmazonS3Exception("Credentials must be specified, cannot call method anonymously"); if (request == null) @@ -160,7 +160,7 @@ internal async Task GetPreSignedURLInternalAsync(GetPreSignedUrlRequest throw new InvalidOperationException("The Expires specified is null!"); Arn arn = null; var signatureVersionToUse = DetermineSignatureVersionToUse(request, ref arn, useSigV2Fallback); - var immutableCredentials = await Credentials.GetCredentialsAsync().ConfigureAwait(false); + var immutableCredentials = await DefaultAWSCredentials.GetCredentialsAsync().ConfigureAwait(false); var irequest = Marshall(this.Config, request, immutableCredentials.AccessKey, immutableCredentials.Token, signatureVersionToUse);