Skip to content

Commit

Permalink
Merge branch 'main' into jbe/20241209_sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Dec 12, 2024
2 parents 27a0ff8 + 6102710 commit 83626ef
Show file tree
Hide file tree
Showing 442 changed files with 8,464 additions and 1,577 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import PackageDescription

// MARK: - Dynamic Content

let clientRuntimeVersion: Version = "0.100.0"
let clientRuntimeVersion: Version = "0.101.0"
let crtVersion: Version = "0.40.0"

let excludeRuntimeUnitTests = false
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.57
1.0.59
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.58
1.0.60
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,9 @@ class TestLogger: LogAgent {

var messages: [(level: LogAgentLevel, message: String)] = []

var level: LogAgentLevel

init(name: String = "Test", messages: [(level: LogAgentLevel, message: String)] = [], level: LogAgentLevel = .info) {
self.name = name
self.messages = messages
self.level = level
}

func log(level: LogAgentLevel = .info, message: @autoclosure () -> String, metadata: @autoclosure () -> [String : String]? = nil, source: @autoclosure () -> String = "ChecksumUnitTests", file: String = #file, function: String = #function, line: UInt = #line) {
Expand Down
29 changes: 24 additions & 5 deletions Sources/Core/AWSSDKForSwift/Documentation.docc/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,34 @@
The AWS SDK for Swift uses SwiftLog for high performant logging. Many of our calls are issued to the `debug` level of output, which are disabled in the console by default. To see debug output to your console, you can add the following code to your application in a place where you know that the code will be called once and only once:
```swift
import ClientRuntime
SDKLoggingSystem().initialize(logLevel: .debug)
await SDKLoggingSystem().initialize(logLevel: .debug)
```

Alternatively, if you need finer grain control of instances of SwiftLog, you can call `SDKLoggingSystem::add` to control specific instances of the log handler. For example:
```swift
import ClientRuntime
import Logging

let system = SDKLoggingSystem()
system.add(logHandlerFactory: S3ClientLogHandlerFactory(logLevel: .debug))
system.add(logHandlerFactory: CRTClientEngineLogHandlerFactory(logLevel: .info))
system.initialize()
let loggingSystem = SDKLoggingSystem()

// Adds custom log handler for S3Client so that only .debug or more severe leveled messages get logged for S3Client.
await loggingSystem.add(logHandlerFactory: S3ClientLogHandlerFactory(logLevel: .debug))
await loggingSystem.initialize()

// Example implementation of a service-specific log handler factory.
public struct S3ClientLogHandlerFactory: SDKLogHandlerFactory {
// This label value must be the name of the service client you want the log handler to apply to.
public var label = "S3Client"
let logLevel: SDKLogLevel

public func construct(label: String) -> LogHandler {
var handler = StreamLogHandler.standardOutput(label: label)
handler.logLevel = logLevel.toLoggerType()
return handler
}

public init(logLevel: SDKLogLevel) {
self.logLevel = logLevel
}
}
```
2 changes: 1 addition & 1 deletion Sources/Services/AWSACM/Sources/AWSACM/ACMClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ACMClient: ClientRuntime.Client {
public static let clientName = "ACMClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ACMClient.ACMClientConfiguration
let serviceName = "ACM"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ACMPCAClient: ClientRuntime.Client {
public static let clientName = "ACMPCAClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ACMPCAClient.ACMPCAClientConfiguration
let serviceName = "ACM PCA"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class APIGatewayClient: ClientRuntime.Client {
public static let clientName = "APIGatewayClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: APIGatewayClient.APIGatewayClientConfiguration
let serviceName = "API Gateway"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ARCZonalShiftClient: ClientRuntime.Client {
public static let clientName = "ARCZonalShiftClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ARCZonalShiftClient.ARCZonalShiftClientConfiguration
let serviceName = "ARC Zonal Shift"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AccessAnalyzerClient: ClientRuntime.Client {
public static let clientName = "AccessAnalyzerClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AccessAnalyzerClient.AccessAnalyzerClientConfiguration
let serviceName = "AccessAnalyzer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AccountClient: ClientRuntime.Client {
public static let clientName = "AccountClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AccountClient.AccountClientConfiguration
let serviceName = "Account"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Services/AWSAmp/Sources/AWSAmp/AmpClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AmpClient: ClientRuntime.Client {
public static let clientName = "AmpClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AmpClient.AmpClientConfiguration
let serviceName = "amp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AmplifyClient: ClientRuntime.Client {
public static let clientName = "AmplifyClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AmplifyClient.AmplifyClientConfiguration
let serviceName = "Amplify"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AmplifyBackendClient: ClientRuntime.Client {
public static let clientName = "AmplifyBackendClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AmplifyBackendClient.AmplifyBackendClientConfiguration
let serviceName = "AmplifyBackend"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AmplifyUIBuilderClient: ClientRuntime.Client {
public static let clientName = "AmplifyUIBuilderClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AmplifyUIBuilderClient.AmplifyUIBuilderClientConfiguration
let serviceName = "AmplifyUIBuilder"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApiGatewayManagementApiClient: ClientRuntime.Client {
public static let clientName = "ApiGatewayManagementApiClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApiGatewayManagementApiClient.ApiGatewayManagementApiClientConfiguration
let serviceName = "ApiGatewayManagementApi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApiGatewayV2Client: ClientRuntime.Client {
public static let clientName = "ApiGatewayV2Client"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApiGatewayV2Client.ApiGatewayV2ClientConfiguration
let serviceName = "ApiGatewayV2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppConfigClient: ClientRuntime.Client {
public static let clientName = "AppConfigClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppConfigClient.AppConfigClientConfiguration
let serviceName = "AppConfig"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppConfigDataClient: ClientRuntime.Client {
public static let clientName = "AppConfigDataClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppConfigDataClient.AppConfigDataClientConfiguration
let serviceName = "AppConfigData"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppFabricClient: ClientRuntime.Client {
public static let clientName = "AppFabricClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppFabricClient.AppFabricClientConfiguration
let serviceName = "AppFabric"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppIntegrationsClient: ClientRuntime.Client {
public static let clientName = "AppIntegrationsClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppIntegrationsClient.AppIntegrationsClientConfiguration
let serviceName = "AppIntegrations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppMeshClient: ClientRuntime.Client {
public static let clientName = "AppMeshClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppMeshClient.AppMeshClientConfiguration
let serviceName = "App Mesh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppRunnerClient: ClientRuntime.Client {
public static let clientName = "AppRunnerClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppRunnerClient.AppRunnerClientConfiguration
let serviceName = "AppRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppStreamClient: ClientRuntime.Client {
public static let clientName = "AppStreamClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppStreamClient.AppStreamClientConfiguration
let serviceName = "AppStream"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppSyncClient: ClientRuntime.Client {
public static let clientName = "AppSyncClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppSyncClient.AppSyncClientConfiguration
let serviceName = "AppSync"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppTestClient: ClientRuntime.Client {
public static let clientName = "AppTestClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppTestClient.AppTestClientConfiguration
let serviceName = "AppTest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class AppflowClient: ClientRuntime.Client {
public static let clientName = "AppflowClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: AppflowClient.AppflowClientConfiguration
let serviceName = "Appflow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApplicationAutoScalingClient: ClientRuntime.Client {
public static let clientName = "ApplicationAutoScalingClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApplicationAutoScalingClient.ApplicationAutoScalingClientConfiguration
let serviceName = "Application Auto Scaling"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApplicationCostProfilerClient: ClientRuntime.Client {
public static let clientName = "ApplicationCostProfilerClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApplicationCostProfilerClient.ApplicationCostProfilerClientConfiguration
let serviceName = "ApplicationCostProfiler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApplicationDiscoveryClient: ClientRuntime.Client {
public static let clientName = "ApplicationDiscoveryClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApplicationDiscoveryClient.ApplicationDiscoveryClientConfiguration
let serviceName = "Application Discovery"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApplicationInsightsClient: ClientRuntime.Client {
public static let clientName = "ApplicationInsightsClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApplicationInsightsClient.ApplicationInsightsClientConfiguration
let serviceName = "Application Insights"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes

public class ApplicationSignalsClient: ClientRuntime.Client {
public static let clientName = "ApplicationSignalsClient"
public static let version = "1.0.57"
public static let version = "1.0.59"
let client: ClientRuntime.SdkHttpClient
let config: ApplicationSignalsClient.ApplicationSignalsClientConfiguration
let serviceName = "Application Signals"
Expand Down
Loading

0 comments on commit 83626ef

Please sign in to comment.