Skip to content

Commit

Permalink
Added EventBridge Scheduler with model release v1.46.5 (2023-10-26) (#96
Browse files Browse the repository at this point in the history
)
  • Loading branch information
knovichikhin authored Oct 27, 2023
1 parent 2d0741d commit 0ad25ea
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions Sources/SmokeAWSGenerate/SchedulerConfiguration.swift
Original file line number Diff line number Diff line change
@@ -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)
}
3 changes: 2 additions & 1 deletion Sources/SmokeAWSGenerate/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -386,6 +386,7 @@ func handleApplication() throws {
//CodeBuildConfiguration.serviceModelDetails,
CodePipelineConfiguration.serviceModelDetails,
ECRConfiguration.serviceModelDetails,
SchedulerConfiguration.serviceModelDetails,
AppConfigConfiguration.serviceModelDetails]

var baseFilePath: String?
Expand Down

0 comments on commit 0ad25ea

Please sign in to comment.