Skip to content

Commit

Permalink
Merge branch 'main' into day/transcribe-fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe authored Nov 22, 2024
2 parents cba8fb3 + b506c48 commit 4d2f6a4
Show file tree
Hide file tree
Showing 462 changed files with 50,038 additions and 6,105 deletions.
2 changes: 2 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ let serviceTargets: [String] = [
"AWSNetworkFirewall",
"AWSNetworkManager",
"AWSNetworkMonitor",
"AWSNotifications",
"AWSNotificationsContacts",
"AWSOAM",
"AWSOSIS",
"AWSOmics",
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.45
1.0.46
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.46
1.0.47
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ class TestLogger: LogAgent {
self.level = level
}

func log(level: LogAgentLevel = .info, message: String, metadata: [String : String]? = nil, source: String = "ChecksumUnitTests", file: String = #file, function: String = #function, line: UInt = #line) {
messages.append((level: level, message: message))
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) {
messages.append((level: level, message: message()))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ This SDK is open-source. Code is available on Github [here](https://github.com/

[AWSNetworkMonitor](../../../../../swift/api/awsnetworkmonitor/latest)

[AWSNotifications](../../../../../swift/api/awsnotifications/latest)

[AWSNotificationsContacts](../../../../../swift/api/awsnotificationscontacts/latest)

[AWSOAM](../../../../../swift/api/awsoam/latest)

[AWSOSIS](../../../../../swift/api/awsosis/latest)
Expand Down
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
let client: ClientRuntime.SdkHttpClient
let config: ACMPCAClient.ACMPCAClientConfiguration
let serviceName = "ACM PCA"
Expand Down

Large diffs are not rendered by default.

683 changes: 663 additions & 20 deletions Sources/Services/AWSAPIGateway/Sources/AWSAPIGateway/Models.swift

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ extension GetBasePathMappingsInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> GetBasePathMappingsInput {
return GetBasePathMappingsInput(
domainName: self.domainName,
domainNameId: self.domainNameId,
limit: self.limit,
position: token
)}
Expand Down Expand Up @@ -153,7 +154,8 @@ extension GetDomainNamesInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> GetDomainNamesInput {
return GetDomainNamesInput(
limit: self.limit,
position: token
position: token,
resourceOwner: self.resourceOwner
)}
}

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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
let client: ClientRuntime.SdkHttpClient
let config: AppSyncClient.AppSyncClientConfiguration
let serviceName = "AppSync"
Expand Down
3 changes: 3 additions & 0 deletions Sources/Services/AWSAppSync/Sources/AWSAppSync/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,7 @@ extension AppSyncClientTypes {
extension AppSyncClientTypes {

public enum DataSourceType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case amazonBedrockRuntime
case amazonDynamodb
case amazonElasticsearch
case amazonEventbridge
Expand All @@ -2071,6 +2072,7 @@ extension AppSyncClientTypes {

public static var allCases: [DataSourceType] {
return [
.amazonBedrockRuntime,
.amazonDynamodb,
.amazonElasticsearch,
.amazonEventbridge,
Expand All @@ -2089,6 +2091,7 @@ extension AppSyncClientTypes {

public var rawValue: Swift.String {
switch self {
case .amazonBedrockRuntime: return "AMAZON_BEDROCK_RUNTIME"
case .amazonDynamodb: return "AMAZON_DYNAMODB"
case .amazonElasticsearch: return "AMAZON_ELASTICSEARCH"
case .amazonEventbridge: return "AMAZON_EVENTBRIDGE"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
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.45"
public static let version = "1.0.46"
let client: ClientRuntime.SdkHttpClient
let config: ApplicationAutoScalingClient.ApplicationAutoScalingClientConfiguration
let serviceName = "Application Auto Scaling"
Expand Down Expand Up @@ -707,6 +707,77 @@ extension ApplicationAutoScalingClient {
return try await op.execute(input: input)
}

/// Performs the `GetPredictiveScalingForecast` operation on the `AnyScaleFrontendService` service.
///
/// Retrieves the forecast data for a predictive scaling policy. Load forecasts are predictions of the hourly load values using historical load data from CloudWatch and an analysis of historical trends. Capacity forecasts are represented as predicted values for the minimum capacity that is needed on an hourly basis, based on the hourly load forecast. A minimum of 24 hours of data is required to create the initial forecasts. However, having a full 14 days of historical data results in more accurate forecasts.
///
/// - Parameter GetPredictiveScalingForecastInput : [no documentation found]
///
/// - Returns: `GetPredictiveScalingForecastOutput` : [no documentation found]
///
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
///
/// __Possible Exceptions:__
/// - `InternalServiceException` : The service encountered an internal error.
/// - `ValidationException` : An exception was thrown for a validation issue. Review the available parameters for the API request.
public func getPredictiveScalingForecast(input: GetPredictiveScalingForecastInput) async throws -> GetPredictiveScalingForecastOutput {
let context = Smithy.ContextBuilder()
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "getPredictiveScalingForecast")
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
.withLogger(value: config.logger)
.withPartitionID(value: config.partitionID)
.withAuthSchemes(value: config.authSchemes ?? [])
.withAuthSchemeResolver(value: config.authSchemeResolver)
.withUnsignedPayloadTrait(value: false)
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
.withRegion(value: config.region)
.withSigningName(value: "application-autoscaling")
.withSigningRegion(value: config.signingRegion)
.build()
let builder = ClientRuntime.OrchestratorBuilder<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
builder.interceptors.add(ClientRuntime.URLPathMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>(GetPredictiveScalingForecastInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>())
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>())
builder.deserialize(ClientRuntime.DeserializeMiddleware<GetPredictiveScalingForecastOutput>(GetPredictiveScalingForecastOutput.httpOutput(from:), GetPredictiveScalingForecastOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
builder.applySigner(ClientRuntime.SignerMiddleware<GetPredictiveScalingForecastOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<GetPredictiveScalingForecastOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>(serviceID: serviceName, version: ApplicationAutoScalingClient.version, config: config))
builder.interceptors.add(AWSClientRuntime.XAmzTargetMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>(xAmzTarget: "AnyScaleFrontendService.GetPredictiveScalingForecast"))
builder.serialize(ClientRuntime.BodyMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: GetPredictiveScalingForecastInput.write(value:to:)))
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>(contentType: "application/x-amz-json-1.1"))
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<GetPredictiveScalingForecastOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<GetPredictiveScalingForecastInput, GetPredictiveScalingForecastOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
var metricsAttributes = Smithy.Attributes()
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "ApplicationAutoScaling")
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetPredictiveScalingForecast")
let op = builder.attributes(context)
.telemetry(ClientRuntime.OrchestratorTelemetry(
telemetryProvider: config.telemetryProvider,
metricsAttributes: metricsAttributes,
meterScope: serviceName,
tracerScope: serviceName
))
.executeRequest(client)
.build()
return try await op.execute(input: input)
}

/// Performs the `ListTagsForResource` operation on the `AnyScaleFrontendService` service.
///
/// Returns all the tags on the specified Application Auto Scaling scalable target. For general information about tags, including the format and syntax, see [Tagging your Amazon Web Services resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the Amazon Web Services General Reference.
Expand Down
Loading

0 comments on commit 4d2f6a4

Please sign in to comment.