From 32a8048d5ea35d187261e3776ba172dbd86c3346 Mon Sep 17 00:00:00 2001 From: Konstantin Novichikhin Date: Thu, 26 Oct 2023 23:18:44 -0400 Subject: [PATCH] Added EventBridge Scheduler with model release v1.46.5 (2023-10-26) --- .../SchedulerConfiguration.swift | 40 +++++++++++++++++++ Sources/SmokeAWSGenerate/main.swift | 3 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Sources/SmokeAWSGenerate/SchedulerConfiguration.swift diff --git a/Sources/SmokeAWSGenerate/SchedulerConfiguration.swift b/Sources/SmokeAWSGenerate/SchedulerConfiguration.swift new file mode 100644 index 0000000..60b09e0 --- /dev/null +++ b/Sources/SmokeAWSGenerate/SchedulerConfiguration.swift @@ -0,0 +1,40 @@ +// Copyright 2019-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"). +// You may not use this file except in compliance with the License. +// A copy of the License is located at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// or in the "license" file accompanying this file. This file is distributed +// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either +// express or implied. See the License for the specific language governing +// permissions and limitations under the License. +// +// SchedulerConfiguration.swift +// SmokeAWSGenerate +// + +import Foundation +import ServiceModelEntities + +private let errorTypeHTTPHeaderName = "x-amzn-ErrorType" + +internal struct SchedulerConfiguration { + static let modelOverride = ModelOverride() + + static let httpClientConfiguration = HttpClientConfiguration( + retryOnUnknownError: true, + knownErrorsDefaultRetryBehavior: .fail, + unretriableUnknownErrors: [], + retriableUnknownErrors: [], + clientDelegateParameters: ["errorTypeHTTPHeader: \"\(errorTypeHTTPHeaderName)\""]) + + static let serviceModelDetails = ServiceModelDetails( + serviceName: "scheduler", + serviceVersion: "2021-06-30", + baseName: "Scheduler", + modelOverride: modelOverride, + httpClientConfiguration: httpClientConfiguration, + signAllHeaders: false) +} diff --git a/Sources/SmokeAWSGenerate/main.swift b/Sources/SmokeAWSGenerate/main.swift index 4414b48..c8dfc27 100644 --- a/Sources/SmokeAWSGenerate/main.swift +++ b/Sources/SmokeAWSGenerate/main.swift @@ -36,7 +36,7 @@ struct CommonConfiguration { } var isUsage = CommandLine.arguments.count == 2 && CommandLine.arguments[1] == "--help" -let goRepositoryTag = "v1.44.174" +let goRepositoryTag = "v1.46.5" let fileHeader = """ // Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. @@ -386,6 +386,7 @@ func handleApplication() throws { //CodeBuildConfiguration.serviceModelDetails, CodePipelineConfiguration.serviceModelDetails, ECRConfiguration.serviceModelDetails, + SchedulerConfiguration.serviceModelDetails, AppConfigConfiguration.serviceModelDetails] var baseFilePath: String?