You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolServiceClient.kt
Copy file name to clipboardExpand all lines: codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSServiceConfig.kt
documentation ="The endpoint resolver used to resolve endpoints."
145
+
),
146
+
ConfigField(
147
+
FRAMEWORK_METADATA,
148
+
AWSClientRuntimeTypes.Core.FrameworkMetadata,
149
+
formatter ="\$T",
150
+
documentation ="Contains information to inject lib/ into user-agent"
151
+
),
152
+
ConfigField(REGION_RESOLVER, AWSClientRuntimeTypes.Core.RegionResolver, "\$T", documentation ="The region resolver uses an array of region providers to resolve the region."),
153
+
ConfigField(SIGNING_REGION_CONFIG_NAME, SwiftTypes.String, "\$T", "The region to sign requests in. (Required)")
Copy file name to clipboardExpand all lines: codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/RestJsonProtocolGeneratorTests.kt
+52-18Lines changed: 52 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -97,11 +97,16 @@ class RestJsonProtocolGeneratorTests {
97
97
self.config = config
98
98
}
99
99
100
-
public convenience init(region: Swift.String? = nil) async throws {
101
-
let config = try await ExampleClientConfiguration(region: region)
100
+
public convenience init(region: Swift.String) throws {
101
+
let config = try ExampleClientConfiguration(region: region)
102
102
self.init(config: config)
103
103
}
104
-
104
+
105
+
public convenience init() async throws {
106
+
let config = try await ExampleClientConfiguration()
107
+
self.init(config: config)
108
+
}
109
+
105
110
deinit {
106
111
client.close()
107
112
}
@@ -123,27 +128,57 @@ class RestJsonProtocolGeneratorTests {
123
128
public var region: Swift.String?
124
129
public var regionResolver: AWSClientRuntime.RegionResolver?
0 commit comments