diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5552d721c7e..34e851365dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ env: jobs: macos: - runs-on: macOS-13 + runs-on: macOS-14 steps: - name: Checkout uses: actions/checkout@v4 @@ -35,9 +35,9 @@ jobs: strategy: matrix: image: - - swift:5.9 - swift:5.10 - swift:6.0 + - swift:6.1 services: localstack: image: localstack/localstack diff --git a/Package.swift b/Package.swift index d65cf1e63b1..b14e547c242 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.9 +// swift-tools-version:5.10 //===----------------------------------------------------------------------===// // // This source file is part of the Soto for AWS open source project @@ -433,7 +433,7 @@ let package = Package( .library(name: "SotoXRay", targets: ["SotoXRay"]), ], dependencies: [ - .package(url: "https://github.com/soto-project/soto-core.git", from: "7.4.0") + .package(url: "https://github.com/soto-project/soto-core.git", from: "7.6.0") ], targets: [ .target( diff --git a/Sources/Soto/Extensions/DynamoDB/DynamoDB+Codable.swift b/Sources/Soto/Extensions/DynamoDB/DynamoDB+Codable.swift index d5cd0a7a9d8..034acc6d417 100644 --- a/Sources/Soto/Extensions/DynamoDB/DynamoDB+Codable.swift +++ b/Sources/Soto/Extensions/DynamoDB/DynamoDB+Codable.swift @@ -242,6 +242,8 @@ extension DynamoDB { public let returnItemCollectionMetrics: ReturnItemCollectionMetrics? /// Use ReturnValues if you want to get the item attributes as they appear before or after they are updated. For UpdateItem, the valid values are: NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.) ALL_OLD - Returns all of the attributes of the item, as they appeared before the UpdateItem operation. UPDATED_OLD - Returns only the updated attributes, as they appeared before the UpdateItem operation. ALL_NEW - Returns all of the attributes of the item, as they appear after the UpdateItem operation. UPDATED_NEW - Returns only the updated attributes, as they appear after the UpdateItem operation. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. The values returned are strongly consistent. public let returnValues: ReturnValue? + /// An optional parameter that returns the item attributes for an UpdateItem operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. + public let returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? /// The name of the table containing the item to update. public let tableName: String /// An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them. If this is not set the update is automatically constructed to SET all the values from the updateItem. If you are creating your own updateExpression then all the attribute names are prefixed with the symbol #. The following action values are available for UpdateExpression. SET - Adds one or more attributes and values to an item. If any of these attributes already exist, they are replaced by the new values. You can also use SET to add or subtract from an attribute that is of type Number. For example: SET myNum = myNum + :val SET supports the following functions: if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item. list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands. These function names are case-sensitive. REMOVE - Removes one or more attributes from an item. ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute: If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute. If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value. Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3. If the existing data type is a set and if Value is also a set, then Value is added to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type. Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The ADD action only supports Number and set data types. In addition, ADD can only be used on top-level attributes, not nested attributes. DELETE - Deletes an element from a set. If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error. The DELETE action only supports set data types. In addition, DELETE can only be used on top-level attributes, not nested attributes. You can have many actions in a single expression, such as the following: SET a=:value1, b=:value2 DELETE :value3, :value4, :value5 For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide. @@ -256,6 +258,7 @@ extension DynamoDB { returnConsumedCapacity: ReturnConsumedCapacity? = nil, returnItemCollectionMetrics: ReturnItemCollectionMetrics? = nil, returnValues: ReturnValue? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: String, updateExpression: String? = nil, updateItem: T @@ -267,6 +270,7 @@ extension DynamoDB { self.returnConsumedCapacity = returnConsumedCapacity self.returnItemCollectionMetrics = returnItemCollectionMetrics self.returnValues = returnValues + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.tableName = tableName self.updateExpression = updateExpression self.updateItem = updateItem @@ -279,6 +283,7 @@ extension DynamoDB { returnConsumedCapacity: ReturnConsumedCapacity? = nil, returnItemCollectionMetrics: ReturnItemCollectionMetrics? = nil, returnValues: ReturnValue? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: String, updateItem: T ) throws { @@ -289,6 +294,7 @@ extension DynamoDB { self.returnConsumedCapacity = returnConsumedCapacity self.returnItemCollectionMetrics = returnItemCollectionMetrics self.returnValues = returnValues + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.tableName = tableName self.updateExpression = nil self.updateItem = updateItem @@ -341,6 +347,7 @@ extension DynamoDB { returnConsumedCapacity: self.returnConsumedCapacity, returnItemCollectionMetrics: self.returnItemCollectionMetrics, returnValues: self.returnValues, + returnValuesOnConditionCheckFailure: self.returnValuesOnConditionCheckFailure, tableName: self.tableName, updateExpression: updateExpression ) diff --git a/Sources/Soto/Services/ACM/ACM_api.swift b/Sources/Soto/Services/ACM/ACM_api.swift index 2636a4f721f..482b9e329c9 100644 --- a/Sources/Soto/Services/ACM/ACM_api.swift +++ b/Sources/Soto/Services/ACM/ACM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ACM/ACM_shapes.swift b/Sources/Soto/Services/ACM/ACM_shapes.swift index f5fecb0b47e..59e124b4d41 100644 --- a/Sources/Soto/Services/ACM/ACM_shapes.swift +++ b/Sources/Soto/Services/ACM/ACM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ACMPCA/ACMPCA_api.swift b/Sources/Soto/Services/ACMPCA/ACMPCA_api.swift index 2563020de88..292faeabcf1 100644 --- a/Sources/Soto/Services/ACMPCA/ACMPCA_api.swift +++ b/Sources/Soto/Services/ACMPCA/ACMPCA_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ACMPCA/ACMPCA_shapes.swift b/Sources/Soto/Services/ACMPCA/ACMPCA_shapes.swift index 6deea18d6f0..0ab685fd15e 100644 --- a/Sources/Soto/Services/ACMPCA/ACMPCA_shapes.swift +++ b/Sources/Soto/Services/ACMPCA/ACMPCA_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/APIGateway/APIGateway_api.swift b/Sources/Soto/Services/APIGateway/APIGateway_api.swift index 737b8f28b49..24b224fbe79 100644 --- a/Sources/Soto/Services/APIGateway/APIGateway_api.swift +++ b/Sources/Soto/Services/APIGateway/APIGateway_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/APIGateway/APIGateway_shapes.swift b/Sources/Soto/Services/APIGateway/APIGateway_shapes.swift index e6bb7849113..b5afe96c202 100644 --- a/Sources/Soto/Services/APIGateway/APIGateway_shapes.swift +++ b/Sources/Soto/Services/APIGateway/APIGateway_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -3590,6 +3589,28 @@ extension APIGateway { } } + public struct LimitExceededException: AWSErrorShape { + public let message: String? + public let retryAfterSeconds: String? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: String? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Method: AWSDecodableShape { /// A boolean flag specifying whether a valid ApiKey is required to invoke this method. public let apiKeyRequired: Bool? @@ -4504,6 +4525,28 @@ extension APIGateway { } } + public struct ServiceUnavailableException: AWSErrorShape { + public let message: String? + public let retryAfterSeconds: String? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: String? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Stage: AWSDecodableShape { /// Settings for logging access in this stage. public let accessLogSettings: AccessLogSettings? @@ -4880,6 +4923,28 @@ extension APIGateway { } } + public struct TooManyRequestsException: AWSErrorShape { + public let message: String? + public let retryAfterSeconds: String? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: String? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of a resource that can be tagged. public let resourceArn: String @@ -5759,6 +5824,14 @@ public struct APIGatewayErrorType: AWSErrorType { public static var unauthorizedException: Self { .init(.unauthorizedException) } } +extension APIGatewayErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "LimitExceededException": APIGateway.LimitExceededException.self, + "ServiceUnavailableException": APIGateway.ServiceUnavailableException.self, + "TooManyRequestsException": APIGateway.TooManyRequestsException.self + ] +} + extension APIGatewayErrorType: Equatable { public static func == (lhs: APIGatewayErrorType, rhs: APIGatewayErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_api.swift b/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_api.swift index a411a8d4ee6..11e6d159648 100644 --- a/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_api.swift +++ b/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_shapes.swift b/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_shapes.swift index b6e5ed2f90d..a76163889ae 100644 --- a/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_shapes.swift +++ b/Sources/Soto/Services/ARCZonalShift/ARCZonalShift_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -50,6 +49,16 @@ extension ARCZonalShift { public var description: String { return self.rawValue } } + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case autoshiftEnabled = "AutoShiftEnabled" + case practiceConfigurationAlreadyExists = "PracticeConfigurationAlreadyExists" + case practiceConfigurationDoesNotExist = "PracticeConfigurationDoesNotExist" + case simultaneousZonalShiftsConflict = "SimultaneousZonalShiftsConflict" + case zonalShiftAlreadyExists = "ZonalShiftAlreadyExists" + case zonalShiftStatusNotActive = "ZonalShiftStatusNotActive" + public var description: String { return self.rawValue } + } + public enum ControlConditionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case cloudwatch = "CLOUDWATCH" public var description: String { return self.rawValue } @@ -63,6 +72,20 @@ extension ARCZonalShift { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidAlarmCondition = "InvalidAlarmCondition" + case invalidAz = "InvalidAz" + case invalidConditionType = "InvalidConditionType" + case invalidExpiresIn = "InvalidExpiresIn" + case invalidPracticeBlocker = "InvalidPracticeBlocker" + case invalidResourceIdentifier = "InvalidResourceIdentifier" + case invalidStatus = "InvalidStatus" + case invalidToken = "InvalidToken" + case missingValue = "MissingValue" + case unsupportedAz = "UnsupportedAz" + public var description: String { return self.rawValue } + } + public enum ZonalAutoshiftStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case disabled = "DISABLED" case enabled = "ENABLED" @@ -165,6 +188,27 @@ extension ARCZonalShift { private enum CodingKeys: CodingKey {} } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The reason for the conflict exception. + public let reason: ConflictExceptionReason + /// The zonal shift ID associated with the conflict exception. + public let zonalShiftId: String? + + @inlinable + public init(message: String, reason: ConflictExceptionReason, zonalShiftId: String? = nil) { + self.message = message + self.reason = reason + self.zonalShiftId = zonalShiftId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + case zonalShiftId = "zonalShiftId" + } + } + public struct ControlCondition: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run. public let alarmIdentifier: String @@ -942,6 +986,23 @@ extension ARCZonalShift { } } + public struct ValidationException: AWSErrorShape { + public let message: String + /// The reason for the validation exception. + public let reason: ValidationExceptionReason + + @inlinable + public init(message: String, reason: ValidationExceptionReason) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct ZonalShift: AWSDecodableShape { /// The Availability Zone (for example, use1-az1) that traffic is moved away from for a resource when you start a zonal shift. /// Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region. @@ -1129,6 +1190,13 @@ public struct ARCZonalShiftErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ARCZonalShiftErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": ARCZonalShift.ConflictException.self, + "ValidationException": ARCZonalShift.ValidationException.self + ] +} + extension ARCZonalShiftErrorType: Equatable { public static func == (lhs: ARCZonalShiftErrorType, rhs: ARCZonalShiftErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_api.swift b/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_api.swift index 72c23d7b2dc..7434fd20751 100644 --- a/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_api.swift +++ b/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_shapes.swift b/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_shapes.swift index 37074097a40..ff3ec836e26 100644 --- a/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_shapes.swift +++ b/Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -273,6 +272,15 @@ extension AccessAnalyzer { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case notSupported = "notSupported" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum `Type`: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case account = "ACCOUNT" case accountUnusedAccess = "ACCOUNT_UNUSED_ACCESS" @@ -1257,6 +1265,27 @@ extension AccessAnalyzer { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateAccessPreviewRequest: AWSEncodableShape { /// The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an Account type and Active status. public let analyzerArn: String @@ -2475,6 +2504,29 @@ extension AccessAnalyzer { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The seconds to wait to retry. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct InternetConfiguration: AWSEncodableShape & AWSDecodableShape { public init() {} } @@ -3205,6 +3257,27 @@ extension AccessAnalyzer { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The type of the resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ResourceTypeDetails: AWSDecodableShape { /// The total number of active cross-account findings for the resource type. public let totalActiveCrossAccount: Int? @@ -3350,6 +3423,27 @@ extension AccessAnalyzer { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The resource ID. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct SnsTopicConfiguration: AWSEncodableShape & AWSDecodableShape { /// The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide. public let topicPolicy: String? @@ -3546,6 +3640,29 @@ extension AccessAnalyzer { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The seconds to wait to retry. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Trail: AWSEncodableShape { /// Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy. public let allRegions: Bool? @@ -4016,6 +4133,45 @@ extension AccessAnalyzer { } } + public struct ValidationException: AWSErrorShape { + /// A list of fields that didn't validate. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason for the exception. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message about the validation exception. + public let message: String + /// The name of the validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VpcConfiguration: AWSEncodableShape & AWSDecodableShape { /// If this field is specified, this access point will only allow connections from the specified VPC ID. public let vpcId: String @@ -4145,6 +4301,17 @@ public struct AccessAnalyzerErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension AccessAnalyzerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": AccessAnalyzer.ConflictException.self, + "InternalServerException": AccessAnalyzer.InternalServerException.self, + "ResourceNotFoundException": AccessAnalyzer.ResourceNotFoundException.self, + "ServiceQuotaExceededException": AccessAnalyzer.ServiceQuotaExceededException.self, + "ThrottlingException": AccessAnalyzer.ThrottlingException.self, + "ValidationException": AccessAnalyzer.ValidationException.self + ] +} + extension AccessAnalyzerErrorType: Equatable { public static func == (lhs: AccessAnalyzerErrorType, rhs: AccessAnalyzerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Account/Account_api.swift b/Sources/Soto/Services/Account/Account_api.swift index 86a79fada25..f692ddfe216 100644 --- a/Sources/Soto/Services/Account/Account_api.swift +++ b/Sources/Soto/Services/Account/Account_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Account/Account_shapes.swift b/Sources/Soto/Services/Account/Account_shapes.swift index f9c879541de..6c12acc1a09 100644 --- a/Sources/Soto/Services/Account/Account_shapes.swift +++ b/Sources/Soto/Services/Account/Account_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -48,6 +47,12 @@ extension Account { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "fieldValidationFailed" + case invalidRegionOptTarget = "invalidRegionOptTarget" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AcceptPrimaryEmailUpdateRequest: AWSEncodableShape { @@ -595,6 +600,46 @@ extension Account { case status = "Status" } } + + public struct ValidationException: AWSErrorShape { + /// The field where the invalid entry was detected. + public let fieldList: [ValidationExceptionField]? + /// The message that informs you about what was invalid about the request. + public let message: String + /// The reason that validation failed. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message about the validation exception. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -642,6 +687,12 @@ public struct AccountErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension AccountErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": Account.ValidationException.self + ] +} + extension AccountErrorType: Equatable { public static func == (lhs: AccountErrorType, rhs: AccountErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Amp/Amp_api.swift b/Sources/Soto/Services/Amp/Amp_api.swift index e97619c9c47..71d3e953ded 100644 --- a/Sources/Soto/Services/Amp/Amp_api.swift +++ b/Sources/Soto/Services/Amp/Amp_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Amp/Amp_shapes.swift b/Sources/Soto/Services/Amp/Amp_shapes.swift index 7e650d78dcd..0809fcae6f6 100644 --- a/Sources/Soto/Services/Amp/Amp_shapes.swift +++ b/Sources/Soto/Services/Amp/Amp_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -92,6 +91,14 @@ extension Amp { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum WorkspaceStatusCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { /// Workspace has been created and is usable. case active = "ACTIVE" @@ -170,6 +177,28 @@ extension Amp { } } + public struct ConflictException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Identifier of the resource affected. + public let resourceId: String + /// Type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateAlertManagerDefinitionRequest: AWSEncodableShape { /// A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. public let clientToken: String? @@ -952,6 +981,30 @@ extension Amp { } } + public struct InternalServerException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListRuleGroupsNamespacesRequest: AWSEncodableShape { /// The maximum number of results to return. The default is 100. public let maxResults: Int? @@ -1319,6 +1372,28 @@ extension Amp { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Identifier of the resource affected. + public let resourceId: String + /// Type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RoleConfiguration: AWSEncodableShape & AWSDecodableShape { /// A ARN identifying the source role configuration. public let sourceRoleArn: String? @@ -1564,6 +1639,36 @@ extension Amp { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Service quotas code of the originating quota. + public let quotaCode: String + /// Identifier of the resource affected. + public let resourceId: String + /// Type of the resource affected. + public let resourceType: String + /// Service quotas code for the originating service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The ARN of the resource to apply tags to. public let resourceArn: String @@ -1603,6 +1708,40 @@ extension Amp { public init() {} } + public struct ThrottlingException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Service quotas code for the originating quota. + public let quotaCode: String? + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + /// Service quotas code for the originating service. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource from which to remove a tag. public let resourceArn: String @@ -1814,6 +1953,46 @@ extension Amp { } } + public struct ValidationException: AWSErrorShape { + /// The field that caused the error, if applicable. + public let fieldList: [ValidationExceptionField]? + /// Description of the error. + public let message: String + /// Reason the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message describing why the field caused an exception. + public let message: String + /// The name of the field that caused an exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct WorkspaceDescription: AWSDecodableShape { /// The alias that is assigned to this workspace to help identify it. It does not need to be unique. public let alias: String? @@ -2007,6 +2186,17 @@ public struct AmpErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension AmpErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Amp.ConflictException.self, + "InternalServerException": Amp.InternalServerException.self, + "ResourceNotFoundException": Amp.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Amp.ServiceQuotaExceededException.self, + "ThrottlingException": Amp.ThrottlingException.self, + "ValidationException": Amp.ValidationException.self + ] +} + extension AmpErrorType: Equatable { public static func == (lhs: AmpErrorType, rhs: AmpErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Amplify/Amplify_api.swift b/Sources/Soto/Services/Amplify/Amplify_api.swift index 1ea0aaa93e7..a89c2c94507 100644 --- a/Sources/Soto/Services/Amplify/Amplify_api.swift +++ b/Sources/Soto/Services/Amplify/Amplify_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Amplify/Amplify_shapes.swift b/Sources/Soto/Services/Amplify/Amplify_shapes.swift index 11e0050f986..92b1b98ec42 100644 --- a/Sources/Soto/Services/Amplify/Amplify_shapes.swift +++ b/Sources/Soto/Services/Amplify/Amplify_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2408,6 +2407,22 @@ extension Amplify { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String + public let message: String + + @inlinable + public init(code: String, message: String) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct StartDeploymentRequest: AWSEncodableShape { /// The unique ID for an Amplify app. public let appId: String @@ -3372,6 +3387,12 @@ public struct AmplifyErrorType: AWSErrorType { public static var unauthorizedException: Self { .init(.unauthorizedException) } } +extension AmplifyErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": Amplify.ResourceNotFoundException.self + ] +} + extension AmplifyErrorType: Equatable { public static func == (lhs: AmplifyErrorType, rhs: AmplifyErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_api.swift b/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_api.swift index acdf88b120b..27567042c57 100644 --- a/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_api.swift +++ b/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_shapes.swift b/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_shapes.swift index 519af073602..fc0c0c573d9 100644 --- a/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_shapes.swift +++ b/Sources/Soto/Services/AmplifyBackend/AmplifyBackend_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2055,6 +2054,24 @@ extension AmplifyBackend { } } + public struct NotFoundException: AWSErrorShape { + /// An error message to inform that the request has failed. + public let message: String? + /// The type of resource that is not found. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceType = "resourceType" + } + } + public struct RemoveAllBackendsRequest: AWSEncodableShape { /// The app ID. public let appId: String @@ -2217,6 +2234,24 @@ extension AmplifyBackend { } } + public struct TooManyRequestsException: AWSErrorShape { + /// The type of limit that was exceeded. + public let limitType: String? + /// An error message to inform that the request has failed. + public let message: String? + + @inlinable + public init(limitType: String? = nil, message: String? = nil) { + self.limitType = limitType + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case limitType = "limitType" + case message = "message" + } + } + public struct UpdateBackendAPIRequest: AWSEncodableShape { /// The app ID. public let appId: String @@ -2781,6 +2816,13 @@ public struct AmplifyBackendErrorType: AWSErrorType { public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) } } +extension AmplifyBackendErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "NotFoundException": AmplifyBackend.NotFoundException.self, + "TooManyRequestsException": AmplifyBackend.TooManyRequestsException.self + ] +} + extension AmplifyBackendErrorType: Equatable { public static func == (lhs: AmplifyBackendErrorType, rhs: AmplifyBackendErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_api.swift b/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_api.swift index 9e1a58d5729..81cb6cf888c 100644 --- a/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_api.swift +++ b/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_shapes.swift b/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_shapes.swift index 35844f0d816..5cb035a9c3c 100644 --- a/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_shapes.swift +++ b/Sources/Soto/Services/AmplifyUIBuilder/AmplifyUIBuilder_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_api.swift b/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_api.swift index fb31117e80d..0ab774dce2c 100644 --- a/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_api.swift +++ b/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_shapes.swift b/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_shapes.swift index 431ff9006ab..b9886c46f50 100644 --- a/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_shapes.swift +++ b/Sources/Soto/Services/ApiGatewayManagementApi/ApiGatewayManagementApi_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_api.swift b/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_api.swift index ef7b3d2a58a..1669e0b02cc 100644 --- a/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_api.swift +++ b/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_shapes.swift b/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_shapes.swift index a0aee50e7cf..aec4e23e0d5 100644 --- a/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_shapes.swift +++ b/Sources/Soto/Services/ApiGatewayV2/ApiGatewayV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -3828,6 +3827,24 @@ extension ApiGatewayV2 { } } + public struct NotFoundException: AWSErrorShape { + /// Describes the error encountered. + public let message: String? + /// The resource type. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceType = "resourceType" + } + } + public struct ParameterConstraints: AWSEncodableShape & AWSDecodableShape { /// Whether or not the parameter is required. public let required: Bool? @@ -4217,6 +4234,24 @@ extension ApiGatewayV2 { } } + public struct TooManyRequestsException: AWSErrorShape { + /// The limit type. + public let limitType: String? + /// Describes the error encountered. + public let message: String? + + @inlinable + public init(limitType: String? = nil, message: String? = nil) { + self.limitType = limitType + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case limitType = "limitType" + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The resource ARN for the tag. public let resourceArn: String @@ -5580,6 +5615,13 @@ public struct ApiGatewayV2ErrorType: AWSErrorType { public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) } } +extension ApiGatewayV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "NotFoundException": ApiGatewayV2.NotFoundException.self, + "TooManyRequestsException": ApiGatewayV2.TooManyRequestsException.self + ] +} + extension ApiGatewayV2ErrorType: Equatable { public static func == (lhs: ApiGatewayV2ErrorType, rhs: ApiGatewayV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AppConfig/AppConfig_api.swift b/Sources/Soto/Services/AppConfig/AppConfig_api.swift index 73944db38b7..8bc9f28dc6a 100644 --- a/Sources/Soto/Services/AppConfig/AppConfig_api.swift +++ b/Sources/Soto/Services/AppConfig/AppConfig_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppConfig/AppConfig_shapes.swift b/Sources/Soto/Services/AppConfig/AppConfig_shapes.swift index c5b7cb0cd96..25f45b218fa 100644 --- a/Sources/Soto/Services/AppConfig/AppConfig_shapes.swift +++ b/Sources/Soto/Services/AppConfig/AppConfig_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -38,6 +37,16 @@ extension AppConfig { public var description: String { return self.rawValue } } + public enum BadRequestReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidConfiguration = "InvalidConfiguration" + public var description: String { return self.rawValue } + } + + public enum BytesMeasure: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case kilobytes = "KILOBYTES" + public var description: String { return self.rawValue } + } + public enum DeletionProtectionCheck: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case accountDefault = "ACCOUNT_DEFAULT" case apply = "APPLY" @@ -259,6 +268,25 @@ extension AppConfig { } } + public struct BadRequestException: AWSErrorShape { + public let details: BadRequestDetails? + public let message: String? + public let reason: BadRequestReason? + + @inlinable + public init(details: BadRequestDetails? = nil, message: String? = nil, reason: BadRequestReason? = nil) { + self.details = details + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case details = "Details" + case message = "Message" + case reason = "Reason" + } + } + public struct Configuration: AWSDecodableShape { public static let _options: AWSShapeOptions = [.rawPayload] /// The configuration version. @@ -1840,6 +1868,36 @@ extension AppConfig { } } + public struct InvalidConfigurationDetail: AWSDecodableShape { + /// The invalid or out-of-range validation constraint in your JSON schema that failed validation. + public let constraint: String? + /// Location of the validation constraint in the configuration JSON schema that failed validation. + public let location: String? + /// The reason for an invalid configuration error. + public let reason: String? + /// The type of error for an invalid configuration. + public let type: String? + /// Details about an error with Lambda when a synchronous extension experiences an error during an invocation. + public let value: String? + + @inlinable + public init(constraint: String? = nil, location: String? = nil, reason: String? = nil, type: String? = nil, value: String? = nil) { + self.constraint = constraint + self.location = location + self.reason = reason + self.type = type + self.value = value + } + + private enum CodingKeys: String, CodingKey { + case constraint = "Constraint" + case location = "Location" + case reason = "Reason" + case type = "Type" + case value = "Value" + } + } + public struct ListApplicationsRequest: AWSEncodableShape { /// The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results. public let maxResults: Int? @@ -2212,6 +2270,44 @@ extension AppConfig { } } + public struct PayloadTooLargeException: AWSErrorShape { + public let limit: Float? + public let measure: BytesMeasure? + public let message: String? + public let size: Float? + + @inlinable + public init(limit: Float? = nil, measure: BytesMeasure? = nil, message: String? = nil, size: Float? = nil) { + self.limit = limit + self.measure = measure + self.message = message + self.size = size + } + + private enum CodingKeys: String, CodingKey { + case limit = "Limit" + case measure = "Measure" + case message = "Message" + case size = "Size" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct ResourceTags: AWSDecodableShape { /// Metadata to assign to AppConfig resources. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define. public let tags: [String: String]? @@ -2781,6 +2877,20 @@ extension AppConfig { case type = "Type" } } + + public struct BadRequestDetails: AWSDecodableShape { + /// Detailed information about the bad request exception error when creating a hosted configuration version. + public let invalidConfiguration: [InvalidConfigurationDetail]? + + @inlinable + public init(invalidConfiguration: [InvalidConfigurationDetail]? = nil) { + self.invalidConfiguration = invalidConfiguration + } + + private enum CodingKeys: String, CodingKey { + case invalidConfiguration = "InvalidConfiguration" + } + } } // MARK: - Errors @@ -2828,6 +2938,14 @@ public struct AppConfigErrorType: AWSErrorType { public static var serviceQuotaExceededException: Self { .init(.serviceQuotaExceededException) } } +extension AppConfigErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": AppConfig.BadRequestException.self, + "PayloadTooLargeException": AppConfig.PayloadTooLargeException.self, + "ResourceNotFoundException": AppConfig.ResourceNotFoundException.self + ] +} + extension AppConfigErrorType: Equatable { public static func == (lhs: AppConfigErrorType, rhs: AppConfigErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AppConfigData/AppConfigData_api.swift b/Sources/Soto/Services/AppConfigData/AppConfigData_api.swift index 8ee2cd32991..118aa7d2af2 100644 --- a/Sources/Soto/Services/AppConfigData/AppConfigData_api.swift +++ b/Sources/Soto/Services/AppConfigData/AppConfigData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppConfigData/AppConfigData_shapes.swift b/Sources/Soto/Services/AppConfigData/AppConfigData_shapes.swift index 1b16da9a664..e8343ae84a3 100644 --- a/Sources/Soto/Services/AppConfigData/AppConfigData_shapes.swift +++ b/Sources/Soto/Services/AppConfigData/AppConfigData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,8 +25,60 @@ import Foundation extension AppConfigData { // MARK: Enums + public enum BadRequestReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// Indicates there was a problem with one or more of the parameters. + /// See InvalidParameters in the BadRequestDetails for more information. + case invalidParameters = "InvalidParameters" + public var description: String { return self.rawValue } + } + + public enum InvalidParameterProblem: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// The parameter was corrupted and could not be understood by the service. + case corrupted = "Corrupted" + /// The parameter was expired and can no longer be used. + case expired = "Expired" + /// The client called the service before the time specified in the poll interval. + case pollIntervalNotSatisfied = "PollIntervalNotSatisfied" + public var description: String { return self.rawValue } + } + + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// Resource type value for the Application resource. + case application = "Application" + /// Resource type value for the Configuration resource. + case configuration = "Configuration" + /// Resource type value for the ConfigurationProfile resource. + case configurationProfile = "ConfigurationProfile" + /// Resource type value for the Deployment resource. + case deployment = "Deployment" + /// Resource type value for the Environment resource. + case environment = "Environment" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct BadRequestException: AWSErrorShape { + /// Details describing why the request was invalid. + public let details: BadRequestDetails? + public let message: String? + /// Code indicating the reason the request was invalid. + public let reason: BadRequestReason? + + @inlinable + public init(details: BadRequestDetails? = nil, message: String? = nil, reason: BadRequestReason? = nil) { + self.details = details + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case details = "Details" + case message = "Message" + case reason = "Reason" + } + } + public struct GetLatestConfigurationRequest: AWSEncodableShape { /// Token describing the current state of the configuration session. To obtain a token, first call the StartConfigurationSession API. Note that every call to GetLatestConfiguration will return a new ConfigurationToken (NextPollConfigurationToken in the response) and must be provided to subsequent GetLatestConfiguration API calls. This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException. public let configurationToken: String @@ -85,6 +136,41 @@ extension AppConfigData { private enum CodingKeys: CodingKey {} } + public struct InvalidParameterDetail: AWSDecodableShape { + /// The reason the parameter is invalid. + public let problem: InvalidParameterProblem? + + @inlinable + public init(problem: InvalidParameterProblem? = nil) { + self.problem = problem + } + + private enum CodingKeys: String, CodingKey { + case problem = "Problem" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// A map indicating which parameters in the request reference the resource that was not found. + public let referencedBy: [String: String]? + /// The type of resource that was not found. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, referencedBy: [String: String]? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.referencedBy = referencedBy + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case referencedBy = "ReferencedBy" + case resourceType = "ResourceType" + } + } + public struct StartConfigurationSessionRequest: AWSEncodableShape { /// The application ID or the application name. public let applicationIdentifier: String @@ -135,6 +221,20 @@ extension AppConfigData { case initialConfigurationToken = "InitialConfigurationToken" } } + + public struct BadRequestDetails: AWSDecodableShape { + /// One or more specified parameters are not valid for the call. + public let invalidParameters: [String: InvalidParameterDetail]? + + @inlinable + public init(invalidParameters: [String: InvalidParameterDetail]? = nil) { + self.invalidParameters = invalidParameters + } + + private enum CodingKeys: String, CodingKey { + case invalidParameters = "InvalidParameters" + } + } } // MARK: - Errors @@ -176,6 +276,13 @@ public struct AppConfigDataErrorType: AWSErrorType { public static var throttlingException: Self { .init(.throttlingException) } } +extension AppConfigDataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": AppConfigData.BadRequestException.self, + "ResourceNotFoundException": AppConfigData.ResourceNotFoundException.self + ] +} + extension AppConfigDataErrorType: Equatable { public static func == (lhs: AppConfigDataErrorType, rhs: AppConfigDataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AppFabric/AppFabric_api.swift b/Sources/Soto/Services/AppFabric/AppFabric_api.swift index f4ed9bfc432..fb304dd71fe 100644 --- a/Sources/Soto/Services/AppFabric/AppFabric_api.swift +++ b/Sources/Soto/Services/AppFabric/AppFabric_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppFabric/AppFabric_shapes.swift b/Sources/Soto/Services/AppFabric/AppFabric_shapes.swift index 2ce2f921a20..9807e90d315 100644 --- a/Sources/Soto/Services/AppFabric/AppFabric_shapes.swift +++ b/Sources/Soto/Services/AppFabric/AppFabric_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -83,6 +82,14 @@ extension AppFabric { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum Credential: AWSEncodableShape, Sendable { /// Contains API key credential information. case apiKeyCredential(ApiKeyCredential) @@ -408,6 +415,27 @@ extension AppFabric { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The resource ID. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ConnectAppAuthorizationRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request. public let appAuthorizationIdentifier: String @@ -1197,6 +1225,29 @@ extension AppFabric { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The period of time after which you should retry your request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListAppAuthorizationsRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request. public let appBundleIdentifier: String @@ -1472,6 +1523,27 @@ extension AppFabric { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The resource ID. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct S3Bucket: AWSEncodableShape & AWSDecodableShape { /// The name of the Amazon S3 bucket. public let bucketName: String @@ -1497,6 +1569,35 @@ extension AppFabric { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code for the quota exceeded. + public let quotaCode: String + /// The resource ID. + public let resourceId: String + /// The resource type. + public let resourceType: String + /// The code of the service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StartIngestionRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request. public let appBundleIdentifier: String @@ -1712,6 +1813,39 @@ extension AppFabric { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The code for the quota exceeded. + public let quotaCode: String? + /// The period of time after which you should retry your request. + public let retryAfterSeconds: Int? + /// The code of the service. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource that you want to untag. public let resourceArn: String @@ -1950,6 +2084,45 @@ extension AppFabric { } } + public struct ValidationException: AWSErrorShape { + /// The field list. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason for the exception. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message about the validation exception. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct DestinationConfiguration: AWSEncodableShape & AWSDecodableShape { /// Contains information about an audit log destination configuration. public let auditLog: AuditLogDestinationConfiguration? @@ -2031,6 +2204,17 @@ public struct AppFabricErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension AppFabricErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": AppFabric.ConflictException.self, + "InternalServerException": AppFabric.InternalServerException.self, + "ResourceNotFoundException": AppFabric.ResourceNotFoundException.self, + "ServiceQuotaExceededException": AppFabric.ServiceQuotaExceededException.self, + "ThrottlingException": AppFabric.ThrottlingException.self, + "ValidationException": AppFabric.ValidationException.self + ] +} + extension AppFabricErrorType: Equatable { public static func == (lhs: AppFabricErrorType, rhs: AppFabricErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AppIntegrations/AppIntegrations_api.swift b/Sources/Soto/Services/AppIntegrations/AppIntegrations_api.swift index a50baf7b77a..e4f2f32ea3c 100644 --- a/Sources/Soto/Services/AppIntegrations/AppIntegrations_api.swift +++ b/Sources/Soto/Services/AppIntegrations/AppIntegrations_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppIntegrations/AppIntegrations_shapes.swift b/Sources/Soto/Services/AppIntegrations/AppIntegrations_shapes.swift index 0e042809ef4..5a5fa7a9830 100644 --- a/Sources/Soto/Services/AppIntegrations/AppIntegrations_shapes.swift +++ b/Sources/Soto/Services/AppIntegrations/AppIntegrations_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppMesh/AppMesh_api.swift b/Sources/Soto/Services/AppMesh/AppMesh_api.swift index 0aad71cf075..4c171a687bf 100644 --- a/Sources/Soto/Services/AppMesh/AppMesh_api.swift +++ b/Sources/Soto/Services/AppMesh/AppMesh_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppMesh/AppMesh_shapes.swift b/Sources/Soto/Services/AppMesh/AppMesh_shapes.swift index b2cd2d5b7b5..5ad74afc890 100644 --- a/Sources/Soto/Services/AppMesh/AppMesh_shapes.swift +++ b/Sources/Soto/Services/AppMesh/AppMesh_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppRunner/AppRunner_api.swift b/Sources/Soto/Services/AppRunner/AppRunner_api.swift index ecf76076203..7766817eb71 100644 --- a/Sources/Soto/Services/AppRunner/AppRunner_api.swift +++ b/Sources/Soto/Services/AppRunner/AppRunner_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppRunner/AppRunner_shapes.swift b/Sources/Soto/Services/AppRunner/AppRunner_shapes.swift index 76b6599afc9..fe6dbd78640 100644 --- a/Sources/Soto/Services/AppRunner/AppRunner_shapes.swift +++ b/Sources/Soto/Services/AppRunner/AppRunner_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppStream/AppStream_api.swift b/Sources/Soto/Services/AppStream/AppStream_api.swift index c385393aaae..e701de16671 100644 --- a/Sources/Soto/Services/AppStream/AppStream_api.swift +++ b/Sources/Soto/Services/AppStream/AppStream_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppStream/AppStream_shapes.swift b/Sources/Soto/Services/AppStream/AppStream_shapes.swift index ce9d20db4b4..b900d295457 100644 --- a/Sources/Soto/Services/AppStream/AppStream_shapes.swift +++ b/Sources/Soto/Services/AppStream/AppStream_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppSync/AppSync_api.swift b/Sources/Soto/Services/AppSync/AppSync_api.swift index 638a5a1e315..1a55ffb79a4 100644 --- a/Sources/Soto/Services/AppSync/AppSync_api.swift +++ b/Sources/Soto/Services/AppSync/AppSync_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppSync/AppSync_shapes.swift b/Sources/Soto/Services/AppSync/AppSync_shapes.swift index eff60a9721a..9bf6c0ccdfe 100644 --- a/Sources/Soto/Services/AppSync/AppSync_shapes.swift +++ b/Sources/Soto/Services/AppSync/AppSync_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -82,6 +81,11 @@ extension AppSync { public var description: String { return self.rawValue } } + public enum BadRequestReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case codeError = "CODE_ERROR" + public var description: String { return self.rawValue } + } + public enum CacheHealthMetricsConfig: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case disabled = "DISABLED" case enabled = "ENABLED" @@ -663,6 +667,39 @@ extension AppSync { } } + public struct BadRequestDetail: AWSDecodableShape { + /// Contains the list of errors in the request. + public let codeErrors: [CodeError]? + + @inlinable + public init(codeErrors: [CodeError]? = nil) { + self.codeErrors = codeErrors + } + + private enum CodingKeys: String, CodingKey { + case codeErrors = "codeErrors" + } + } + + public struct BadRequestException: AWSErrorShape { + public let detail: BadRequestDetail? + public let message: String? + public let reason: BadRequestReason? + + @inlinable + public init(detail: BadRequestDetail? = nil, message: String? = nil, reason: BadRequestReason? = nil) { + self.detail = detail + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case detail = "detail" + case message = "message" + case reason = "reason" + } + } + public struct CachingConfig: AWSEncodableShape & AWSDecodableShape { /// The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps. public let cachingKeys: [String]? @@ -5528,6 +5565,12 @@ public struct AppSyncErrorType: AWSErrorType { public static var unauthorizedException: Self { .init(.unauthorizedException) } } +extension AppSyncErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": AppSync.BadRequestException.self + ] +} + extension AppSyncErrorType: Equatable { public static func == (lhs: AppSyncErrorType, rhs: AppSyncErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AppTest/AppTest_api.swift b/Sources/Soto/Services/AppTest/AppTest_api.swift index 21b3a2c5194..696e5438c7e 100644 --- a/Sources/Soto/Services/AppTest/AppTest_api.swift +++ b/Sources/Soto/Services/AppTest/AppTest_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AppTest/AppTest_shapes.swift b/Sources/Soto/Services/AppTest/AppTest_shapes.swift index e35b481b773..8fe15e53c53 100644 --- a/Sources/Soto/Services/AppTest/AppTest_shapes.swift +++ b/Sources/Soto/Services/AppTest/AppTest_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -137,6 +136,14 @@ extension AppTest { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum CloudFormationStepSummary: AWSDecodableShape, Sendable { /// Creates the CloudFormation summary of the step. case createCloudformation(CreateCloudFormationSummary) @@ -927,6 +934,27 @@ extension AppTest { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The resource ID of the conflicts with existing resources. + public let resourceId: String? + /// The resource type of the conflicts with existing resources. + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateCloudFormationStepInput: AWSDecodableShape { /// The CloudFormation properties of the CloudFormation step input. public let parameters: [String: String]? @@ -1789,6 +1817,29 @@ extension AppTest { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds to retry the query. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListTagsForResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -2542,6 +2593,27 @@ extension AppTest { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The resource ID of the resource not found. + public let resourceId: String? + /// The resource type of the resource not found. + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Script: AWSEncodableShape & AWSDecodableShape { /// The script location of the scripts. public let scriptLocation: String @@ -2582,6 +2654,35 @@ extension AppTest { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quote codes of AWS Application Testing that exceeded the limit. + public let quotaCode: String? + /// The resource ID of AWS Application Testing that exceeded the limit. + public let resourceId: String? + /// The resource type of AWS Application Testing that exceeded the limit. + public let resourceType: String? + /// The service code of AWS Application Testing that exceeded the limit. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct ServiceSettings: AWSEncodableShape & AWSDecodableShape { /// The KMS key ID of the service settings. public let kmsKeyId: String? @@ -3189,6 +3290,39 @@ extension AppTest { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The quota code of requests that exceed the limit. + public let quotaCode: String? + /// The number of seconds to retry after for requests that exceed the limit. + public let retryAfterSeconds: Int? + /// The service code of requests that exceed the limit. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -3421,6 +3555,45 @@ extension AppTest { } } + public struct ValidationException: AWSErrorShape { + /// The field list of the validation exception. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason for the validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message stating reason for why service validation failed. + public let message: String + /// The name of the validation exception field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct File: AWSDecodableShape { /// The file type of the file. public let fileType: CompareFileType? @@ -3540,6 +3713,17 @@ public struct AppTestErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension AppTestErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": AppTest.ConflictException.self, + "InternalServerException": AppTest.InternalServerException.self, + "ResourceNotFoundException": AppTest.ResourceNotFoundException.self, + "ServiceQuotaExceededException": AppTest.ServiceQuotaExceededException.self, + "ThrottlingException": AppTest.ThrottlingException.self, + "ValidationException": AppTest.ValidationException.self + ] +} + extension AppTestErrorType: Equatable { public static func == (lhs: AppTestErrorType, rhs: AppTestErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Appflow/Appflow_api.swift b/Sources/Soto/Services/Appflow/Appflow_api.swift index 1d868923e76..6214e4abcfb 100644 --- a/Sources/Soto/Services/Appflow/Appflow_api.swift +++ b/Sources/Soto/Services/Appflow/Appflow_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Appflow/Appflow_shapes.swift b/Sources/Soto/Services/Appflow/Appflow_shapes.swift index 050753551f0..84033cbbb50 100644 --- a/Sources/Soto/Services/Appflow/Appflow_shapes.swift +++ b/Sources/Soto/Services/Appflow/Appflow_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_api.swift b/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_api.swift index b60c76a48b4..bdba1d77424 100644 --- a/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_api.swift +++ b/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_shapes.swift b/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_shapes.swift index 5aac196cb70..94b7ed7d0cb 100644 --- a/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_shapes.swift +++ b/Sources/Soto/Services/ApplicationAutoScaling/ApplicationAutoScaling_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1298,6 +1297,23 @@ extension ApplicationAutoScaling { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN). + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct ScalableTarget: AWSDecodableShape { /// The Unix timestamp for when the scalable target was created. public let creationTime: Date @@ -1810,6 +1826,23 @@ extension ApplicationAutoScaling { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN). + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// Identifies the Application Auto Scaling scalable target from which to remove tags. For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123 To get the ARN for a scalable target, use DescribeScalableTargets. public let resourceARN: String @@ -1898,6 +1931,13 @@ public struct ApplicationAutoScalingErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ApplicationAutoScalingErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": ApplicationAutoScaling.ResourceNotFoundException.self, + "TooManyTagsException": ApplicationAutoScaling.TooManyTagsException.self + ] +} + extension ApplicationAutoScalingErrorType: Equatable { public static func == (lhs: ApplicationAutoScalingErrorType, rhs: ApplicationAutoScalingErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_api.swift b/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_api.swift index d575de3ecbf..d8f6495b8ed 100644 --- a/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_api.swift +++ b/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_shapes.swift b/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_shapes.swift index c1b9a677381..3f925b17c01 100644 --- a/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_shapes.swift +++ b/Sources/Soto/Services/ApplicationCostProfiler/ApplicationCostProfiler_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_api.swift b/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_api.swift index 43d27396c4e..3bbf140a962 100644 --- a/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_api.swift +++ b/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_shapes.swift b/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_shapes.swift index cf097ff0044..5753d58b347 100644 --- a/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_shapes.swift +++ b/Sources/Soto/Services/ApplicationDiscoveryService/ApplicationDiscoveryService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_api.swift b/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_api.swift index b91986bc721..a8d55267d35 100644 --- a/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_api.swift +++ b/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_shapes.swift b/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_shapes.swift index c9cd8c13696..af7b0d319d8 100644 --- a/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_shapes.swift +++ b/Sources/Soto/Services/ApplicationInsights/ApplicationInsights_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1975,6 +1974,23 @@ extension ApplicationInsights { public init() {} } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the resource with too many tags. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the application that you want to remove one or more tags from. public let resourceARN: String @@ -2443,6 +2459,12 @@ public struct ApplicationInsightsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ApplicationInsightsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "TooManyTagsException": ApplicationInsights.TooManyTagsException.self + ] +} + extension ApplicationInsightsErrorType: Equatable { public static func == (lhs: ApplicationInsightsErrorType, rhs: ApplicationInsightsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_api.swift b/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_api.swift index b2ab65073bc..b036d13ce36 100644 --- a/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_api.swift +++ b/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_shapes.swift b/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_shapes.swift index 4c7cf81ddb3..1cc6fd7c8b1 100644 --- a/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_shapes.swift +++ b/Sources/Soto/Services/ApplicationSignals/ApplicationSignals_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1388,6 +1387,27 @@ extension ApplicationSignals { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Can't find the resource id. + public let resourceId: String + /// The resource type is not valid. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct RollingInterval: AWSEncodableShape & AWSDecodableShape { /// Specifies the duration of each rolling interval. For example, if Duration is 7 and DurationUnit is DAY, each rolling interval is seven days. public let duration: Int @@ -2052,6 +2072,12 @@ public struct ApplicationSignalsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ApplicationSignalsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": ApplicationSignals.ResourceNotFoundException.self + ] +} + extension ApplicationSignalsErrorType: Equatable { public static func == (lhs: ApplicationSignalsErrorType, rhs: ApplicationSignalsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Artifact/Artifact_api.swift b/Sources/Soto/Services/Artifact/Artifact_api.swift index 2781a17651c..b3763bef19e 100644 --- a/Sources/Soto/Services/Artifact/Artifact_api.swift +++ b/Sources/Soto/Services/Artifact/Artifact_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Artifact/Artifact_shapes.swift b/Sources/Soto/Services/Artifact/Artifact_shapes.swift index 0b4cdd89898..ebcd106de5a 100644 --- a/Sources/Soto/Services/Artifact/Artifact_shapes.swift +++ b/Sources/Soto/Services/Artifact/Artifact_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -70,6 +69,15 @@ extension Artifact { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case invalidToken = "invalidToken" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AccountSettings: AWSDecodableShape { @@ -86,6 +94,27 @@ extension Artifact { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// Identifier of the affected resource. + public let resourceId: String + /// Type of the affected resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CustomerAgreementSummary: AWSDecodableShape { /// Terms required to accept the agreement resource. public let acceptanceTerms: [String]? @@ -301,6 +330,29 @@ extension Artifact { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// Number of seconds in which the caller can retry the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListCustomerAgreementsRequest: AWSEncodableShape { /// Maximum number of resources to return in the paginated response. public let maxResults: Int? @@ -588,6 +640,128 @@ extension Artifact { case version = "version" } } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Identifier of the affected resource. + public let resourceId: String + /// Type of the affected resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// Code for the affected quota. + public let quotaCode: String + /// Identifier of the affected resource. + public let resourceId: String + /// Type of the affected resource. + public let resourceType: String + /// Code for the affected service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Code for the affected quota. + public let quotaCode: String? + /// Number of seconds in which the caller can retry the request. + public let retryAfterSeconds: Int? + /// Code for the affected service. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + + public struct ValidationException: AWSErrorShape { + /// The field that caused the error, if applicable. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// Reason the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Message describing why the field failed validation. + public let message: String + /// Name of validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -638,6 +812,17 @@ public struct ArtifactErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ArtifactErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Artifact.ConflictException.self, + "InternalServerException": Artifact.InternalServerException.self, + "ResourceNotFoundException": Artifact.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Artifact.ServiceQuotaExceededException.self, + "ThrottlingException": Artifact.ThrottlingException.self, + "ValidationException": Artifact.ValidationException.self + ] +} + extension ArtifactErrorType: Equatable { public static func == (lhs: ArtifactErrorType, rhs: ArtifactErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Athena/Athena_api.swift b/Sources/Soto/Services/Athena/Athena_api.swift index c4128e21d22..78c4dd5b351 100644 --- a/Sources/Soto/Services/Athena/Athena_api.swift +++ b/Sources/Soto/Services/Athena/Athena_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Athena/Athena_shapes.swift b/Sources/Soto/Services/Athena/Athena_shapes.swift index 1f399d95b12..406ec0290cf 100644 --- a/Sources/Soto/Services/Athena/Athena_shapes.swift +++ b/Sources/Soto/Services/Athena/Athena_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -174,6 +173,11 @@ extension Athena { public var description: String { return self.rawValue } } + public enum ThrottleReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case concurrentQueryLimitExceeded = "CONCURRENT_QUERY_LIMIT_EXCEEDED" + public var description: String { return self.rawValue } + } + public enum WorkGroupState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case disabled = "DISABLED" case enabled = "ENABLED" @@ -2253,6 +2257,22 @@ extension Athena { } } + public struct InvalidRequestException: AWSErrorShape { + public let athenaErrorCode: String? + public let message: String? + + @inlinable + public init(athenaErrorCode: String? = nil, message: String? = nil) { + self.athenaErrorCode = athenaErrorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case athenaErrorCode = "AthenaErrorCode" + case message = "Message" + } + } + public struct ListApplicationDPUSizesInput: AWSEncodableShape { /// Specifies the maximum number of results to return. public let maxResults: Int? @@ -3551,6 +3571,23 @@ extension Athena { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The name of the Amazon resource. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct ResultConfiguration: AWSEncodableShape & AWSDecodableShape { /// Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ACL configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. For more information, see WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings Override Client-Side Settings. public let aclConfiguration: AclConfiguration? @@ -4219,6 +4256,22 @@ extension Athena { } } + public struct TooManyRequestsException: AWSErrorShape { + public let message: String? + public let reason: ThrottleReason? + + @inlinable + public init(message: String? = nil, reason: ThrottleReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct UnprocessedNamedQueryId: AWSDecodableShape { /// The error code returned when the processing request for the named query failed, if applicable. public let errorCode: String? @@ -4850,6 +4903,14 @@ public struct AthenaErrorType: AWSErrorType { public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) } } +extension AthenaErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidRequestException": Athena.InvalidRequestException.self, + "ResourceNotFoundException": Athena.ResourceNotFoundException.self, + "TooManyRequestsException": Athena.TooManyRequestsException.self + ] +} + extension AthenaErrorType: Equatable { public static func == (lhs: AthenaErrorType, rhs: AthenaErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AuditManager/AuditManager_api.swift b/Sources/Soto/Services/AuditManager/AuditManager_api.swift index eef9aeceda4..528962f0941 100644 --- a/Sources/Soto/Services/AuditManager/AuditManager_api.swift +++ b/Sources/Soto/Services/AuditManager/AuditManager_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AuditManager/AuditManager_shapes.swift b/Sources/Soto/Services/AuditManager/AuditManager_shapes.swift index 6fac3be392e..c3f08445e7f 100644 --- a/Sources/Soto/Services/AuditManager/AuditManager_shapes.swift +++ b/Sources/Soto/Services/AuditManager/AuditManager_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -229,6 +228,14 @@ extension AuditManager { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AWSAccount: AWSEncodableShape & AWSDecodableShape { @@ -4206,6 +4213,27 @@ extension AuditManager { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The unique identifier for the resource. + public let resourceId: String + /// The type of resource that's affected by the error. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Role: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) of the IAM role. public let roleArn: String @@ -5111,6 +5139,45 @@ extension AuditManager { case validationErrors = "validationErrors" } } + + public struct ValidationException: AWSErrorShape { + /// The fields that caused the error, if applicable. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason the request failed validation. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The body of the error message. + public let message: String + /// The name of the validation error. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -5158,6 +5225,13 @@ public struct AuditManagerErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension AuditManagerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": AuditManager.ResourceNotFoundException.self, + "ValidationException": AuditManager.ValidationException.self + ] +} + extension AuditManagerErrorType: Equatable { public static func == (lhs: AuditManagerErrorType, rhs: AuditManagerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/AutoScaling/AutoScaling_api.swift b/Sources/Soto/Services/AutoScaling/AutoScaling_api.swift index 53631c2854e..79944b3b581 100644 --- a/Sources/Soto/Services/AutoScaling/AutoScaling_api.swift +++ b/Sources/Soto/Services/AutoScaling/AutoScaling_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AutoScaling/AutoScaling_shapes.swift b/Sources/Soto/Services/AutoScaling/AutoScaling_shapes.swift index 6d4787b1be4..3c48caebd5d 100644 --- a/Sources/Soto/Services/AutoScaling/AutoScaling_shapes.swift +++ b/Sources/Soto/Services/AutoScaling/AutoScaling_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_api.swift b/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_api.swift index a53f5c567a2..d54ec9c74e3 100644 --- a/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_api.swift +++ b/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_shapes.swift b/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_shapes.swift index b487ed80fa6..44adc3adae1 100644 --- a/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_shapes.swift +++ b/Sources/Soto/Services/AutoScalingPlans/AutoScalingPlans_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/B2bi/B2bi_api.swift b/Sources/Soto/Services/B2bi/B2bi_api.swift index 5278d7341ae..c724b840abd 100644 --- a/Sources/Soto/Services/B2bi/B2bi_api.swift +++ b/Sources/Soto/Services/B2bi/B2bi_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/B2bi/B2bi_shapes.swift b/Sources/Soto/Services/B2bi/B2bi_shapes.swift index 4c8d4685b02..28e0b687fd6 100644 --- a/Sources/Soto/Services/B2bi/B2bi_shapes.swift +++ b/Sources/Soto/Services/B2bi/B2bi_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1644,6 +1643,29 @@ extension B2bi { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The server attempts to retry a failed command. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListCapabilitiesRequest: AWSEncodableShape { /// Specifies the maximum number of capabilities to return. public let maxResults: Int? @@ -2072,6 +2094,35 @@ extension B2bi { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota that was exceeded, which caused the exception. + public let quotaCode: String + /// The ID for the resource that exceeded the quota, which caused the exception. + public let resourceId: String + /// The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the exception. + public let resourceType: String + /// The code responsible for exceeding the quota, which caused the exception. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StartTransformerJobRequest: AWSEncodableShape { /// Reserved for future use. public let clientToken: String? @@ -2298,6 +2349,29 @@ extension B2bi { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The server attempts to retry a command that was throttled. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct TransformerSummary: AWSDecodableShape { /// Returns a timestamp indicating when the transformer was created. For example, 2023-07-20T19:58:44.624Z. @CustomCoding @@ -3265,6 +3339,14 @@ public struct B2biErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension B2biErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerException": B2bi.InternalServerException.self, + "ServiceQuotaExceededException": B2bi.ServiceQuotaExceededException.self, + "ThrottlingException": B2bi.ThrottlingException.self + ] +} + extension B2biErrorType: Equatable { public static func == (lhs: B2biErrorType, rhs: B2biErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BCMDataExports/BCMDataExports_api.swift b/Sources/Soto/Services/BCMDataExports/BCMDataExports_api.swift index 1bd2b90558e..dae7816b382 100644 --- a/Sources/Soto/Services/BCMDataExports/BCMDataExports_api.swift +++ b/Sources/Soto/Services/BCMDataExports/BCMDataExports_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BCMDataExports/BCMDataExports_shapes.swift b/Sources/Soto/Services/BCMDataExports/BCMDataExports_shapes.swift index 9af7dd34abb..e433b9eb68e 100644 --- a/Sources/Soto/Services/BCMDataExports/BCMDataExports_shapes.swift +++ b/Sources/Soto/Services/BCMDataExports/BCMDataExports_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -78,6 +77,14 @@ extension BCMDataExports { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct Column: AWSDecodableShape { @@ -706,6 +713,27 @@ extension BCMDataExports { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier of the resource that was not found. + public let resourceId: String + /// The type of the resource that was not found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ResourceTag: AWSEncodableShape & AWSDecodableShape { /// The key that's associated with the tag. public let key: String @@ -791,6 +819,35 @@ extension BCMDataExports { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota code that was exceeded. + public let quotaCode: String + /// The identifier of the resource that exceeded quota. + public let resourceId: String? + /// The type of the resource that exceeded quota. + public let resourceType: String? + /// The service code that exceeded quota. It will always be “AWSBillingAndCostManagementDataExports”. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct Table: AWSDecodableShape { /// The description for the table. public let description: String? @@ -871,6 +928,27 @@ extension BCMDataExports { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The quota code that exceeded the throttling limit. + public let quotaCode: String? + /// The service code that exceeded the throttling limit. It will always be “AWSBillingAndCostManagementDataExports”. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The unique identifier for the resource. public let resourceArn: String @@ -942,6 +1020,45 @@ extension BCMDataExports { case exportArn = "ExportArn" } } + + public struct ValidationException: AWSErrorShape { + /// The list of fields that are invalid. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason for the validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message with the reason for the validation exception error. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } } // MARK: - Errors @@ -986,6 +1103,15 @@ public struct BCMDataExportsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BCMDataExportsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": BCMDataExports.ResourceNotFoundException.self, + "ServiceQuotaExceededException": BCMDataExports.ServiceQuotaExceededException.self, + "ThrottlingException": BCMDataExports.ThrottlingException.self, + "ValidationException": BCMDataExports.ValidationException.self + ] +} + extension BCMDataExportsErrorType: Equatable { public static func == (lhs: BCMDataExportsErrorType, rhs: BCMDataExportsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_api.swift b/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_api.swift index 8a9d1febef4..3b193f342f4 100644 --- a/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_api.swift +++ b/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_shapes.swift b/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_shapes.swift index 49b881b8760..7d0f5e66349 100644 --- a/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_shapes.swift +++ b/Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1738,6 +1737,27 @@ extension BCMPricingCalculator { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The identifier of the resource that was not found. + public let resourceId: String + /// The type of the resource that was not found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CostAmount: AWSDecodableShape { /// The numeric value of the cost. public let amount: Double? @@ -3165,6 +3185,56 @@ extension BCMPricingCalculator { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier of the resource that was not found. + public let resourceId: String + /// The type of the resource that was not found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota code that was exceeded. + public let quotaCode: String? + /// The identifier of the resource that exceeded quota. + public let resourceId: String + /// The type of the resource that exceeded quota. + public let resourceType: String + /// The service code that exceeded quota. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String, resourceType: String, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource to add tags to. public let arn: String @@ -3734,6 +3804,14 @@ public struct BCMPricingCalculatorErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BCMPricingCalculatorErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": BCMPricingCalculator.ConflictException.self, + "ResourceNotFoundException": BCMPricingCalculator.ResourceNotFoundException.self, + "ServiceQuotaExceededException": BCMPricingCalculator.ServiceQuotaExceededException.self + ] +} + extension BCMPricingCalculatorErrorType: Equatable { public static func == (lhs: BCMPricingCalculatorErrorType, rhs: BCMPricingCalculatorErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Backup/Backup_api.swift b/Sources/Soto/Services/Backup/Backup_api.swift index bc01d076175..e910b54d4ab 100644 --- a/Sources/Soto/Services/Backup/Backup_api.swift +++ b/Sources/Soto/Services/Backup/Backup_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Backup/Backup_shapes.swift b/Sources/Soto/Services/Backup/Backup_shapes.swift index f8b70d9b4bd..033b67c47ba 100644 --- a/Sources/Soto/Services/Backup/Backup_shapes.swift +++ b/Sources/Soto/Services/Backup/Backup_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -237,6 +236,34 @@ extension Backup { } } + public struct AlreadyExistsException: AWSErrorShape { + public let arn: String? + public let code: String? + public let context: String? + public let creatorRequestId: String? + public let message: String? + public let type: String? + + @inlinable + public init(arn: String? = nil, code: String? = nil, context: String? = nil, creatorRequestId: String? = nil, message: String? = nil, type: String? = nil) { + self.arn = arn + self.code = code + self.context = context + self.creatorRequestId = creatorRequestId + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case arn = "Arn" + case code = "Code" + case context = "Context" + case creatorRequestId = "CreatorRequestId" + case message = "Message" + case type = "Type" + } + } + public struct BackupJob: AWSDecodableShape { /// The account ID that owns the backup job. public let accountId: String? @@ -870,6 +897,28 @@ extension Backup { } } + public struct ConflictException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct ControlInputParameter: AWSEncodableShape & AWSDecodableShape { /// The name of a parameter, for example, BackupPlanFrequency. public let parameterName: String? @@ -1883,6 +1932,28 @@ extension Backup { private enum CodingKeys: CodingKey {} } + public struct DependencyFailureException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct DescribeBackupJobInput: AWSEncodableShape { /// Uniquely identifies a request to Backup to back up a resource. public let backupJobId: String @@ -3461,6 +3532,72 @@ extension Backup { } } + public struct InvalidParameterValueException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + + public struct InvalidRequestException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + + public struct InvalidResourceStateException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct KeyValue: AWSEncodableShape & AWSDecodableShape { /// The tag key (String). The key can't start with aws:. Length Constraints: Minimum length of 1. Maximum length of 128. Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$ public let key: String @@ -3539,6 +3676,28 @@ extension Backup { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct ListBackupJobSummariesInput: AWSEncodableShape { /// Returns the job count for the specified account. If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned. Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. public let accountId: String? @@ -5006,6 +5165,28 @@ extension Backup { } } + public struct MissingParameterValueException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct ProtectedResource: AWSDecodableShape { /// The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public let lastBackupTime: Date? @@ -5593,6 +5774,28 @@ extension Backup { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct RestoreJobCreator: AWSDecodableShape { /// An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan. public let restoreTestingPlanArn: String? @@ -6061,6 +6264,28 @@ extension Backup { } } + public struct ServiceUnavailableException: AWSErrorShape { + public let code: String? + public let context: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, context: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.context = context + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case context = "Context" + case message = "Message" + case type = "Type" + } + } + public struct StartBackupJobInput: AWSEncodableShape { /// The backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs. Valid values: Set to "WindowsVSS":"enabled" to enable the WindowsVSS backup option and create a Windows VSS backup. Set to "WindowsVSS""disabled" to create a regular backup. The WindowsVSS option is not enabled by default. public let backupOptions: [String: String]? @@ -6888,6 +7113,21 @@ public struct BackupErrorType: AWSErrorType { public static var serviceUnavailableException: Self { .init(.serviceUnavailableException) } } +extension BackupErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AlreadyExistsException": Backup.AlreadyExistsException.self, + "ConflictException": Backup.ConflictException.self, + "DependencyFailureException": Backup.DependencyFailureException.self, + "InvalidParameterValueException": Backup.InvalidParameterValueException.self, + "InvalidRequestException": Backup.InvalidRequestException.self, + "InvalidResourceStateException": Backup.InvalidResourceStateException.self, + "LimitExceededException": Backup.LimitExceededException.self, + "MissingParameterValueException": Backup.MissingParameterValueException.self, + "ResourceNotFoundException": Backup.ResourceNotFoundException.self, + "ServiceUnavailableException": Backup.ServiceUnavailableException.self + ] +} + extension BackupErrorType: Equatable { public static func == (lhs: BackupErrorType, rhs: BackupErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BackupGateway/BackupGateway_api.swift b/Sources/Soto/Services/BackupGateway/BackupGateway_api.swift index 749cc485452..c29a2742437 100644 --- a/Sources/Soto/Services/BackupGateway/BackupGateway_api.swift +++ b/Sources/Soto/Services/BackupGateway/BackupGateway_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BackupGateway/BackupGateway_shapes.swift b/Sources/Soto/Services/BackupGateway/BackupGateway_shapes.swift index f30fb902735..fb3e005e674 100644 --- a/Sources/Soto/Services/BackupGateway/BackupGateway_shapes.swift +++ b/Sources/Soto/Services/BackupGateway/BackupGateway_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -50,6 +49,23 @@ extension BackupGateway { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// A description of why you have insufficient permissions. + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct AssociateGatewayToServerInput: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region. public let gatewayArn: String @@ -144,6 +160,23 @@ extension BackupGateway { } } + public struct ConflictException: AWSErrorShape { + /// A description of why the operation is not supported. + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct CreateGatewayInput: AWSEncodableShape { /// The activation key of the created gateway. public let activationKey: String @@ -1045,6 +1078,23 @@ extension BackupGateway { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// A description of which resource wasn't found. + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct StartVirtualMachinesMetadataSyncInput: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the hypervisor. public let hypervisorArn: String @@ -1555,6 +1605,14 @@ public struct BackupGatewayErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BackupGatewayErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": BackupGateway.AccessDeniedException.self, + "ConflictException": BackupGateway.ConflictException.self, + "ResourceNotFoundException": BackupGateway.ResourceNotFoundException.self + ] +} + extension BackupGatewayErrorType: Equatable { public static func == (lhs: BackupGatewayErrorType, rhs: BackupGatewayErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BackupSearch/BackupSearch_api.swift b/Sources/Soto/Services/BackupSearch/BackupSearch_api.swift index 6d14d58dcef..422625cd955 100644 --- a/Sources/Soto/Services/BackupSearch/BackupSearch_api.swift +++ b/Sources/Soto/Services/BackupSearch/BackupSearch_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BackupSearch/BackupSearch_shapes.swift b/Sources/Soto/Services/BackupSearch/BackupSearch_shapes.swift index 33b6ce1042c..ca23188eb71 100644 --- a/Sources/Soto/Services/BackupSearch/BackupSearch_shapes.swift +++ b/Sources/Soto/Services/BackupSearch/BackupSearch_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -127,6 +126,28 @@ extension BackupSearch { } } + public struct ConflictException: AWSErrorShape { + /// Updating or deleting a resource can cause an inconsistent state. + public let message: String + /// Identifier of the resource affected. + public let resourceId: String + /// Type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CurrentSearchProgress: AWSDecodableShape { /// This number is the sum of all items that match the item filters in a search job in progress. public let itemsMatchedCount: Int64? @@ -661,6 +682,28 @@ extension BackupSearch { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// Request references a resource which does not exist. + public let message: String + /// Hypothetical identifier of the resource affected. + public let resourceId: String + /// Hypothetical type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct S3ExportSpecification: AWSEncodableShape & AWSDecodableShape { /// This specifies the destination Amazon S3 bucket for the export job. public let destinationBucket: String @@ -899,6 +942,36 @@ extension BackupSearch { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// This request was not successful due to a service quota exceeding limits. + public let message: String + /// This is the code specific to the quota type. + public let quotaCode: String + /// Identifier of the resource. + public let resourceId: String + /// Type of resource. + public let resourceType: String + /// This is the code unique to the originating service with the quota. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StartSearchJobInput: AWSEncodableShape { /// Include this parameter to allow multiple identical calls for idempotency. A client token is valid for 8 hours after the first request that uses it is completed. After this time, any request with the same token is treated as a new request. public let clientToken: String? @@ -1189,6 +1262,14 @@ public struct BackupSearchErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BackupSearchErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": BackupSearch.ConflictException.self, + "ResourceNotFoundException": BackupSearch.ResourceNotFoundException.self, + "ServiceQuotaExceededException": BackupSearch.ServiceQuotaExceededException.self + ] +} + extension BackupSearchErrorType: Equatable { public static func == (lhs: BackupSearchErrorType, rhs: BackupSearchErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Batch/Batch_api.swift b/Sources/Soto/Services/Batch/Batch_api.swift index 012a51f3865..3c8a3691cb3 100644 --- a/Sources/Soto/Services/Batch/Batch_api.swift +++ b/Sources/Soto/Services/Batch/Batch_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Batch/Batch_shapes.swift b/Sources/Soto/Services/Batch/Batch_shapes.swift index 2d8ec2d18f0..5726c82ec3f 100644 --- a/Sources/Soto/Services/Batch/Batch_shapes.swift +++ b/Sources/Soto/Services/Batch/Batch_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Bedrock/Bedrock_api.swift b/Sources/Soto/Services/Bedrock/Bedrock_api.swift index 812563c3fbf..58bd0c3b7a3 100644 --- a/Sources/Soto/Services/Bedrock/Bedrock_api.swift +++ b/Sources/Soto/Services/Bedrock/Bedrock_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Bedrock/Bedrock_shapes.swift b/Sources/Soto/Services/Bedrock/Bedrock_shapes.swift index 05f2a799a9c..12714cb2ae7 100644 --- a/Sources/Soto/Services/Bedrock/Bedrock_shapes.swift +++ b/Sources/Soto/Services/Bedrock/Bedrock_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -6491,6 +6490,23 @@ extension Bedrock { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the resource with too many tags. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct TrainingDataConfig: AWSEncodableShape & AWSDecodableShape { /// Settings for using invocation logs to customize a model. public let invocationLogsConfig: InvocationLogsConfig? @@ -7127,6 +7143,12 @@ public struct BedrockErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BedrockErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "TooManyTagsException": Bedrock.TooManyTagsException.self + ] +} + extension BedrockErrorType: Equatable { public static func == (lhs: BedrockErrorType, rhs: BedrockErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BedrockAgent/BedrockAgent_api.swift b/Sources/Soto/Services/BedrockAgent/BedrockAgent_api.swift index 0b235e78111..194500cb7f9 100644 --- a/Sources/Soto/Services/BedrockAgent/BedrockAgent_api.swift +++ b/Sources/Soto/Services/BedrockAgent/BedrockAgent_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BedrockAgent/BedrockAgent_shapes.swift b/Sources/Soto/Services/BedrockAgent/BedrockAgent_shapes.swift index 5186a6cc6f6..e959ced4786 100644 --- a/Sources/Soto/Services/BedrockAgent/BedrockAgent_shapes.swift +++ b/Sources/Soto/Services/BedrockAgent/BedrockAgent_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -10777,6 +10776,41 @@ extension BedrockAgent { } } + public struct ValidationException: AWSErrorShape { + /// A list of objects containing fields that caused validation errors and their corresponding validation error messages. + public let fieldList: [ValidationExceptionField]? + public let message: String? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil) { + self.fieldList = fieldList + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message describing why this field failed validation. + public let message: String + /// The name of the field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VectorIngestionConfiguration: AWSEncodableShape & AWSDecodableShape { /// Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. public let chunkingConfiguration: ChunkingConfiguration? @@ -11126,6 +11160,12 @@ public struct BedrockAgentErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BedrockAgentErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": BedrockAgent.ValidationException.self + ] +} + extension BedrockAgentErrorType: Equatable { public static func == (lhs: BedrockAgentErrorType, rhs: BedrockAgentErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_api.swift b/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_api.swift index e32eaa66a3a..37dbd500c11 100644 --- a/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_api.swift +++ b/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_shapes.swift b/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_shapes.swift index 81af8dd38d7..5f099370caf 100644 --- a/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_shapes.swift +++ b/Sources/Soto/Services/BedrockAgentRuntime/BedrockAgentRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1897,7 +1896,7 @@ extension BedrockAgentRuntime { } } - public struct BadGatewayException: AWSDecodableShape { + public struct BadGatewayException: AWSErrorShape { public let message: String? /// The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS. public let resourceName: String? @@ -2514,7 +2513,7 @@ extension BedrockAgentRuntime { public init() {} } - public struct DependencyFailedException: AWSDecodableShape { + public struct DependencyFailedException: AWSErrorShape { public let message: String? /// The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS. public let resourceName: String? @@ -4004,7 +4003,7 @@ extension BedrockAgentRuntime { } } - public struct InternalServerException: AWSDecodableShape { + public struct InternalServerException: AWSErrorShape { public let message: String? /// The reason for the exception. If the reason is BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE, the model invocation service is unavailable. Retry your request. public let reason: String? @@ -7388,6 +7387,14 @@ public struct BedrockAgentRuntimeErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BedrockAgentRuntimeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadGatewayException": BedrockAgentRuntime.BadGatewayException.self, + "DependencyFailedException": BedrockAgentRuntime.DependencyFailedException.self, + "InternalServerException": BedrockAgentRuntime.InternalServerException.self + ] +} + extension BedrockAgentRuntimeErrorType: Equatable { public static func == (lhs: BedrockAgentRuntimeErrorType, rhs: BedrockAgentRuntimeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_api.swift b/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_api.swift index 3eb7a460fe6..79cf21ff754 100644 --- a/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_api.swift +++ b/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_shapes.swift b/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_shapes.swift index 75eef4d0a47..30008e9bcdf 100644 --- a/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_shapes.swift +++ b/Sources/Soto/Services/BedrockDataAutomation/BedrockDataAutomation_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1404,6 +1403,38 @@ extension BedrockDataAutomation { } } + public struct ValidationException: AWSErrorShape { + public let fieldList: [ValidationExceptionField]? + public let message: String? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil) { + self.fieldList = fieldList + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + public let message: String + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VideoBoundingBox: AWSEncodableShape & AWSDecodableShape { public let state: State @@ -1530,6 +1561,12 @@ public struct BedrockDataAutomationErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BedrockDataAutomationErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": BedrockDataAutomation.ValidationException.self + ] +} + extension BedrockDataAutomationErrorType: Equatable { public static func == (lhs: BedrockDataAutomationErrorType, rhs: BedrockDataAutomationErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_api.swift b/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_api.swift index 5f113c9388b..2744e4da3c3 100644 --- a/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_api.swift +++ b/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_shapes.swift b/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_shapes.swift index b665af05179..b0c708d0aa2 100644 --- a/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_shapes.swift +++ b/Sources/Soto/Services/BedrockDataAutomationRuntime/BedrockDataAutomationRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_api.swift b/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_api.swift index 30c2698a0c0..ca9c2875b32 100644 --- a/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_api.swift +++ b/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_shapes.swift b/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_shapes.swift index 2b472aaa0b7..13126cc1ce9 100644 --- a/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_shapes.swift +++ b/Sources/Soto/Services/BedrockRuntime/BedrockRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2416,7 +2415,28 @@ extension BedrockRuntime { } } - public struct ModelStreamErrorException: AWSDecodableShape { + public struct ModelErrorException: AWSErrorShape { + public let message: String? + /// The original status code. + public let originalStatusCode: Int? + /// The resource name. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, originalStatusCode: Int? = nil, resourceName: String? = nil) { + self.message = message + self.originalStatusCode = originalStatusCode + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case originalStatusCode = "originalStatusCode" + case resourceName = "resourceName" + } + } + + public struct ModelStreamErrorException: AWSErrorShape { public let message: String? /// The original message. public let originalMessage: String? @@ -3082,6 +3102,13 @@ public struct BedrockRuntimeErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BedrockRuntimeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ModelErrorException": BedrockRuntime.ModelErrorException.self, + "ModelStreamErrorException": BedrockRuntime.ModelStreamErrorException.self + ] +} + extension BedrockRuntimeErrorType: Equatable { public static func == (lhs: BedrockRuntimeErrorType, rhs: BedrockRuntimeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Billing/Billing_api.swift b/Sources/Soto/Services/Billing/Billing_api.swift index 25000817d91..7365b55bbeb 100644 --- a/Sources/Soto/Services/Billing/Billing_api.swift +++ b/Sources/Soto/Services/Billing/Billing_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Billing/Billing_shapes.swift b/Sources/Soto/Services/Billing/Billing_shapes.swift index 017adfb0fbc..2851ff003fb 100644 --- a/Sources/Soto/Services/Billing/Billing_shapes.swift +++ b/Sources/Soto/Services/Billing/Billing_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -38,6 +37,14 @@ extension Billing { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct ActiveTimeRange: AWSEncodableShape { @@ -130,6 +137,27 @@ extension Billing { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The identifier for the service resource associated with the request. + public let resourceId: String + /// The type of resource associated with the request. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateBillingViewRequest: AWSEncodableShape { /// A unique, case-sensitive identifier you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. If the original request completes successfully, any subsequent retries complete successfully without performing any further actions with an idempotent request. public let clientToken: String? @@ -505,6 +533,27 @@ extension Billing { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Value is a list of resource IDs that were not found. + public let resourceId: String + /// Value is the type of resource that was not found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ResourceTag: AWSEncodableShape & AWSDecodableShape { /// The key that's associated with the tag. public let key: String @@ -529,6 +578,35 @@ extension Billing { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The container for the quotaCode. + public let quotaCode: String + /// The ID of the resource. + public let resourceId: String + /// The type of Amazon Web Services resource. + public let resourceType: String + /// The container for the serviceCode. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -672,6 +750,45 @@ extension Billing { case updatedAt = "updatedAt" } } + + public struct ValidationException: AWSErrorShape { + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message describing why the field failed validation. + public let message: String + /// The name of the field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -722,6 +839,15 @@ public struct BillingErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BillingErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Billing.ConflictException.self, + "ResourceNotFoundException": Billing.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Billing.ServiceQuotaExceededException.self, + "ValidationException": Billing.ValidationException.self + ] +} + extension BillingErrorType: Equatable { public static func == (lhs: BillingErrorType, rhs: BillingErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Billingconductor/Billingconductor_api.swift b/Sources/Soto/Services/Billingconductor/Billingconductor_api.swift index a099300c21f..eb5f8dfed6f 100644 --- a/Sources/Soto/Services/Billingconductor/Billingconductor_api.swift +++ b/Sources/Soto/Services/Billingconductor/Billingconductor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Billingconductor/Billingconductor_shapes.swift b/Sources/Soto/Services/Billingconductor/Billingconductor_shapes.swift index 37d39bd8a24..edb42baec12 100644 --- a/Sources/Soto/Services/Billingconductor/Billingconductor_shapes.swift +++ b/Sources/Soto/Services/Billingconductor/Billingconductor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -41,6 +40,15 @@ extension Billingconductor { public var description: String { return self.rawValue } } + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case pricingPlanAttachedToBillingGroupDeleteConflict = "PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT" + case pricingRuleAttachedToPricingPlanDeleteConflict = "PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT" + case pricingRuleInPricingPlanConflict = "PRICING_RULE_IN_PRICING_PLAN_CONFLICT" + case resourceNameConflict = "RESOURCE_NAME_CONFLICT" + case writeConflictRetry = "WRITE_CONFLICT_RETRY" + public var description: String { return self.rawValue } + } + public enum CurrencyCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case cny = "CNY" case usd = "USD" @@ -95,6 +103,70 @@ extension Billingconductor { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountsAlreadyAssociated = "ACCOUNTS_ALREADY_ASSOCIATED" + case accountsNotAssociated = "ACCOUNTS_NOT_ASSOCIATED" + case cannotDeleteAutoAssociateBillingGroup = "CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP" + case cannotParse = "CANNOT_PARSE" + case customLineItemAssociationExists = "CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS" + case duplicateAccount = "DUPLICATE_ACCOUNT" + case duplicatePricingruleArns = "DUPLICATE_PRICINGRULE_ARNS" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case illegalAccounts = "ILLEGAL_ACCOUNTS" + case illegalAccountId = "ILLEGAL_ACCOUNT_ID" + case illegalBillingEntity = "ILLEGAL_BILLING_ENTITY" + case illegalBillingPeriod = "ILLEGAL_BILLING_PERIOD" + case illegalBillingPeriodRange = "ILLEGAL_BILLING_PERIOD_RANGE" + case illegalChargeDetails = "ILLEGAL_CHARGE_DETAILS" + case illegalChildAssociateResource = "ILLEGAL_CHILD_ASSOCIATE_RESOURCE" + case illegalCustomlineitem = "ILLEGAL_CUSTOMLINEITEM" + case illegalCustomlineitemModification = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION" + case illegalCustomlineitemUpdate = "ILLEGAL_CUSTOMLINEITEM_UPDATE" + case illegalEndedBillinggroup = "ILLEGAL_ENDED_BILLINGGROUP" + case illegalExpression = "ILLEGAL_EXPRESSION" + case illegalModifierPercentage = "ILLEGAL_MODIFIER_PERCENTAGE" + case illegalOperation = "ILLEGAL_OPERATION" + case illegalPrimaryAccount = "ILLEGAL_PRIMARY_ACCOUNT" + case illegalResourceArns = "ILLEGAL_RESOURCE_ARNS" + case illegalScope = "ILLEGAL_SCOPE" + case illegalService = "ILLEGAL_SERVICE" + case illegalTieringInput = "ILLEGAL_TIERING_INPUT" + case illegalType = "ILLEGAL_TYPE" + case illegalUpdateChargeDetails = "ILLEGAL_UPDATE_CHARGE_DETAILS" + case illegalUsageType = "ILLEGAL_USAGE_TYPE" + case invalidArn = "INVALID_ARN" + case invalidBillingviewArn = "INVALID_BILLINGVIEW_ARN" + case invalidBillingGroup = "INVALID_BILLING_GROUP" + case invalidBillingGroupStatus = "INVALID_BILLING_GROUP_STATUS" + case invalidBillingPeriodForOperation = "INVALID_BILLING_PERIOD_FOR_OPERATION" + case invalidFilter = "INVALID_FILTER" + case invalidSkuCombo = "INVALID_SKU_COMBO" + case invalidTimeRange = "INVALID_TIME_RANGE" + case mismatchedBillinggroupArn = "MISMATCHED_BILLINGGROUP_ARN" + case mismatchedBillingviewArn = "MISMATCHED_BILLINGVIEW_ARN" + case mismatchedCustomlineitemArn = "MISMATCHED_CUSTOMLINEITEM_ARN" + case mismatchedPricingplanArn = "MISMATCHED_PRICINGPLAN_ARN" + case mismatchedPricingruleArn = "MISMATCHED_PRICINGRULE_ARN" + case missingBillinggroup = "MISSING_BILLINGGROUP" + case missingCustomlineitem = "MISSING_CUSTOMLINEITEM" + case missingLinkedAccountIds = "MISSING_LINKED_ACCOUNT_IDS" + case missingPricingplan = "MISSING_PRICINGPLAN" + case missingPricingPlanArn = "MISSING_PRICING_PLAN_ARN" + case multipleLinkedAccountIds = "MULTIPLE_LINKED_ACCOUNT_IDS" + case multiplePricingPlanArn = "MULTIPLE_PRICING_PLAN_ARN" + case other = "OTHER" + case pricingrulesAlreadyAssociated = "PRICINGRULES_ALREADY_ASSOCIATED" + case pricingrulesNotAssociated = "PRICINGRULES_NOT_ASSOCIATED" + case pricingrulesNotExist = "PRICINGRULES_NOT_EXIST" + case primaryCannotDisassociate = "PRIMARY_CANNOT_DISASSOCIATE" + case primaryNotAssociated = "PRIMARY_NOT_ASSOCIATED" + case tooManyAccountsInRequest = "TOO_MANY_ACCOUNTS_IN_REQUEST" + case tooManyAutoAssociateBillingGroups = "TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS" + case tooManyCustomlineitemsInRequest = "TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AccountAssociationsListElement: AWSDecodableShape { @@ -551,6 +623,31 @@ extension Billingconductor { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// Reason for the inconsistent state. + public let reason: ConflictExceptionReason? + /// Identifier of the resource in use. + public let resourceId: String + /// Type of the resource in use. + public let resourceType: String + + @inlinable + public init(message: String, reason: ConflictExceptionReason? = nil, resourceId: String, resourceType: String) { + self.message = message + self.reason = reason + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct CreateBillingGroupInput: AWSEncodableShape { /// The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated billing family. public let accountGrouping: AccountGrouping @@ -1466,6 +1563,29 @@ extension Billingconductor { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// Number of seconds you can retry after the call. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct LineItemFilter: AWSEncodableShape & AWSDecodableShape { /// The attribute of the line item filter. This specifies what attribute that you can filter on. public let attribute: LineItemFilterAttributeName @@ -2499,6 +2619,56 @@ extension Billingconductor { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Resource identifier that was not found. + public let resourceId: String + /// Resource type that was not found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + + public struct ServiceLimitExceededException: AWSErrorShape { + /// The unique code identifier of the service limit that is being exceeded. + public let limitCode: String + public let message: String + /// Identifier of the resource affected. + public let resourceId: String? + /// Type of the resource affected. + public let resourceType: String? + /// The unique code for the service of the limit that is being exceeded. + public let serviceCode: String + + @inlinable + public init(limitCode: String, message: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.limitCode = limitCode + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case limitCode = "LimitCode" + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource to which to add tags. public let resourceArn: String @@ -2539,6 +2709,29 @@ extension Billingconductor { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Number of seconds you can safely retry after the call. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct Tiering: AWSDecodableShape { /// The possible Amazon Web Services Free Tier configurations. public let freeTier: FreeTierConfig @@ -3039,6 +3232,45 @@ extension Billingconductor { case freeTier = "FreeTier" } } + + public struct ValidationException: AWSErrorShape { + /// The fields that caused the error, if applicable. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason the request's validation failed. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message describing why the field failed validation. + public let message: String + /// The field name. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } } // MARK: - Errors @@ -3089,6 +3321,17 @@ public struct BillingconductorErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension BillingconductorErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Billingconductor.ConflictException.self, + "InternalServerException": Billingconductor.InternalServerException.self, + "ResourceNotFoundException": Billingconductor.ResourceNotFoundException.self, + "ServiceLimitExceededException": Billingconductor.ServiceLimitExceededException.self, + "ThrottlingException": Billingconductor.ThrottlingException.self, + "ValidationException": Billingconductor.ValidationException.self + ] +} + extension BillingconductorErrorType: Equatable { public static func == (lhs: BillingconductorErrorType, rhs: BillingconductorErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Braket/Braket_api.swift b/Sources/Soto/Services/Braket/Braket_api.swift index 35ddf0cfab4..8b9af08e949 100644 --- a/Sources/Soto/Services/Braket/Braket_api.swift +++ b/Sources/Soto/Services/Braket/Braket_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Braket/Braket_shapes.swift b/Sources/Soto/Services/Braket/Braket_shapes.swift index 1738791b23f..adfc8298052 100644 --- a/Sources/Soto/Services/Braket/Braket_shapes.swift +++ b/Sources/Soto/Services/Braket/Braket_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Budgets/Budgets_api.swift b/Sources/Soto/Services/Budgets/Budgets_api.swift index f5d124da9ec..79984429508 100644 --- a/Sources/Soto/Services/Budgets/Budgets_api.swift +++ b/Sources/Soto/Services/Budgets/Budgets_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Budgets/Budgets_shapes.swift b/Sources/Soto/Services/Budgets/Budgets_shapes.swift index a31a2cd2a65..098595d6cb8 100644 --- a/Sources/Soto/Services/Budgets/Budgets_shapes.swift +++ b/Sources/Soto/Services/Budgets/Budgets_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Chatbot/Chatbot_api.swift b/Sources/Soto/Services/Chatbot/Chatbot_api.swift index 026aab06d58..3c8384610a3 100644 --- a/Sources/Soto/Services/Chatbot/Chatbot_api.swift +++ b/Sources/Soto/Services/Chatbot/Chatbot_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Chatbot/Chatbot_shapes.swift b/Sources/Soto/Services/Chatbot/Chatbot_shapes.swift index 4cdf5535889..c5418e92c35 100644 --- a/Sources/Soto/Services/Chatbot/Chatbot_shapes.swift +++ b/Sources/Soto/Services/Chatbot/Chatbot_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Chime/Chime_api.swift b/Sources/Soto/Services/Chime/Chime_api.swift index 6358170247a..4c92a9496f8 100644 --- a/Sources/Soto/Services/Chime/Chime_api.swift +++ b/Sources/Soto/Services/Chime/Chime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Chime/Chime_shapes.swift b/Sources/Soto/Services/Chime/Chime_shapes.swift index cb17408a17c..f2e6ba3133f 100644 --- a/Sources/Soto/Services/Chime/Chime_shapes.swift +++ b/Sources/Soto/Services/Chime/Chime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -171,6 +170,22 @@ extension Chime { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Account: AWSDecodableShape { /// The Amazon Chime account ID. public let accountId: String @@ -325,6 +340,22 @@ extension Chime { public init() {} } + public struct BadRequestException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct BatchCreateRoomMembershipRequest: AWSEncodableShape { /// The Amazon Chime account ID. public let accountId: String @@ -642,6 +673,22 @@ extension Chime { } } + public struct ConflictException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ConversationRetentionSettings: AWSEncodableShape & AWSDecodableShape { /// The number of days for which to retain conversation messages. public let retentionDays: Int? @@ -1205,6 +1252,22 @@ extension Chime { } } + public struct ForbiddenException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct GetAccountRequest: AWSEncodableShape { /// The Amazon Chime account ID. public let accountId: String @@ -2218,6 +2281,22 @@ extension Chime { } } + public struct NotFoundException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct OrderedPhoneNumber: AWSDecodableShape { /// The phone number, in E.164 format. public let e164PhoneNumber: String? @@ -2688,6 +2767,22 @@ extension Chime { } } + public struct ResourceLimitExceededException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct RestorePhoneNumberRequest: AWSEncodableShape { /// The phone number. public let phoneNumberId: String @@ -2906,6 +3001,38 @@ extension Chime { } } + public struct ServiceFailureException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ServiceUnavailableException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct SigninDelegateGroup: AWSEncodableShape & AWSDecodableShape { /// The group name. public let groupName: String? @@ -2946,6 +3073,54 @@ extension Chime { } } + public struct ThrottledClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnauthorizedClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnprocessableEntityException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UpdateAccountRequest: AWSEncodableShape { /// The Amazon Chime account ID. public let accountId: String @@ -3574,6 +3749,22 @@ public struct ChimeErrorType: AWSErrorType { public static var unprocessableEntityException: Self { .init(.unprocessableEntityException) } } +extension ChimeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Chime.AccessDeniedException.self, + "BadRequestException": Chime.BadRequestException.self, + "ConflictException": Chime.ConflictException.self, + "ForbiddenException": Chime.ForbiddenException.self, + "NotFoundException": Chime.NotFoundException.self, + "ResourceLimitExceededException": Chime.ResourceLimitExceededException.self, + "ServiceFailureException": Chime.ServiceFailureException.self, + "ServiceUnavailableException": Chime.ServiceUnavailableException.self, + "ThrottledClientException": Chime.ThrottledClientException.self, + "UnauthorizedClientException": Chime.UnauthorizedClientException.self, + "UnprocessableEntityException": Chime.UnprocessableEntityException.self + ] +} + extension ChimeErrorType: Equatable { public static func == (lhs: ChimeErrorType, rhs: ChimeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_api.swift b/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_api.swift index aba5a119229..32019853aea 100644 --- a/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_api.swift +++ b/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_shapes.swift b/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_shapes.swift index 39661708e38..b29399d31a5 100644 --- a/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_shapes.swift +++ b/Sources/Soto/Services/ChimeSDKIdentity/ChimeSDKIdentity_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -51,6 +50,25 @@ extension ChimeSDKIdentity { public var description: String { return self.rawValue } } + public enum ErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accessDenied = "AccessDenied" + case badRequest = "BadRequest" + case conflict = "Conflict" + case forbidden = "Forbidden" + case notFound = "NotFound" + case phoneNumberAssociationsExist = "PhoneNumberAssociationsExist" + case preconditionFailed = "PreconditionFailed" + case resourceLimitExceeded = "ResourceLimitExceeded" + case serviceFailure = "ServiceFailure" + case serviceUnavailable = "ServiceUnavailable" + case throttled = "Throttled" + case throttling = "Throttling" + case unauthorized = "Unauthorized" + case unprocessable = "Unprocessable" + case voiceConnectorGroupAssociationsExist = "VoiceConnectorGroupAssociationsExist" + public var description: String { return self.rawValue } + } + public enum ExpirationCriterion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case createdTimestamp = "CREATED_TIMESTAMP" public var description: String { return self.rawValue } @@ -379,6 +397,22 @@ extension ChimeSDKIdentity { } } + public struct BadRequestException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ChannelRetentionSettings: AWSEncodableShape & AWSDecodableShape { /// The time in days to retain the messages in a channel. public let retentionDays: Int? @@ -416,6 +450,22 @@ extension ChimeSDKIdentity { } } + public struct ConflictException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct CreateAppInstanceAdminRequest: AWSEncodableShape { /// The ARN of the administrator of the current AppInstance. public let appInstanceAdminArn: String @@ -1068,6 +1118,22 @@ extension ChimeSDKIdentity { } } + public struct ForbiddenException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct GetAppInstanceRetentionSettingsRequest: AWSEncodableShape { /// The ARN of the AppInstance. public let appInstanceArn: String @@ -1498,6 +1564,22 @@ extension ChimeSDKIdentity { } } + public struct NotFoundException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct PutAppInstanceRetentionSettingsRequest: AWSEncodableShape { /// The ARN of the AppInstance. public let appInstanceArn: String @@ -1678,6 +1760,54 @@ extension ChimeSDKIdentity { } } + public struct ResourceLimitExceededException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ServiceFailureException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ServiceUnavailableException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Tag: AWSEncodableShape & AWSDecodableShape { /// The key in a tag. public let key: String @@ -1732,6 +1862,38 @@ extension ChimeSDKIdentity { } } + public struct ThrottledClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnauthorizedClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The resource ARN. public let resourceARN: String @@ -2045,6 +2207,20 @@ public struct ChimeSDKIdentityErrorType: AWSErrorType { public static var unauthorizedClientException: Self { .init(.unauthorizedClientException) } } +extension ChimeSDKIdentityErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": ChimeSDKIdentity.BadRequestException.self, + "ConflictException": ChimeSDKIdentity.ConflictException.self, + "ForbiddenException": ChimeSDKIdentity.ForbiddenException.self, + "NotFoundException": ChimeSDKIdentity.NotFoundException.self, + "ResourceLimitExceededException": ChimeSDKIdentity.ResourceLimitExceededException.self, + "ServiceFailureException": ChimeSDKIdentity.ServiceFailureException.self, + "ServiceUnavailableException": ChimeSDKIdentity.ServiceUnavailableException.self, + "ThrottledClientException": ChimeSDKIdentity.ThrottledClientException.self, + "UnauthorizedClientException": ChimeSDKIdentity.UnauthorizedClientException.self + ] +} + extension ChimeSDKIdentityErrorType: Equatable { public static func == (lhs: ChimeSDKIdentityErrorType, rhs: ChimeSDKIdentityErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_api.swift b/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_api.swift index fe02ef3704d..aa82abef552 100644 --- a/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_api.swift +++ b/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_shapes.swift b/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_shapes.swift index fe4cab6e671..f669078c7dd 100644 --- a/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_shapes.swift +++ b/Sources/Soto/Services/ChimeSDKMediaPipelines/ChimeSDKMediaPipelines_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -127,6 +126,17 @@ extension ChimeSDKMediaPipelines { public var description: String { return self.rawValue } } + public enum ErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case badRequest = "BadRequest" + case forbidden = "Forbidden" + case notFound = "NotFound" + case resourceLimitExceeded = "ResourceLimitExceeded" + case serviceFailure = "ServiceFailure" + case serviceUnavailable = "ServiceUnavailable" + case throttling = "Throttling" + public var description: String { return self.rawValue } + } + public enum FragmentSelectorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case producerTimestamp = "ProducerTimestamp" case serverTimestamp = "ServerTimestamp" @@ -640,6 +650,26 @@ extension ChimeSDKMediaPipelines { } } + public struct BadRequestException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct ChannelDefinition: AWSEncodableShape & AWSDecodableShape { /// The channel ID. public let channelId: Int @@ -818,6 +848,26 @@ extension ChimeSDKMediaPipelines { } } + public struct ConflictException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct ContentArtifactsConfiguration: AWSEncodableShape & AWSDecodableShape { /// The MUX type of the artifact configuration. public let muxType: ContentMuxType? @@ -1421,6 +1471,26 @@ extension ChimeSDKMediaPipelines { private enum CodingKeys: CodingKey {} } + public struct ForbiddenException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct FragmentSelector: AWSEncodableShape & AWSDecodableShape { /// The origin of the timestamps to use, Server or Producer. For more information, see StartSelectorType in the Amazon Kinesis Video Streams Developer Guide. public let fragmentSelectorType: FragmentSelectorType @@ -2883,6 +2953,26 @@ extension ChimeSDKMediaPipelines { } } + public struct NotFoundException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct PostCallAnalyticsSettings: AWSEncodableShape & AWSDecodableShape { /// The content redaction output settings for a post-call analysis task. public let contentRedactionOutput: ContentRedactionOutput? @@ -3010,6 +3100,26 @@ extension ChimeSDKMediaPipelines { } } + public struct ResourceLimitExceededException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct S3BucketSinkConfiguration: AWSEncodableShape & AWSDecodableShape { /// The destination URL of the S3 bucket. public let destination: String @@ -3140,6 +3250,46 @@ extension ChimeSDKMediaPipelines { } } + public struct ServiceFailureException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + + public struct ServiceUnavailableException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct SnsTopicSinkConfiguration: AWSEncodableShape & AWSDecodableShape { /// The ARN of the SNS sink. public let insightsTarget: String? @@ -3545,6 +3695,26 @@ extension ChimeSDKMediaPipelines { public init() {} } + public struct ThrottledClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct TimestampRange: AWSEncodableShape & AWSDecodableShape { /// The ending timestamp for the specified range. public let endTimestamp: Date @@ -3577,6 +3747,26 @@ extension ChimeSDKMediaPipelines { } } + public struct UnauthorizedClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the pipeline that you want to untag. public let resourceARN: String @@ -3956,6 +4146,20 @@ public struct ChimeSDKMediaPipelinesErrorType: AWSErrorType { public static var unauthorizedClientException: Self { .init(.unauthorizedClientException) } } +extension ChimeSDKMediaPipelinesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": ChimeSDKMediaPipelines.BadRequestException.self, + "ConflictException": ChimeSDKMediaPipelines.ConflictException.self, + "ForbiddenException": ChimeSDKMediaPipelines.ForbiddenException.self, + "NotFoundException": ChimeSDKMediaPipelines.NotFoundException.self, + "ResourceLimitExceededException": ChimeSDKMediaPipelines.ResourceLimitExceededException.self, + "ServiceFailureException": ChimeSDKMediaPipelines.ServiceFailureException.self, + "ServiceUnavailableException": ChimeSDKMediaPipelines.ServiceUnavailableException.self, + "ThrottledClientException": ChimeSDKMediaPipelines.ThrottledClientException.self, + "UnauthorizedClientException": ChimeSDKMediaPipelines.UnauthorizedClientException.self + ] +} + extension ChimeSDKMediaPipelinesErrorType: Equatable { public static func == (lhs: ChimeSDKMediaPipelinesErrorType, rhs: ChimeSDKMediaPipelinesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_api.swift b/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_api.swift index 42fd535f3df..4bd703fa730 100644 --- a/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_api.swift +++ b/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_shapes.swift b/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_shapes.swift index 07c790cd054..6a937f88498 100644 --- a/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_shapes.swift +++ b/Sources/Soto/Services/ChimeSDKMeetings/ChimeSDKMeetings_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -251,6 +250,26 @@ extension ChimeSDKMeetings { } } + public struct BadRequestException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct BatchCreateAttendeeRequest: AWSEncodableShape { /// The attendee information, including attendees' IDs and join tokens. public let attendees: [CreateAttendeeRequestItem] @@ -340,6 +359,26 @@ extension ChimeSDKMeetings { } } + public struct ConflictException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the request involved in the conflict. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct ContentFeatures: AWSEncodableShape & AWSDecodableShape { /// The maximum resolution for the meeting content. Defaults to FHD. To use UHD, you must also provide a MeetingFeatures:Attendee:MaxCount value and override the default size limit of 250 attendees. public let maxResolution: ContentResolution? @@ -820,6 +859,26 @@ extension ChimeSDKMeetings { } } + public struct ForbiddenException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct GetAttendeeRequest: AWSEncodableShape { /// The Amazon Chime SDK attendee ID. public let attendeeId: String @@ -897,6 +956,26 @@ extension ChimeSDKMeetings { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct ListAttendeesRequest: AWSEncodableShape { /// The maximum number of results to return in a single call. public let maxResults: Int? @@ -1104,6 +1183,26 @@ extension ChimeSDKMeetings { } } + public struct NotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request ID associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct NotificationsConfiguration: AWSEncodableShape { /// The ARN of the Amazon Web Services Lambda function in the notifications configuration. public let lambdaFunctionArn: String? @@ -1138,6 +1237,82 @@ extension ChimeSDKMeetings { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the resource that couldn't be found. + public let requestId: String? + /// The name of the resource that couldn't be found. + public let resourceName: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil, resourceName: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + case resourceName = "ResourceName" + } + } + + public struct ServiceFailureException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the failed request. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + + public struct ServiceUnavailableException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + /// The number of seconds the caller should wait before retrying. + public let retryAfterSeconds: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil, retryAfterSeconds: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.code = try container.decodeIfPresent(String.self, forKey: .code) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.requestId = try container.decodeIfPresent(String.self, forKey: .requestId) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct StartMeetingTranscriptionRequest: AWSEncodableShape { /// The unique ID of the meeting being transcribed. public let meetingId: String @@ -1247,6 +1422,50 @@ extension ChimeSDKMeetings { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the request that exceeded the throttling limit. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + + public struct TooManyTagsException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the request that contains too many tags. + public let requestId: String? + /// The name of the resource that received too many tags. + public let resourceName: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil, resourceName: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + case resourceName = "ResourceName" + } + } + public struct TranscriptionConfiguration: AWSEncodableShape { /// The transcription configuration settings passed to Amazon Transcribe Medical. public let engineTranscribeMedicalSettings: EngineTranscribeMedicalSettings? @@ -1270,6 +1489,46 @@ extension ChimeSDKMeetings { } } + public struct UnauthorizedException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + + public struct UnprocessableEntityException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request id associated with the call responsible for the exception. + public let requestId: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, requestId: String? = nil) { + self.code = code + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case requestId = "RequestId" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource that you're removing tags from. public let resourceARN: String @@ -1429,6 +1688,23 @@ public struct ChimeSDKMeetingsErrorType: AWSErrorType { public static var unprocessableEntityException: Self { .init(.unprocessableEntityException) } } +extension ChimeSDKMeetingsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": ChimeSDKMeetings.BadRequestException.self, + "ConflictException": ChimeSDKMeetings.ConflictException.self, + "ForbiddenException": ChimeSDKMeetings.ForbiddenException.self, + "LimitExceededException": ChimeSDKMeetings.LimitExceededException.self, + "NotFoundException": ChimeSDKMeetings.NotFoundException.self, + "ResourceNotFoundException": ChimeSDKMeetings.ResourceNotFoundException.self, + "ServiceFailureException": ChimeSDKMeetings.ServiceFailureException.self, + "ServiceUnavailableException": ChimeSDKMeetings.ServiceUnavailableException.self, + "ThrottlingException": ChimeSDKMeetings.ThrottlingException.self, + "TooManyTagsException": ChimeSDKMeetings.TooManyTagsException.self, + "UnauthorizedException": ChimeSDKMeetings.UnauthorizedException.self, + "UnprocessableEntityException": ChimeSDKMeetings.UnprocessableEntityException.self + ] +} + extension ChimeSDKMeetingsErrorType: Equatable { public static func == (lhs: ChimeSDKMeetingsErrorType, rhs: ChimeSDKMeetingsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_api.swift b/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_api.swift index 56f7e11f0a9..9133f43ac69 100644 --- a/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_api.swift +++ b/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_shapes.swift b/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_shapes.swift index 80a607bb746..ca598093692 100644 --- a/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_shapes.swift +++ b/Sources/Soto/Services/ChimeSDKMessaging/ChimeSDKMessaging_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -200,6 +199,22 @@ extension ChimeSDKMessaging { } } + public struct BadRequestException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct BatchChannelMemberships: AWSDecodableShape { /// The ARN of the channel to which you're adding members. public let channelArn: String? @@ -958,6 +973,22 @@ extension ChimeSDKMessaging { } } + public struct ConflictException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct CreateChannelBanRequest: AWSEncodableShape { /// The ARN of the ban request. public let channelArn: String @@ -2034,6 +2065,22 @@ extension ChimeSDKMessaging { } } + public struct ForbiddenException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct GetChannelMembershipPreferencesRequest: AWSEncodableShape { /// The ARN of the channel. public let channelArn: String @@ -3038,6 +3085,22 @@ extension ChimeSDKMessaging { } } + public struct NotFoundException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Processor: AWSEncodableShape & AWSDecodableShape { /// The information about the type of processor and its identifier. public let configuration: ProcessorConfiguration @@ -3386,6 +3449,22 @@ extension ChimeSDKMessaging { } } + public struct ResourceLimitExceededException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct SearchChannelsRequest: AWSEncodableShape { /// The AppInstanceUserArn of the user making the API call. public let chimeBearer: String? @@ -3615,6 +3694,38 @@ extension ChimeSDKMessaging { } } + public struct ServiceFailureException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ServiceUnavailableException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct StreamingConfiguration: AWSEncodableShape & AWSDecodableShape { /// The data type of the configuration. public let dataType: MessagingDataType @@ -3731,6 +3842,38 @@ extension ChimeSDKMessaging { } } + public struct ThrottledClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnauthorizedClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The resource ARN. public let resourceARN: String @@ -4078,6 +4221,20 @@ public struct ChimeSDKMessagingErrorType: AWSErrorType { public static var unauthorizedClientException: Self { .init(.unauthorizedClientException) } } +extension ChimeSDKMessagingErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": ChimeSDKMessaging.BadRequestException.self, + "ConflictException": ChimeSDKMessaging.ConflictException.self, + "ForbiddenException": ChimeSDKMessaging.ForbiddenException.self, + "NotFoundException": ChimeSDKMessaging.NotFoundException.self, + "ResourceLimitExceededException": ChimeSDKMessaging.ResourceLimitExceededException.self, + "ServiceFailureException": ChimeSDKMessaging.ServiceFailureException.self, + "ServiceUnavailableException": ChimeSDKMessaging.ServiceUnavailableException.self, + "ThrottledClientException": ChimeSDKMessaging.ThrottledClientException.self, + "UnauthorizedClientException": ChimeSDKMessaging.UnauthorizedClientException.self + ] +} + extension ChimeSDKMessagingErrorType: Equatable { public static func == (lhs: ChimeSDKMessagingErrorType, rhs: ChimeSDKMessagingErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_api.swift b/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_api.swift index 2593bbe52cf..95576e421b2 100644 --- a/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_api.swift +++ b/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_shapes.swift b/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_shapes.swift index ea61e5f190a..6eec4c8f483 100644 --- a/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_shapes.swift +++ b/Sources/Soto/Services/ChimeSDKVoice/ChimeSDKVoice_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -216,6 +215,22 @@ extension ChimeSDKVoice { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Address: AWSDecodableShape { /// The city of an address. public let city: String? @@ -366,6 +381,22 @@ extension ChimeSDKVoice { } } + public struct BadRequestException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct BatchDeletePhoneNumberRequest: AWSEncodableShape { /// List of phone number IDs. public let phoneNumberIds: [String] @@ -492,6 +523,22 @@ extension ChimeSDKVoice { } } + public struct ConflictException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct CreatePhoneNumberOrderRequest: AWSEncodableShape { /// List of phone numbers, in E.164 format. public let e164PhoneNumbers: [String] @@ -1504,6 +1551,22 @@ extension ChimeSDKVoice { } } + public struct ForbiddenException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct GeoMatchParams: AWSEncodableShape & AWSDecodableShape { /// The area code. public let areaCode: String @@ -2353,6 +2416,22 @@ extension ChimeSDKVoice { } } + public struct GoneException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ListAvailableVoiceConnectorRegionsResponse: AWSDecodableShape { /// The list of AWS Regions. public let voiceConnectorRegions: [VoiceConnectorAwsRegion]? @@ -2962,6 +3041,22 @@ extension ChimeSDKVoice { } } + public struct NotFoundException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct OrderedPhoneNumber: AWSDecodableShape { /// The phone number, in E.164 format. public let e164PhoneNumber: String? @@ -3803,6 +3898,22 @@ extension ChimeSDKVoice { } } + public struct ResourceLimitExceededException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct RestorePhoneNumberRequest: AWSEncodableShape { /// The ID of the phone number being restored. public let phoneNumberId: String @@ -3932,6 +4043,38 @@ extension ChimeSDKVoice { } } + public struct ServiceFailureException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ServiceUnavailableException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct SipMediaApplication: AWSDecodableShape { /// The AWS Region in which the SIP media application is created. public let awsRegion: String? @@ -4538,6 +4681,54 @@ extension ChimeSDKVoice { } } + public struct ThrottledClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnauthorizedClientException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnprocessableEntityException: AWSErrorShape { + public let code: ErrorCode? + public let message: String? + + @inlinable + public init(code: ErrorCode? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource having its tags removed. public let resourceARN: String @@ -5562,6 +5753,23 @@ public struct ChimeSDKVoiceErrorType: AWSErrorType { public static var unprocessableEntityException: Self { .init(.unprocessableEntityException) } } +extension ChimeSDKVoiceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": ChimeSDKVoice.AccessDeniedException.self, + "BadRequestException": ChimeSDKVoice.BadRequestException.self, + "ConflictException": ChimeSDKVoice.ConflictException.self, + "ForbiddenException": ChimeSDKVoice.ForbiddenException.self, + "GoneException": ChimeSDKVoice.GoneException.self, + "NotFoundException": ChimeSDKVoice.NotFoundException.self, + "ResourceLimitExceededException": ChimeSDKVoice.ResourceLimitExceededException.self, + "ServiceFailureException": ChimeSDKVoice.ServiceFailureException.self, + "ServiceUnavailableException": ChimeSDKVoice.ServiceUnavailableException.self, + "ThrottledClientException": ChimeSDKVoice.ThrottledClientException.self, + "UnauthorizedClientException": ChimeSDKVoice.UnauthorizedClientException.self, + "UnprocessableEntityException": ChimeSDKVoice.UnprocessableEntityException.self + ] +} + extension ChimeSDKVoiceErrorType: Equatable { public static func == (lhs: ChimeSDKVoiceErrorType, rhs: ChimeSDKVoiceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CleanRooms/CleanRooms_api.swift b/Sources/Soto/Services/CleanRooms/CleanRooms_api.swift index af1e3c8f9b8..a96a6f7b07d 100644 --- a/Sources/Soto/Services/CleanRooms/CleanRooms_api.swift +++ b/Sources/Soto/Services/CleanRooms/CleanRooms_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CleanRooms/CleanRooms_shapes.swift b/Sources/Soto/Services/CleanRooms/CleanRooms_shapes.swift index 55e46c6f8fb..81f0c1e925e 100644 --- a/Sources/Soto/Services/CleanRooms/CleanRooms_shapes.swift +++ b/Sources/Soto/Services/CleanRooms/CleanRooms_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,11 @@ import Foundation extension CleanRooms { // MARK: Enums + public enum AccessDeniedExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case insufficientPermissions = "INSUFFICIENT_PERMISSIONS" + public var description: String { return self.rawValue } + } + public enum AdditionalAnalyses: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case allowed = "ALLOWED" case notAllowed = "NOT_ALLOWED" @@ -109,6 +113,13 @@ extension CleanRooms { public var description: String { return self.rawValue } } + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case alreadyExists = "ALREADY_EXISTS" + case invalidState = "INVALID_STATE" + case subresourcesExist = "SUBRESOURCES_EXIST" + public var description: String { return self.rawValue } + } + public enum CustomMLMemberAbility: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case canReceiveInferenceOutput = "CAN_RECEIVE_INFERENCE_OUTPUT" case canReceiveModelOutput = "CAN_RECEIVE_MODEL_OUTPUT" @@ -233,6 +244,14 @@ extension CleanRooms { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case collaboration = "COLLABORATION" + case configuredTable = "CONFIGURED_TABLE" + case configuredTableAssociation = "CONFIGURED_TABLE_ASSOCIATION" + case membership = "MEMBERSHIP" + public var description: String { return self.rawValue } + } + public enum ResultFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case csv = "CSV" case parquet = "PARQUET" @@ -304,6 +323,14 @@ extension CleanRooms { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case iamSynchronizationDelay = "IAM_SYNCHRONIZATION_DELAY" + case invalidConfiguration = "INVALID_CONFIGURATION" + case invalidQuery = "INVALID_QUERY" + public var description: String { return self.rawValue } + } + public enum WorkerComputeType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case cr1x = "CR.1X" case cr4x = "CR.4X" @@ -615,6 +642,23 @@ extension CleanRooms { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// A reason code for the exception. + public let reason: AccessDeniedExceptionReason? + + @inlinable + public init(message: String? = nil, reason: AccessDeniedExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct AggregateColumn: AWSEncodableShape & AWSDecodableShape { /// Column names in configured table of aggregate columns. public let columnNames: [String] @@ -2423,6 +2467,31 @@ extension CleanRooms { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// A reason code for the exception. + public let reason: ConflictExceptionReason? + /// The ID of the conflicting resource. + public let resourceId: String? + /// The type of the conflicting resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, reason: ConflictExceptionReason? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.reason = reason + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateAnalysisTemplateInput: AWSEncodableShape { /// The parameters of the analysis template. public let analysisParameters: [AnalysisParameter]? @@ -7059,6 +7128,27 @@ extension CleanRooms { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The Id of the missing resource. + public let resourceId: String + /// The type of the missing resource. + public let resourceType: ResourceType + + @inlinable + public init(message: String, resourceId: String, resourceType: ResourceType) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Schema: AWSDecodableShape { /// The analysis method for the schema. The only valid value is currently DIRECT_QUERY. public let analysisMethod: AnalysisMethod? @@ -7242,6 +7332,27 @@ extension CleanRooms { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The name of the quota. + public let quotaName: String + /// The value of the quota. + public let quotaValue: Double + + @inlinable + public init(message: String, quotaName: String, quotaValue: Double) { + self.message = message + self.quotaName = quotaName + self.quotaValue = quotaValue + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaName = "quotaName" + case quotaValue = "quotaValue" + } + } + public struct SnowflakeTableReference: AWSEncodableShape & AWSDecodableShape { /// The account identifier for the Snowflake table reference. public let accountIdentifier: String @@ -8127,6 +8238,45 @@ extension CleanRooms { } } + public struct ValidationException: AWSErrorShape { + /// Validation errors for specific input parameters. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// A reason code for the exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message for the input validation error. + public let message: String + /// The name of the input parameter. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct WorkerComputeConfiguration: AWSEncodableShape & AWSDecodableShape { /// The number of workers. public let number: Int? @@ -8453,6 +8603,16 @@ public struct CleanRoomsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CleanRoomsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": CleanRooms.AccessDeniedException.self, + "ConflictException": CleanRooms.ConflictException.self, + "ResourceNotFoundException": CleanRooms.ResourceNotFoundException.self, + "ServiceQuotaExceededException": CleanRooms.ServiceQuotaExceededException.self, + "ValidationException": CleanRooms.ValidationException.self + ] +} + extension CleanRoomsErrorType: Equatable { public static func == (lhs: CleanRoomsErrorType, rhs: CleanRoomsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_api.swift b/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_api.swift index d6b437b0ff5..651f7b0fb9c 100644 --- a/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_api.swift +++ b/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_shapes.swift b/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_shapes.swift index afdcd08a8a0..078e113bc85 100644 --- a/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_shapes.swift +++ b/Sources/Soto/Services/CleanRoomsML/CleanRoomsML_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Cloud9/Cloud9_api.swift b/Sources/Soto/Services/Cloud9/Cloud9_api.swift index b7feb76f687..c446365bd86 100644 --- a/Sources/Soto/Services/Cloud9/Cloud9_api.swift +++ b/Sources/Soto/Services/Cloud9/Cloud9_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Cloud9/Cloud9_shapes.swift b/Sources/Soto/Services/Cloud9/Cloud9_shapes.swift index a403b21cc9b..79cb267b2aa 100644 --- a/Sources/Soto/Services/Cloud9/Cloud9_shapes.swift +++ b/Sources/Soto/Services/Cloud9/Cloud9_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -94,6 +93,63 @@ extension Cloud9 { // MARK: Shapes + public struct BadRequestException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + + public struct ConcurrentAccessException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + + public struct ConflictException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + public struct CreateEnvironmentEC2Request: AWSEncodableShape { /// The number of minutes until the running instance is shut down after the environment has last been used. public let automaticStopTimeMinutes: Int? @@ -498,6 +554,63 @@ extension Cloud9 { } } + public struct ForbiddenException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + + public struct InternalServerErrorException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + + public struct LimitExceededException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + public struct ListEnvironmentsRequest: AWSEncodableShape { /// The maximum number of environments to get identifiers for. public let maxResults: Int? @@ -571,6 +684,25 @@ extension Cloud9 { } } + public struct NotFoundException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + public struct Tag: AWSEncodableShape & AWSDecodableShape { /// The name part of a tag. public let key: String @@ -625,6 +757,25 @@ extension Cloud9 { public init() {} } + public struct TooManyRequestsException: AWSErrorShape { + public let className: String? + public let code: Int? + public let message: String? + + @inlinable + public init(className: String? = nil, code: Int? = nil, message: String? = nil) { + self.className = className + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case className = "className" + case code = "code" + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the Cloud9 development environment to remove tags from. public let resourceARN: String @@ -786,6 +937,19 @@ public struct Cloud9ErrorType: AWSErrorType { public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) } } +extension Cloud9ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": Cloud9.BadRequestException.self, + "ConcurrentAccessException": Cloud9.ConcurrentAccessException.self, + "ConflictException": Cloud9.ConflictException.self, + "ForbiddenException": Cloud9.ForbiddenException.self, + "InternalServerErrorException": Cloud9.InternalServerErrorException.self, + "LimitExceededException": Cloud9.LimitExceededException.self, + "NotFoundException": Cloud9.NotFoundException.self, + "TooManyRequestsException": Cloud9.TooManyRequestsException.self + ] +} + extension Cloud9ErrorType: Equatable { public static func == (lhs: Cloud9ErrorType, rhs: Cloud9ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CloudControl/CloudControl_api.swift b/Sources/Soto/Services/CloudControl/CloudControl_api.swift index 5a1a599978a..4c89ab2bbf6 100644 --- a/Sources/Soto/Services/CloudControl/CloudControl_api.swift +++ b/Sources/Soto/Services/CloudControl/CloudControl_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudControl/CloudControl_shapes.swift b/Sources/Soto/Services/CloudControl/CloudControl_shapes.swift index ef6541097d5..956f50e8139 100644 --- a/Sources/Soto/Services/CloudControl/CloudControl_shapes.swift +++ b/Sources/Soto/Services/CloudControl/CloudControl_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudDirectory/CloudDirectory_api.swift b/Sources/Soto/Services/CloudDirectory/CloudDirectory_api.swift index bbb69402368..3c5a7f89a81 100644 --- a/Sources/Soto/Services/CloudDirectory/CloudDirectory_api.swift +++ b/Sources/Soto/Services/CloudDirectory/CloudDirectory_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudDirectory/CloudDirectory_shapes.swift b/Sources/Soto/Services/CloudDirectory/CloudDirectory_shapes.swift index 13a5944c607..fc8ec0ce28b 100644 --- a/Sources/Soto/Services/CloudDirectory/CloudDirectory_shapes.swift +++ b/Sources/Soto/Services/CloudDirectory/CloudDirectory_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -43,6 +42,28 @@ extension CloudDirectory { public var description: String { return self.rawValue } } + public enum BatchWriteExceptionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accessDeniedException = "AccessDeniedException" + case directoryNotEnabledException = "DirectoryNotEnabledException" + case facetValidationException = "FacetValidationException" + case indexedAttributeMissingException = "IndexedAttributeMissingException" + case internalServiceException = "InternalServiceException" + case invalidArnException = "InvalidArnException" + case invalidAttachmentException = "InvalidAttachmentException" + case limitExceededException = "LimitExceededException" + case linkNameAlreadyInUseException = "LinkNameAlreadyInUseException" + case notIndexException = "NotIndexException" + case notNodeException = "NotNodeException" + case notPolicyException = "NotPolicyException" + case objectAlreadyDetachedException = "ObjectAlreadyDetachedException" + case objectNotDetachedException = "ObjectNotDetachedException" + case resourceNotFoundException = "ResourceNotFoundException" + case stillContainsLinksException = "StillContainsLinksException" + case unsupportedIndexTypeException = "UnsupportedIndexTypeException" + case validationException = "ValidationException" + public var description: String { return self.rawValue } + } + public enum ConsistencyLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case eventual = "EVENTUAL" case serializable = "SERIALIZABLE" @@ -1913,6 +1934,25 @@ extension CloudDirectory { } } + public struct BatchWriteException: AWSErrorShape { + public let index: Int? + public let message: String? + public let type: BatchWriteExceptionType? + + @inlinable + public init(index: Int? = nil, message: String? = nil, type: BatchWriteExceptionType? = nil) { + self.index = index + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case index = "Index" + case message = "Message" + case type = "Type" + } + } + public struct BatchWriteOperation: AWSEncodableShape { /// A batch operation that adds a facet to an object. public let addFacetToObject: BatchAddFacetToObject? @@ -5588,6 +5628,12 @@ public struct CloudDirectoryErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CloudDirectoryErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BatchWriteException": CloudDirectory.BatchWriteException.self + ] +} + extension CloudDirectoryErrorType: Equatable { public static func == (lhs: CloudDirectoryErrorType, rhs: CloudDirectoryErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CloudFormation/CloudFormation_api.swift b/Sources/Soto/Services/CloudFormation/CloudFormation_api.swift index a74d4afb46a..c2e42ddac7c 100644 --- a/Sources/Soto/Services/CloudFormation/CloudFormation_api.swift +++ b/Sources/Soto/Services/CloudFormation/CloudFormation_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudFormation/CloudFormation_shapes.swift b/Sources/Soto/Services/CloudFormation/CloudFormation_shapes.swift index 4bc2e62bf31..555e51ee09f 100644 --- a/Sources/Soto/Services/CloudFormation/CloudFormation_shapes.swift +++ b/Sources/Soto/Services/CloudFormation/CloudFormation_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudFront/CloudFront_api.swift b/Sources/Soto/Services/CloudFront/CloudFront_api.swift index 3deb3ed810b..47cc1d0f064 100644 --- a/Sources/Soto/Services/CloudFront/CloudFront_api.swift +++ b/Sources/Soto/Services/CloudFront/CloudFront_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudFront/CloudFront_shapes.swift b/Sources/Soto/Services/CloudFront/CloudFront_shapes.swift index 903cf31cd48..b16a80b01da 100644 --- a/Sources/Soto/Services/CloudFront/CloudFront_shapes.swift +++ b/Sources/Soto/Services/CloudFront/CloudFront_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_api.swift b/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_api.swift index dde4ce4b245..6107aa4a5c5 100644 --- a/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_api.swift +++ b/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_shapes.swift b/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_shapes.swift index ac5f3a8d5d6..402ae474b00 100644 --- a/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_shapes.swift +++ b/Sources/Soto/Services/CloudFrontKeyValueStore/CloudFrontKeyValueStore_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudHSM/CloudHSM_api.swift b/Sources/Soto/Services/CloudHSM/CloudHSM_api.swift index a9555c2d28c..7c77c18d01c 100644 --- a/Sources/Soto/Services/CloudHSM/CloudHSM_api.swift +++ b/Sources/Soto/Services/CloudHSM/CloudHSM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudHSM/CloudHSM_shapes.swift b/Sources/Soto/Services/CloudHSM/CloudHSM_shapes.swift index ddb3b29ca50..799c9f69375 100644 --- a/Sources/Soto/Services/CloudHSM/CloudHSM_shapes.swift +++ b/Sources/Soto/Services/CloudHSM/CloudHSM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -96,6 +95,42 @@ extension CloudHSM { } } + public struct CloudHsmInternalException: AWSErrorShape { + /// Additional information about the error. + public let message: String? + /// Indicates if the action can be retried. + public let retryable: Bool? + + @inlinable + public init(message: String? = nil, retryable: Bool? = nil) { + self.message = message + self.retryable = retryable + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case retryable = "retryable" + } + } + + public struct CloudHsmServiceException: AWSErrorShape { + /// Additional information about the error. + public let message: String? + /// Indicates if the action can be retried. + public let retryable: Bool? + + @inlinable + public init(message: String? = nil, retryable: Bool? = nil) { + self.message = message + self.retryable = retryable + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case retryable = "retryable" + } + } + public struct CreateHapgRequest: AWSEncodableShape { /// The label of the new high-availability partition group. public let label: String @@ -609,6 +644,24 @@ extension CloudHSM { } } + public struct InvalidRequestException: AWSErrorShape { + /// Additional information about the error. + public let message: String? + /// Indicates if the action can be retried. + public let retryable: Bool? + + @inlinable + public init(message: String? = nil, retryable: Bool? = nil) { + self.message = message + self.retryable = retryable + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case retryable = "retryable" + } + } + public struct ListAvailableZonesRequest: AWSEncodableShape { public init() {} } @@ -1008,6 +1061,14 @@ public struct CloudHSMErrorType: AWSErrorType { public static var invalidRequestException: Self { .init(.invalidRequestException) } } +extension CloudHSMErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "CloudHsmInternalException": CloudHSM.CloudHsmInternalException.self, + "CloudHsmServiceException": CloudHSM.CloudHsmServiceException.self, + "InvalidRequestException": CloudHSM.InvalidRequestException.self + ] +} + extension CloudHSMErrorType: Equatable { public static func == (lhs: CloudHSMErrorType, rhs: CloudHSMErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_api.swift b/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_api.swift index 77f4e100fd3..5a590287d76 100644 --- a/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_api.swift +++ b/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_shapes.swift b/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_shapes.swift index d8a7bdfa311..39e1c6206cc 100644 --- a/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_shapes.swift +++ b/Sources/Soto/Services/CloudHSMV2/CloudHSMV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudSearch/CloudSearch_api.swift b/Sources/Soto/Services/CloudSearch/CloudSearch_api.swift index bfb3cd9380e..f034ecaed74 100644 --- a/Sources/Soto/Services/CloudSearch/CloudSearch_api.swift +++ b/Sources/Soto/Services/CloudSearch/CloudSearch_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudSearch/CloudSearch_shapes.swift b/Sources/Soto/Services/CloudSearch/CloudSearch_shapes.swift index ef75333cdd1..de6d51571b4 100644 --- a/Sources/Soto/Services/CloudSearch/CloudSearch_shapes.swift +++ b/Sources/Soto/Services/CloudSearch/CloudSearch_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -236,6 +235,22 @@ extension CloudSearch { } } + public struct BaseException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct BuildSuggestersRequest: AWSEncodableShape { public let domainName: String @@ -1094,6 +1109,22 @@ extension CloudSearch { } } + public struct DisabledOperationException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct DocumentSuggesterOptions: AWSEncodableShape & AWSDecodableShape { /// The level of fuzziness allowed when suggesting matches for a string: none, low, or high. With none, the specified string is treated as an exact prefix. With low, suggestions must differ from the specified string by no more than one character. With high, suggestions can differ by up to two characters. The default is none. public let fuzzyMatching: SuggesterFuzzyMatching? @@ -1522,6 +1553,38 @@ extension CloudSearch { } } + public struct InternalException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidTypeException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct LatLonOptions: AWSEncodableShape & AWSDecodableShape { /// A value to use for the field if the field isn't specified for a document. public let defaultValue: String? @@ -1562,6 +1625,22 @@ extension CloudSearch { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Limits: AWSDecodableShape { public let maximumPartitionCount: Int public let maximumReplicationCount: Int @@ -1698,6 +1777,38 @@ extension CloudSearch { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ScalingParameters: AWSEncodableShape & AWSDecodableShape { /// The instance type that you want to preconfigure for your domain. For example, search.m1.small. public let desiredInstanceType: PartitionInstanceType? @@ -2017,6 +2128,22 @@ extension CloudSearch { case accessPolicies = "AccessPolicies" } } + + public struct ValidationException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } } // MARK: - Errors @@ -2070,6 +2197,19 @@ public struct CloudSearchErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CloudSearchErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BaseException": CloudSearch.BaseException.self, + "DisabledAction": CloudSearch.DisabledOperationException.self, + "InternalException": CloudSearch.InternalException.self, + "InvalidType": CloudSearch.InvalidTypeException.self, + "LimitExceeded": CloudSearch.LimitExceededException.self, + "ResourceAlreadyExists": CloudSearch.ResourceAlreadyExistsException.self, + "ResourceNotFound": CloudSearch.ResourceNotFoundException.self, + "ValidationException": CloudSearch.ValidationException.self + ] +} + extension CloudSearchErrorType: Equatable { public static func == (lhs: CloudSearchErrorType, rhs: CloudSearchErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_api.swift b/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_api.swift index 4193bcb8a69..a24223b82a8 100644 --- a/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_api.swift +++ b/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_shapes.swift b/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_shapes.swift index e8940c83025..d6454f3ae00 100644 --- a/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_shapes.swift +++ b/Sources/Soto/Services/CloudSearchDomain/CloudSearchDomain_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -74,6 +73,24 @@ extension CloudSearchDomain { } } + public struct DocumentServiceException: AWSErrorShape { + /// The description of the errors returned by the document service. + public let message: String? + /// The return status of a document upload request, error or success. + public let status: String? + + @inlinable + public init(message: String? = nil, status: String? = nil) { + self.message = message + self.status = status + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case status = "status" + } + } + public struct DocumentServiceWarning: AWSDecodableShape { /// The description for a warning returned by the document service. public let message: String? @@ -491,6 +508,12 @@ public struct CloudSearchDomainErrorType: AWSErrorType { public static var searchException: Self { .init(.searchException) } } +extension CloudSearchDomainErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DocumentServiceException": CloudSearchDomain.DocumentServiceException.self + ] +} + extension CloudSearchDomainErrorType: Equatable { public static func == (lhs: CloudSearchDomainErrorType, rhs: CloudSearchDomainErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CloudTrail/CloudTrail_api.swift b/Sources/Soto/Services/CloudTrail/CloudTrail_api.swift index 17fc4678342..985d29b3bac 100644 --- a/Sources/Soto/Services/CloudTrail/CloudTrail_api.swift +++ b/Sources/Soto/Services/CloudTrail/CloudTrail_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudTrail/CloudTrail_shapes.swift b/Sources/Soto/Services/CloudTrail/CloudTrail_shapes.swift index 771cff7bee7..1514807cf0e 100644 --- a/Sources/Soto/Services/CloudTrail/CloudTrail_shapes.swift +++ b/Sources/Soto/Services/CloudTrail/CloudTrail_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudTrailData/CloudTrailData_api.swift b/Sources/Soto/Services/CloudTrailData/CloudTrailData_api.swift index 8bd2101dd67..e927c20df3e 100644 --- a/Sources/Soto/Services/CloudTrailData/CloudTrailData_api.swift +++ b/Sources/Soto/Services/CloudTrailData/CloudTrailData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudTrailData/CloudTrailData_shapes.swift b/Sources/Soto/Services/CloudTrailData/CloudTrailData_shapes.swift index 094508e16c8..7a95738a0e3 100644 --- a/Sources/Soto/Services/CloudTrailData/CloudTrailData_shapes.swift +++ b/Sources/Soto/Services/CloudTrailData/CloudTrailData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudWatch/CloudWatch_api.swift b/Sources/Soto/Services/CloudWatch/CloudWatch_api.swift index 1b8ba1a4532..be88a3249b6 100644 --- a/Sources/Soto/Services/CloudWatch/CloudWatch_api.swift +++ b/Sources/Soto/Services/CloudWatch/CloudWatch_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudWatch/CloudWatch_shapes.swift b/Sources/Soto/Services/CloudWatch/CloudWatch_shapes.swift index 606e294bae9..029d9573619 100644 --- a/Sources/Soto/Services/CloudWatch/CloudWatch_shapes.swift +++ b/Sources/Soto/Services/CloudWatch/CloudWatch_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -384,6 +383,23 @@ extension CloudWatch { } } + public struct DashboardInvalidInputError: AWSErrorShape { + @OptionalCustomCoding> + public var dashboardValidationMessages: [DashboardValidationMessage]? + public let message: String? + + @inlinable + public init(dashboardValidationMessages: [DashboardValidationMessage]? = nil, message: String? = nil) { + self.dashboardValidationMessages = dashboardValidationMessages + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case dashboardValidationMessages = "dashboardValidationMessages" + case message = "message" + } + } + public struct DashboardValidationMessage: AWSDecodableShape { /// The data path related to the message. public let dataPath: String? @@ -3130,6 +3146,25 @@ extension CloudWatch { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let resourceId: String? + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct SetAlarmStateInput: AWSEncodableShape { /// The name of the alarm. public let alarmName: String? @@ -3442,6 +3477,13 @@ public struct CloudWatchErrorType: AWSErrorType { public static var resourceNotFoundException: Self { .init(.resourceNotFoundException) } } +extension CloudWatchErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidParameterInput": CloudWatch.DashboardInvalidInputError.self, + "ResourceNotFoundException": CloudWatch.ResourceNotFoundException.self + ] +} + extension CloudWatchErrorType: Equatable { public static func == (lhs: CloudWatchErrorType, rhs: CloudWatchErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_api.swift b/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_api.swift index 8776787fc18..889f4d57084 100644 --- a/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_api.swift +++ b/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_shapes.swift b/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_shapes.swift index 26281b947d6..e0213f837b0 100644 --- a/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_shapes.swift +++ b/Sources/Soto/Services/CloudWatchEvents/CloudWatchEvents_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_api.swift b/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_api.swift index 61ecc9b076c..d0f5de34383 100644 --- a/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_api.swift +++ b/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_shapes.swift b/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_shapes.swift index f65a00dacf8..65745fb97b7 100644 --- a/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_shapes.swift +++ b/Sources/Soto/Services/CloudWatchLogs/CloudWatchLogs_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1005,6 +1004,22 @@ extension CloudWatchLogs { } } + public struct DataAlreadyAcceptedException: AWSErrorShape { + public let expectedSequenceToken: String? + public let message: String? + + @inlinable + public init(expectedSequenceToken: String? = nil, message: String? = nil) { + self.expectedSequenceToken = expectedSequenceToken + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case expectedSequenceToken = "expectedSequenceToken" + case message = "message" + } + } + public struct DateTimeConverter: AWSEncodableShape & AWSDecodableShape { /// The locale of the source field. If you omit this, the default of locale.ROOT is used. public let locale: String? @@ -3458,6 +3473,22 @@ extension CloudWatchLogs { } } + public struct InvalidSequenceTokenException: AWSErrorShape { + public let expectedSequenceToken: String? + public let message: String? + + @inlinable + public init(expectedSequenceToken: String? = nil, message: String? = nil) { + self.expectedSequenceToken = expectedSequenceToken + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case expectedSequenceToken = "expectedSequenceToken" + case message = "message" + } + } + public struct ListAnomaliesRequest: AWSEncodableShape { /// Use this to optionally limit the results to only the anomalies found by a certain anomaly detector. public let anomalyDetectorArn: String? @@ -4017,6 +4048,22 @@ extension CloudWatchLogs { } } + public struct MalformedQueryException: AWSErrorShape { + public let message: String? + public let queryCompileError: QueryCompileError? + + @inlinable + public init(message: String? = nil, queryCompileError: QueryCompileError? = nil) { + self.message = message + self.queryCompileError = queryCompileError + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case queryCompileError = "queryCompileError" + } + } + public struct MetricFilter: AWSDecodableShape { /// This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer. If this value is true, the metric filter is applied on the transformed version of the log events instead of the original ingested log events. public let applyOnTransformedLogs: Bool? @@ -5517,6 +5564,42 @@ extension CloudWatchLogs { } } + public struct QueryCompileError: AWSDecodableShape { + /// Reserved. + public let location: QueryCompileErrorLocation? + /// Reserved. + public let message: String? + + @inlinable + public init(location: QueryCompileErrorLocation? = nil, message: String? = nil) { + self.location = location + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case location = "location" + case message = "message" + } + } + + public struct QueryCompileErrorLocation: AWSDecodableShape { + /// Reserved. + public let endCharOffset: Int? + /// Reserved. + public let startCharOffset: Int? + + @inlinable + public init(endCharOffset: Int? = nil, startCharOffset: Int? = nil) { + self.endCharOffset = endCharOffset + self.startCharOffset = startCharOffset + } + + private enum CodingKeys: String, CodingKey { + case endCharOffset = "endCharOffset" + case startCharOffset = "startCharOffset" + } + } + public struct QueryDefinition: AWSDecodableShape { /// The date that the query definition was most recently modified. public let lastModified: Int64? @@ -6316,6 +6399,23 @@ extension CloudWatchLogs { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the resource. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct TransformedLogRecord: AWSDecodableShape { /// The original log event message before it was transformed. public let eventMessage: String? @@ -6727,6 +6827,15 @@ public struct CloudWatchLogsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CloudWatchLogsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DataAlreadyAcceptedException": CloudWatchLogs.DataAlreadyAcceptedException.self, + "InvalidSequenceTokenException": CloudWatchLogs.InvalidSequenceTokenException.self, + "MalformedQueryException": CloudWatchLogs.MalformedQueryException.self, + "TooManyTagsException": CloudWatchLogs.TooManyTagsException.self + ] +} + extension CloudWatchLogsErrorType: Equatable { public static func == (lhs: CloudWatchLogsErrorType, rhs: CloudWatchLogsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CodeArtifact/CodeArtifact_api.swift b/Sources/Soto/Services/CodeArtifact/CodeArtifact_api.swift index 673f3bd2ca6..c9d52c4ff6a 100644 --- a/Sources/Soto/Services/CodeArtifact/CodeArtifact_api.swift +++ b/Sources/Soto/Services/CodeArtifact/CodeArtifact_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeArtifact/CodeArtifact_shapes.swift b/Sources/Soto/Services/CodeArtifact/CodeArtifact_shapes.swift index ac1de333f47..5cfc5f1b6b7 100644 --- a/Sources/Soto/Services/CodeArtifact/CodeArtifact_shapes.swift +++ b/Sources/Soto/Services/CodeArtifact/CodeArtifact_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -134,6 +133,24 @@ extension CodeArtifact { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case asset = "asset" + case domain = "domain" + case package = "package" + case packageVersion = "package-version" + case repository = "repository" + public var description: String { return self.rawValue } + } + + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case encryptionKeyError = "ENCRYPTION_KEY_ERROR" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AssetSummary: AWSDecodableShape { @@ -243,6 +260,27 @@ extension CodeArtifact { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String? + /// The type of Amazon Web Services resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CopyPackageVersionsRequest: AWSEncodableShape { /// Set to true to overwrite a package version that already exists in the destination repository. If set to false and the package version already exists in the destination repository, the package version is returned in the failedVersions field of the response with an ALREADY_EXISTS error code. public let allowOverwrite: Bool? @@ -3810,6 +3848,27 @@ extension CodeArtifact { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String? + /// The type of Amazon Web Services resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ResourcePolicy: AWSDecodableShape { /// The resource policy formatted in JSON. public let document: String? @@ -3832,6 +3891,27 @@ extension CodeArtifact { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String? + /// The type of Amazon Web Services resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct SuccessfulPackageVersionInfo: AWSDecodableShape { /// The revision of a package version. public let revision: String? @@ -3914,6 +3994,29 @@ extension CodeArtifact { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The time period, in seconds, to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource that you want to remove tags from. public let resourceArn: String @@ -4310,6 +4413,23 @@ extension CodeArtifact { case repositoryName = "repositoryName" } } + + public struct ValidationException: AWSErrorShape { + public let message: String + /// + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } } // MARK: - Errors @@ -4360,6 +4480,16 @@ public struct CodeArtifactErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CodeArtifactErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": CodeArtifact.ConflictException.self, + "ResourceNotFoundException": CodeArtifact.ResourceNotFoundException.self, + "ServiceQuotaExceededException": CodeArtifact.ServiceQuotaExceededException.self, + "ThrottlingException": CodeArtifact.ThrottlingException.self, + "ValidationException": CodeArtifact.ValidationException.self + ] +} + extension CodeArtifactErrorType: Equatable { public static func == (lhs: CodeArtifactErrorType, rhs: CodeArtifactErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CodeBuild/CodeBuild_api.swift b/Sources/Soto/Services/CodeBuild/CodeBuild_api.swift index 01cf6207968..4bd5db5fcca 100644 --- a/Sources/Soto/Services/CodeBuild/CodeBuild_api.swift +++ b/Sources/Soto/Services/CodeBuild/CodeBuild_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeBuild/CodeBuild_shapes.swift b/Sources/Soto/Services/CodeBuild/CodeBuild_shapes.swift index 6c649d4ad9a..9c3f1615228 100644 --- a/Sources/Soto/Services/CodeBuild/CodeBuild_shapes.swift +++ b/Sources/Soto/Services/CodeBuild/CodeBuild_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_api.swift b/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_api.swift index 20faab550a8..66c82299827 100644 --- a/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_api.swift +++ b/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_shapes.swift b/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_shapes.swift index 9ddc2522e49..300e9c5a155 100644 --- a/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_shapes.swift +++ b/Sources/Soto/Services/CodeCatalyst/CodeCatalyst_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeCommit/CodeCommit_api.swift b/Sources/Soto/Services/CodeCommit/CodeCommit_api.swift index c3ebe75a424..3659bd9ad61 100644 --- a/Sources/Soto/Services/CodeCommit/CodeCommit_api.swift +++ b/Sources/Soto/Services/CodeCommit/CodeCommit_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeCommit/CodeCommit_shapes.swift b/Sources/Soto/Services/CodeCommit/CodeCommit_shapes.swift index 7acf520a273..809c1861165 100644 --- a/Sources/Soto/Services/CodeCommit/CodeCommit_shapes.swift +++ b/Sources/Soto/Services/CodeCommit/CodeCommit_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeConnections/CodeConnections_api.swift b/Sources/Soto/Services/CodeConnections/CodeConnections_api.swift index e2017525573..4ec72b71181 100644 --- a/Sources/Soto/Services/CodeConnections/CodeConnections_api.swift +++ b/Sources/Soto/Services/CodeConnections/CodeConnections_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeConnections/CodeConnections_shapes.swift b/Sources/Soto/Services/CodeConnections/CodeConnections_shapes.swift index 37a680c86b4..47ba1224b0d 100644 --- a/Sources/Soto/Services/CodeConnections/CodeConnections_shapes.swift +++ b/Sources/Soto/Services/CodeConnections/CodeConnections_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeDeploy/CodeDeploy_api.swift b/Sources/Soto/Services/CodeDeploy/CodeDeploy_api.swift index 681bb8eb5da..347b6ad8f82 100644 --- a/Sources/Soto/Services/CodeDeploy/CodeDeploy_api.swift +++ b/Sources/Soto/Services/CodeDeploy/CodeDeploy_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeDeploy/CodeDeploy_shapes.swift b/Sources/Soto/Services/CodeDeploy/CodeDeploy_shapes.swift index 246c79d752c..a480e492ab8 100644 --- a/Sources/Soto/Services/CodeDeploy/CodeDeploy_shapes.swift +++ b/Sources/Soto/Services/CodeDeploy/CodeDeploy_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_api.swift b/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_api.swift index 1aeff9df678..64daed10283 100644 --- a/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_api.swift +++ b/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_shapes.swift b/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_shapes.swift index 515358ac0a5..f4ba6962864 100644 --- a/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_shapes.swift +++ b/Sources/Soto/Services/CodeGuruProfiler/CodeGuruProfiler_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_api.swift b/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_api.swift index 2f17262f04c..e6aa1ff48bd 100644 --- a/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_api.swift +++ b/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_shapes.swift b/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_shapes.swift index d5e58df300a..122ddb58f2c 100644 --- a/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_shapes.swift +++ b/Sources/Soto/Services/CodeGuruReviewer/CodeGuruReviewer_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_api.swift b/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_api.swift index bba98d97415..0a8464e04a1 100644 --- a/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_api.swift +++ b/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_shapes.swift b/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_shapes.swift index 06307cf5433..3a91c63a280 100644 --- a/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_shapes.swift +++ b/Sources/Soto/Services/CodeGuruSecurity/CodeGuruSecurity_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -70,8 +69,43 @@ extension CodeGuruSecurity { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case lambdaCodeShaMismatch = "lambdaCodeShaMisMatch" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// The identifier for the error. + public let errorCode: String + /// Description of the error. + public let message: String + /// The identifier for the resource you don't have access to. + public let resourceId: String? + /// The type of resource you don't have access to. + public let resourceType: String? + + @inlinable + public init(errorCode: String, message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.errorCode = errorCode + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct AccountFindingsMetric: AWSDecodableShape { /// The number of closed findings of each severity on the specified date. public let closedFindings: FindingMetricsValuePerSeverity? @@ -201,6 +235,32 @@ extension CodeGuruSecurity { } } + public struct ConflictException: AWSErrorShape { + /// The identifier for the error. + public let errorCode: String + /// Description of the error. + public let message: String + /// The identifier for the service resource associated with the request. + public let resourceId: String + /// The type of resource associated with the request. + public let resourceType: String + + @inlinable + public init(errorCode: String, message: String, resourceId: String, resourceType: String) { + self.errorCode = errorCode + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateScanRequest: AWSEncodableShape { /// The type of analysis you want CodeGuru Security to perform in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings. Defaults to Security type if missing. public let analysisType: AnalysisType? @@ -677,6 +737,24 @@ extension CodeGuruSecurity { } } + public struct InternalServerException: AWSErrorShape { + /// The internal error encountered by the server. + public let error: String? + /// Description of the error. + public let message: String? + + @inlinable + public init(error: String? = nil, message: String? = nil) { + self.error = error + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case message = "message" + } + } + public struct ListFindingsMetricsRequest: AWSEncodableShape { /// The end date of the interval which you want to retrieve metrics from. Round to the nearest day. public let endDate: Date @@ -899,6 +977,32 @@ extension CodeGuruSecurity { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The identifier for the error. + public let errorCode: String + /// Description of the error. + public let message: String + /// The identifier for the resource that was not found. + public let resourceId: String + /// The type of resource that was not found. + public let resourceType: String + + @inlinable + public init(errorCode: String, message: String, resourceId: String, resourceType: String) { + self.errorCode = errorCode + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ScanNameWithFindingNum: AWSDecodableShape { /// The number of findings generated by a scan. public let findingNumber: Int? @@ -1009,6 +1113,32 @@ extension CodeGuruSecurity { public init() {} } + public struct ThrottlingException: AWSErrorShape { + /// The identifier for the error. + public let errorCode: String + /// Description of the error. + public let message: String + /// The identifier for the originating quota. + public let quotaCode: String? + /// The identifier for the originating service. + public let serviceCode: String? + + @inlinable + public init(errorCode: String, message: String, quotaCode: String? = nil, serviceCode: String? = nil) { + self.errorCode = errorCode + self.message = message + self.quotaCode = quotaCode + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan. public let resourceArn: String @@ -1078,6 +1208,50 @@ extension CodeGuruSecurity { } } + public struct ValidationException: AWSErrorShape { + /// The identifier for the error. + public let errorCode: String + /// The field that caused the error, if applicable. + public let fieldList: [ValidationExceptionField]? + /// Description of the error. + public let message: String + /// The reason the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(errorCode: String, fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.errorCode = errorCode + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Describes the exception. + public let message: String + /// The name of the exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct Vulnerability: AWSDecodableShape { /// An object that describes the location of the detected security vulnerability in your code. public let filePath: FilePath? @@ -1182,6 +1356,17 @@ public struct CodeGuruSecurityErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CodeGuruSecurityErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": CodeGuruSecurity.AccessDeniedException.self, + "ConflictException": CodeGuruSecurity.ConflictException.self, + "InternalServerException": CodeGuruSecurity.InternalServerException.self, + "ResourceNotFoundException": CodeGuruSecurity.ResourceNotFoundException.self, + "ThrottlingException": CodeGuruSecurity.ThrottlingException.self, + "ValidationException": CodeGuruSecurity.ValidationException.self + ] +} + extension CodeGuruSecurityErrorType: Equatable { public static func == (lhs: CodeGuruSecurityErrorType, rhs: CodeGuruSecurityErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CodePipeline/CodePipeline_api.swift b/Sources/Soto/Services/CodePipeline/CodePipeline_api.swift index 29274a52ce3..b4f57e00e15 100644 --- a/Sources/Soto/Services/CodePipeline/CodePipeline_api.swift +++ b/Sources/Soto/Services/CodePipeline/CodePipeline_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodePipeline/CodePipeline_shapes.swift b/Sources/Soto/Services/CodePipeline/CodePipeline_shapes.swift index ffeaa22529d..3cc31147bc4 100644 --- a/Sources/Soto/Services/CodePipeline/CodePipeline_shapes.swift +++ b/Sources/Soto/Services/CodePipeline/CodePipeline_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_api.swift b/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_api.swift index ec6fcdb95c5..023b0210ddc 100644 --- a/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_api.swift +++ b/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_shapes.swift b/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_shapes.swift index 661f9ba336b..e9be8a149fb 100644 --- a/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_shapes.swift +++ b/Sources/Soto/Services/CodeStarConnections/CodeStarConnections_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_api.swift b/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_api.swift index cdc7d0b1d08..2da8b55468d 100644 --- a/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_api.swift +++ b/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_shapes.swift b/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_shapes.swift index 9315e7be853..bbac718ec61 100644 --- a/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_shapes.swift +++ b/Sources/Soto/Services/CodeStarNotifications/CodeStarNotifications_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_api.swift b/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_api.swift index 4ff81393589..8b1da13aea6 100644 --- a/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_api.swift +++ b/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_shapes.swift b/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_shapes.swift index 02aa0b0f119..d3d63b1b5a9 100644 --- a/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_shapes.swift +++ b/Sources/Soto/Services/CognitoIdentity/CognitoIdentity_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_api.swift b/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_api.swift index 2932f0d75cf..516b6d65697 100644 --- a/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_api.swift +++ b/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_shapes.swift b/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_shapes.swift index 50cc8d7f6c7..f9fc614fe6d 100644 --- a/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_shapes.swift +++ b/Sources/Soto/Services/CognitoIdentityProvider/CognitoIdentityProvider_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -4957,6 +4956,24 @@ extension CognitoIdentityProvider { } } + public struct InvalidParameterException: AWSErrorShape { + /// The message returned when the Amazon Cognito service throws an invalid parameter exception. + public let message: String? + /// The reason code of the exception. + public let reasonCode: String? + + @inlinable + public init(message: String? = nil, reasonCode: String? = nil) { + self.message = message + self.reasonCode = reasonCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reasonCode = "reasonCode" + } + } + public struct LambdaConfigType: AWSEncodableShape & AWSDecodableShape { /// The configuration of a create auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers. public let createAuthChallenge: String? @@ -9036,6 +9053,12 @@ public struct CognitoIdentityProviderErrorType: AWSErrorType { public static var webAuthnRelyingPartyMismatchException: Self { .init(.webAuthnRelyingPartyMismatchException) } } +extension CognitoIdentityProviderErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidParameterException": CognitoIdentityProvider.InvalidParameterException.self + ] +} + extension CognitoIdentityProviderErrorType: Equatable { public static func == (lhs: CognitoIdentityProviderErrorType, rhs: CognitoIdentityProviderErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CognitoSync/CognitoSync_api.swift b/Sources/Soto/Services/CognitoSync/CognitoSync_api.swift index 489f432b043..629d6b252dd 100644 --- a/Sources/Soto/Services/CognitoSync/CognitoSync_api.swift +++ b/Sources/Soto/Services/CognitoSync/CognitoSync_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CognitoSync/CognitoSync_shapes.swift b/Sources/Soto/Services/CognitoSync/CognitoSync_shapes.swift index 99d988cfbfe..a8830eef774 100644 --- a/Sources/Soto/Services/CognitoSync/CognitoSync_shapes.swift +++ b/Sources/Soto/Services/CognitoSync/CognitoSync_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Comprehend/Comprehend_api.swift b/Sources/Soto/Services/Comprehend/Comprehend_api.swift index f8ed8beaeda..d5fc4a42caf 100644 --- a/Sources/Soto/Services/Comprehend/Comprehend_api.swift +++ b/Sources/Soto/Services/Comprehend/Comprehend_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Comprehend/Comprehend_shapes.swift b/Sources/Soto/Services/Comprehend/Comprehend_shapes.swift index 5468bd6c83c..7c59d67594b 100644 --- a/Sources/Soto/Services/Comprehend/Comprehend_shapes.swift +++ b/Sources/Soto/Services/Comprehend/Comprehend_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -157,6 +156,19 @@ extension Comprehend { public var description: String { return self.rawValue } } + public enum InvalidRequestDetailReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case documentSizeExceeded = "DOCUMENT_SIZE_EXCEEDED" + case pageLimitExceeded = "PAGE_LIMIT_EXCEEDED" + case textractAccessDenied = "TEXTRACT_ACCESS_DENIED" + case unsupportedDocType = "UNSUPPORTED_DOC_TYPE" + public var description: String { return self.rawValue } + } + + public enum InvalidRequestReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidDocument = "INVALID_DOCUMENT" + public var description: String { return self.rawValue } + } + public enum JobStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case completed = "COMPLETED" case failed = "FAILED" @@ -4501,6 +4513,39 @@ extension Comprehend { } } + public struct InvalidRequestDetail: AWSDecodableShape { + /// Reason codes include the following values: DOCUMENT_SIZE_EXCEEDED - Document size is too large. Check the size of your file and resubmit the request. UNSUPPORTED_DOC_TYPE - Document type is not supported. Check the file type and resubmit the request. PAGE_LIMIT_EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request. TEXTRACT_ACCESS_DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request. NOT_TEXTRACT_JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request. MISMATCHED_TOTAL_PAGE_COUNT - Check the number of pages in your file and resubmit the request. INVALID_DOCUMENT - Invalid document. Check the file and resubmit the request. + public let reason: InvalidRequestDetailReason? + + @inlinable + public init(reason: InvalidRequestDetailReason? = nil) { + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case reason = "Reason" + } + } + + public struct InvalidRequestException: AWSErrorShape { + public let detail: InvalidRequestDetail? + public let message: String? + public let reason: InvalidRequestReason? + + @inlinable + public init(detail: InvalidRequestDetail? = nil, message: String? = nil, reason: InvalidRequestReason? = nil) { + self.detail = detail + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case detail = "Detail" + case message = "Message" + case reason = "Reason" + } + } + public struct KeyPhrase: AWSDecodableShape { /// The zero-based offset from the beginning of the source text to the first character in the key phrase. public let beginOffset: Int? @@ -7757,6 +7802,12 @@ public struct ComprehendErrorType: AWSErrorType { public static var unsupportedLanguageException: Self { .init(.unsupportedLanguageException) } } +extension ComprehendErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidRequestException": Comprehend.InvalidRequestException.self + ] +} + extension ComprehendErrorType: Equatable { public static func == (lhs: ComprehendErrorType, rhs: ComprehendErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_api.swift b/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_api.swift index 37fb382a509..60a05ff2421 100644 --- a/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_api.swift +++ b/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_shapes.swift b/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_shapes.swift index 5af17904f9a..994ae6defec 100644 --- a/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_shapes.swift +++ b/Sources/Soto/Services/ComprehendMedical/ComprehendMedical_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_api.swift b/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_api.swift index 8d5bb1a51e4..b09247a4aa6 100644 --- a/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_api.swift +++ b/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_shapes.swift b/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_shapes.swift index 792d58ff4dd..3fed1c68e98 100644 --- a/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_shapes.swift +++ b/Sources/Soto/Services/ComputeOptimizer/ComputeOptimizer_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConfigService/ConfigService_api.swift b/Sources/Soto/Services/ConfigService/ConfigService_api.swift index 9abaffd3c7f..8e778424201 100644 --- a/Sources/Soto/Services/ConfigService/ConfigService_api.swift +++ b/Sources/Soto/Services/ConfigService/ConfigService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConfigService/ConfigService_shapes.swift b/Sources/Soto/Services/ConfigService/ConfigService_shapes.swift index 77335f277d9..73157768037 100644 --- a/Sources/Soto/Services/ConfigService/ConfigService_shapes.swift +++ b/Sources/Soto/Services/ConfigService/ConfigService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Connect/Connect_api.swift b/Sources/Soto/Services/Connect/Connect_api.swift index 4d2b3437738..d417a56fd12 100644 --- a/Sources/Soto/Services/Connect/Connect_api.swift +++ b/Sources/Soto/Services/Connect/Connect_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Connect/Connect_shapes.swift b/Sources/Soto/Services/Connect/Connect_shapes.swift index 78ca844cb60..5b3a0490988 100644 --- a/Sources/Soto/Services/Connect/Connect_shapes.swift +++ b/Sources/Soto/Services/Connect/Connect_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -82,6 +81,19 @@ extension Connect { public var description: String { return self.rawValue } } + public enum AttachedFileInvalidRequestExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidFileName = "INVALID_FILE_NAME" + case invalidFileSize = "INVALID_FILE_SIZE" + case invalidFileType = "INVALID_FILE_TYPE" + public var description: String { return self.rawValue } + } + + public enum AttachedFileServiceQuotaExceededExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case totalFileCountExceeded = "TOTAL_FILE_COUNT_EXCEEDED" + case totalFileSizeExceeded = "TOTAL_FILE_SIZE_EXCEEDED" + public var description: String { return self.rawValue } + } + public enum BehaviorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case routeAnyChannel = "ROUTE_ANY_CHANNEL" case routeCurrentChannelOnly = "ROUTE_CURRENT_CHANNEL_ONLY" @@ -843,6 +855,16 @@ extension Connect { public var description: String { return self.rawValue } } + public enum PropertyValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidFormat = "INVALID_FORMAT" + case notSupported = "NOT_SUPPORTED" + case referencedResourceNotFound = "REFERENCED_RESOURCE_NOT_FOUND" + case requiredPropertyMissing = "REQUIRED_PROPERTY_MISSING" + case resourceNameAlreadyExists = "RESOURCE_NAME_ALREADY_EXISTS" + case uniqueConstraintViolated = "UNIQUE_CONSTRAINT_VIOLATED" + public var description: String { return self.rawValue } + } + public enum QueueStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case disabled = "DISABLED" case enabled = "ENABLED" @@ -941,6 +963,18 @@ extension Connect { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case contact = "CONTACT" + case contactFlow = "CONTACT_FLOW" + case hierarchyGroup = "HIERARCHY_GROUP" + case hierarchyLevel = "HIERARCHY_LEVEL" + case instance = "INSTANCE" + case participant = "PARTICIPANT" + case phoneNumber = "PHONE_NUMBER" + case user = "USER" + public var description: String { return self.rawValue } + } + public enum RoutingCriteriaStepStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case active = "ACTIVE" case expired = "EXPIRED" @@ -12615,6 +12649,50 @@ extension Connect { } } + public struct InvalidContactFlowException: AWSErrorShape { + /// The problems with the flow. Please fix before trying again. + public let problems: [ProblemDetail]? + + @inlinable + public init(problems: [ProblemDetail]? = nil) { + self.problems = problems + } + + private enum CodingKeys: String, CodingKey { + case problems = "problems" + } + } + + public struct InvalidContactFlowModuleException: AWSErrorShape { + public let problems: [ProblemDetail]? + + @inlinable + public init(problems: [ProblemDetail]? = nil) { + self.problems = problems + } + + private enum CodingKeys: String, CodingKey { + case problems = "Problems" + } + } + + public struct InvalidRequestException: AWSErrorShape { + /// The message about the request. + public let message: String? + public let reason: InvalidRequestExceptionReason? + + @inlinable + public init(message: String? = nil, reason: InvalidRequestExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct InvisibleFieldInfo: AWSEncodableShape & AWSDecodableShape { /// Identifier of the invisible field. public let id: TaskTemplateFieldIdentifier? @@ -16465,6 +16543,20 @@ extension Connect { } } + public struct ProblemDetail: AWSDecodableShape { + /// The problem detail's message. + public let message: String? + + @inlinable + public init(message: String? = nil) { + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Prompt: AWSDecodableShape { /// The description of the prompt. public let description: String? @@ -16568,6 +16660,44 @@ extension Connect { } } + public struct PropertyValidationException: AWSErrorShape { + public let message: String + public let propertyList: [PropertyValidationExceptionProperty]? + + @inlinable + public init(message: String, propertyList: [PropertyValidationExceptionProperty]? = nil) { + self.message = message + self.propertyList = propertyList + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case propertyList = "PropertyList" + } + } + + public struct PropertyValidationExceptionProperty: AWSDecodableShape { + /// A message describing why the property is not valid. + public let message: String + /// The full property path. + public let propertyPath: String + /// Why the property is not valid. + public let reason: PropertyValidationExceptionReason + + @inlinable + public init(message: String, propertyPath: String, reason: PropertyValidationExceptionReason) { + self.message = message + self.propertyPath = propertyPath + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case propertyPath = "PropertyPath" + case reason = "Reason" + } + } + public struct PutUserStatusRequest: AWSEncodableShape { /// The identifier of the agent status. public let agentStatusId: String @@ -17506,6 +17636,27 @@ extension Connect { } } + public struct ResourceInUseException: AWSErrorShape { + public let message: String? + /// The identifier for the resource. + public let resourceId: String? + /// The type of resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ResourceTagsSearchCriteria: AWSEncodableShape { /// The search criteria to be used to return tags. public let tagSearchCondition: TagSearchCondition? @@ -19800,6 +19951,22 @@ extension Connect { public init() {} } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + public let reason: ServiceQuotaExceededExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ServiceQuotaExceededExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct SignInConfig: AWSEncodableShape & AWSDecodableShape { /// Information about traffic distributions. public let distributions: [SignInDistribution] @@ -25385,6 +25552,20 @@ extension Connect { } } + public struct InvalidRequestExceptionReason: AWSDecodableShape { + /// Reason why the StartAttachedFiledUpload request was invalid. + public let attachedFileInvalidRequestExceptionReason: AttachedFileInvalidRequestExceptionReason? + + @inlinable + public init(attachedFileInvalidRequestExceptionReason: AttachedFileInvalidRequestExceptionReason? = nil) { + self.attachedFileInvalidRequestExceptionReason = attachedFileInvalidRequestExceptionReason + } + + private enum CodingKeys: String, CodingKey { + case attachedFileInvalidRequestExceptionReason = "AttachedFileInvalidRequestExceptionReason" + } + } + public struct PredefinedAttributeValues: AWSEncodableShape & AWSDecodableShape { /// Predefined attribute values of type string list. public let stringList: [String]? @@ -25423,6 +25604,20 @@ extension Connect { } } + public struct ServiceQuotaExceededExceptionReason: AWSDecodableShape { + /// Total file size of all files or total number of files exceeds the service quota + public let attachedFileServiceQuotaExceededExceptionReason: AttachedFileServiceQuotaExceededExceptionReason? + + @inlinable + public init(attachedFileServiceQuotaExceededExceptionReason: AttachedFileServiceQuotaExceededExceptionReason? = nil) { + self.attachedFileServiceQuotaExceededExceptionReason = attachedFileServiceQuotaExceededExceptionReason + } + + private enum CodingKeys: String, CodingKey { + case attachedFileServiceQuotaExceededExceptionReason = "AttachedFileServiceQuotaExceededExceptionReason" + } + } + public struct UpdateParticipantRoleConfigChannelInfo: AWSEncodableShape { /// Configuration information for the chat participant role. public let chat: ChatParticipantRoleConfig? @@ -25547,6 +25742,17 @@ public struct ConnectErrorType: AWSErrorType { public static var userNotFoundException: Self { .init(.userNotFoundException) } } +extension ConnectErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidContactFlowException": Connect.InvalidContactFlowException.self, + "InvalidContactFlowModuleException": Connect.InvalidContactFlowModuleException.self, + "InvalidRequestException": Connect.InvalidRequestException.self, + "PropertyValidationException": Connect.PropertyValidationException.self, + "ResourceInUseException": Connect.ResourceInUseException.self, + "ServiceQuotaExceededException": Connect.ServiceQuotaExceededException.self + ] +} + extension ConnectErrorType: Equatable { public static func == (lhs: ConnectErrorType, rhs: ConnectErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_api.swift b/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_api.swift index dc3c2d30eda..236e83f298e 100644 --- a/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_api.swift +++ b/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_shapes.swift b/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_shapes.swift index 36c08c5880d..4d0ea2d8443 100644 --- a/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_shapes.swift +++ b/Sources/Soto/Services/ConnectCampaigns/ConnectCampaigns_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -145,6 +144,28 @@ extension ConnectCampaigns { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct AgentlessDialerConfig: AWSEncodableShape & AWSDecodableShape { public let dialingCapacity: Double? @@ -251,6 +272,28 @@ extension ConnectCampaigns { } } + public struct ConflictException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct CreateCampaignRequest: AWSEncodableShape { public let connectInstanceId: String public let dialerConfig: DialerConfig @@ -705,6 +748,76 @@ extension ConnectCampaigns { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + + public struct InvalidCampaignStateException: AWSErrorShape { + public let message: String + public let state: CampaignState + public let xAmzErrorType: String? + + @inlinable + public init(message: String, state: CampaignState, xAmzErrorType: String? = nil) { + self.message = message + self.state = state + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.state = try container.decode(CampaignState.self, forKey: .state) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case state = "state" + } + } + + public struct InvalidStateException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListCampaignsRequest: AWSEncodableShape { public let filters: CampaignFilters? public let maxResults: Int? @@ -927,6 +1040,28 @@ extension ConnectCampaigns { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ResumeCampaignRequest: AWSEncodableShape { public let id: String @@ -949,6 +1084,28 @@ extension ConnectCampaigns { private enum CodingKeys: CodingKey {} } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct StartCampaignRequest: AWSEncodableShape { public let id: String @@ -1100,6 +1257,28 @@ extension ConnectCampaigns { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { public let arn: String public let tagKeys: [String] @@ -1225,6 +1404,28 @@ extension ConnectCampaigns { case connectSourcePhoneNumber = "connectSourcePhoneNumber" } } + + public struct ValidationException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } } // MARK: - Errors @@ -1281,6 +1482,20 @@ public struct ConnectCampaignsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ConnectCampaignsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": ConnectCampaigns.AccessDeniedException.self, + "ConflictException": ConnectCampaigns.ConflictException.self, + "InternalServerException": ConnectCampaigns.InternalServerException.self, + "InvalidCampaignStateException": ConnectCampaigns.InvalidCampaignStateException.self, + "InvalidStateException": ConnectCampaigns.InvalidStateException.self, + "ResourceNotFoundException": ConnectCampaigns.ResourceNotFoundException.self, + "ServiceQuotaExceededException": ConnectCampaigns.ServiceQuotaExceededException.self, + "ThrottlingException": ConnectCampaigns.ThrottlingException.self, + "ValidationException": ConnectCampaigns.ValidationException.self + ] +} + extension ConnectCampaignsErrorType: Equatable { public static func == (lhs: ConnectCampaignsErrorType, rhs: ConnectCampaignsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_api.swift b/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_api.swift index dee41e476a9..06b5658f046 100644 --- a/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_api.swift +++ b/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_shapes.swift b/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_shapes.swift index 2bf99472b5f..73500c32bbd 100644 --- a/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_shapes.swift +++ b/Sources/Soto/Services/ConnectCampaignsV2/ConnectCampaignsV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -390,6 +389,28 @@ extension ConnectCampaignsV2 { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct AgentlessConfig: AWSEncodableShape & AWSDecodableShape { public init() {} } @@ -595,6 +616,28 @@ extension ConnectCampaignsV2 { } } + public struct ConflictException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct CreateCampaignRequest: AWSEncodableShape { public let channelSubtypeConfig: ChannelSubtypeConfig public let communicationLimitsOverride: CommunicationLimitsConfig? @@ -1330,6 +1373,76 @@ extension ConnectCampaignsV2 { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + + public struct InvalidCampaignStateException: AWSErrorShape { + public let message: String + public let state: CampaignState + public let xAmzErrorType: String? + + @inlinable + public init(message: String, state: CampaignState, xAmzErrorType: String? = nil) { + self.message = message + self.state = state + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.state = try container.decode(CampaignState.self, forKey: .state) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case state = "state" + } + } + + public struct InvalidStateException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListCampaignsRequest: AWSEncodableShape { public let filters: CampaignFilters? public let maxResults: Int? @@ -1761,6 +1874,28 @@ extension ConnectCampaignsV2 { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct RestrictedPeriod: AWSEncodableShape & AWSDecodableShape { public let endDate: String public let name: String? @@ -1835,6 +1970,28 @@ extension ConnectCampaignsV2 { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct SmsChannelSubtypeConfig: AWSEncodableShape & AWSDecodableShape { public let capacity: Double? public let defaultOutboundConfig: SmsOutboundConfig @@ -2179,6 +2336,28 @@ extension ConnectCampaignsV2 { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct TimeRange: AWSEncodableShape & AWSDecodableShape { public let endTime: String public let startTime: String @@ -2451,6 +2630,28 @@ extension ConnectCampaignsV2 { } } + public struct ValidationException: AWSErrorShape { + public let message: String + public let xAmzErrorType: String? + + @inlinable + public init(message: String, xAmzErrorType: String? = nil) { + self.message = message + self.xAmzErrorType = xAmzErrorType + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.xAmzErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct CommunicationLimits: AWSEncodableShape & AWSDecodableShape { public let communicationLimitsList: [CommunicationLimit]? @@ -2581,6 +2782,20 @@ public struct ConnectCampaignsV2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ConnectCampaignsV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": ConnectCampaignsV2.AccessDeniedException.self, + "ConflictException": ConnectCampaignsV2.ConflictException.self, + "InternalServerException": ConnectCampaignsV2.InternalServerException.self, + "InvalidCampaignStateException": ConnectCampaignsV2.InvalidCampaignStateException.self, + "InvalidStateException": ConnectCampaignsV2.InvalidStateException.self, + "ResourceNotFoundException": ConnectCampaignsV2.ResourceNotFoundException.self, + "ServiceQuotaExceededException": ConnectCampaignsV2.ServiceQuotaExceededException.self, + "ThrottlingException": ConnectCampaignsV2.ThrottlingException.self, + "ValidationException": ConnectCampaignsV2.ValidationException.self + ] +} + extension ConnectCampaignsV2ErrorType: Equatable { public static func == (lhs: ConnectCampaignsV2ErrorType, rhs: ConnectCampaignsV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ConnectCases/ConnectCases_api.swift b/Sources/Soto/Services/ConnectCases/ConnectCases_api.swift index 79a5bfb317c..ab707e0ccb9 100644 --- a/Sources/Soto/Services/ConnectCases/ConnectCases_api.swift +++ b/Sources/Soto/Services/ConnectCases/ConnectCases_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConnectCases/ConnectCases_shapes.swift b/Sources/Soto/Services/ConnectCases/ConnectCases_shapes.swift index 8e4dc550e9f..5d9960eb2cd 100644 --- a/Sources/Soto/Services/ConnectCases/ConnectCases_shapes.swift +++ b/Sources/Soto/Services/ConnectCases/ConnectCases_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2398,6 +2397,29 @@ extension ConnectCases { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct LayoutConfiguration: AWSEncodableShape & AWSDecodableShape { /// Unique identifier of a layout. public let defaultLayout: String? @@ -2981,6 +3003,27 @@ extension ConnectCases { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Unique identifier of the resource affected. + public let resourceId: String + /// Type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct SearchCasesRequest: AWSEncodableShape { /// The unique identifier of the Cases domain. public let domainId: String @@ -3742,6 +3785,13 @@ public struct ConnectCasesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ConnectCasesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerException": ConnectCases.InternalServerException.self, + "ResourceNotFoundException": ConnectCases.ResourceNotFoundException.self + ] +} + extension ConnectCasesErrorType: Equatable { public static func == (lhs: ConnectCasesErrorType, rhs: ConnectCasesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_api.swift b/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_api.swift index a59eaf73da9..6d916602ef3 100644 --- a/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_api.swift +++ b/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_shapes.swift b/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_shapes.swift index d647a2e31ef..2b9581f93f0 100644 --- a/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_shapes.swift +++ b/Sources/Soto/Services/ConnectContactLens/ConnectContactLens_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_api.swift b/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_api.swift index 0cf20d82895..fdd5eddf052 100644 --- a/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_api.swift +++ b/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_shapes.swift b/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_shapes.swift index a2fe0f9cca6..ddd60c97d02 100644 --- a/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_shapes.swift +++ b/Sources/Soto/Services/ConnectParticipant/ConnectParticipant_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -64,6 +63,18 @@ extension ConnectParticipant { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case contact = "CONTACT" + case contactFlow = "CONTACT_FLOW" + case hierarchyGroup = "HIERARCHY_GROUP" + case hierarchyLevel = "HIERARCHY_LEVEL" + case instance = "INSTANCE" + case participant = "PARTICIPANT" + case phoneNumber = "PHONE_NUMBER" + case user = "USER" + public var description: String { return self.rawValue } + } + public enum ScanDirection: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case backward = "BACKWARD" case forward = "FORWARD" @@ -627,6 +638,27 @@ extension ConnectParticipant { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The identifier of the resource. + public let resourceId: String? + /// The type of Amazon Connect resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct SendEventRequest: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. public let clientToken: String? @@ -993,6 +1025,12 @@ public struct ConnectParticipantErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ConnectParticipantErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": ConnectParticipant.ResourceNotFoundException.self + ] +} + extension ConnectParticipantErrorType: Equatable { public static func == (lhs: ConnectParticipantErrorType, rhs: ConnectParticipantErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ControlCatalog/ControlCatalog_api.swift b/Sources/Soto/Services/ControlCatalog/ControlCatalog_api.swift index c0ff23cb494..d5448d8c9b3 100644 --- a/Sources/Soto/Services/ControlCatalog/ControlCatalog_api.swift +++ b/Sources/Soto/Services/ControlCatalog/ControlCatalog_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ControlCatalog/ControlCatalog_shapes.swift b/Sources/Soto/Services/ControlCatalog/ControlCatalog_shapes.swift index 706f750b4a9..535fc6cc1ac 100644 --- a/Sources/Soto/Services/ControlCatalog/ControlCatalog_shapes.swift +++ b/Sources/Soto/Services/ControlCatalog/ControlCatalog_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ControlTower/ControlTower_api.swift b/Sources/Soto/Services/ControlTower/ControlTower_api.swift index bf747395b6e..80c08adba34 100644 --- a/Sources/Soto/Services/ControlTower/ControlTower_api.swift +++ b/Sources/Soto/Services/ControlTower/ControlTower_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ControlTower/ControlTower_shapes.swift b/Sources/Soto/Services/ControlTower/ControlTower_shapes.swift index f714c8009b7..01122856edb 100644 --- a/Sources/Soto/Services/ControlTower/ControlTower_shapes.swift +++ b/Sources/Soto/Services/ControlTower/ControlTower_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1767,6 +1766,39 @@ extension ControlTower { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The ID of the service quota that was exceeded. + public let quotaCode: String? + /// The number of seconds the caller should wait before retrying. + public let retryAfterSeconds: Int? + /// The ID of the service that is associated with the error. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceInput: AWSEncodableShape { /// The ARN of the resource. public let resourceArn: String @@ -1978,6 +2010,12 @@ public struct ControlTowerErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ControlTowerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ThrottlingException": ControlTower.ThrottlingException.self + ] +} + extension ControlTowerErrorType: Equatable { public static func == (lhs: ControlTowerErrorType, rhs: ControlTowerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_api.swift b/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_api.swift index 7637db0b2b4..1e029664b47 100644 --- a/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_api.swift +++ b/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_shapes.swift b/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_shapes.swift index 8172fbed9de..6d30dd8fda7 100644 --- a/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_shapes.swift +++ b/Sources/Soto/Services/CostAndUsageReportService/CostAndUsageReportService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CostExplorer/CostExplorer_api.swift b/Sources/Soto/Services/CostExplorer/CostExplorer_api.swift index a149f99f543..b7f541ddff8 100644 --- a/Sources/Soto/Services/CostExplorer/CostExplorer_api.swift +++ b/Sources/Soto/Services/CostExplorer/CostExplorer_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CostExplorer/CostExplorer_shapes.swift b/Sources/Soto/Services/CostExplorer/CostExplorer_shapes.swift index d208c440c01..6d06fcd137d 100644 --- a/Sources/Soto/Services/CostExplorer/CostExplorer_shapes.swift +++ b/Sources/Soto/Services/CostExplorer/CostExplorer_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -4398,6 +4397,22 @@ extension CostExplorer { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct ResourceTag: AWSEncodableShape & AWSDecodableShape { /// The key that's associated with the tag. public let key: String @@ -5503,6 +5518,22 @@ extension CostExplorer { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct TotalImpactFilter: AWSEncodableShape { /// The upper bound dollar value that's used in the filter. public let endValue: Double? @@ -5901,6 +5932,13 @@ public struct CostExplorerErrorType: AWSErrorType { public static var unresolvableUsageUnitException: Self { .init(.unresolvableUsageUnitException) } } +extension CostExplorerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": CostExplorer.ResourceNotFoundException.self, + "TooManyTagsException": CostExplorer.TooManyTagsException.self + ] +} + extension CostExplorerErrorType: Equatable { public static func == (lhs: CostExplorerErrorType, rhs: CostExplorerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_api.swift b/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_api.swift index a4c70b95d5e..888748daf2b 100644 --- a/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_api.swift +++ b/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_shapes.swift b/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_shapes.swift index c7993d454b7..b1a9ec5c60b 100644 --- a/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_shapes.swift +++ b/Sources/Soto/Services/CostOptimizationHub/CostOptimizationHub_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -113,6 +112,12 @@ extension CostOptimizationHub { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "FieldValidationFailed" + case other = "Other" + public var description: String { return self.rawValue } + } + public enum ResourceDetails: AWSDecodableShape, Sendable { /// The Compute Savings Plans recommendation details. case computeSavingsPlans(ComputeSavingsPlans) @@ -1719,6 +1724,23 @@ extension CostOptimizationHub { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier of the resource that was not found. + public let resourceId: String + + @inlinable + public init(message: String, resourceId: String) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + public struct ResourcePricing: AWSDecodableShape { /// The savings estimate incorporating all discounts with Amazon Web Services, such as Reserved Instances and Savings Plans. public let estimatedCostAfterDiscounts: Double? @@ -1976,6 +1998,45 @@ extension CostOptimizationHub { case usageType = "usageType" } } + + public struct ValidationException: AWSErrorShape { + /// The list of fields that are invalid. + public let fields: [ValidationExceptionDetail]? + public let message: String + /// The reason for the validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionDetail]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionDetail: AWSDecodableShape { + /// The field name where the invalid entry was detected. + public let fieldName: String + /// A message with the reason for the validation exception error. + public let message: String + + @inlinable + public init(fieldName: String, message: String) { + self.fieldName = fieldName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldName = "fieldName" + case message = "message" + } + } } // MARK: - Errors @@ -2020,6 +2081,13 @@ public struct CostOptimizationHubErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension CostOptimizationHubErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": CostOptimizationHub.ResourceNotFoundException.self, + "ValidationException": CostOptimizationHub.ValidationException.self + ] +} + extension CostOptimizationHubErrorType: Equatable { public static func == (lhs: CostOptimizationHubErrorType, rhs: CostOptimizationHubErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_api.swift b/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_api.swift index d1be3186235..138e43340e0 100644 --- a/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_api.swift +++ b/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_shapes.swift b/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_shapes.swift index 7d99cafba64..0a36087e788 100644 --- a/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_shapes.swift +++ b/Sources/Soto/Services/CustomerProfiles/CustomerProfiles_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DAX/DAX_api.swift b/Sources/Soto/Services/DAX/DAX_api.swift index 3efed9f0829..215436f0171 100644 --- a/Sources/Soto/Services/DAX/DAX_api.swift +++ b/Sources/Soto/Services/DAX/DAX_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DAX/DAX_shapes.swift b/Sources/Soto/Services/DAX/DAX_shapes.swift index a74cf00db78..a652001b287 100644 --- a/Sources/Soto/Services/DAX/DAX_shapes.swift +++ b/Sources/Soto/Services/DAX/DAX_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DLM/DLM_api.swift b/Sources/Soto/Services/DLM/DLM_api.swift index c67e5a89dcd..4026a622303 100644 --- a/Sources/Soto/Services/DLM/DLM_api.swift +++ b/Sources/Soto/Services/DLM/DLM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DLM/DLM_shapes.swift b/Sources/Soto/Services/DLM/DLM_shapes.swift index e3e6dafefe6..e761c5ffe4e 100644 --- a/Sources/Soto/Services/DLM/DLM_shapes.swift +++ b/Sources/Soto/Services/DLM/DLM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -857,6 +856,46 @@ extension DLM { } } + public struct InternalServerException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidRequestException: AWSErrorShape { + public let code: String? + public let message: String? + /// The request included parameters that cannot be provided together. + public let mutuallyExclusiveParameters: [String]? + /// The request omitted one or more required parameters. + public let requiredParameters: [String]? + + @inlinable + public init(code: String? = nil, message: String? = nil, mutuallyExclusiveParameters: [String]? = nil, requiredParameters: [String]? = nil) { + self.code = code + self.message = message + self.mutuallyExclusiveParameters = mutuallyExclusiveParameters + self.requiredParameters = requiredParameters + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case mutuallyExclusiveParameters = "MutuallyExclusiveParameters" + case requiredParameters = "RequiredParameters" + } + } + public struct LifecyclePolicy: AWSDecodableShape { /// The local date and time when the lifecycle policy was created. @OptionalCustomCoding @@ -953,6 +992,26 @@ extension DLM { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + public let message: String? + /// Value is the type of resource for which a limit was exceeded. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, resourceType: String? = nil) { + self.code = code + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct ListTagsForResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -1171,6 +1230,30 @@ extension DLM { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + /// Value is a list of resource IDs that were not found. + public let resourceIds: [String]? + /// Value is the type of resource that was not found. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, resourceIds: [String]? = nil, resourceType: String? = nil) { + self.code = code + self.message = message + self.resourceIds = resourceIds + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case resourceIds = "ResourceIds" + case resourceType = "ResourceType" + } + } + public struct RetainRule: AWSEncodableShape & AWSDecodableShape { /// The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to /// retain a maximum of three snapshots, specify 3. When the fourth snapshot is created, the @@ -1692,6 +1775,15 @@ public struct DLMErrorType: AWSErrorType { public static var resourceNotFoundException: Self { .init(.resourceNotFoundException) } } +extension DLMErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerException": DLM.InternalServerException.self, + "InvalidRequestException": DLM.InvalidRequestException.self, + "LimitExceededException": DLM.LimitExceededException.self, + "ResourceNotFoundException": DLM.ResourceNotFoundException.self + ] +} + extension DLMErrorType: Equatable { public static func == (lhs: DLMErrorType, rhs: DLMErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DSQL/DSQL_api.swift b/Sources/Soto/Services/DSQL/DSQL_api.swift index f13e8325da1..8ec2aeb1739 100644 --- a/Sources/Soto/Services/DSQL/DSQL_api.swift +++ b/Sources/Soto/Services/DSQL/DSQL_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DSQL/DSQL_shapes.swift b/Sources/Soto/Services/DSQL/DSQL_shapes.swift index a0f2baddd25..36cfa9361fc 100644 --- a/Sources/Soto/Services/DSQL/DSQL_shapes.swift +++ b/Sources/Soto/Services/DSQL/DSQL_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -56,6 +55,27 @@ extension DSQL { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// Resource Id + public let resourceId: String? + /// Resource Type + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateClusterInput: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the Amazon Web Services SDK automatically generates one. public let clientToken: String? @@ -430,6 +450,57 @@ extension DSQL { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Hypothetical identifier of the resource which does not exist + public let resourceId: String + /// Hypothetical type of the resource which does not exist + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + /// Description of the error + public let message: String + /// Service Quotas requirement to identify originating quota + public let quotaCode: String + /// Identifier of the resource affected + public let resourceId: String + /// Type of the resource affected + public let resourceType: String + /// Service Quotas requirement to identify originating service + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct TagResourceInput: AWSEncodableShape { /// The ARN of the resource that you want to tag. public let resourceArn: String @@ -624,6 +695,14 @@ public struct DSQLErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DSQLErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": DSQL.ConflictException.self, + "ResourceNotFoundException": DSQL.ResourceNotFoundException.self, + "ServiceQuotaExceededException": DSQL.ServiceQuotaExceededException.self + ] +} + extension DSQLErrorType: Equatable { public static func == (lhs: DSQLErrorType, rhs: DSQLErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DataBrew/DataBrew_api.swift b/Sources/Soto/Services/DataBrew/DataBrew_api.swift index 9205de2902f..a6bc92fa5ef 100644 --- a/Sources/Soto/Services/DataBrew/DataBrew_api.swift +++ b/Sources/Soto/Services/DataBrew/DataBrew_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataBrew/DataBrew_shapes.swift b/Sources/Soto/Services/DataBrew/DataBrew_shapes.swift index c71d793a603..c553890f32c 100644 --- a/Sources/Soto/Services/DataBrew/DataBrew_shapes.swift +++ b/Sources/Soto/Services/DataBrew/DataBrew_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataExchange/DataExchange_api.swift b/Sources/Soto/Services/DataExchange/DataExchange_api.swift index 5d1926bd7b2..5f7b3129a08 100644 --- a/Sources/Soto/Services/DataExchange/DataExchange_api.swift +++ b/Sources/Soto/Services/DataExchange/DataExchange_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataExchange/DataExchange_shapes.swift b/Sources/Soto/Services/DataExchange/DataExchange_shapes.swift index bf22bc24706..0714205cbf5 100644 --- a/Sources/Soto/Services/DataExchange/DataExchange_shapes.swift +++ b/Sources/Soto/Services/DataExchange/DataExchange_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -63,6 +62,12 @@ extension DataExchange { public var description: String { return self.rawValue } } + public enum ExceptionCause: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case insufficientS3BucketPolicy = "InsufficientS3BucketPolicy" + case s3AccessDenied = "S3AccessDenied" + public var description: String { return self.rawValue } + } + public enum GrantDistributionScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case awsOrganization = "AWS_ORGANIZATION" case none = "NONE" @@ -102,6 +107,40 @@ extension DataExchange { public var description: String { return self.rawValue } } + public enum LimitName: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case awsLakeFormationDataPermissionAssetsPerRevision = "AWS Lake Formation data permission assets per revision" + case activeAndPendingDataGrants = "Active and pending data grants" + case amazonAPIGatewayAPIAssetsPerRevision = "Amazon API Gateway API assets per revision" + case amazonRedshiftDatashareAssetsPerImportJobFromRedshift = "Amazon Redshift datashare assets per import job from Redshift" + case amazonRedshiftDatashareAssetsPerRevision = "Amazon Redshift datashare assets per revision" + case amazonS3DataAccessAssetsPerRevision = "Amazon S3 data access assets per revision" + case assetPerExportJobFromAmazonS3 = "Asset per export job from Amazon S3" + case assetSizeInGB = "Asset size in GB" + case assetsPerImportJobFromAmazonS3 = "Assets per import job from Amazon S3" + case assetsPerRevision = "Assets per revision" + case autoExportEventActionsPerDataSet = "Auto export event actions per data set" + case concurrentInProgressJobsToCreateAmazonS3DataAccessAssetsFromS3Buckets = "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets" + case concurrentInProgressJobsToExportAssetsToAmazonS3 = "Concurrent in progress jobs to export assets to Amazon S3" + case concurrentInProgressJobsToExportAssetsToASignedURL = "Concurrent in progress jobs to export assets to a signed URL" + case concurrentInProgressJobsToExportRevisionsToAmazonS3 = "Concurrent in progress jobs to export revisions to Amazon S3" + case concurrentInProgressJobsToImportAssetsFromAmazonRedshiftDatashares = "Concurrent in progress jobs to import assets from Amazon Redshift datashares" + case concurrentInProgressJobsToImportAssetsFromAmazonS3 = "Concurrent in progress jobs to import assets from Amazon S3" + case concurrentInProgressJobsToImportAssetsFromASignedURL = "Concurrent in progress jobs to import assets from a signed URL" + case concurrentInProgressJobsToImportAssetsFromAnAPIGatewayAPI = "Concurrent in progress jobs to import assets from an API Gateway API" + case concurrentInProgressJobsToImportAssetsFromAnAWSLakeFormationTagPolicy = "Concurrent in progress jobs to import assets from an AWS Lake Formation tag policy" + case dataSetsPerAccount = "Data sets per account" + case dataSetsPerProduct = "Data sets per product" + case eventActionsPerAccount = "Event actions per account" + case pendingDataGrantsPerConsumer = "Pending data grants per consumer" + case productsPerAccount = "Products per account" + case revisionsPerAWSLakeFormationDataPermissionDataSet = "Revisions per AWS Lake Formation data permission data set" + case revisionsPerAmazonAPIGatewayAPIDataSet = "Revisions per Amazon API Gateway API data set" + case revisionsPerAmazonRedshiftDatashareDataSet = "Revisions per Amazon Redshift datashare data set" + case revisionsPerAmazonS3DataAccessDataSet = "Revisions per Amazon S3 data access data set" + case revisionsPerDataSet = "Revisions per data set" + public var description: String { return self.rawValue } + } + public enum NotificationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case dataDelay = "DATA_DELAY" case dataUpdate = "DATA_UPDATE" @@ -121,6 +160,16 @@ extension DataExchange { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case asset = "ASSET" + case dataGrant = "DATA_GRANT" + case dataSet = "DATA_SET" + case eventAction = "EVENT_ACTION" + case job = "JOB" + case revision = "REVISION" + public var description: String { return self.rawValue } + } + public enum SchemaChangeType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case add = "ADD" case modify = "MODIFY" @@ -490,6 +539,28 @@ extension DataExchange { private enum CodingKeys: CodingKey {} } + public struct ConflictException: AWSErrorShape { + /// The request couldn't be completed because it conflicted with the current state of the resource. + public let message: String + /// The unique identifier for the resource with the conflict. + public let resourceId: String? + /// The type of the resource with the conflict. + public let resourceType: ResourceType? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct CreateDataGrantRequest: AWSEncodableShape { /// The description of the data grant. public let description: String? @@ -3169,6 +3240,28 @@ extension DataExchange { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The resource couldn't be found. + public let message: String + /// The unique identifier for the resource that couldn't be found. + public let resourceId: String? + /// The type of resource that couldn't be found. + public let resourceType: ResourceType? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ResponseDetails: AWSDecodableShape { /// Response details from the CreateS3DataAccessFromS3Bucket job. public let createS3DataAccessFromS3Bucket: CreateS3DataAccessFromS3BucketResponseDetails? @@ -3684,6 +3777,28 @@ extension DataExchange { public init() {} } + public struct ServiceLimitExceededException: AWSErrorShape { + /// The name of the limit that was reached. + public let limitName: LimitName? + /// The value of the exceeded limit. + public let limitValue: Double? + /// The request has exceeded the quotas imposed by the service. + public let message: String + + @inlinable + public init(limitName: LimitName? = nil, limitValue: Double? = nil, message: String) { + self.limitName = limitName + self.limitValue = limitValue + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case limitName = "LimitName" + case limitValue = "LimitValue" + case message = "Message" + } + } + public struct StartJobRequest: AWSEncodableShape { /// The unique identifier for a job. public let jobId: String @@ -4102,6 +4217,24 @@ extension DataExchange { case updatedAt = "UpdatedAt" } } + + public struct ValidationException: AWSErrorShape { + /// The unique identifier for the resource that couldn't be found. + public let exceptionCause: ExceptionCause? + /// The message that informs you about what was invalid about the request. + public let message: String + + @inlinable + public init(exceptionCause: ExceptionCause? = nil, message: String) { + self.exceptionCause = exceptionCause + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case exceptionCause = "ExceptionCause" + case message = "Message" + } + } } // MARK: - Errors @@ -4152,6 +4285,15 @@ public struct DataExchangeErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DataExchangeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": DataExchange.ConflictException.self, + "ResourceNotFoundException": DataExchange.ResourceNotFoundException.self, + "ServiceLimitExceededException": DataExchange.ServiceLimitExceededException.self, + "ValidationException": DataExchange.ValidationException.self + ] +} + extension DataExchangeErrorType: Equatable { public static func == (lhs: DataExchangeErrorType, rhs: DataExchangeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DataPipeline/DataPipeline_api.swift b/Sources/Soto/Services/DataPipeline/DataPipeline_api.swift index c9e8fc42fa7..e897d87ffe3 100644 --- a/Sources/Soto/Services/DataPipeline/DataPipeline_api.swift +++ b/Sources/Soto/Services/DataPipeline/DataPipeline_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataPipeline/DataPipeline_shapes.swift b/Sources/Soto/Services/DataPipeline/DataPipeline_shapes.swift index ef26157aa99..d092223def8 100644 --- a/Sources/Soto/Services/DataPipeline/DataPipeline_shapes.swift +++ b/Sources/Soto/Services/DataPipeline/DataPipeline_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataSync/DataSync_api.swift b/Sources/Soto/Services/DataSync/DataSync_api.swift index 16681e0dd3b..1332cbbeb05 100644 --- a/Sources/Soto/Services/DataSync/DataSync_api.swift +++ b/Sources/Soto/Services/DataSync/DataSync_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataSync/DataSync_shapes.swift b/Sources/Soto/Services/DataSync/DataSync_shapes.swift index 02bd88712d8..aad8996f239 100644 --- a/Sources/Soto/Services/DataSync/DataSync_shapes.swift +++ b/Sources/Soto/Services/DataSync/DataSync_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -3111,6 +3110,41 @@ extension DataSync { } } + public struct InternalException: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + + public struct InvalidRequestException: AWSErrorShape { + public let datasyncErrorCode: String? + public let errorCode: String? + public let message: String? + + @inlinable + public init(datasyncErrorCode: String? = nil, errorCode: String? = nil, message: String? = nil) { + self.datasyncErrorCode = datasyncErrorCode + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case datasyncErrorCode = "datasyncErrorCode" + case errorCode = "errorCode" + case message = "message" + } + } + public struct Latency: AWSDecodableShape { /// Peak latency for operations unrelated to read and write operations. public let other: Double? @@ -5639,6 +5673,13 @@ public struct DataSyncErrorType: AWSErrorType { public static var invalidRequestException: Self { .init(.invalidRequestException) } } +extension DataSyncErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalException": DataSync.InternalException.self, + "InvalidRequestException": DataSync.InvalidRequestException.self + ] +} + extension DataSyncErrorType: Equatable { public static func == (lhs: DataSyncErrorType, rhs: DataSyncErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DataZone/DataZone_api.swift b/Sources/Soto/Services/DataZone/DataZone_api.swift index ff35c5c448e..80d73f0bd5d 100644 --- a/Sources/Soto/Services/DataZone/DataZone_api.swift +++ b/Sources/Soto/Services/DataZone/DataZone_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DataZone/DataZone_shapes.swift b/Sources/Soto/Services/DataZone/DataZone_shapes.swift index fadcda99f7d..479ca9597ad 100644 --- a/Sources/Soto/Services/DataZone/DataZone_shapes.swift +++ b/Sources/Soto/Services/DataZone/DataZone_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_api.swift b/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_api.swift index 22646ee7e1d..baf179b783f 100644 --- a/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_api.swift +++ b/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_shapes.swift b/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_shapes.swift index 8db8e246af2..bfe1b75deb5 100644 --- a/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_shapes.swift +++ b/Sources/Soto/Services/DatabaseMigrationService/DatabaseMigrationService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -8344,6 +8343,22 @@ extension DatabaseMigrationService { } } + public struct ResourceAlreadyExistsFault: AWSErrorShape { + public let message: String? + public let resourceArn: String? + + @inlinable + public init(message: String? = nil, resourceArn: String? = nil) { + self.message = message + self.resourceArn = resourceArn + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + } + } + public struct ResourcePendingMaintenanceActions: AWSDecodableShape { /// Detailed information about the pending maintenance action. public let pendingMaintenanceActionDetails: [PendingMaintenanceAction]? @@ -9743,6 +9758,12 @@ public struct DatabaseMigrationServiceErrorType: AWSErrorType { public static var upgradeDependencyFailureFault: Self { .init(.upgradeDependencyFailureFault) } } +extension DatabaseMigrationServiceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceAlreadyExistsFault": DatabaseMigrationService.ResourceAlreadyExistsFault.self + ] +} + extension DatabaseMigrationServiceErrorType: Equatable { public static func == (lhs: DatabaseMigrationServiceErrorType, rhs: DatabaseMigrationServiceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Deadline/Deadline_api.swift b/Sources/Soto/Services/Deadline/Deadline_api.swift index b5933f2e51a..a02b70f9eff 100644 --- a/Sources/Soto/Services/Deadline/Deadline_api.swift +++ b/Sources/Soto/Services/Deadline/Deadline_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Deadline/Deadline_shapes.swift b/Sources/Soto/Services/Deadline/Deadline_shapes.swift index 6c72c8204f6..0987a179049 100644 --- a/Sources/Soto/Services/Deadline/Deadline_shapes.swift +++ b/Sources/Soto/Services/Deadline/Deadline_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -84,6 +83,15 @@ extension Deadline { public var description: String { return self.rawValue } } + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case concurrentModification = "CONCURRENT_MODIFICATION" + case conflictException = "CONFLICT_EXCEPTION" + case resourceAlreadyExists = "RESOURCE_ALREADY_EXISTS" + case resourceInUse = "RESOURCE_IN_USE" + case statusConflict = "STATUS_CONFLICT" + public var description: String { return self.rawValue } + } + public enum CpuArchitectureType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case arm64 = "arm64" case x8664 = "x86_64" @@ -276,6 +284,12 @@ extension Deadline { public var description: String { return self.rawValue } } + public enum ServiceQuotaExceededExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case kmsKeyLimitExceeded = "KMS_KEY_LIMIT_EXCEEDED" + case serviceQuotaExceededException = "SERVICE_QUOTA_EXCEEDED_EXCEPTION" + public var description: String { return self.rawValue } + } + public enum SessionActionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case assigned = "ASSIGNED" case canceled = "CANCELED" @@ -429,6 +443,14 @@ extension Deadline { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum WorkerStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case created = "CREATED" case idle = "IDLE" @@ -1084,6 +1106,23 @@ extension Deadline { } } + public struct AccessDeniedException: AWSErrorShape { + /// Information about the resources in use when the exception was thrown. + public let context: [String: String]? + public let message: String + + @inlinable + public init(context: [String: String]? = nil, message: String) { + self.context = context + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case context = "context" + case message = "message" + } + } + public struct AcquiredLimit: AWSDecodableShape { /// The number of limit resources used. public let count: Int @@ -1895,6 +1934,35 @@ extension Deadline { } } + public struct ConflictException: AWSErrorShape { + /// Information about the resources in use when the exception was thrown. + public let context: [String: String]? + public let message: String + /// A description of the error. + public let reason: ConflictExceptionReason + /// The identifier of the resource in use. + public let resourceId: String + /// The type of the resource in use. + public let resourceType: String + + @inlinable + public init(context: [String: String]? = nil, message: String, reason: ConflictExceptionReason, resourceId: String, resourceType: String) { + self.context = context + self.message = message + self.reason = reason + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case context = "context" + case message = "message" + case reason = "reason" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ConsumedUsages: AWSDecodableShape { /// The amount of the budget consumed. public let approximateDollarUsage: Float @@ -5761,6 +5829,29 @@ extension Deadline { } } + public struct InternalServerErrorException: AWSErrorShape { + public let message: String + /// The number of seconds a client should wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct IpAddresses: AWSEncodableShape & AWSDecodableShape { /// The IpV4 address of the network. public let ipV4Addresses: [String]? @@ -8378,6 +8469,31 @@ extension Deadline { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// Information about the resources in use when the exception was thrown. + public let context: [String: String]? + public let message: String + /// The identifier of the resource that couldn't be found. + public let resourceId: String + /// The type of the resource that couldn't be found. + public let resourceType: String + + @inlinable + public init(context: [String: String]? = nil, message: String, resourceId: String, resourceType: String) { + self.context = context + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case context = "context" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ResponseBudgetAction: AWSDecodableShape { /// The budget action description. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field. public let description: String? @@ -8911,6 +9027,43 @@ extension Deadline { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// Information about the resources in use when the exception was thrown. + public let context: [String: String]? + public let message: String + /// Identifies the quota that has been exceeded. + public let quotaCode: String + /// A string that describes the reason the quota was exceeded. + public let reason: ServiceQuotaExceededExceptionReason + /// The identifier of the affected resource. + public let resourceId: String? + /// The type of the affected resource + public let resourceType: String + /// Identifies the service that exceeded the quota. + public let serviceCode: String + + @inlinable + public init(context: [String: String]? = nil, message: String, quotaCode: String, reason: ServiceQuotaExceededExceptionReason, resourceId: String? = nil, resourceType: String, serviceCode: String) { + self.context = context + self.message = message + self.quotaCode = quotaCode + self.reason = reason + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case context = "context" + case message = "message" + case quotaCode = "quotaCode" + case reason = "reason" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SessionActionSummary: AWSDecodableShape { /// The session action definition. public let definition: SessionActionDefinitionSummary @@ -9766,6 +9919,44 @@ extension Deadline { } } + public struct ThrottlingException: AWSErrorShape { + /// Information about the resources in use when the exception was thrown. + public let context: [String: String]? + public let message: String + /// Identifies the quota that is being throttled. + public let quotaCode: String? + /// The number of seconds a client should wait before retrying the request. + public let retryAfterSeconds: Int? + /// Identifies the service that is being throttled. + public let serviceCode: String? + + @inlinable + public init(context: [String: String]? = nil, message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.context = context + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.context = try container.decodeIfPresent([String: String].self, forKey: .context) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case context = "context" + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource to remove the tag from. public let resourceArn: String @@ -10884,6 +11075,49 @@ extension Deadline { } } + public struct ValidationException: AWSErrorShape { + /// Information about the resources in use when the exception was thrown. + public let context: [String: String]? + /// A list of fields that failed validation. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason that the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(context: [String: String]? = nil, fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.context = context + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case context = "context" + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The error message for the validation exception. + public let message: String + /// The name of the validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct WindowsUser: AWSEncodableShape & AWSDecodableShape { /// The password ARN for the Windows user. public let passwordArn: String @@ -11205,6 +11439,18 @@ public struct DeadlineErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DeadlineErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Deadline.AccessDeniedException.self, + "ConflictException": Deadline.ConflictException.self, + "InternalServerErrorException": Deadline.InternalServerErrorException.self, + "ResourceNotFoundException": Deadline.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Deadline.ServiceQuotaExceededException.self, + "ThrottlingException": Deadline.ThrottlingException.self, + "ValidationException": Deadline.ValidationException.self + ] +} + extension DeadlineErrorType: Equatable { public static func == (lhs: DeadlineErrorType, rhs: DeadlineErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Detective/Detective_api.swift b/Sources/Soto/Services/Detective/Detective_api.swift index f548cb9a0bb..c90fa7dd6f4 100644 --- a/Sources/Soto/Services/Detective/Detective_api.swift +++ b/Sources/Soto/Services/Detective/Detective_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Detective/Detective_shapes.swift b/Sources/Soto/Services/Detective/Detective_shapes.swift index 1fb30917393..ef0f8a4f740 100644 --- a/Sources/Soto/Services/Detective/Detective_shapes.swift +++ b/Sources/Soto/Services/Detective/Detective_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -46,6 +45,13 @@ extension Detective { public var description: String { return self.rawValue } } + public enum ErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case internalError = "INTERNAL_ERROR" + case invalidGraphArn = "INVALID_GRAPH_ARN" + case invalidRequestBody = "INVALID_REQUEST_BODY" + public var description: String { return self.rawValue } + } + public enum Field: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case createdTime = "CREATED_TIME" case severity = "SEVERITY" @@ -139,6 +145,35 @@ extension Detective { } } + public struct AccessDeniedException: AWSErrorShape { + /// The SDK default error code associated with the access denied exception. + public let errorCode: ErrorCode? + /// The SDK default explanation of why access was denied. + public let errorCodeReason: String? + public let message: String? + /// The error code associated with the access denied exception. + public let subErrorCode: ErrorCode? + /// An explanation of why access was denied. + public let subErrorCodeReason: String? + + @inlinable + public init(errorCode: ErrorCode? = nil, errorCodeReason: String? = nil, message: String? = nil, subErrorCode: ErrorCode? = nil, subErrorCodeReason: String? = nil) { + self.errorCode = errorCode + self.errorCodeReason = errorCodeReason + self.message = message + self.subErrorCode = subErrorCode + self.subErrorCodeReason = subErrorCodeReason + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case errorCodeReason = "ErrorCodeReason" + case message = "Message" + case subErrorCode = "SubErrorCode" + case subErrorCodeReason = "SubErrorCodeReason" + } + } + public struct Account: AWSEncodableShape { /// The account identifier of the Amazon Web Services account. public let accountId: String @@ -1508,6 +1543,23 @@ extension Detective { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The type of resource that has exceeded the service quota. + public let resources: [String]? + + @inlinable + public init(message: String? = nil, resources: [String]? = nil) { + self.message = message + self.resources = resources + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resources = "Resources" + } + } + public struct SortCriteria: AWSEncodableShape { /// Represents the Field attribute to sort investigations. public let field: Field? @@ -1857,6 +1909,27 @@ extension Detective { case graphArn = "GraphArn" } } + + public struct ValidationException: AWSErrorShape { + /// The error code associated with the validation failure. + public let errorCode: ErrorCode? + /// An explanation of why validation failed. + public let errorCodeReason: String? + public let message: String? + + @inlinable + public init(errorCode: ErrorCode? = nil, errorCodeReason: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.errorCodeReason = errorCodeReason + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case errorCodeReason = "ErrorCodeReason" + case message = "Message" + } + } } // MARK: - Errors @@ -1907,6 +1980,14 @@ public struct DetectiveErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DetectiveErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Detective.AccessDeniedException.self, + "ServiceQuotaExceededException": Detective.ServiceQuotaExceededException.self, + "ValidationException": Detective.ValidationException.self + ] +} + extension DetectiveErrorType: Equatable { public static func == (lhs: DetectiveErrorType, rhs: DetectiveErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_api.swift b/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_api.swift index 4cb778dafaa..d66b2716b4d 100644 --- a/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_api.swift +++ b/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_shapes.swift b/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_shapes.swift index 4f127398465..ca2b8a7f14e 100644 --- a/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_shapes.swift +++ b/Sources/Soto/Services/DevOpsGuru/DevOpsGuru_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -260,6 +259,16 @@ extension DevOpsGuru { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case invalidParameterCombination = "INVALID_PARAMETER_COMBINATION" + case other = "OTHER" + case parameterInconsistentWithServiceState = "PARAMETER_INCONSISTENT_WITH_SERVICE_STATE" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AccountHealth: AWSDecodableShape { @@ -644,6 +653,27 @@ extension DevOpsGuru { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the Amazon Web Services resource in which a conflict occurred. + public let resourceId: String + /// The type of the Amazon Web Services resource in which a conflict occurred. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct CostEstimationResourceCollectionFilter: AWSEncodableShape & AWSDecodableShape { /// An object that specifies the CloudFormation stack that defines the Amazon Web Services resources /// used to create a monthly estimate for DevOps Guru. @@ -1554,6 +1584,30 @@ extension DevOpsGuru { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds after which the action that caused the internal server + /// exception can be retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct KMSServerSideEncryptionIntegration: AWSDecodableShape { /// Describes the specified KMS key. /// To specify a KMS key, use its key ID, key ARN, @@ -3520,6 +3574,27 @@ extension DevOpsGuru { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the Amazon Web Services resource that could not be found. + public let resourceId: String + /// The type of the Amazon Web Services resource that could not be found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct SearchInsightsFilters: AWSEncodableShape { public let resourceCollection: ResourceCollection? /// A collection of the names of Amazon Web Services services. @@ -4051,6 +4126,40 @@ extension DevOpsGuru { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The code of the quota that was exceeded, causing the throttling exception. + public let quotaCode: String? + /// The number of seconds after which the action that caused the throttling exception can + /// be retried. + public let retryAfterSeconds: Int? + /// The code of the service that caused the throttling exception. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct TimestampMetricValuePair: AWSDecodableShape { /// Value of the anomalous metric data point at respective Timestamp. public let metricValue: Double? @@ -4258,6 +4367,46 @@ extension DevOpsGuru { case tagValues = "TagValues" } } + + public struct ValidationException: AWSErrorShape { + public let fields: [ValidationExceptionField]? + /// A message that describes the validation exception. + public let message: String + /// The reason the validation exception was thrown. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message associated with the validation exception with information to help + /// determine its cause. + public let message: String + /// The name of the field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } } // MARK: - Errors @@ -4312,6 +4461,16 @@ public struct DevOpsGuruErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DevOpsGuruErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": DevOpsGuru.ConflictException.self, + "InternalServerException": DevOpsGuru.InternalServerException.self, + "ResourceNotFoundException": DevOpsGuru.ResourceNotFoundException.self, + "ThrottlingException": DevOpsGuru.ThrottlingException.self, + "ValidationException": DevOpsGuru.ValidationException.self + ] +} + extension DevOpsGuruErrorType: Equatable { public static func == (lhs: DevOpsGuruErrorType, rhs: DevOpsGuruErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DeviceFarm/DeviceFarm_api.swift b/Sources/Soto/Services/DeviceFarm/DeviceFarm_api.swift index 7c6a2f37c26..09149cc9a31 100644 --- a/Sources/Soto/Services/DeviceFarm/DeviceFarm_api.swift +++ b/Sources/Soto/Services/DeviceFarm/DeviceFarm_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DeviceFarm/DeviceFarm_shapes.swift b/Sources/Soto/Services/DeviceFarm/DeviceFarm_shapes.swift index e50b7496437..007b41a06d8 100644 --- a/Sources/Soto/Services/DeviceFarm/DeviceFarm_shapes.swift +++ b/Sources/Soto/Services/DeviceFarm/DeviceFarm_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -4507,6 +4506,38 @@ extension DeviceFarm { } } + public struct TagOperationException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + + public struct TagPolicyException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource or resources to which to add tags. You can associate tags with the following Device Farm resources: PROJECT, RUN, NETWORK_PROFILE, INSTANCE_PROFILE, DEVICE_INSTANCE, SESSION, DEVICE_POOL, DEVICE, and VPCE_CONFIGURATION. public let resourceARN: String @@ -4751,6 +4782,22 @@ extension DeviceFarm { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct TrialMinutes: AWSDecodableShape { /// The number of free trial minutes remaining in the account. public let remaining: Double? @@ -5450,6 +5497,14 @@ public struct DeviceFarmErrorType: AWSErrorType { public static var tooManyTagsException: Self { .init(.tooManyTagsException) } } +extension DeviceFarmErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "TagOperationException": DeviceFarm.TagOperationException.self, + "TagPolicyException": DeviceFarm.TagPolicyException.self, + "TooManyTagsException": DeviceFarm.TooManyTagsException.self + ] +} + extension DeviceFarmErrorType: Equatable { public static func == (lhs: DeviceFarmErrorType, rhs: DeviceFarmErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DirectConnect/DirectConnect_api.swift b/Sources/Soto/Services/DirectConnect/DirectConnect_api.swift index 75c02fad9e8..5933cec67d7 100644 --- a/Sources/Soto/Services/DirectConnect/DirectConnect_api.swift +++ b/Sources/Soto/Services/DirectConnect/DirectConnect_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DirectConnect/DirectConnect_shapes.swift b/Sources/Soto/Services/DirectConnect/DirectConnect_shapes.swift index b448d39a626..73ff9b7438e 100644 --- a/Sources/Soto/Services/DirectConnect/DirectConnect_shapes.swift +++ b/Sources/Soto/Services/DirectConnect/DirectConnect_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DirectoryService/DirectoryService_api.swift b/Sources/Soto/Services/DirectoryService/DirectoryService_api.swift index c623c855262..9239d377322 100644 --- a/Sources/Soto/Services/DirectoryService/DirectoryService_api.swift +++ b/Sources/Soto/Services/DirectoryService/DirectoryService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DirectoryService/DirectoryService_shapes.swift b/Sources/Soto/Services/DirectoryService/DirectoryService_shapes.swift index 858af437c57..855d38415ac 100644 --- a/Sources/Soto/Services/DirectoryService/DirectoryService_shapes.swift +++ b/Sources/Soto/Services/DirectoryService/DirectoryService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -313,6 +312,22 @@ extension DirectoryService { } } + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct AddIpRoutesRequest: AWSEncodableShape { /// Identifier (ID) of the directory to which to add the address block. public let directoryId: String @@ -429,6 +444,24 @@ extension DirectoryService { } } + public struct AuthenticationFailedException: AWSErrorShape { + /// The textual message for the exception. + public let message: String? + /// The identifier of the request that caused the exception. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct CancelSchemaExtensionRequest: AWSEncodableShape { /// The identifier of the directory whose schema extension will be canceled. public let directoryId: String @@ -498,6 +531,54 @@ extension DirectoryService { } } + public struct CertificateAlreadyExistsException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct CertificateDoesNotExistException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct CertificateInUseException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct CertificateInfo: AWSDecodableShape { /// The identifier of the certificate. public let certificateId: String? @@ -528,6 +609,22 @@ extension DirectoryService { } } + public struct CertificateLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct ClientAuthenticationSettingInfo: AWSDecodableShape { /// The date and time when the status of the client authentication type was last updated. public let lastUpdatedDateTime: Date? @@ -570,6 +667,22 @@ extension DirectoryService { } } + public struct ClientException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct Computer: AWSDecodableShape { /// An array of Attribute objects containing the LDAP attributes that belong to the computer account. public let computerAttributes: [Attribute]? @@ -1929,6 +2042,38 @@ extension DirectoryService { } } + public struct DirectoryAlreadyInRegionException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct DirectoryAlreadySharedException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct DirectoryConnectSettings: AWSEncodableShape { /// A list of one or more IP addresses of DNS servers or domain controllers in your self-managed directory. public let customerDnsIps: [String] @@ -2115,6 +2260,54 @@ extension DirectoryService { } } + public struct DirectoryDoesNotExistException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct DirectoryInDesiredStateException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct DirectoryLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct DirectoryLimits: AWSDecodableShape { /// The current number of cloud directories in the Region. public let cloudOnlyDirectoriesCurrentCount: Int? @@ -2161,6 +2354,38 @@ extension DirectoryService { } } + public struct DirectoryNotSharedException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct DirectoryUnavailableException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct DirectoryVpcSettings: AWSEncodableShape & AWSDecodableShape { /// The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. Directory Service creates a directory server and a DNS server in each of these subnets. public let subnetIds: [String] @@ -2392,6 +2617,22 @@ extension DirectoryService { } } + public struct DomainControllerLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct EnableClientAuthenticationRequest: AWSEncodableShape { /// The identifier of the specified directory. public let directoryId: String @@ -2527,6 +2768,38 @@ extension DirectoryService { public init() {} } + public struct EntityAlreadyExistsException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct EntityDoesNotExistException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct EventTopic: AWSDecodableShape { /// The date and time of when you associated your directory with the Amazon SNS topic. public let createdDateTime: Date? @@ -2607,6 +2880,150 @@ extension DirectoryService { } } + public struct IncompatibleSettingsException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InsufficientPermissionsException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidCertificateException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidClientAuthStatusException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidLDAPSStatusException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidNextTokenException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidParameterException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidPasswordException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidTargetException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct IpRoute: AWSEncodableShape { /// IP address block using CIDR format, for example 10.0.0.0/24. This is often the address block of the DNS server used for your self-managed domain. For a single IP address use a CIDR address block with /32. For example 10.0.0.0/32. public let cidrIp: String? @@ -2665,6 +3082,22 @@ extension DirectoryService { } } + public struct IpRouteLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct LDAPSSettingInfo: AWSDecodableShape { /// The date and time when the LDAPS settings were last updated. public let lastUpdatedDateTime: Date? @@ -2935,6 +3368,22 @@ extension DirectoryService { } } + public struct NoAvailableCertificateException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct OSUpdateSettings: AWSEncodableShape & AWSDecodableShape { /// OS version that the directory needs to be updated to. public let osVersion: OSVersion? @@ -2949,6 +3398,22 @@ extension DirectoryService { } } + public struct OrganizationsException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct OwnerDirectoryDescription: AWSDecodableShape { /// Identifier of the directory owner account. public let accountId: String? @@ -3088,6 +3553,22 @@ extension DirectoryService { } } + public struct RegionLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct RegionsInfo: AWSDecodableShape { /// Lists the Regions where the directory has been replicated, excluding the primary Region. public let additionalRegions: [String]? @@ -3391,6 +3872,22 @@ extension DirectoryService { } } + public struct ServiceException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct Setting: AWSEncodableShape { /// The name of the directory setting. For example: TLS_1_0 public let name: String @@ -3518,6 +4015,22 @@ extension DirectoryService { } } + public struct ShareLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct ShareTarget: AWSEncodableShape { /// Identifier of the directory consumer account. public let id: String @@ -3621,6 +4134,22 @@ extension DirectoryService { } } + public struct SnapshotLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct SnapshotLimits: AWSDecodableShape { /// The current number of manual snapshots of the directory. public let manualSnapshotsCurrentCount: Int? @@ -3717,6 +4246,22 @@ extension DirectoryService { } } + public struct TagLimitExceededException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct Trust: AWSDecodableShape { /// The date and time that the trust relationship was created. public let createdDateTime: Date? @@ -3831,6 +4376,38 @@ extension DirectoryService { } } + public struct UnsupportedOperationException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct UnsupportedSettingsException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct UpdateConditionalForwarderRequest: AWSEncodableShape { /// The directory ID of the Amazon Web Services directory for which to update the conditional forwarder. public let directoryId: String @@ -4088,6 +4665,22 @@ extension DirectoryService { } } + public struct UserDoesNotExistException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct VerifyTrustRequest: AWSEncodableShape { /// The unique Trust ID of the trust relationship to verify. public let trustId: String @@ -4259,6 +4852,48 @@ public struct DirectoryServiceErrorType: AWSErrorType { public static var userDoesNotExistException: Self { .init(.userDoesNotExistException) } } +extension DirectoryServiceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": DirectoryService.AccessDeniedException.self, + "AuthenticationFailedException": DirectoryService.AuthenticationFailedException.self, + "CertificateAlreadyExistsException": DirectoryService.CertificateAlreadyExistsException.self, + "CertificateDoesNotExistException": DirectoryService.CertificateDoesNotExistException.self, + "CertificateInUseException": DirectoryService.CertificateInUseException.self, + "CertificateLimitExceededException": DirectoryService.CertificateLimitExceededException.self, + "ClientException": DirectoryService.ClientException.self, + "DirectoryAlreadyInRegionException": DirectoryService.DirectoryAlreadyInRegionException.self, + "DirectoryAlreadySharedException": DirectoryService.DirectoryAlreadySharedException.self, + "DirectoryDoesNotExistException": DirectoryService.DirectoryDoesNotExistException.self, + "DirectoryInDesiredStateException": DirectoryService.DirectoryInDesiredStateException.self, + "DirectoryLimitExceededException": DirectoryService.DirectoryLimitExceededException.self, + "DirectoryNotSharedException": DirectoryService.DirectoryNotSharedException.self, + "DirectoryUnavailableException": DirectoryService.DirectoryUnavailableException.self, + "DomainControllerLimitExceededException": DirectoryService.DomainControllerLimitExceededException.self, + "EntityAlreadyExistsException": DirectoryService.EntityAlreadyExistsException.self, + "EntityDoesNotExistException": DirectoryService.EntityDoesNotExistException.self, + "IncompatibleSettingsException": DirectoryService.IncompatibleSettingsException.self, + "InsufficientPermissionsException": DirectoryService.InsufficientPermissionsException.self, + "InvalidCertificateException": DirectoryService.InvalidCertificateException.self, + "InvalidClientAuthStatusException": DirectoryService.InvalidClientAuthStatusException.self, + "InvalidLDAPSStatusException": DirectoryService.InvalidLDAPSStatusException.self, + "InvalidNextTokenException": DirectoryService.InvalidNextTokenException.self, + "InvalidParameterException": DirectoryService.InvalidParameterException.self, + "InvalidPasswordException": DirectoryService.InvalidPasswordException.self, + "InvalidTargetException": DirectoryService.InvalidTargetException.self, + "IpRouteLimitExceededException": DirectoryService.IpRouteLimitExceededException.self, + "NoAvailableCertificateException": DirectoryService.NoAvailableCertificateException.self, + "OrganizationsException": DirectoryService.OrganizationsException.self, + "RegionLimitExceededException": DirectoryService.RegionLimitExceededException.self, + "ServiceException": DirectoryService.ServiceException.self, + "ShareLimitExceededException": DirectoryService.ShareLimitExceededException.self, + "SnapshotLimitExceededException": DirectoryService.SnapshotLimitExceededException.self, + "TagLimitExceededException": DirectoryService.TagLimitExceededException.self, + "UnsupportedOperationException": DirectoryService.UnsupportedOperationException.self, + "UnsupportedSettingsException": DirectoryService.UnsupportedSettingsException.self, + "UserDoesNotExistException": DirectoryService.UserDoesNotExistException.self + ] +} + extension DirectoryServiceErrorType: Equatable { public static func == (lhs: DirectoryServiceErrorType, rhs: DirectoryServiceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_api.swift b/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_api.swift index d48163b24cb..e4c2f976273 100644 --- a/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_api.swift +++ b/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_shapes.swift b/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_shapes.swift index 1c520f910ee..4666051d37a 100644 --- a/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_shapes.swift +++ b/Sources/Soto/Services/DirectoryServiceData/DirectoryServiceData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,22 @@ import Foundation extension DirectoryServiceData { // MARK: Enums + public enum AccessDeniedReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case dataDisabled = "DATA_DISABLED" + case directoryAuth = "DIRECTORY_AUTH" + case iamAuth = "IAM_AUTH" + public var description: String { return self.rawValue } + } + + public enum DirectoryUnavailableReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case directoryResourcesExceeded = "DIRECTORY_RESOURCES_EXCEEDED" + case directoryTimeout = "DIRECTORY_TIMEOUT" + case invalidDirectoryState = "INVALID_DIRECTORY_STATE" + case noDiskSpace = "NO_DISK_SPACE" + case trustAuthFailure = "TRUST_AUTH_FAILURE" + public var description: String { return self.rawValue } + } + public enum GroupScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case builtinLocal = "BuiltinLocal" case domainLocal = "DomainLocal" @@ -54,6 +69,25 @@ extension DirectoryServiceData { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case attributeExists = "ATTRIBUTE_EXISTS" + case duplicateAttribute = "DUPLICATE_ATTRIBUTE" + case invalidAttributeForGroup = "INVALID_ATTRIBUTE_FOR_GROUP" + case invalidAttributeForModify = "INVALID_ATTRIBUTE_FOR_MODIFY" + case invalidAttributeForSearch = "INVALID_ATTRIBUTE_FOR_SEARCH" + case invalidAttributeForUser = "INVALID_ATTRIBUTE_FOR_USER" + case invalidAttributeName = "INVALID_ATTRIBUTE_NAME" + case invalidAttributeValue = "INVALID_ATTRIBUTE_VALUE" + case invalidDirectoryType = "INVALID_DIRECTORY_TYPE" + case invalidNextToken = "INVALID_NEXT_TOKEN" + case invalidRealm = "INVALID_REALM" + case invalidSecondaryRegion = "INVALID_SECONDARY_REGION" + case ldapSizeLimitExceeded = "LDAP_SIZE_LIMIT_EXCEEDED" + case ldapUnsupportedOperation = "LDAP_UNSUPPORTED_OPERATION" + case missingAttribute = "MISSING_ATTRIBUTE" + public var description: String { return self.rawValue } + } + public enum AttributeValue: AWSEncodableShape & AWSDecodableShape, Sendable { /// Indicates that the attribute type value is a boolean. For example: "BOOL": true case bool(Bool) @@ -129,6 +163,23 @@ extension DirectoryServiceData { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// Reason the request was unauthorized. + public let reason: AccessDeniedReason? + + @inlinable + public init(message: String? = nil, reason: AccessDeniedReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct AddGroupMemberRequest: AWSEncodableShape { /// A unique and case-sensitive identifier that you provide to make sure the idempotency of the request, so multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent for another 8 hours. If you submit a request with the same client token but change one of the other parameters within the 8-hour idempotency window, Directory Service Data returns an ConflictException. This parameter is optional when using the CLI or SDK. public let clientToken: String? @@ -651,6 +702,23 @@ extension DirectoryServiceData { } } + public struct DirectoryUnavailableException: AWSErrorShape { + public let message: String? + /// Reason the request failed for the specified directory. + public let reason: DirectoryUnavailableReason? + + @inlinable + public init(message: String? = nil, reason: DirectoryUnavailableReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct DisableUserRequest: AWSEncodableShape { /// A unique and case-sensitive identifier that you provide to make sure the idempotency of the request, so multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent for another 8 hours. If you submit a request with the same client token but change one of the other parameters within the 8-hour idempotency window, Directory Service Data returns an ConflictException. This parameter is optional when using the CLI or SDK. public let clientToken: String? @@ -1339,6 +1407,29 @@ extension DirectoryServiceData { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The recommended amount of seconds to retry after a throttling exception. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct UpdateGroupRequest: AWSEncodableShape { /// A unique and case-sensitive identifier that you provide to make sure the idempotency of the request, so multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent for another 8 hours. If you submit a request with the same client token but change one of the other parameters within the 8-hour idempotency window, Directory Service Data returns an ConflictException. This parameter is optional when using the CLI or SDK. public let clientToken: String? @@ -1567,6 +1658,23 @@ extension DirectoryServiceData { case surname = "Surname" } } + + public struct ValidationException: AWSErrorShape { + public let message: String? + /// Reason the request failed validation. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } } // MARK: - Errors @@ -1617,6 +1725,15 @@ public struct DirectoryServiceDataErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DirectoryServiceDataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": DirectoryServiceData.AccessDeniedException.self, + "DirectoryUnavailableException": DirectoryServiceData.DirectoryUnavailableException.self, + "ThrottlingException": DirectoryServiceData.ThrottlingException.self, + "ValidationException": DirectoryServiceData.ValidationException.self + ] +} + extension DirectoryServiceDataErrorType: Equatable { public static func == (lhs: DirectoryServiceDataErrorType, rhs: DirectoryServiceDataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DocDB/DocDB_api.swift b/Sources/Soto/Services/DocDB/DocDB_api.swift index 347a682e4a4..a329363bd65 100644 --- a/Sources/Soto/Services/DocDB/DocDB_api.swift +++ b/Sources/Soto/Services/DocDB/DocDB_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DocDB/DocDB_shapes.swift b/Sources/Soto/Services/DocDB/DocDB_shapes.swift index b872907a3a8..760b37b2d77 100644 --- a/Sources/Soto/Services/DocDB/DocDB_shapes.swift +++ b/Sources/Soto/Services/DocDB/DocDB_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DocDBElastic/DocDBElastic_api.swift b/Sources/Soto/Services/DocDBElastic/DocDBElastic_api.swift index 8973a723186..aa5b5f0db1c 100644 --- a/Sources/Soto/Services/DocDBElastic/DocDBElastic_api.swift +++ b/Sources/Soto/Services/DocDBElastic/DocDBElastic_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DocDBElastic/DocDBElastic_shapes.swift b/Sources/Soto/Services/DocDBElastic/DocDBElastic_shapes.swift index 1a1b176ed32..02f47b1eff9 100644 --- a/Sources/Soto/Services/DocDBElastic/DocDBElastic_shapes.swift +++ b/Sources/Soto/Services/DocDBElastic/DocDBElastic_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -71,6 +70,14 @@ extension DocDBElastic { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct ApplyPendingMaintenanceActionInput: AWSEncodableShape { @@ -306,6 +313,27 @@ extension DocDBElastic { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource where there was an access conflict. + public let resourceId: String + /// The type of the resource where there was an access conflict. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CopyClusterSnapshotInput: AWSEncodableShape { /// Set to true to copy all tags from the source cluster snapshot to the target elastic cluster snapshot. The default is false. public let copyTags: Bool? @@ -869,6 +897,28 @@ extension DocDBElastic { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// An error message describing the failure. + public let message: String + /// The ID of the resource that could not be located. + public let resourceId: String + /// The type of the resource that could not be found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ResourcePendingMaintenanceAction: AWSDecodableShape { /// Provides information about a pending maintenance action for a resource. public let pendingMaintenanceActionDetails: [PendingMaintenanceActionDetails]? @@ -1087,6 +1137,29 @@ extension DocDBElastic { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the operation. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN identifier of the elastic cluster resource. public let resourceArn: String @@ -1211,6 +1284,46 @@ extension DocDBElastic { case cluster = "cluster" } } + + public struct ValidationException: AWSErrorShape { + /// A list of the fields in which the validation exception occurred. + public let fieldList: [ValidationExceptionField]? + /// An error message describing the validation exception. + public let message: String + /// The reason why the validation exception occurred (one of unknownOperation, cannotParse, fieldValidationFailed, or other). + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// An error message describing the validation exception in this field. + public let message: String + /// The name of the field where the validation exception occurred. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -1261,6 +1374,15 @@ public struct DocDBElasticErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DocDBElasticErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": DocDBElastic.ConflictException.self, + "ResourceNotFoundException": DocDBElastic.ResourceNotFoundException.self, + "ThrottlingException": DocDBElastic.ThrottlingException.self, + "ValidationException": DocDBElastic.ValidationException.self + ] +} + extension DocDBElasticErrorType: Equatable { public static func == (lhs: DocDBElasticErrorType, rhs: DocDBElasticErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Drs/Drs_api.swift b/Sources/Soto/Services/Drs/Drs_api.swift index b3ad09dc8d2..64eefd05c5e 100644 --- a/Sources/Soto/Services/Drs/Drs_api.swift +++ b/Sources/Soto/Services/Drs/Drs_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Drs/Drs_shapes.swift b/Sources/Soto/Services/Drs/Drs_shapes.swift index 22172e17bf7..ada3bc97f3d 100644 --- a/Sources/Soto/Services/Drs/Drs_shapes.swift +++ b/Sources/Soto/Services/Drs/Drs_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -393,6 +392,14 @@ extension Drs { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum VolumeStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case containsMarketplaceProductCodes = "CONTAINS_MARKETPLACE_PRODUCT_CODES" case missingVolumeAttributes = "MISSING_VOLUME_ATTRIBUTES" @@ -404,6 +411,22 @@ extension Drs { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct Account: AWSDecodableShape { /// Account ID of AWS account. public let accountID: String? @@ -477,6 +500,30 @@ extension Drs { } } + public struct ConflictException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.code = code + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ConversionProperties: AWSDecodableShape { /// The timestamp of when the snapshot being converted was taken public let dataTimestamp: String? @@ -1851,6 +1898,29 @@ extension Drs { public init() {} } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds after which the request should be safe to retry. + public let retryAfterSeconds: Int64? + + @inlinable + public init(message: String, retryAfterSeconds: Int64? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int64.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Job: AWSDecodableShape { /// The ARN of a Job. public let arn: String? @@ -3299,6 +3369,30 @@ extension Drs { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.code = code + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RetryDataReplicationRequest: AWSEncodableShape { /// The ID of the Source Server whose data replication should be retried. public let sourceServerID: String @@ -3353,6 +3447,38 @@ extension Drs { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let code: String? + public let message: String? + /// Quota code. + public let quotaCode: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: String? + /// Service code. + public let serviceCode: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.code = code + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SourceCloudProperties: AWSDecodableShape { /// AWS Account ID for an EC2-originated Source Server. public let originAccountID: String? @@ -4043,6 +4169,55 @@ extension Drs { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Quota code. + public let quotaCode: String? + /// The number of seconds after which the request should be safe to retry. + public let retryAfterSeconds: String? + /// Service code. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + + public struct UninitializedAccountException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// ARN of the resource for which tags are to be removed. public let resourceArn: String @@ -4445,6 +4620,48 @@ extension Drs { } } + public struct ValidationException: AWSErrorShape { + public let code: String? + /// A list of fields that failed validation. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// Validation exception reason. + public let reason: ValidationExceptionReason? + + @inlinable + public init(code: String? = nil, fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.code = code + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Validate exception field message. + public let message: String? + /// Validate exception field name. + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct EventResourceData: AWSDecodableShape { /// Source Network properties. public let sourceNetworkData: SourceNetworkData? @@ -4525,6 +4742,19 @@ public struct DrsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension DrsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Drs.AccessDeniedException.self, + "ConflictException": Drs.ConflictException.self, + "InternalServerException": Drs.InternalServerException.self, + "ResourceNotFoundException": Drs.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Drs.ServiceQuotaExceededException.self, + "ThrottlingException": Drs.ThrottlingException.self, + "UninitializedAccountException": Drs.UninitializedAccountException.self, + "ValidationException": Drs.ValidationException.self + ] +} + extension DrsErrorType: Equatable { public static func == (lhs: DrsErrorType, rhs: DrsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DynamoDB/DynamoDB_api.swift b/Sources/Soto/Services/DynamoDB/DynamoDB_api.swift index 587367e3967..81cc697a80c 100644 --- a/Sources/Soto/Services/DynamoDB/DynamoDB_api.swift +++ b/Sources/Soto/Services/DynamoDB/DynamoDB_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DynamoDB/DynamoDB_shapes.swift b/Sources/Soto/Services/DynamoDB/DynamoDB_shapes.swift index 7bd186a0048..54588d1e076 100644 --- a/Sources/Soto/Services/DynamoDB/DynamoDB_shapes.swift +++ b/Sources/Soto/Services/DynamoDB/DynamoDB_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1084,6 +1083,28 @@ extension DynamoDB { } } + public struct CancellationReason: AWSDecodableShape { + /// Status code for the result of the cancelled transaction. + public let code: String? + /// Item in the request which caused the transaction to get cancelled. + public let item: [String: AttributeValue]? + /// Cancellation reason message description. + public let message: String? + + @inlinable + public init(code: String? = nil, item: [String: AttributeValue]? = nil, message: String? = nil) { + self.code = code + self.item = item + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case item = "Item" + case message = "Message" + } + } + public struct Capacity: AWSDecodableShape { /// The total number of capacity units consumed on a table or an index. public let capacityUnits: Double? @@ -1179,6 +1200,24 @@ extension DynamoDB { } } + public struct ConditionalCheckFailedException: AWSErrorShape { + /// Item which caused the ConditionalCheckFailedException. + public let item: [String: AttributeValue]? + /// The conditional request failed. + public let message: String? + + @inlinable + public init(item: [String: AttributeValue]? = nil, message: String? = nil) { + self.item = item + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case item = "Item" + case message = "message" + } + } + public struct ConsumedCapacity: AWSDecodableShape { /// The total number of capacity units consumed by the operation. public let capacityUnits: Double? @@ -5913,6 +5952,23 @@ extension DynamoDB { } } + public struct TransactionCanceledException: AWSErrorShape { + /// A list of cancellation reasons. + public let cancellationReasons: [CancellationReason]? + public let message: String? + + @inlinable + public init(cancellationReasons: [CancellationReason]? = nil, message: String? = nil) { + self.cancellationReasons = cancellationReasons + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case cancellationReasons = "CancellationReasons" + case message = "Message" + } + } + public struct UntagResourceInput: AWSEncodableShape { /// The DynamoDB resource that the tags will be removed from. This value is an Amazon Resource Name (ARN). public let resourceArn: String @@ -6794,6 +6850,13 @@ public struct DynamoDBErrorType: AWSErrorType { public static var transactionInProgressException: Self { .init(.transactionInProgressException) } } +extension DynamoDBErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConditionalCheckFailedException": DynamoDB.ConditionalCheckFailedException.self, + "TransactionCanceledException": DynamoDB.TransactionCanceledException.self + ] +} + extension DynamoDBErrorType: Equatable { public static func == (lhs: DynamoDBErrorType, rhs: DynamoDBErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_api.swift b/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_api.swift index f758c07fb61..ec0cee8cc0c 100644 --- a/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_api.swift +++ b/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_shapes.swift b/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_shapes.swift index 69c6fba87a1..00f18728d44 100644 --- a/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_shapes.swift +++ b/Sources/Soto/Services/DynamoDBStreams/DynamoDBStreams_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EBS/EBS_api.swift b/Sources/Soto/Services/EBS/EBS_api.swift index 43fbf36ef82..7804647a383 100644 --- a/Sources/Soto/Services/EBS/EBS_api.swift +++ b/Sources/Soto/Services/EBS/EBS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EBS/EBS_shapes.swift b/Sources/Soto/Services/EBS/EBS_shapes.swift index 1da3e1e7d9d..77aeaefc9c9 100644 --- a/Sources/Soto/Services/EBS/EBS_shapes.swift +++ b/Sources/Soto/Services/EBS/EBS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,12 @@ import Foundation extension EBS { // MARK: Enums + public enum AccessDeniedExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case dependencyAccessDenied = "DEPENDENCY_ACCESS_DENIED" + case unauthorizedAccount = "UNAUTHORIZED_ACCOUNT" + public var description: String { return self.rawValue } + } + public enum ChecksumAggregationMethod: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case checksumAggregationLinear = "LINEAR" public var description: String { return self.rawValue } @@ -36,6 +41,21 @@ extension EBS { public var description: String { return self.rawValue } } + public enum RequestThrottledExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountThrottled = "ACCOUNT_THROTTLED" + case dependencyRequestThrottled = "DEPENDENCY_REQUEST_THROTTLED" + case resourceLevelThrottle = "RESOURCE_LEVEL_THROTTLE" + public var description: String { return self.rawValue } + } + + public enum ResourceNotFoundExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case dependencyResourceNotFound = "DEPENDENCY_RESOURCE_NOT_FOUND" + case grantNotFound = "GRANT_NOT_FOUND" + case imageNotFound = "IMAGE_NOT_FOUND" + case snapshotNotFound = "SNAPSHOT_NOT_FOUND" + public var description: String { return self.rawValue } + } + public enum SSEType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case none = "none" case sseEbs = "sse-ebs" @@ -43,6 +63,11 @@ extension EBS { public var description: String { return self.rawValue } } + public enum ServiceQuotaExceededExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case dependencyServiceQuotaExceeded = "DEPENDENCY_SERVICE_QUOTA_EXCEEDED" + public var description: String { return self.rawValue } + } + public enum Status: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case completed = "completed" case error = "error" @@ -50,8 +75,44 @@ extension EBS { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case conflictingBlockUpdate = "CONFLICTING_BLOCK_UPDATE" + case invalidBlock = "INVALID_BLOCK" + case invalidBlockToken = "INVALID_BLOCK_TOKEN" + case invalidContentEncoding = "INVALID_CONTENT_ENCODING" + case invalidCustomerKey = "INVALID_CUSTOMER_KEY" + case invalidDependencyRequest = "INVALID_DEPENDENCY_REQUEST" + case invalidGrantToken = "INVALID_GRANT_TOKEN" + case invalidImageId = "INVALID_IMAGE_ID" + case invalidPageToken = "INVALID_PAGE_TOKEN" + case invalidParameterValue = "INVALID_PARAMETER_VALUE" + case invalidSnapshotId = "INVALID_SNAPSHOT_ID" + case invalidTag = "INVALID_TAG" + case invalidVolumeSize = "INVALID_VOLUME_SIZE" + case unrelatedSnapshots = "UNRELATED_SNAPSHOTS" + case writeRequestTimeout = "WRITE_REQUEST_TIMEOUT" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: AccessDeniedExceptionReason + + @inlinable + public init(message: String? = nil, reason: AccessDeniedExceptionReason) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct Block: AWSDecodableShape { /// The block index. public let blockIndex: Int? @@ -439,6 +500,57 @@ extension EBS { private enum CodingKeys: CodingKey {} } + public struct RequestThrottledException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: RequestThrottledExceptionReason? + + @inlinable + public init(message: String? = nil, reason: RequestThrottledExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ResourceNotFoundExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ResourceNotFoundExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ServiceQuotaExceededExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ServiceQuotaExceededExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct StartSnapshotRequest: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK. For more information, see Idempotency for StartSnapshot API in the Amazon Elastic Compute Cloud User Guide. public let clientToken: String? @@ -578,6 +690,23 @@ extension EBS { case value = "Value" } } + + public struct ValidationException: AWSErrorShape { + public let message: String? + /// The reason for the validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } } // MARK: - Errors @@ -631,6 +760,16 @@ public struct EBSErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension EBSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": EBS.AccessDeniedException.self, + "RequestThrottledException": EBS.RequestThrottledException.self, + "ResourceNotFoundException": EBS.ResourceNotFoundException.self, + "ServiceQuotaExceededException": EBS.ServiceQuotaExceededException.self, + "ValidationException": EBS.ValidationException.self + ] +} + extension EBSErrorType: Equatable { public static func == (lhs: EBSErrorType, rhs: EBSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/EC2/EC2_api.swift b/Sources/Soto/Services/EC2/EC2_api.swift index efdbd0ba87e..9355c4427f8 100644 --- a/Sources/Soto/Services/EC2/EC2_api.swift +++ b/Sources/Soto/Services/EC2/EC2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EC2/EC2_shapes.swift b/Sources/Soto/Services/EC2/EC2_shapes.swift index 032204b8bc6..bb4650853ba 100644 --- a/Sources/Soto/Services/EC2/EC2_shapes.swift +++ b/Sources/Soto/Services/EC2/EC2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_api.swift b/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_api.swift index 577b0853b87..a7aa0977639 100644 --- a/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_api.swift +++ b/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_shapes.swift b/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_shapes.swift index d9cfdf104e8..8969a24331c 100644 --- a/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_shapes.swift +++ b/Sources/Soto/Services/EC2InstanceConnect/EC2InstanceConnect_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ECR/ECR_api.swift b/Sources/Soto/Services/ECR/ECR_api.swift index 2e460930b6c..da2493ea00d 100644 --- a/Sources/Soto/Services/ECR/ECR_api.swift +++ b/Sources/Soto/Services/ECR/ECR_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ECR/ECR_shapes.swift b/Sources/Soto/Services/ECR/ECR_shapes.swift index f9970732b26..a478d5872a6 100644 --- a/Sources/Soto/Services/ECR/ECR_shapes.swift +++ b/Sources/Soto/Services/ECR/ECR_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2260,6 +2259,53 @@ extension ECR { } } + public struct InvalidLayerPartException: AWSErrorShape { + /// The last valid byte received from the layer part upload that is associated with the exception. + public let lastValidByteReceived: Int64? + /// The error message associated with the exception. + public let message: String? + /// The registry ID associated with the exception. + public let registryId: String? + /// The repository name associated with the exception. + public let repositoryName: String? + /// The upload ID associated with the exception. + public let uploadId: String? + + @inlinable + public init(lastValidByteReceived: Int64? = nil, message: String? = nil, registryId: String? = nil, repositoryName: String? = nil, uploadId: String? = nil) { + self.lastValidByteReceived = lastValidByteReceived + self.message = message + self.registryId = registryId + self.repositoryName = repositoryName + self.uploadId = uploadId + } + + private enum CodingKeys: String, CodingKey { + case lastValidByteReceived = "lastValidByteReceived" + case message = "message" + case registryId = "registryId" + case repositoryName = "repositoryName" + case uploadId = "uploadId" + } + } + + public struct KmsException: AWSErrorShape { + /// The error code returned by KMS. + public let kmsError: String? + public let message: String? + + @inlinable + public init(kmsError: String? = nil, message: String? = nil) { + self.kmsError = kmsError + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case kmsError = "kmsError" + case message = "message" + } + } + public struct Layer: AWSDecodableShape { /// The availability status of the image layer. public let layerAvailability: LayerAvailability? @@ -4043,6 +4089,13 @@ public struct ECRErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ECRErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidLayerPartException": ECR.InvalidLayerPartException.self, + "KmsException": ECR.KmsException.self + ] +} + extension ECRErrorType: Equatable { public static func == (lhs: ECRErrorType, rhs: ECRErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ECRPublic/ECRPublic_api.swift b/Sources/Soto/Services/ECRPublic/ECRPublic_api.swift index c65e9e0f925..d7cf1f5091f 100644 --- a/Sources/Soto/Services/ECRPublic/ECRPublic_api.swift +++ b/Sources/Soto/Services/ECRPublic/ECRPublic_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ECRPublic/ECRPublic_shapes.swift b/Sources/Soto/Services/ECRPublic/ECRPublic_shapes.swift index b22f4df61fd..6515e166667 100644 --- a/Sources/Soto/Services/ECRPublic/ECRPublic_shapes.swift +++ b/Sources/Soto/Services/ECRPublic/ECRPublic_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -906,6 +905,35 @@ extension ECRPublic { } } + public struct InvalidLayerPartException: AWSErrorShape { + /// The position of the last byte of the layer part. + public let lastValidByteReceived: Int64? + public let message: String? + /// The Amazon Web Services account ID that's associated with the layer part. + public let registryId: String? + /// The name of the repository. + public let repositoryName: String? + /// The upload ID that's associated with the layer part. + public let uploadId: String? + + @inlinable + public init(lastValidByteReceived: Int64? = nil, message: String? = nil, registryId: String? = nil, repositoryName: String? = nil, uploadId: String? = nil) { + self.lastValidByteReceived = lastValidByteReceived + self.message = message + self.registryId = registryId + self.repositoryName = repositoryName + self.uploadId = uploadId + } + + private enum CodingKeys: String, CodingKey { + case lastValidByteReceived = "lastValidByteReceived" + case message = "message" + case registryId = "registryId" + case repositoryName = "repositoryName" + case uploadId = "uploadId" + } + } + public struct Layer: AWSDecodableShape { /// The availability status of the image layer. public let layerAvailability: LayerAvailability? @@ -1657,6 +1685,12 @@ public struct ECRPublicErrorType: AWSErrorType { public static var uploadNotFoundException: Self { .init(.uploadNotFoundException) } } +extension ECRPublicErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidLayerPartException": ECRPublic.InvalidLayerPartException.self + ] +} + extension ECRPublicErrorType: Equatable { public static func == (lhs: ECRPublicErrorType, rhs: ECRPublicErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ECS/ECS_api.swift b/Sources/Soto/Services/ECS/ECS_api.swift index a4cd659e2d5..2d3a0432285 100644 --- a/Sources/Soto/Services/ECS/ECS_api.swift +++ b/Sources/Soto/Services/ECS/ECS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ECS/ECS_shapes.swift b/Sources/Soto/Services/ECS/ECS_shapes.swift index 5d51657cb76..36fceb5f2aa 100644 --- a/Sources/Soto/Services/ECS/ECS_shapes.swift +++ b/Sources/Soto/Services/ECS/ECS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -950,6 +949,25 @@ extension ECS { } } + public struct ConflictException: AWSErrorShape { + /// Message that describes the cause of the exception. + public let message: String? + /// The existing task ARNs which are already associated with the + /// clientToken. + public let resourceIds: [String]? + + @inlinable + public init(message: String? = nil, resourceIds: [String]? = nil) { + self.message = message + self.resourceIds = resourceIds + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceIds = "resourceIds" + } + } + public struct Container: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the container. public let containerArn: String? @@ -9351,6 +9369,12 @@ public struct ECSErrorType: AWSErrorType { public static var updateInProgressException: Self { .init(.updateInProgressException) } } +extension ECSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": ECS.ConflictException.self + ] +} + extension ECSErrorType: Equatable { public static func == (lhs: ECSErrorType, rhs: ECSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/EFS/EFS_api.swift b/Sources/Soto/Services/EFS/EFS_api.swift index 011ee26b707..b0daef2706f 100644 --- a/Sources/Soto/Services/EFS/EFS_api.swift +++ b/Sources/Soto/Services/EFS/EFS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EFS/EFS_shapes.swift b/Sources/Soto/Services/EFS/EFS_shapes.swift index 43b11d89311..2b5a6f6f4fb 100644 --- a/Sources/Soto/Services/EFS/EFS_shapes.swift +++ b/Sources/Soto/Services/EFS/EFS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -125,6 +124,25 @@ extension EFS { // MARK: Shapes + public struct AccessPointAlreadyExists: AWSErrorShape { + public let accessPointId: String + public let errorCode: String + public let message: String? + + @inlinable + public init(accessPointId: String, errorCode: String, message: String? = nil) { + self.accessPointId = accessPointId + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case accessPointId = "AccessPointId" + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct AccessPointDescription: AWSDecodableShape { /// The unique Amazon Resource Name (ARN) associated with the access point. public let accessPointArn: String? @@ -175,6 +193,54 @@ extension EFS { } } + public struct AccessPointLimitExceeded: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct AccessPointNotFound: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct AvailabilityZonesMismatch: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct BackupPolicy: AWSEncodableShape & AWSDecodableShape { /// Describes the status of the file system's backup policy. ENABLED – EFS is automatically backing up the file system. ENABLING – EFS is turning on automatic backups for the file system. DISABLED – Automatic back ups are turned off for the file system. DISABLING – EFS is turning off automatic backups for the file system. public let status: Status @@ -203,6 +269,38 @@ extension EFS { } } + public struct BadRequest: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct ConflictException: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct CreateAccessPointRequest: AWSEncodableShape { /// A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation. public let clientToken: String @@ -602,6 +700,22 @@ extension EFS { } } + public struct DependencyTimeout: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct DescribeAccessPointsRequest: AWSEncodableShape { /// (Optional) Specifies an EFS access point to describe in the response; mutually exclusive with FileSystemId. public let accessPointId: String? @@ -1138,6 +1252,25 @@ extension EFS { } } + public struct FileSystemAlreadyExists: AWSErrorShape { + public let errorCode: String + public let fileSystemId: String + public let message: String? + + @inlinable + public init(errorCode: String, fileSystemId: String, message: String? = nil) { + self.errorCode = errorCode + self.fileSystemId = fileSystemId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case fileSystemId = "FileSystemId" + case message = "Message" + } + } + public struct FileSystemDescription: AWSDecodableShape { /// The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1 is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account. public let availabilityZoneId: String? @@ -1220,6 +1353,54 @@ extension EFS { } } + public struct FileSystemInUse: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct FileSystemLimitExceeded: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct FileSystemNotFound: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct FileSystemPolicyDescription: AWSDecodableShape { /// Specifies the EFS file system to which the FileSystemPolicy applies. public let fileSystemId: String? @@ -1282,6 +1463,102 @@ extension EFS { } } + public struct IncorrectFileSystemLifeCycleState: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct IncorrectMountTargetState: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct InsufficientThroughputCapacity: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct InternalServerError: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct InvalidPolicyException: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct IpAddressInUse: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct LifecycleConfigurationDescription: AWSDecodableShape { /// An array of lifecycle management policies. EFS supports a maximum of one policy per file system. public let lifecyclePolicies: [LifecyclePolicy]? @@ -1407,6 +1684,22 @@ extension EFS { } } + public struct MountTargetConflict: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct MountTargetDescription: AWSDecodableShape { /// The unique and consistent identifier of the Availability Zone that the mount target resides in. For example, use1-az1 is an AZ ID for the us-east-1 Region and it has the same location in every Amazon Web Services account. public let availabilityZoneId: String? @@ -1457,6 +1750,70 @@ extension EFS { } } + public struct MountTargetNotFound: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct NetworkInterfaceLimitExceeded: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct NoFreeAddressesInSubnet: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct PolicyNotFound: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct PosixUser: AWSEncodableShape & AWSDecodableShape { /// The POSIX group ID used for all file system operations using this access point. public let gid: Int64 @@ -1615,6 +1972,22 @@ extension EFS { } } + public struct ReplicationAlreadyExists: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct ReplicationConfigurationDescription: AWSDecodableShape { /// Describes when the replication configuration was created. public let creationTime: Date @@ -1653,6 +2026,23 @@ extension EFS { } } + public struct ReplicationNotFound: AWSErrorShape { + /// ReplicationNotFound + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct ResourceIdPreference: AWSDecodableShape { /// Identifies the EFS resource ID preference, either LONG_ID (17 characters) or SHORT_ID (8 characters). public let resourceIdType: ResourceIdType? @@ -1696,6 +2086,54 @@ extension EFS { } } + public struct SecurityGroupLimitExceeded: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct SecurityGroupNotFound: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct SubnetNotFound: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct Tag: AWSEncodableShape & AWSDecodableShape { /// The tag key (String). The key can't start with aws:. public let key: String @@ -1754,6 +2192,70 @@ extension EFS { } } + public struct ThrottlingException: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct ThroughputLimitExceeded: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct TooManyRequests: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + + public struct UnsupportedAvailabilityZone: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// Specifies the EFS resource that you want to remove tags from. public let resourceId: String @@ -1851,6 +2353,22 @@ extension EFS { case throughputMode = "ThroughputMode" } } + + public struct ValidationException: AWSErrorShape { + public let errorCode: String + public let message: String? + + @inlinable + public init(errorCode: String, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } } // MARK: - Errors @@ -1976,6 +2494,43 @@ public struct EFSErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension EFSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessPointAlreadyExists": EFS.AccessPointAlreadyExists.self, + "AccessPointLimitExceeded": EFS.AccessPointLimitExceeded.self, + "AccessPointNotFound": EFS.AccessPointNotFound.self, + "AvailabilityZonesMismatch": EFS.AvailabilityZonesMismatch.self, + "BadRequest": EFS.BadRequest.self, + "ConflictException": EFS.ConflictException.self, + "DependencyTimeout": EFS.DependencyTimeout.self, + "FileSystemAlreadyExists": EFS.FileSystemAlreadyExists.self, + "FileSystemInUse": EFS.FileSystemInUse.self, + "FileSystemLimitExceeded": EFS.FileSystemLimitExceeded.self, + "FileSystemNotFound": EFS.FileSystemNotFound.self, + "IncorrectFileSystemLifeCycleState": EFS.IncorrectFileSystemLifeCycleState.self, + "IncorrectMountTargetState": EFS.IncorrectMountTargetState.self, + "InsufficientThroughputCapacity": EFS.InsufficientThroughputCapacity.self, + "InternalServerError": EFS.InternalServerError.self, + "InvalidPolicyException": EFS.InvalidPolicyException.self, + "IpAddressInUse": EFS.IpAddressInUse.self, + "MountTargetConflict": EFS.MountTargetConflict.self, + "MountTargetNotFound": EFS.MountTargetNotFound.self, + "NetworkInterfaceLimitExceeded": EFS.NetworkInterfaceLimitExceeded.self, + "NoFreeAddressesInSubnet": EFS.NoFreeAddressesInSubnet.self, + "PolicyNotFound": EFS.PolicyNotFound.self, + "ReplicationAlreadyExists": EFS.ReplicationAlreadyExists.self, + "ReplicationNotFound": EFS.ReplicationNotFound.self, + "SecurityGroupLimitExceeded": EFS.SecurityGroupLimitExceeded.self, + "SecurityGroupNotFound": EFS.SecurityGroupNotFound.self, + "SubnetNotFound": EFS.SubnetNotFound.self, + "ThrottlingException": EFS.ThrottlingException.self, + "ThroughputLimitExceeded": EFS.ThroughputLimitExceeded.self, + "TooManyRequests": EFS.TooManyRequests.self, + "UnsupportedAvailabilityZone": EFS.UnsupportedAvailabilityZone.self, + "ValidationException": EFS.ValidationException.self + ] +} + extension EFSErrorType: Equatable { public static func == (lhs: EFSErrorType, rhs: EFSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/EKS/EKS_api.swift b/Sources/Soto/Services/EKS/EKS_api.swift index 22b71e7fb54..0591a2a5d59 100644 --- a/Sources/Soto/Services/EKS/EKS_api.swift +++ b/Sources/Soto/Services/EKS/EKS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EKS/EKS_shapes.swift b/Sources/Soto/Services/EKS/EKS_shapes.swift index e798b980a77..e4f7fbf9d97 100644 --- a/Sources/Soto/Services/EKS/EKS_shapes.swift +++ b/Sources/Soto/Services/EKS/EKS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -949,6 +948,36 @@ extension EKS { } } + public struct ClientException: AWSErrorShape { + /// The Amazon EKS add-on name associated with the exception. + public let addonName: String? + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an IAM principal that doesn't have permissions to use the action or resource or specifying an identifier that is not valid. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The Amazon EKS subscription ID with the exception. + public let subscriptionId: String? + + @inlinable + public init(addonName: String? = nil, clusterName: String? = nil, message: String? = nil, nodegroupName: String? = nil, subscriptionId: String? = nil) { + self.addonName = addonName + self.clusterName = clusterName + self.message = message + self.nodegroupName = nodegroupName + self.subscriptionId = subscriptionId + } + + private enum CodingKeys: String, CodingKey { + case addonName = "addonName" + case clusterName = "clusterName" + case message = "message" + case nodegroupName = "nodegroupName" + case subscriptionId = "subscriptionId" + } + } + public struct ClientStat: AWSDecodableShape { /// The timestamp of the last request seen from the Kubernetes client. public let lastRequestTime: Date? @@ -3362,6 +3391,70 @@ extension EKS { } } + public struct InvalidParameterException: AWSErrorShape { + /// The specified parameter for the add-on name is invalid. Review the available parameters for the API request + public let addonName: String? + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// The Fargate profile associated with the exception. + public let fargateProfileName: String? + /// The specified parameter is invalid. Review the available parameters for the API request. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The Amazon EKS subscription ID with the exception. + public let subscriptionId: String? + + @inlinable + public init(addonName: String? = nil, clusterName: String? = nil, fargateProfileName: String? = nil, message: String? = nil, nodegroupName: String? = nil, subscriptionId: String? = nil) { + self.addonName = addonName + self.clusterName = clusterName + self.fargateProfileName = fargateProfileName + self.message = message + self.nodegroupName = nodegroupName + self.subscriptionId = subscriptionId + } + + private enum CodingKeys: String, CodingKey { + case addonName = "addonName" + case clusterName = "clusterName" + case fargateProfileName = "fargateProfileName" + case message = "message" + case nodegroupName = "nodegroupName" + case subscriptionId = "subscriptionId" + } + } + + public struct InvalidRequestException: AWSErrorShape { + /// The request is invalid given the state of the add-on name. Check the state of the cluster and the associated operations. + public let addonName: String? + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// The Amazon EKS add-on name associated with the exception. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The Amazon EKS subscription ID with the exception. + public let subscriptionId: String? + + @inlinable + public init(addonName: String? = nil, clusterName: String? = nil, message: String? = nil, nodegroupName: String? = nil, subscriptionId: String? = nil) { + self.addonName = addonName + self.clusterName = clusterName + self.message = message + self.nodegroupName = nodegroupName + self.subscriptionId = subscriptionId + } + + private enum CodingKeys: String, CodingKey { + case addonName = "addonName" + case clusterName = "clusterName" + case message = "message" + case nodegroupName = "nodegroupName" + case subscriptionId = "subscriptionId" + } + } + public struct Issue: AWSDecodableShape { /// A brief description of the error. AccessDenied: Amazon EKS or one or more of your managed nodes is failing to authenticate or authorize with your Kubernetes cluster API server. AsgInstanceLaunchFailures: Your Auto Scaling group is experiencing failures while attempting to launch instances. AutoScalingGroupNotFound: We couldn't find the Auto Scaling group associated with the managed node group. You may be able to recreate an Auto Scaling group with the same settings to recover. ClusterUnreachable: Amazon EKS or one or more of your managed nodes is unable to to communicate with your Kubernetes cluster API server. This can happen if there are network disruptions or if API servers are timing out processing requests. Ec2InstanceTypeDoesNotExist: One or more of the supplied Amazon EC2 instance types do not exist. Amazon EKS checked for the instance types that you provided in this Amazon Web Services Region, and one or more aren't available. Ec2LaunchTemplateNotFound: We couldn't find the Amazon EC2 launch template for your managed node group. You may be able to recreate a launch template with the same settings to recover. Ec2LaunchTemplateVersionMismatch: The Amazon EC2 launch template version for your managed node group does not match the version that Amazon EKS created. You may be able to revert to the version that Amazon EKS created to recover. Ec2SecurityGroupDeletionFailure: We could not delete the remote access security group for your managed node group. Remove any dependencies from the security group. Ec2SecurityGroupNotFound: We couldn't find the cluster security group for the cluster. You must recreate your cluster. Ec2SubnetInvalidConfiguration: One or more Amazon EC2 subnets specified for a node group do not automatically assign public IP addresses to instances launched into it. If you want your instances to be assigned a public IP address, then you need to enable the auto-assign public IP address setting for the subnet. See Modifying the public IPv4 addressing attribute for your subnet in the Amazon VPC User Guide. IamInstanceProfileNotFound: We couldn't find the IAM instance profile for your managed node group. You may be able to recreate an instance profile with the same settings to recover. IamNodeRoleNotFound: We couldn't find the IAM role for your managed node group. You may be able to recreate an IAM role with the same settings to recover. InstanceLimitExceeded: Your Amazon Web Services account is unable to launch any more instances of the specified instance type. You may be able to request an Amazon EC2 instance limit increase to recover. InsufficientFreeAddresses: One or more of the subnets associated with your managed node group does not have enough available IP addresses for new nodes. InternalFailure: These errors are usually caused by an Amazon EKS server-side issue. NodeCreationFailure: Your launched instances are unable to register with your Amazon EKS cluster. Common causes of this failure are insufficient node IAM role permissions or lack of outbound internet access for the nodes. public let code: NodegroupIssueCode? @@ -4794,6 +4887,122 @@ extension EKS { } } + public struct ResourceInUseException: AWSErrorShape { + /// The specified add-on name is in use. + public let addonName: String? + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// The Amazon EKS message associated with the exception. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + + @inlinable + public init(addonName: String? = nil, clusterName: String? = nil, message: String? = nil, nodegroupName: String? = nil) { + self.addonName = addonName + self.clusterName = clusterName + self.message = message + self.nodegroupName = nodegroupName + } + + private enum CodingKeys: String, CodingKey { + case addonName = "addonName" + case clusterName = "clusterName" + case message = "message" + case nodegroupName = "nodegroupName" + } + } + + public struct ResourceLimitExceededException: AWSErrorShape { + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// The Amazon EKS message associated with the exception. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The Amazon EKS subscription ID with the exception. + public let subscriptionId: String? + + @inlinable + public init(clusterName: String? = nil, message: String? = nil, nodegroupName: String? = nil, subscriptionId: String? = nil) { + self.clusterName = clusterName + self.message = message + self.nodegroupName = nodegroupName + self.subscriptionId = subscriptionId + } + + private enum CodingKeys: String, CodingKey { + case clusterName = "clusterName" + case message = "message" + case nodegroupName = "nodegroupName" + case subscriptionId = "subscriptionId" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + /// The Amazon EKS add-on name associated with the exception. + public let addonName: String? + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// The Fargate profile associated with the exception. + public let fargateProfileName: String? + /// The Amazon EKS message associated with the exception. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The Amazon EKS subscription ID with the exception. + public let subscriptionId: String? + + @inlinable + public init(addonName: String? = nil, clusterName: String? = nil, fargateProfileName: String? = nil, message: String? = nil, nodegroupName: String? = nil, subscriptionId: String? = nil) { + self.addonName = addonName + self.clusterName = clusterName + self.fargateProfileName = fargateProfileName + self.message = message + self.nodegroupName = nodegroupName + self.subscriptionId = subscriptionId + } + + private enum CodingKeys: String, CodingKey { + case addonName = "addonName" + case clusterName = "clusterName" + case fargateProfileName = "fargateProfileName" + case message = "message" + case nodegroupName = "nodegroupName" + case subscriptionId = "subscriptionId" + } + } + + public struct ServerException: AWSErrorShape { + /// The Amazon EKS add-on name associated with the exception. + public let addonName: String? + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// These errors are usually caused by a server-side issue. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The Amazon EKS subscription ID with the exception. + public let subscriptionId: String? + + @inlinable + public init(addonName: String? = nil, clusterName: String? = nil, message: String? = nil, nodegroupName: String? = nil, subscriptionId: String? = nil) { + self.addonName = addonName + self.clusterName = clusterName + self.message = message + self.nodegroupName = nodegroupName + self.subscriptionId = subscriptionId + } + + private enum CodingKeys: String, CodingKey { + case addonName = "addonName" + case clusterName = "clusterName" + case message = "message" + case nodegroupName = "nodegroupName" + case subscriptionId = "subscriptionId" + } + } + public struct StorageConfigRequest: AWSEncodableShape { /// Request to configure EBS Block Storage settings for your EKS Auto Mode cluster. public let blockStorage: BlockStorage? @@ -4888,6 +5097,32 @@ extension EKS { } } + public struct UnsupportedAvailabilityZoneException: AWSErrorShape { + /// The Amazon EKS cluster associated with the exception. + public let clusterName: String? + /// At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your cluster. + public let message: String? + /// The Amazon EKS managed node group associated with the exception. + public let nodegroupName: String? + /// The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster. + public let validZones: [String]? + + @inlinable + public init(clusterName: String? = nil, message: String? = nil, nodegroupName: String? = nil, validZones: [String]? = nil) { + self.clusterName = clusterName + self.message = message + self.nodegroupName = nodegroupName + self.validZones = validZones + } + + private enum CodingKeys: String, CodingKey { + case clusterName = "clusterName" + case message = "message" + case nodegroupName = "nodegroupName" + case validZones = "validZones" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource to delete tags from. public let resourceArn: String @@ -5709,6 +5944,19 @@ public struct EKSErrorType: AWSErrorType { public static var unsupportedAvailabilityZoneException: Self { .init(.unsupportedAvailabilityZoneException) } } +extension EKSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ClientException": EKS.ClientException.self, + "InvalidParameterException": EKS.InvalidParameterException.self, + "InvalidRequestException": EKS.InvalidRequestException.self, + "ResourceInUseException": EKS.ResourceInUseException.self, + "ResourceLimitExceededException": EKS.ResourceLimitExceededException.self, + "ResourceNotFoundException": EKS.ResourceNotFoundException.self, + "ServerException": EKS.ServerException.self, + "UnsupportedAvailabilityZoneException": EKS.UnsupportedAvailabilityZoneException.self + ] +} + extension EKSErrorType: Equatable { public static func == (lhs: EKSErrorType, rhs: EKSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/EKSAuth/EKSAuth_api.swift b/Sources/Soto/Services/EKSAuth/EKSAuth_api.swift index 4d973ac301b..fc0ac4e73c6 100644 --- a/Sources/Soto/Services/EKSAuth/EKSAuth_api.swift +++ b/Sources/Soto/Services/EKSAuth/EKSAuth_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EKSAuth/EKSAuth_shapes.swift b/Sources/Soto/Services/EKSAuth/EKSAuth_shapes.swift index 78d9cf4ddaa..8c2fa1ced34 100644 --- a/Sources/Soto/Services/EKSAuth/EKSAuth_shapes.swift +++ b/Sources/Soto/Services/EKSAuth/EKSAuth_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EMR/EMR_api.swift b/Sources/Soto/Services/EMR/EMR_api.swift index 295e0edbb2b..718e9df97de 100644 --- a/Sources/Soto/Services/EMR/EMR_api.swift +++ b/Sources/Soto/Services/EMR/EMR_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EMR/EMR_shapes.swift b/Sources/Soto/Services/EMR/EMR_shapes.swift index 8a5bf7e94c1..b5d62fc98bd 100644 --- a/Sources/Soto/Services/EMR/EMR_shapes.swift +++ b/Sources/Soto/Services/EMR/EMR_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -3030,6 +3029,24 @@ extension EMR { } } + public struct InvalidRequestException: AWSErrorShape { + /// The error code associated with the exception. + public let errorCode: String? + /// The message associated with the exception. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct JobFlowDetail: AWSDecodableShape { /// Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel is used. To specify a custom AMI, use CustomAmiID. public let amiVersion: String? @@ -5974,6 +5991,12 @@ public struct EMRErrorType: AWSErrorType { public static var invalidRequestException: Self { .init(.invalidRequestException) } } +extension EMRErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidRequestException": EMR.InvalidRequestException.self + ] +} + extension EMRErrorType: Equatable { public static func == (lhs: EMRErrorType, rhs: EMRErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/EMRContainers/EMRContainers_api.swift b/Sources/Soto/Services/EMRContainers/EMRContainers_api.swift index 2e5cc6cce7f..73a78563d93 100644 --- a/Sources/Soto/Services/EMRContainers/EMRContainers_api.swift +++ b/Sources/Soto/Services/EMRContainers/EMRContainers_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EMRContainers/EMRContainers_shapes.swift b/Sources/Soto/Services/EMRContainers/EMRContainers_shapes.swift index b3913a099c6..b82c3bfdb5a 100644 --- a/Sources/Soto/Services/EMRContainers/EMRContainers_shapes.swift +++ b/Sources/Soto/Services/EMRContainers/EMRContainers_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EMRServerless/EMRServerless_api.swift b/Sources/Soto/Services/EMRServerless/EMRServerless_api.swift index 078bfe2c700..9e682bf7801 100644 --- a/Sources/Soto/Services/EMRServerless/EMRServerless_api.swift +++ b/Sources/Soto/Services/EMRServerless/EMRServerless_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EMRServerless/EMRServerless_shapes.swift b/Sources/Soto/Services/EMRServerless/EMRServerless_shapes.swift index 49a2a75e77e..71ea056c450 100644 --- a/Sources/Soto/Services/EMRServerless/EMRServerless_shapes.swift +++ b/Sources/Soto/Services/EMRServerless/EMRServerless_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElastiCache/ElastiCache_api.swift b/Sources/Soto/Services/ElastiCache/ElastiCache_api.swift index 89ff0f010fc..db7588de610 100644 --- a/Sources/Soto/Services/ElastiCache/ElastiCache_api.swift +++ b/Sources/Soto/Services/ElastiCache/ElastiCache_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElastiCache/ElastiCache_shapes.swift b/Sources/Soto/Services/ElastiCache/ElastiCache_shapes.swift index a571be55c94..e1d11dfa68e 100644 --- a/Sources/Soto/Services/ElastiCache/ElastiCache_shapes.swift +++ b/Sources/Soto/Services/ElastiCache/ElastiCache_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_api.swift b/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_api.swift index 76db0fcc025..7a8a0c82b92 100644 --- a/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_api.swift +++ b/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_shapes.swift b/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_shapes.swift index 5b26ba43d28..5a23480bda0 100644 --- a/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_shapes.swift +++ b/Sources/Soto/Services/ElasticBeanstalk/ElasticBeanstalk_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_api.swift b/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_api.swift index fad6064287d..a2008b2f018 100644 --- a/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_api.swift +++ b/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_shapes.swift b/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_shapes.swift index ac3e299d1b4..5995a4d026e 100644 --- a/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_shapes.swift +++ b/Sources/Soto/Services/ElasticLoadBalancing/ElasticLoadBalancing_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_api.swift b/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_api.swift index 71b0ceda053..7c8678b8ed9 100644 --- a/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_api.swift +++ b/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_shapes.swift b/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_shapes.swift index 308c4cb2524..208e9ca8a14 100644 --- a/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_shapes.swift +++ b/Sources/Soto/Services/ElasticLoadBalancingV2/ElasticLoadBalancingV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_api.swift b/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_api.swift index 101e47fe185..ae53e3d5ccc 100644 --- a/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_api.swift +++ b/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_shapes.swift b/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_shapes.swift index d7463e43aba..ade490c749b 100644 --- a/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_shapes.swift +++ b/Sources/Soto/Services/ElasticTranscoder/ElasticTranscoder_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_api.swift b/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_api.swift index 5e2ac7ad779..c5d1bbb2787 100644 --- a/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_api.swift +++ b/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_shapes.swift b/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_shapes.swift index d1178fc95f3..329de327f56 100644 --- a/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_shapes.swift +++ b/Sources/Soto/Services/ElasticsearchService/ElasticsearchService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EntityResolution/EntityResolution_api.swift b/Sources/Soto/Services/EntityResolution/EntityResolution_api.swift index 1d9b21ed535..46885b78bfa 100644 --- a/Sources/Soto/Services/EntityResolution/EntityResolution_api.swift +++ b/Sources/Soto/Services/EntityResolution/EntityResolution_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EntityResolution/EntityResolution_shapes.swift b/Sources/Soto/Services/EntityResolution/EntityResolution_shapes.swift index bacd8ecf03d..c281898c9f1 100644 --- a/Sources/Soto/Services/EntityResolution/EntityResolution_shapes.swift +++ b/Sources/Soto/Services/EntityResolution/EntityResolution_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -923,6 +922,27 @@ extension EntityResolution { } } + public struct ExceedsLimitException: AWSErrorShape { + public let message: String? + /// The name of the quota that has been breached. + public let quotaName: String? + /// The current quota value for the customers. + public let quotaValue: Int? + + @inlinable + public init(message: String? = nil, quotaName: String? = nil, quotaValue: Int? = nil) { + self.message = message + self.quotaName = quotaName + self.quotaValue = quotaValue + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaName = "quotaName" + case quotaValue = "quotaValue" + } + } + public struct GetIdMappingJobInput: AWSEncodableShape { /// The ID of the job. public let jobId: String @@ -3486,6 +3506,12 @@ public struct EntityResolutionErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension EntityResolutionErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ExceedsLimitException": EntityResolution.ExceedsLimitException.self + ] +} + extension EntityResolutionErrorType: Equatable { public static func == (lhs: EntityResolutionErrorType, rhs: EntityResolutionErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/EventBridge/EventBridge_api.swift b/Sources/Soto/Services/EventBridge/EventBridge_api.swift index 9244759689b..151bb4d68ec 100644 --- a/Sources/Soto/Services/EventBridge/EventBridge_api.swift +++ b/Sources/Soto/Services/EventBridge/EventBridge_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/EventBridge/EventBridge_shapes.swift b/Sources/Soto/Services/EventBridge/EventBridge_shapes.swift index 47539992127..02010e4a55a 100644 --- a/Sources/Soto/Services/EventBridge/EventBridge_shapes.swift +++ b/Sources/Soto/Services/EventBridge/EventBridge_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Evidently/Evidently_api.swift b/Sources/Soto/Services/Evidently/Evidently_api.swift index 46ac2169003..74ebe6bf11e 100644 --- a/Sources/Soto/Services/Evidently/Evidently_api.swift +++ b/Sources/Soto/Services/Evidently/Evidently_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Evidently/Evidently_shapes.swift b/Sources/Soto/Services/Evidently/Evidently_shapes.swift index 5de076b3242..15071548552 100644 --- a/Sources/Soto/Services/Evidently/Evidently_shapes.swift +++ b/Sources/Soto/Services/Evidently/Evidently_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -129,6 +128,14 @@ extension Evidently { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum VariationValueType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case boolean = "BOOLEAN" case double = "DOUBLE" @@ -278,6 +285,27 @@ extension Evidently { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The ID of the resource that caused the exception. + public let resourceId: String? + /// The type of the resource that is associated with the error. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateExperimentRequest: AWSEncodableShape { /// An optional description of the experiment. public let description: String? @@ -2664,6 +2692,27 @@ extension Evidently { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The ID of the resource that caused the exception. + public let resourceId: String? + /// The type of the resource that is associated with the error. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct S3Destination: AWSDecodableShape { /// The name of the bucket in which Evidently stores evaluation events. public let bucket: String? @@ -2885,6 +2934,35 @@ extension Evidently { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The ID of the service quota that was exceeded. + public let quotaCode: String? + /// The ID of the resource that caused the exception. + public let resourceId: String? + /// The type of the resource that is associated with the error. + public let resourceType: String? + /// The ID of the service that is associated with the error. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StartExperimentRequest: AWSEncodableShape { /// The date and time to end the experiment. This must be no more than 30 days after the experiment starts. public let analysisCompleteTime: Date @@ -3169,6 +3247,27 @@ extension Evidently { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The ID of the service quota that was exceeded. + public let quotaCode: String? + /// The ID of the service that is associated with the error. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct Treatment: AWSDecodableShape { /// The description of the treatment. public let description: String? @@ -3656,6 +3755,45 @@ extension Evidently { } } + public struct ValidationException: AWSErrorShape { + /// The parameter that caused the exception. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// A reason for the error. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The error message. + public let message: String + /// The error name. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct Variation: AWSDecodableShape { /// The name of the variation. public let name: String? @@ -3750,6 +3888,16 @@ public struct EvidentlyErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension EvidentlyErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Evidently.ConflictException.self, + "ResourceNotFoundException": Evidently.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Evidently.ServiceQuotaExceededException.self, + "ThrottlingException": Evidently.ThrottlingException.self, + "ValidationException": Evidently.ValidationException.self + ] +} + extension EvidentlyErrorType: Equatable { public static func == (lhs: EvidentlyErrorType, rhs: EvidentlyErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/FIS/FIS_api.swift b/Sources/Soto/Services/FIS/FIS_api.swift index 709feb0cfe6..17ad5642008 100644 --- a/Sources/Soto/Services/FIS/FIS_api.swift +++ b/Sources/Soto/Services/FIS/FIS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FIS/FIS_shapes.swift b/Sources/Soto/Services/FIS/FIS_shapes.swift index b83ea1a7ed3..43837ca6be0 100644 --- a/Sources/Soto/Services/FIS/FIS_shapes.swift +++ b/Sources/Soto/Services/FIS/FIS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FMS/FMS_api.swift b/Sources/Soto/Services/FMS/FMS_api.swift index abf01463859..21ff3bae8ab 100644 --- a/Sources/Soto/Services/FMS/FMS_api.swift +++ b/Sources/Soto/Services/FMS/FMS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FMS/FMS_shapes.swift b/Sources/Soto/Services/FMS/FMS_shapes.swift index b1532d3e016..984c790574e 100644 --- a/Sources/Soto/Services/FMS/FMS_shapes.swift +++ b/Sources/Soto/Services/FMS/FMS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FSx/FSx_api.swift b/Sources/Soto/Services/FSx/FSx_api.swift index d2b50bfbbfb..13a5ab731bb 100644 --- a/Sources/Soto/Services/FSx/FSx_api.swift +++ b/Sources/Soto/Services/FSx/FSx_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FSx/FSx_shapes.swift b/Sources/Soto/Services/FSx/FSx_shapes.swift index a9441bf262e..d3085a8e797 100644 --- a/Sources/Soto/Services/FSx/FSx_shapes.swift +++ b/Sources/Soto/Services/FSx/FSx_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,14 @@ import Foundation extension FSx { // MARK: Enums + public enum ActiveDirectoryErrorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case domainNotFound = "DOMAIN_NOT_FOUND" + case incompatibleDomainMode = "INCOMPATIBLE_DOMAIN_MODE" + case invalidDomainStage = "INVALID_DOMAIN_STAGE" + case wrongVpc = "WRONG_VPC" + public var description: String { return self.rawValue } + } + public enum AdministrativeActionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case downloadDataFromBackup = "DOWNLOAD_DATA_FROM_BACKUP" case fileSystemAliasAssociation = "FILE_SYSTEM_ALIAS_ASSOCIATION" @@ -355,6 +362,20 @@ extension FSx { public var description: String { return self.rawValue } } + public enum ServiceLimit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fileCacheCount = "FILE_CACHE_COUNT" + case fileSystemCount = "FILE_SYSTEM_COUNT" + case storageVirtualMachinesPerFileSystem = "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM" + case totalInProgressCopyBackups = "TOTAL_IN_PROGRESS_COPY_BACKUPS" + case totalSsdIops = "TOTAL_SSD_IOPS" + case totalStorage = "TOTAL_STORAGE" + case totalThroughputCapacity = "TOTAL_THROUGHPUT_CAPACITY" + case totalUserInitiatedBackups = "TOTAL_USER_INITIATED_BACKUPS" + case totalUserTags = "TOTAL_USER_TAGS" + case volumesPerFileSystem = "VOLUMES_PER_FILE_SYSTEM" + public var description: String { return self.rawValue } + } + public enum SnaplockType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case compliance = "COMPLIANCE" case enterprise = "ENTERPRISE" @@ -509,6 +530,27 @@ extension FSx { } } + public struct ActiveDirectoryError: AWSErrorShape { + /// The directory ID of the directory that an error pertains to. + public let activeDirectoryId: String? + public let message: String? + /// The type of Active Directory error. + public let type: ActiveDirectoryErrorType? + + @inlinable + public init(activeDirectoryId: String? = nil, message: String? = nil, type: ActiveDirectoryErrorType? = nil) { + self.activeDirectoryId = activeDirectoryId + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case activeDirectoryId = "ActiveDirectoryId" + case message = "Message" + case type = "Type" + } + } + public struct AdministrativeAction: AWSDecodableShape { public let administrativeActionType: AdministrativeActionType? public let failureDetails: AdministrativeActionFailureDetails? @@ -788,6 +830,22 @@ extension FSx { } } + public struct BackupBeingCopied: AWSErrorShape { + public let backupId: String? + public let message: String? + + @inlinable + public init(backupId: String? = nil, message: String? = nil) { + self.backupId = backupId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case backupId = "BackupId" + case message = "Message" + } + } + public struct BackupFailureDetails: AWSDecodableShape { /// A message describing the backup-creation failure. public let message: String? @@ -802,6 +860,23 @@ extension FSx { } } + public struct BackupRestoring: AWSErrorShape { + /// The ID of a file system being restored from the backup. + public let fileSystemId: String? + public let message: String? + + @inlinable + public init(fileSystemId: String? = nil, message: String? = nil) { + self.fileSystemId = fileSystemId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fileSystemId = "FileSystemId" + case message = "Message" + } + } + public struct CancelDataRepositoryTaskRequest: AWSEncodableShape { /// Specifies the data repository task to cancel. public let taskId: String? @@ -4373,6 +4448,49 @@ extension FSx { } } + public struct IncompatibleParameterError: AWSErrorShape { + public let message: String? + /// A parameter that is incompatible with the earlier request. + public let parameter: String? + + @inlinable + public init(message: String? = nil, parameter: String? = nil) { + self.message = message + self.parameter = parameter + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case parameter = "Parameter" + } + } + + public struct InvalidNetworkSettings: AWSErrorShape { + /// The route table ID is either invalid or not part of the VPC specified. + public let invalidRouteTableId: String? + /// The security group ID is either invalid or not part of the VPC specified. + public let invalidSecurityGroupId: String? + /// The subnet ID that is either invalid or not part of the VPC specified. + public let invalidSubnetId: String? + /// Error message explaining what's wrong with network settings. + public let message: String? + + @inlinable + public init(invalidRouteTableId: String? = nil, invalidSecurityGroupId: String? = nil, invalidSubnetId: String? = nil, message: String? = nil) { + self.invalidRouteTableId = invalidRouteTableId + self.invalidSecurityGroupId = invalidSecurityGroupId + self.invalidSubnetId = invalidSubnetId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidRouteTableId = "InvalidRouteTableId" + case invalidSecurityGroupId = "InvalidSecurityGroupId" + case invalidSubnetId = "InvalidSubnetId" + case message = "Message" + } + } + public struct LifecycleTransitionReason: AWSDecodableShape { public let message: String? @@ -4594,6 +4712,23 @@ extension FSx { } } + public struct NotServiceResourceError: AWSErrorShape { + public let message: String? + /// The Amazon Resource Name (ARN) of the non-Amazon FSx resource. + public let resourceARN: String? + + @inlinable + public init(message: String? = nil, resourceARN: String? = nil) { + self.message = message + self.resourceARN = resourceARN + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceARN = "ResourceARN" + } + } + public struct OntapFileSystemConfiguration: AWSDecodableShape { public let automaticBackupRetentionDays: Int? public let dailyAutomaticBackupStartTime: String? @@ -5092,6 +5227,40 @@ extension FSx { } } + public struct ResourceDoesNotSupportTagging: AWSErrorShape { + public let message: String? + /// The Amazon Resource Name (ARN) of the resource that doesn't support tagging. + public let resourceARN: String? + + @inlinable + public init(message: String? = nil, resourceARN: String? = nil) { + self.message = message + self.resourceARN = resourceARN + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceARN = "ResourceARN" + } + } + + public struct ResourceNotFound: AWSErrorShape { + public let message: String? + /// The resource ARN of the resource that can't be found. + public let resourceARN: String? + + @inlinable + public init(message: String? = nil, resourceARN: String? = nil) { + self.message = message + self.resourceARN = resourceARN + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceARN = "ResourceARN" + } + } + public struct RestoreVolumeFromSnapshotRequest: AWSEncodableShape { public let clientRequestToken: String? /// The settings used when restoring the specified volume from snapshot. DELETE_INTERMEDIATE_SNAPSHOTS - Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot fails. DELETE_CLONED_VOLUMES - Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot fails. @@ -5346,6 +5515,23 @@ extension FSx { } } + public struct ServiceLimitExceeded: AWSErrorShape { + /// Enumeration of the service limit that was exceeded. + public let limit: ServiceLimit? + public let message: String? + + @inlinable + public init(limit: ServiceLimit? = nil, message: String? = nil) { + self.limit = limit + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case limit = "Limit" + case message = "Message" + } + } + public struct SnaplockConfiguration: AWSDecodableShape { /// Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is false. If you set AuditLogVolume to true, the SnapLock volume is created as an audit log volume. The minimum retention period for an audit log volume is six months. For more information, see SnapLock audit log volumes. public let auditLogVolume: Bool? @@ -5477,6 +5663,22 @@ extension FSx { } } + public struct SourceBackupUnavailable: AWSErrorShape { + public let backupId: String? + public let message: String? + + @inlinable + public init(backupId: String? = nil, message: String? = nil) { + self.backupId = backupId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case backupId = "BackupId" + case message = "Message" + } + } + public struct StartMisconfiguredStateRecoveryRequest: AWSEncodableShape { public let clientRequestToken: String? public let fileSystemId: String? @@ -6958,6 +7160,21 @@ public struct FSxErrorType: AWSErrorType { public static var volumeNotFound: Self { .init(.volumeNotFound) } } +extension FSxErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ActiveDirectoryError": FSx.ActiveDirectoryError.self, + "BackupBeingCopied": FSx.BackupBeingCopied.self, + "BackupRestoring": FSx.BackupRestoring.self, + "IncompatibleParameterError": FSx.IncompatibleParameterError.self, + "InvalidNetworkSettings": FSx.InvalidNetworkSettings.self, + "NotServiceResourceError": FSx.NotServiceResourceError.self, + "ResourceDoesNotSupportTagging": FSx.ResourceDoesNotSupportTagging.self, + "ResourceNotFound": FSx.ResourceNotFound.self, + "ServiceLimitExceeded": FSx.ServiceLimitExceeded.self, + "SourceBackupUnavailable": FSx.SourceBackupUnavailable.self + ] +} + extension FSxErrorType: Equatable { public static func == (lhs: FSxErrorType, rhs: FSxErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Finspace/Finspace_api.swift b/Sources/Soto/Services/Finspace/Finspace_api.swift index 46d3fd606c6..55fed33f870 100644 --- a/Sources/Soto/Services/Finspace/Finspace_api.swift +++ b/Sources/Soto/Services/Finspace/Finspace_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Finspace/Finspace_shapes.swift b/Sources/Soto/Services/Finspace/Finspace_shapes.swift index 489041d55f1..a54efb4f8e7 100644 --- a/Sources/Soto/Services/Finspace/Finspace_shapes.swift +++ b/Sources/Soto/Services/Finspace/Finspace_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -345,6 +344,23 @@ extension Finspace { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The reason for the conflict exception. + public let reason: String? + + @inlinable + public init(message: String? = nil, reason: String? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct CreateEnvironmentRequest: AWSEncodableShape { /// The list of Amazon Resource Names (ARN) of the data bundles to install. Currently supported data bundle ARNs: arn:aws:finspace:${Region}::data-bundle/capital-markets-sample - Contains sample Capital Markets datasets, categories and controlled vocabularies. arn:aws:finspace:${Region}::data-bundle/taq (default) - Contains trades and quotes data in addition to sample Capital Markets data. public let dataBundles: [String]? @@ -5462,6 +5478,12 @@ public struct FinspaceErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension FinspaceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Finspace.ConflictException.self + ] +} + extension FinspaceErrorType: Equatable { public static func == (lhs: FinspaceErrorType, rhs: FinspaceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/FinspaceData/FinspaceData_api.swift b/Sources/Soto/Services/FinspaceData/FinspaceData_api.swift index f575a2d3fbe..d4450f36175 100644 --- a/Sources/Soto/Services/FinspaceData/FinspaceData_api.swift +++ b/Sources/Soto/Services/FinspaceData/FinspaceData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FinspaceData/FinspaceData_shapes.swift b/Sources/Soto/Services/FinspaceData/FinspaceData_shapes.swift index 33101246fb5..8067f2dad1d 100644 --- a/Sources/Soto/Services/FinspaceData/FinspaceData_shapes.swift +++ b/Sources/Soto/Services/FinspaceData/FinspaceData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -339,6 +338,22 @@ extension FinspaceData { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + public let reason: String? + + @inlinable + public init(message: String? = nil, reason: String? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct CreateChangesetRequest: AWSEncodableShape { /// The option to indicate how a Changeset will be applied to a Dataset. REPLACE – Changeset will be considered as a replacement to all prior loaded Changesets. APPEND – Changeset will be considered as an addition to the end of all prior loaded Changesets. MODIFY – Changeset is considered as a replacement to a specific prior ingested Changeset. public let changeType: ChangeType @@ -2132,6 +2147,22 @@ extension FinspaceData { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let reason: String? + + @inlinable + public init(message: String? = nil, reason: String? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct ResourcePermission: AWSEncodableShape { /// Permission for a resource. public let permission: String? @@ -2630,6 +2661,22 @@ extension FinspaceData { case userId = "userId" } } + + public struct ValidationException: AWSErrorShape { + public let message: String? + public let reason: String? + + @inlinable + public init(message: String? = nil, reason: String? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } } // MARK: - Errors @@ -2680,6 +2727,14 @@ public struct FinspaceDataErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension FinspaceDataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": FinspaceData.ConflictException.self, + "ResourceNotFoundException": FinspaceData.ResourceNotFoundException.self, + "ValidationException": FinspaceData.ValidationException.self + ] +} + extension FinspaceDataErrorType: Equatable { public static func == (lhs: FinspaceDataErrorType, rhs: FinspaceDataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Firehose/Firehose_api.swift b/Sources/Soto/Services/Firehose/Firehose_api.swift index bfec382b20c..bf845d1ae20 100644 --- a/Sources/Soto/Services/Firehose/Firehose_api.swift +++ b/Sources/Soto/Services/Firehose/Firehose_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Firehose/Firehose_shapes.swift b/Sources/Soto/Services/Firehose/Firehose_shapes.swift index 6aea8233c0d..f28020dc872 100644 --- a/Sources/Soto/Services/Firehose/Firehose_shapes.swift +++ b/Sources/Soto/Services/Firehose/Firehose_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2859,6 +2858,38 @@ extension Firehose { } } + public struct InvalidKMSResourceException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + + public struct InvalidSourceException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct KMSEncryptionConfig: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) of the encryption key. Must belong to the same Amazon Web Services Region as the destination Amazon S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. public let awskmsKeyARN: String @@ -5082,6 +5113,13 @@ public struct FirehoseErrorType: AWSErrorType { public static var serviceUnavailableException: Self { .init(.serviceUnavailableException) } } +extension FirehoseErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidKMSResourceException": Firehose.InvalidKMSResourceException.self, + "InvalidSourceException": Firehose.InvalidSourceException.self + ] +} + extension FirehoseErrorType: Equatable { public static func == (lhs: FirehoseErrorType, rhs: FirehoseErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Forecast/Forecast_api.swift b/Sources/Soto/Services/Forecast/Forecast_api.swift index b9da47d3b13..f3385633190 100644 --- a/Sources/Soto/Services/Forecast/Forecast_api.swift +++ b/Sources/Soto/Services/Forecast/Forecast_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Forecast/Forecast_shapes.swift b/Sources/Soto/Services/Forecast/Forecast_shapes.swift index afd998d75d4..a01afb06b78 100644 --- a/Sources/Soto/Services/Forecast/Forecast_shapes.swift +++ b/Sources/Soto/Services/Forecast/Forecast_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Forecastquery/Forecastquery_api.swift b/Sources/Soto/Services/Forecastquery/Forecastquery_api.swift index d8237beff97..70992ce2441 100644 --- a/Sources/Soto/Services/Forecastquery/Forecastquery_api.swift +++ b/Sources/Soto/Services/Forecastquery/Forecastquery_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Forecastquery/Forecastquery_shapes.swift b/Sources/Soto/Services/Forecastquery/Forecastquery_shapes.swift index b0841b03d3c..b252c7cb8d5 100644 --- a/Sources/Soto/Services/Forecastquery/Forecastquery_shapes.swift +++ b/Sources/Soto/Services/Forecastquery/Forecastquery_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FraudDetector/FraudDetector_api.swift b/Sources/Soto/Services/FraudDetector/FraudDetector_api.swift index a6667697112..562a3a5049a 100644 --- a/Sources/Soto/Services/FraudDetector/FraudDetector_api.swift +++ b/Sources/Soto/Services/FraudDetector/FraudDetector_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FraudDetector/FraudDetector_shapes.swift b/Sources/Soto/Services/FraudDetector/FraudDetector_shapes.swift index c95ef7b95bb..5243f3ef683 100644 --- a/Sources/Soto/Services/FraudDetector/FraudDetector_shapes.swift +++ b/Sources/Soto/Services/FraudDetector/FraudDetector_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FreeTier/FreeTier_api.swift b/Sources/Soto/Services/FreeTier/FreeTier_api.swift index 8f3b68a2398..4739ffcc28b 100644 --- a/Sources/Soto/Services/FreeTier/FreeTier_api.swift +++ b/Sources/Soto/Services/FreeTier/FreeTier_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/FreeTier/FreeTier_shapes.swift b/Sources/Soto/Services/FreeTier/FreeTier_shapes.swift index 4f587f7af92..c6cc4d35fcc 100644 --- a/Sources/Soto/Services/FreeTier/FreeTier_shapes.swift +++ b/Sources/Soto/Services/FreeTier/FreeTier_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GameLift/GameLift_api.swift b/Sources/Soto/Services/GameLift/GameLift_api.swift index 6fe4bf0aed8..c43fd910833 100644 --- a/Sources/Soto/Services/GameLift/GameLift_api.swift +++ b/Sources/Soto/Services/GameLift/GameLift_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GameLift/GameLift_shapes.swift b/Sources/Soto/Services/GameLift/GameLift_shapes.swift index b77089166fa..c49a2806b0b 100644 --- a/Sources/Soto/Services/GameLift/GameLift_shapes.swift +++ b/Sources/Soto/Services/GameLift/GameLift_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_api.swift b/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_api.swift index efef74e5ec2..82c971787eb 100644 --- a/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_api.swift +++ b/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_shapes.swift b/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_shapes.swift index 6d09b6a30d1..af2980061e6 100644 --- a/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_shapes.swift +++ b/Sources/Soto/Services/GameLiftStreams/GameLiftStreams_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GeoMaps/GeoMaps_api.swift b/Sources/Soto/Services/GeoMaps/GeoMaps_api.swift index 93749382c71..471d9ca1bec 100644 --- a/Sources/Soto/Services/GeoMaps/GeoMaps_api.swift +++ b/Sources/Soto/Services/GeoMaps/GeoMaps_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GeoMaps/GeoMaps_shapes.swift b/Sources/Soto/Services/GeoMaps/GeoMaps_shapes.swift index 671d0ff05d5..36729919942 100644 --- a/Sources/Soto/Services/GeoMaps/GeoMaps_shapes.swift +++ b/Sources/Soto/Services/GeoMaps/GeoMaps_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -66,6 +65,22 @@ extension GeoMaps { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// The input cannot be parsed. For example a required JSON document, ARN identifier, date value, or numeric field cannot be parsed. + case cannotParse = "CannotParse" + /// The input is present and parsable, but it is otherwise invalid. For example, a required numeric argument is outside the allowed range. + case fieldValidationFailed = "FieldValidationFailed" + /// The required input is missing. + case missing = "Missing" + /// The input is invalid but no more specific reason is applicable. + case other = "Other" + /// No such field is supported. + case unknownField = "UnknownField" + /// No such operation is supported. + case unknownOperation = "UnknownOperation" + public var description: String { return self.rawValue } + } + public enum Variant: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case `default` = "Default" public var description: String { return self.rawValue } @@ -481,6 +496,45 @@ extension GeoMaps { private enum CodingKeys: CodingKey {} } + + public struct ValidationException: AWSErrorShape { + /// A message with the reason for the validation exception error. + public let fieldList: [ValidationExceptionField] + public let message: String + /// The field where the invalid entry was detected. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField], message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The error message. + public let message: String + /// The name of the resource. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -522,6 +576,12 @@ public struct GeoMapsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension GeoMapsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": GeoMaps.ValidationException.self + ] +} + extension GeoMapsErrorType: Equatable { public static func == (lhs: GeoMapsErrorType, rhs: GeoMapsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/GeoPlaces/GeoPlaces_api.swift b/Sources/Soto/Services/GeoPlaces/GeoPlaces_api.swift index cb8f0c28742..ece4bb8c893 100644 --- a/Sources/Soto/Services/GeoPlaces/GeoPlaces_api.swift +++ b/Sources/Soto/Services/GeoPlaces/GeoPlaces_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GeoPlaces/GeoPlaces_shapes.swift b/Sources/Soto/Services/GeoPlaces/GeoPlaces_shapes.swift index 180cf81fc95..013dc4003c7 100644 --- a/Sources/Soto/Services/GeoPlaces/GeoPlaces_shapes.swift +++ b/Sources/Soto/Services/GeoPlaces/GeoPlaces_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -215,6 +214,22 @@ extension GeoPlaces { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// The input cannot be parsed. For example a required JSON document, ARN identifier, date value, or numeric field cannot be parsed. + case cannotParse = "CannotParse" + /// The input is present and parsable, but it is otherwise invalid. For example, a required numeric argument is outside the allowed range. + case fieldValidationFailed = "FieldValidationFailed" + /// The required input is missing. + case missing = "Missing" + /// The input is invalid but no more specific reason is applicable. + case other = "Other" + /// No such field is supported. + case unknownField = "UnknownField" + /// No such operation is supported. + case unknownOperation = "UnknownOperation" + public var description: String { return self.rawValue } + } + public enum ZipClassificationCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case military = "Military" case postOfficeBoxes = "PostOfficeBoxes" @@ -2603,6 +2618,45 @@ extension GeoPlaces { case recordTypeCode = "RecordTypeCode" } } + + public struct ValidationException: AWSErrorShape { + /// Test stub for FieldList. + public let fieldList: [ValidationExceptionField] + public let message: String + /// Test stub for reason + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField], message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The error message. + public let message: String + /// The name of the resource. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -2644,6 +2698,12 @@ public struct GeoPlacesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension GeoPlacesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": GeoPlaces.ValidationException.self + ] +} + extension GeoPlacesErrorType: Equatable { public static func == (lhs: GeoPlacesErrorType, rhs: GeoPlacesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/GeoRoutes/GeoRoutes_api.swift b/Sources/Soto/Services/GeoRoutes/GeoRoutes_api.swift index d6bf6411a53..01421279e45 100644 --- a/Sources/Soto/Services/GeoRoutes/GeoRoutes_api.swift +++ b/Sources/Soto/Services/GeoRoutes/GeoRoutes_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GeoRoutes/GeoRoutes_shapes.swift b/Sources/Soto/Services/GeoRoutes/GeoRoutes_shapes.swift index a7fa3ca90e4..81819b2ac3b 100644 --- a/Sources/Soto/Services/GeoRoutes/GeoRoutes_shapes.swift +++ b/Sources/Soto/Services/GeoRoutes/GeoRoutes_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -579,6 +578,22 @@ extension GeoRoutes { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// The input cannot be parsed. For example a required JSON document, ARN identifier, date value, or numeric field cannot be parsed. + case cannotParse = "CannotParse" + /// The input is present and parsable, but it is otherwise invalid. For example, a required numeric argument is outside the allowed range. + case fieldValidationFailed = "FieldValidationFailed" + /// The required input is missing. + case missing = "Missing" + /// The input is invalid but no more specific reason is applicable. + case other = "Other" + /// No such field is supported. + case unknownField = "UnknownField" + /// No such operation is supported. + case unknownOperation = "UnknownOperation" + public var description: String { return self.rawValue } + } + public enum WaypointOptimizationClusteringAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case drivingDistance = "DrivingDistance" case topologySegment = "TopologySegment" @@ -5822,6 +5837,45 @@ extension GeoRoutes { } } + public struct ValidationException: AWSErrorShape { + /// The field where the invalid entry was detected. + public let fieldList: [ValidationExceptionField] + public let message: String + /// A message with the reason for the validation exception error. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField], message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The error message. + public let message: String + /// The name of the Validation Exception Field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct WaypointOptimizationAccessHours: AWSEncodableShape { /// Contains the ID of the starting waypoint in this connection. public let from: WaypointOptimizationAccessHoursEntry @@ -6592,6 +6646,12 @@ public struct GeoRoutesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension GeoRoutesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": GeoRoutes.ValidationException.self + ] +} + extension GeoRoutesErrorType: Equatable { public static func == (lhs: GeoRoutesErrorType, rhs: GeoRoutesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Glacier/Glacier_api.swift b/Sources/Soto/Services/Glacier/Glacier_api.swift index b190d8f3e1e..feb1e065f5d 100644 --- a/Sources/Soto/Services/Glacier/Glacier_api.swift +++ b/Sources/Soto/Services/Glacier/Glacier_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Glacier/Glacier_shapes.swift b/Sources/Soto/Services/Glacier/Glacier_shapes.swift index 0cbbb14a014..1bc59d0d452 100644 --- a/Sources/Soto/Services/Glacier/Glacier_shapes.swift +++ b/Sources/Soto/Services/Glacier/Glacier_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1124,6 +1123,47 @@ extension Glacier { } } + public struct InsufficientCapacityException: AWSErrorShape { + public let code: String? + public let message: String? + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + + public struct InvalidParameterValueException: AWSErrorShape { + /// 400 Bad Request + public let code: String? + /// Returned if a parameter of the request is incorrectly specified. + public let message: String? + /// Client + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + public struct InventoryRetrievalJobDescription: AWSDecodableShape { /// The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z. public let endDate: String? @@ -1230,6 +1270,28 @@ extension Glacier { } } + public struct LimitExceededException: AWSErrorShape { + /// 400 Bad Request + public let code: String? + /// Returned if the request results in a vault limit or tags limit being exceeded. + public let message: String? + /// Client + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + public struct ListJobsInput: AWSEncodableShape { /// The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID. public let accountId: String @@ -1518,6 +1580,28 @@ extension Glacier { } } + public struct MissingParameterValueException: AWSErrorShape { + /// 400 Bad Request + public let code: String? + /// Returned if no authentication data is found for the request. + public let message: String? + /// Client. + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + public struct OutputLocation: AWSEncodableShape & AWSDecodableShape { /// Describes an S3 location that will receive the results of the job request. public let s3: S3Location? @@ -1564,6 +1648,28 @@ extension Glacier { } } + public struct PolicyEnforcedException: AWSErrorShape { + /// PolicyEnforcedException + public let code: String? + /// InitiateJob request denied by current data retrieval policy. + public let message: String? + /// Client + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + public struct ProvisionedCapacityDescription: AWSDecodableShape { /// The ID that identifies the provisioned capacity unit. public let capacityId: String? @@ -1649,6 +1755,50 @@ extension Glacier { } } + public struct RequestTimeoutException: AWSErrorShape { + /// 408 Request Timeout + public let code: String? + /// Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the upload. + public let message: String? + /// Client + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + /// 404 Not Found + public let code: String? + /// Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist. + public let message: String? + /// Client + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + public struct S3Location: AWSEncodableShape & AWSDecodableShape { /// A list of grants that control access to the staged results. public let accessControlList: [Grant]? @@ -1717,6 +1867,28 @@ extension Glacier { } } + public struct ServiceUnavailableException: AWSErrorShape { + /// 500 Internal Server Error + public let code: String? + /// Returned if the service cannot complete the request. + public let message: String? + /// Server + public let type: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, type: String? = nil) { + self.code = code + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case type = "type" + } + } + public struct SetDataRetrievalPolicyInput: AWSEncodableShape { /// The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID. public let accountId: String @@ -2012,6 +2184,19 @@ public struct GlacierErrorType: AWSErrorType { public static var serviceUnavailableException: Self { .init(.serviceUnavailableException) } } +extension GlacierErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InsufficientCapacityException": Glacier.InsufficientCapacityException.self, + "InvalidParameterValueException": Glacier.InvalidParameterValueException.self, + "LimitExceededException": Glacier.LimitExceededException.self, + "MissingParameterValueException": Glacier.MissingParameterValueException.self, + "PolicyEnforcedException": Glacier.PolicyEnforcedException.self, + "RequestTimeoutException": Glacier.RequestTimeoutException.self, + "ResourceNotFoundException": Glacier.ResourceNotFoundException.self, + "ServiceUnavailableException": Glacier.ServiceUnavailableException.self + ] +} + extension GlacierErrorType: Equatable { public static func == (lhs: GlacierErrorType, rhs: GlacierErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_api.swift b/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_api.swift index e7b3b69ec66..8e486500abe 100644 --- a/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_api.swift +++ b/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_shapes.swift b/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_shapes.swift index 3506b49de21..ba046fdb67d 100644 --- a/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_shapes.swift +++ b/Sources/Soto/Services/GlobalAccelerator/GlobalAccelerator_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Glue/Glue_api.swift b/Sources/Soto/Services/Glue/Glue_api.swift index 67a96bf9dd0..109c9bcf780 100644 --- a/Sources/Soto/Services/Glue/Glue_api.swift +++ b/Sources/Soto/Services/Glue/Glue_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Glue/Glue_shapes.swift b/Sources/Soto/Services/Glue/Glue_shapes.swift index 2f1b26c71ef..2d542d7b8c4 100644 --- a/Sources/Soto/Services/Glue/Glue_shapes.swift +++ b/Sources/Soto/Services/Glue/Glue_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -395,6 +394,20 @@ extension Glue { public var description: String { return self.rawValue } } + public enum FederationSourceErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accessDeniedException = "AccessDeniedException" + case entityNotFoundException = "EntityNotFoundException" + case internalServiceException = "InternalServiceException" + case invalidCredentialsException = "InvalidCredentialsException" + case invalidInputException = "InvalidInputException" + case invalidResponseException = "InvalidResponseException" + case operationNotSupportedException = "OperationNotSupportedException" + case operationTimeoutException = "OperationTimeoutException" + case partialFailureException = "PartialFailureException" + case throttlingException = "ThrottlingException" + public var description: String { return self.rawValue } + } + public enum FieldDataType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case `struct` = "STRUCT" case array = "ARRAY" @@ -10574,6 +10587,24 @@ extension Glue { } } + public struct EntityNotFoundException: AWSErrorShape { + /// Indicates whether or not the exception relates to a federated source. + public let fromFederationSource: Bool? + /// A message describing the problem. + public let message: String? + + @inlinable + public init(fromFederationSource: Bool? = nil, message: String? = nil) { + self.fromFederationSource = fromFederationSource + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fromFederationSource = "FromFederationSource" + case message = "Message" + } + } + public struct ErrorDetail: AWSDecodableShape { /// The code associated with this error. public let errorCode: String? @@ -10862,6 +10893,24 @@ extension Glue { } } + public struct FederatedResourceAlreadyExistsException: AWSErrorShape { + /// The associated Glue resource already exists. + public let associatedGlueResource: String? + /// The message describing the problem. + public let message: String? + + @inlinable + public init(associatedGlueResource: String? = nil, message: String? = nil) { + self.associatedGlueResource = associatedGlueResource + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case associatedGlueResource = "AssociatedGlueResource" + case message = "Message" + } + } + public struct FederatedTable: AWSDecodableShape { /// The name of the connection to the external metastore. public let connectionName: String? @@ -10884,6 +10933,24 @@ extension Glue { } } + public struct FederationSourceException: AWSErrorShape { + /// The error code of the problem. + public let federationSourceErrorCode: FederationSourceErrorCode? + /// The message describing the problem. + public let message: String? + + @inlinable + public init(federationSourceErrorCode: FederationSourceErrorCode? = nil, message: String? = nil) { + self.federationSourceErrorCode = federationSourceErrorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case federationSourceErrorCode = "FederationSourceErrorCode" + case message = "Message" + } + } + public struct Field: AWSDecodableShape { /// Optional map of keys which may be returned. public let customProperties: [String: String]? @@ -15994,6 +16061,24 @@ extension Glue { } } + public struct InvalidInputException: AWSErrorShape { + /// Indicates whether or not the exception relates to a federated source. + public let fromFederationSource: Bool? + /// A message describing the problem. + public let message: String? + + @inlinable + public init(fromFederationSource: Bool? = nil, message: String? = nil) { + self.fromFederationSource = fromFederationSource + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fromFederationSource = "FromFederationSource" + case message = "Message" + } + } + public struct JDBCConnectorOptions: AWSEncodableShape & AWSDecodableShape { /// Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type. For example, the option "dataTypeMapping":{"FLOAT":"STRING"} maps data fields of JDBC type FLOAT into the Java String type by calling the ResultSet.getString() method of the driver, and uses it to build the Glue record. The ResultSet object is implemented by each driver, so the behavior is specific to the driver you use. Refer to the documentation for your JDBC driver to understand how the driver performs the conversions. public let dataTypeMapping: [JDBCDataType: GlueRecordType]? @@ -27941,6 +28026,15 @@ public struct GlueErrorType: AWSErrorType { public static var versionMismatchException: Self { .init(.versionMismatchException) } } +extension GlueErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "EntityNotFoundException": Glue.EntityNotFoundException.self, + "FederatedResourceAlreadyExistsException": Glue.FederatedResourceAlreadyExistsException.self, + "FederationSourceException": Glue.FederationSourceException.self, + "InvalidInputException": Glue.InvalidInputException.self + ] +} + extension GlueErrorType: Equatable { public static func == (lhs: GlueErrorType, rhs: GlueErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Grafana/Grafana_api.swift b/Sources/Soto/Services/Grafana/Grafana_api.swift index bbe10cf9bfd..6a1e09050aa 100644 --- a/Sources/Soto/Services/Grafana/Grafana_api.swift +++ b/Sources/Soto/Services/Grafana/Grafana_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Grafana/Grafana_shapes.swift b/Sources/Soto/Services/Grafana/Grafana_shapes.swift index a778611df05..2f51c7b6117 100644 --- a/Sources/Soto/Services/Grafana/Grafana_shapes.swift +++ b/Sources/Soto/Services/Grafana/Grafana_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -120,6 +119,14 @@ extension Grafana { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum WorkspaceStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { /// Workspace is active. case active = "ACTIVE" @@ -352,6 +359,28 @@ extension Grafana { } } + public struct ConflictException: AWSErrorShape { + /// A description of the error. + public let message: String + /// The ID of the resource that is associated with the error. + public let resourceId: String + /// The type of the resource that is associated with the error. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateWorkspaceApiKeyRequest: AWSEncodableShape { /// Specifies the name of the key. Keynames must be unique to the workspace. public let keyName: String @@ -980,6 +1009,30 @@ extension Grafana { } } + public struct InternalServerException: AWSErrorShape { + /// A description of the error. + public let message: String + /// How long to wait before you retry this operation. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListPermissionsRequest: AWSEncodableShape { /// (Optional) Limits the results to only the group that matches this ID. public let groupId: String? @@ -1323,6 +1376,28 @@ extension Grafana { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The value of a parameter in the request caused an error. + public let message: String + /// The ID of the resource that is associated with the error. + public let resourceId: String + /// The type of the resource that is associated with the error. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RoleValues: AWSEncodableShape & AWSDecodableShape { /// A list of groups from the SAML assertion attribute to grant the Grafana Admin role to. public let admin: [String]? @@ -1488,6 +1563,36 @@ extension Grafana { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// A description of the error. + public let message: String + /// The ID of the service quota that was exceeded. + public let quotaCode: String + /// The ID of the resource that is associated with the error. + public let resourceId: String + /// The type of the resource that is associated with the error. + public let resourceType: String + /// The value of a parameter in the request caused an error. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The ARN of the resource the tag is associated with. public let resourceArn: String @@ -1525,6 +1630,40 @@ extension Grafana { public init() {} } + public struct ThrottlingException: AWSErrorShape { + /// A description of the error. + public let message: String + /// The ID of the service quota that was exceeded. + public let quotaCode: String? + /// The value of a parameter in the request caused an error. + public let retryAfterSeconds: Int? + /// The ID of the service that is associated with the error. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource the tag association is removed from. public let resourceArn: String @@ -1881,6 +2020,46 @@ extension Grafana { } } + public struct ValidationException: AWSErrorShape { + /// A list of fields that might be associated with the error. + public let fieldList: [ValidationExceptionField]? + /// A description of the error. + public let message: String + /// The reason that the operation failed. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message describing why this field couldn't be validated. + public let message: String + /// The name of the field that caused the validation error. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VpcConfiguration: AWSEncodableShape & AWSDecodableShape { /// The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. Duplicates not allowed. public let securityGroupIds: [String] @@ -2133,6 +2312,17 @@ public struct GrafanaErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension GrafanaErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Grafana.ConflictException.self, + "InternalServerException": Grafana.InternalServerException.self, + "ResourceNotFoundException": Grafana.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Grafana.ServiceQuotaExceededException.self, + "ThrottlingException": Grafana.ThrottlingException.self, + "ValidationException": Grafana.ValidationException.self + ] +} + extension GrafanaErrorType: Equatable { public static func == (lhs: GrafanaErrorType, rhs: GrafanaErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Greengrass/Greengrass_api.swift b/Sources/Soto/Services/Greengrass/Greengrass_api.swift index 6ae46a1f122..dfcee853541 100644 --- a/Sources/Soto/Services/Greengrass/Greengrass_api.swift +++ b/Sources/Soto/Services/Greengrass/Greengrass_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Greengrass/Greengrass_shapes.swift b/Sources/Soto/Services/Greengrass/Greengrass_shapes.swift index e2ca14e7775..8901b66031e 100644 --- a/Sources/Soto/Services/Greengrass/Greengrass_shapes.swift +++ b/Sources/Soto/Services/Greengrass/Greengrass_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -197,6 +196,24 @@ extension Greengrass { } } + public struct BadRequestException: AWSErrorShape { + /// Details about the error. + public let errorDetails: [ErrorDetail]? + /// A message containing information about the error. + public let message: String? + + @inlinable + public init(errorDetails: [ErrorDetail]? = nil, message: String? = nil) { + self.errorDetails = errorDetails + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorDetails = "ErrorDetails" + case message = "Message" + } + } + public struct BulkDeployment: AWSDecodableShape { /// The ARN of the bulk deployment. public let bulkDeploymentArn: String? @@ -3474,6 +3491,24 @@ extension Greengrass { } } + public struct InternalServerErrorException: AWSErrorShape { + /// Details about the error. + public let errorDetails: [ErrorDetail]? + /// A message containing information about the error. + public let message: String? + + @inlinable + public init(errorDetails: [ErrorDetail]? = nil, message: String? = nil) { + self.errorDetails = errorDetails + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorDetails = "ErrorDetails" + case message = "Message" + } + } + public struct ListBulkDeploymentDetailedReportsRequest: AWSEncodableShape { /// The ID of the bulk deployment. public let bulkDeploymentId: String @@ -5234,6 +5269,13 @@ public struct GreengrassErrorType: AWSErrorType { public static var internalServerErrorException: Self { .init(.internalServerErrorException) } } +extension GreengrassErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": Greengrass.BadRequestException.self, + "InternalServerErrorException": Greengrass.InternalServerErrorException.self + ] +} + extension GreengrassErrorType: Equatable { public static func == (lhs: GreengrassErrorType, rhs: GreengrassErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/GreengrassV2/GreengrassV2_api.swift b/Sources/Soto/Services/GreengrassV2/GreengrassV2_api.swift index 6143d533328..132a7f7cb43 100644 --- a/Sources/Soto/Services/GreengrassV2/GreengrassV2_api.swift +++ b/Sources/Soto/Services/GreengrassV2/GreengrassV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GreengrassV2/GreengrassV2_shapes.swift b/Sources/Soto/Services/GreengrassV2/GreengrassV2_shapes.swift index 33cdd255787..58f6dba08e4 100644 --- a/Sources/Soto/Services/GreengrassV2/GreengrassV2_shapes.swift +++ b/Sources/Soto/Services/GreengrassV2/GreengrassV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -165,6 +164,14 @@ extension GreengrassV2 { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum VendorGuidance: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case active = "ACTIVE" case deleted = "DELETED" @@ -665,6 +672,27 @@ extension GreengrassV2 { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource that conflicts with the request. + public let resourceId: String + /// The type of the resource that conflicts with the request. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ConnectivityInfo: AWSEncodableShape & AWSDecodableShape { /// The IP address or DNS address where client devices can connect to an MQTT broker on the Greengrass core device. public let hostAddress: String? @@ -1634,6 +1662,29 @@ extension GreengrassV2 { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The amount of time to wait before you retry the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct IoTJobAbortConfig: AWSEncodableShape & AWSDecodableShape { /// The list of criteria that define when and how to cancel the configuration deployment. public let criteriaList: [IoTJobAbortCriteria] @@ -2481,6 +2532,56 @@ extension GreengrassV2 { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource that isn't found. + public let resourceId: String + /// The type of the resource that isn't found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code for the quota in Service Quotas. + public let quotaCode: String + /// The ID of the resource that exceeds the service quota. + public let resourceId: String? + /// The type of the resource that exceeds the service quota. + public let resourceType: String? + /// The code for the service in Service Quotas. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SystemResourceLimits: AWSEncodableShape & AWSDecodableShape { /// The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage. public let cpus: Double? @@ -2544,6 +2645,39 @@ extension GreengrassV2 { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The code for the quota in Service Quotas. + public let quotaCode: String? + /// The amount of time to wait before you retry the request. + public let retryAfterSeconds: Int? + /// The code for the service in Service Quotas. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource to untag. public let resourceArn: String @@ -2629,6 +2763,45 @@ extension GreengrassV2 { case version = "Version" } } + + public struct ValidationException: AWSErrorShape { + /// The list of fields that failed to validate. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason for the validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message of the exception field. + public let message: String + /// The name of the exception field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -2682,6 +2855,17 @@ public struct GreengrassV2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension GreengrassV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": GreengrassV2.ConflictException.self, + "InternalServerException": GreengrassV2.InternalServerException.self, + "ResourceNotFoundException": GreengrassV2.ResourceNotFoundException.self, + "ServiceQuotaExceededException": GreengrassV2.ServiceQuotaExceededException.self, + "ThrottlingException": GreengrassV2.ThrottlingException.self, + "ValidationException": GreengrassV2.ValidationException.self + ] +} + extension GreengrassV2ErrorType: Equatable { public static func == (lhs: GreengrassV2ErrorType, rhs: GreengrassV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/GroundStation/GroundStation_api.swift b/Sources/Soto/Services/GroundStation/GroundStation_api.swift index 1da811f7979..435b2af99a4 100644 --- a/Sources/Soto/Services/GroundStation/GroundStation_api.swift +++ b/Sources/Soto/Services/GroundStation/GroundStation_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GroundStation/GroundStation_shapes.swift b/Sources/Soto/Services/GroundStation/GroundStation_shapes.swift index d40b20024da..bcb170ba0d5 100644 --- a/Sources/Soto/Services/GroundStation/GroundStation_shapes.swift +++ b/Sources/Soto/Services/GroundStation/GroundStation_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1274,6 +1273,22 @@ extension GroundStation { } } + public struct DependencyException: AWSErrorShape { + public let message: String? + public let parameterName: String? + + @inlinable + public init(message: String? = nil, parameterName: String? = nil) { + self.message = message + self.parameterName = parameterName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case parameterName = "parameterName" + } + } + public struct DescribeContactRequest: AWSEncodableShape { /// UUID of a contact. public let contactId: String @@ -2110,6 +2125,22 @@ extension GroundStation { } } + public struct InvalidParameterException: AWSErrorShape { + public let message: String? + public let parameterName: String? + + @inlinable + public init(message: String? = nil, parameterName: String? = nil) { + self.message = message + self.parameterName = parameterName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case parameterName = "parameterName" + } + } + public struct ListConfigsRequest: AWSEncodableShape { /// Maximum number of Configs returned. public let maxResults: Int? @@ -2727,6 +2758,22 @@ extension GroundStation { } } + public struct ResourceLimitExceededException: AWSErrorShape { + public let message: String? + public let parameterName: String? + + @inlinable + public init(message: String? = nil, parameterName: String? = nil) { + self.message = message + self.parameterName = parameterName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case parameterName = "parameterName" + } + } + public struct S3Object: AWSEncodableShape & AWSDecodableShape { /// An Amazon S3 Bucket name. public let bucket: String? @@ -3391,6 +3438,14 @@ public struct GroundStationErrorType: AWSErrorType { public static var resourceNotFoundException: Self { .init(.resourceNotFoundException) } } +extension GroundStationErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DependencyException": GroundStation.DependencyException.self, + "InvalidParameterException": GroundStation.InvalidParameterException.self, + "ResourceLimitExceededException": GroundStation.ResourceLimitExceededException.self + ] +} + extension GroundStationErrorType: Equatable { public static func == (lhs: GroundStationErrorType, rhs: GroundStationErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/GuardDuty/GuardDuty_api.swift b/Sources/Soto/Services/GuardDuty/GuardDuty_api.swift index ed76d0b9e83..a2d55242a63 100644 --- a/Sources/Soto/Services/GuardDuty/GuardDuty_api.swift +++ b/Sources/Soto/Services/GuardDuty/GuardDuty_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/GuardDuty/GuardDuty_shapes.swift b/Sources/Soto/Services/GuardDuty/GuardDuty_shapes.swift index ac78e138b42..9119f617c9c 100644 --- a/Sources/Soto/Services/GuardDuty/GuardDuty_shapes.swift +++ b/Sources/Soto/Services/GuardDuty/GuardDuty_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -539,6 +538,24 @@ extension GuardDuty { } } + public struct AccessDeniedException: AWSErrorShape { + /// The error message. + public let message: String? + /// The error type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "__type" + } + } + public struct AccessKey: AWSDecodableShape { /// Principal ID of the user. public let principalId: String? @@ -1001,6 +1018,24 @@ extension GuardDuty { } } + public struct BadRequestException: AWSErrorShape { + /// The error message. + public let message: String? + /// The error type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "__type" + } + } + public struct BlockPublicAccess: AWSDecodableShape { /// Indicates if S3 Block Public Access is set to BlockPublicAcls. public let blockPublicAcls: Bool? @@ -1170,6 +1205,24 @@ extension GuardDuty { } } + public struct ConflictException: AWSErrorShape { + /// The error message. + public let message: String? + /// The error type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "__type" + } + } + public struct Container: AWSDecodableShape { /// The container runtime (such as, Docker or containerd) used to run the container. public let containerRuntime: String? @@ -4664,6 +4717,24 @@ extension GuardDuty { } } + public struct InternalServerErrorException: AWSErrorShape { + /// The error message. + public let message: String? + /// The error type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "__type" + } + } + public struct Invitation: AWSDecodableShape { /// The ID of the account that the invitation was sent from. public let accountId: String? @@ -7227,6 +7298,24 @@ extension GuardDuty { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The error message. + public let message: String? + /// The error type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "__type" + } + } + public struct ResourceStatistics: AWSDecodableShape { /// The ID of the Amazon Web Services account. public let accountId: String? @@ -9519,6 +9608,16 @@ public struct GuardDutyErrorType: AWSErrorType { public static var resourceNotFoundException: Self { .init(.resourceNotFoundException) } } +extension GuardDutyErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": GuardDuty.AccessDeniedException.self, + "BadRequestException": GuardDuty.BadRequestException.self, + "ConflictException": GuardDuty.ConflictException.self, + "InternalServerErrorException": GuardDuty.InternalServerErrorException.self, + "ResourceNotFoundException": GuardDuty.ResourceNotFoundException.self + ] +} + extension GuardDutyErrorType: Equatable { public static func == (lhs: GuardDutyErrorType, rhs: GuardDutyErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Health/Health_api.swift b/Sources/Soto/Services/Health/Health_api.swift index 10f086c3786..7b270b47f86 100644 --- a/Sources/Soto/Services/Health/Health_api.swift +++ b/Sources/Soto/Services/Health/Health_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Health/Health_shapes.swift b/Sources/Soto/Services/Health/Health_shapes.swift index 1cf5f2da756..5561184544c 100644 --- a/Sources/Soto/Services/Health/Health_shapes.swift +++ b/Sources/Soto/Services/Health/Health_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/HealthLake/HealthLake_api.swift b/Sources/Soto/Services/HealthLake/HealthLake_api.swift index 7c04d239244..75409dd6be6 100644 --- a/Sources/Soto/Services/HealthLake/HealthLake_api.swift +++ b/Sources/Soto/Services/HealthLake/HealthLake_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/HealthLake/HealthLake_shapes.swift b/Sources/Soto/Services/HealthLake/HealthLake_shapes.swift index 9fa700389b0..ea1647ce48c 100644 --- a/Sources/Soto/Services/HealthLake/HealthLake_shapes.swift +++ b/Sources/Soto/Services/HealthLake/HealthLake_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IAM/IAM_api.swift b/Sources/Soto/Services/IAM/IAM_api.swift index c5bb55b09e1..b3494c01ad5 100644 --- a/Sources/Soto/Services/IAM/IAM_api.swift +++ b/Sources/Soto/Services/IAM/IAM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IAM/IAM_shapes.swift b/Sources/Soto/Services/IAM/IAM_shapes.swift index 9dd26e0ff01..2d2ce53545c 100644 --- a/Sources/Soto/Services/IAM/IAM_shapes.swift +++ b/Sources/Soto/Services/IAM/IAM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IVS/IVS_api.swift b/Sources/Soto/Services/IVS/IVS_api.swift index c7755b32c89..7b8d58e427f 100644 --- a/Sources/Soto/Services/IVS/IVS_api.swift +++ b/Sources/Soto/Services/IVS/IVS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IVS/IVS_shapes.swift b/Sources/Soto/Services/IVS/IVS_shapes.swift index 758f1a21c21..30a8db1d039 100644 --- a/Sources/Soto/Services/IVS/IVS_shapes.swift +++ b/Sources/Soto/Services/IVS/IVS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -122,6 +121,20 @@ extension IVS { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// User does not have sufficient access to perform this action. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct AudioConfiguration: AWSDecodableShape { /// Number of audio channels. public let channels: Int64? @@ -418,6 +431,20 @@ extension IVS { } } + public struct ChannelNotBroadcasting: AWSErrorShape { + /// The stream is offline for the given channel ARN. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct ChannelSummary: AWSDecodableShape { /// Channel ARN. public let arn: String? @@ -468,6 +495,20 @@ extension IVS { } } + public struct ConflictException: AWSErrorShape { + /// Updating or deleting a resource can cause an inconsistent state. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct CreateChannelRequest: AWSEncodableShape { /// Whether the channel is private (enabled for playback authorization). Default: false. public let authorized: Bool? @@ -1161,6 +1202,20 @@ extension IVS { } } + public struct InternalServerException: AWSErrorShape { + /// Unexpected error during processing of request. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct ListChannelsRequest: AWSEncodableShape { /// Filters the channel list to match the specified name. public let filterByName: String? @@ -1558,6 +1613,20 @@ extension IVS { } } + public struct PendingVerification: AWSErrorShape { + /// Your account is pending verification. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct PlaybackKeyPair: AWSDecodableShape { /// Key-pair ARN. public let arn: String? @@ -1789,6 +1858,20 @@ extension IVS { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// Request references a resource which does not exist. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct S3DestinationConfiguration: AWSEncodableShape & AWSDecodableShape { /// Location (S3 bucket name) where recorded videos will be stored. public let bucketName: String @@ -1809,6 +1892,20 @@ extension IVS { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// Request would cause a service quota to be exceeded. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct Srt: AWSDecodableShape { /// The endpoint to be used when streaming with IVS using the SRT protocol. public let endpoint: String? @@ -2121,6 +2218,20 @@ extension IVS { } } + public struct StreamUnavailable: AWSErrorShape { + /// The stream is temporarily unavailable. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// ARN of the resource for which tags are to be added or updated. The ARN must be URL-encoded. public let resourceArn: String @@ -2161,6 +2272,20 @@ extension IVS { public init() {} } + public struct ThrottlingException: AWSErrorShape { + /// Request was denied due to request throttling. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct ThumbnailConfiguration: AWSEncodableShape & AWSDecodableShape { /// Thumbnail recording mode. Default: INTERVAL. public let recordingMode: RecordingMode? @@ -2368,6 +2493,20 @@ extension IVS { } } + public struct ValidationException: AWSErrorShape { + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let exceptionMessage: String? + + @inlinable + public init(exceptionMessage: String? = nil) { + self.exceptionMessage = exceptionMessage + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct VideoConfiguration: AWSDecodableShape { /// Indicates the degree of required decoder performance for a profile. Normally this is set automatically by the encoder. For details, see the H.264 specification. public let avcLevel: String? @@ -2470,6 +2609,21 @@ public struct IVSErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IVSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": IVS.AccessDeniedException.self, + "ChannelNotBroadcasting": IVS.ChannelNotBroadcasting.self, + "ConflictException": IVS.ConflictException.self, + "InternalServerException": IVS.InternalServerException.self, + "PendingVerification": IVS.PendingVerification.self, + "ResourceNotFoundException": IVS.ResourceNotFoundException.self, + "ServiceQuotaExceededException": IVS.ServiceQuotaExceededException.self, + "StreamUnavailable": IVS.StreamUnavailable.self, + "ThrottlingException": IVS.ThrottlingException.self, + "ValidationException": IVS.ValidationException.self + ] +} + extension IVSErrorType: Equatable { public static func == (lhs: IVSErrorType, rhs: IVSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IVSRealTime/IVSRealTime_api.swift b/Sources/Soto/Services/IVSRealTime/IVSRealTime_api.swift index 8403097567b..bda41e6a840 100644 --- a/Sources/Soto/Services/IVSRealTime/IVSRealTime_api.swift +++ b/Sources/Soto/Services/IVSRealTime/IVSRealTime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IVSRealTime/IVSRealTime_shapes.swift b/Sources/Soto/Services/IVSRealTime/IVSRealTime_shapes.swift index 85ac9625dba..74e47c8c446 100644 --- a/Sources/Soto/Services/IVSRealTime/IVSRealTime_shapes.swift +++ b/Sources/Soto/Services/IVSRealTime/IVSRealTime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -182,6 +181,50 @@ extension IVSRealTime { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// User does not have sufficient access to perform this action. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct AutoParticipantRecordingConfiguration: AWSEncodableShape & AWSDecodableShape { /// HLS configuration object for individual participant recording. public let hlsConfiguration: ParticipantRecordingHlsConfiguration? @@ -379,6 +422,50 @@ extension IVSRealTime { } } + public struct ConflictException: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// Updating or deleting a resource can cause an inconsistent state. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct CreateEncoderConfigurationRequest: AWSEncodableShape { /// Optional name to identify the resource. public let name: String? @@ -1465,6 +1552,50 @@ extension IVSRealTime { } } + public struct InternalServerException: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// Unexpected error during processing of request. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct LayoutConfiguration: AWSEncodableShape & AWSDecodableShape { /// Configuration related to grid layout. Default: Grid layout. public let grid: GridConfiguration? @@ -2230,6 +2361,50 @@ extension IVSRealTime { } } + public struct PendingVerification: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// Your account is pending verification. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct PipConfiguration: AWSEncodableShape & AWSDecodableShape { /// This attribute name identifies the featured slot. A participant with this attribute set to "true" (as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default: "" (no featured participant). public let featuredParticipantAttribute: String? @@ -2365,6 +2540,50 @@ extension IVSRealTime { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// Request references a resource which does not exist. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct S3DestinationConfiguration: AWSEncodableShape & AWSDecodableShape { /// ARNs of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region. public let encoderConfigurationArns: [String] @@ -2443,6 +2662,50 @@ extension IVSRealTime { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// Request would cause a service quota to be exceeded. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct Stage: AWSDecodableShape { /// ID of the active session within the stage. public let activeSessionId: String? @@ -2880,6 +3143,50 @@ extension IVSRealTime { } } + public struct ValidationException: AWSErrorShape { + public let accessControlAllowOrigin: String? + public let accessControlExposeHeaders: String? + public let cacheControl: String? + public let contentSecurityPolicy: String? + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let exceptionMessage: String? + public let strictTransportSecurity: String? + public let xAmznErrorType: String? + public let xContentTypeOptions: String? + public let xFrameOptions: String? + + @inlinable + public init(accessControlAllowOrigin: String? = nil, accessControlExposeHeaders: String? = nil, cacheControl: String? = nil, contentSecurityPolicy: String? = nil, exceptionMessage: String? = nil, strictTransportSecurity: String? = nil, xAmznErrorType: String? = nil, xContentTypeOptions: String? = nil, xFrameOptions: String? = nil) { + self.accessControlAllowOrigin = accessControlAllowOrigin + self.accessControlExposeHeaders = accessControlExposeHeaders + self.cacheControl = cacheControl + self.contentSecurityPolicy = contentSecurityPolicy + self.exceptionMessage = exceptionMessage + self.strictTransportSecurity = strictTransportSecurity + self.xAmznErrorType = xAmznErrorType + self.xContentTypeOptions = xContentTypeOptions + self.xFrameOptions = xFrameOptions + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.accessControlAllowOrigin = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Allow-Origin") + self.accessControlExposeHeaders = try response.decodeHeaderIfPresent(String.self, key: "Access-Control-Expose-Headers") + self.cacheControl = try response.decodeHeaderIfPresent(String.self, key: "Cache-Control") + self.contentSecurityPolicy = try response.decodeHeaderIfPresent(String.self, key: "Content-Security-Policy") + self.exceptionMessage = try container.decodeIfPresent(String.self, forKey: .exceptionMessage) + self.strictTransportSecurity = try response.decodeHeaderIfPresent(String.self, key: "Strict-Transport-Security") + self.xAmznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.xContentTypeOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Content-Type-Options") + self.xFrameOptions = try response.decodeHeaderIfPresent(String.self, key: "X-Frame-Options") + } + + private enum CodingKeys: String, CodingKey { + case exceptionMessage = "exceptionMessage" + } + } + public struct Video: AWSEncodableShape & AWSDecodableShape { /// Bitrate for generated output, in bps. Default: 2500000. public let bitrate: Int? @@ -2959,6 +3266,18 @@ public struct IVSRealTimeErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IVSRealTimeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": IVSRealTime.AccessDeniedException.self, + "ConflictException": IVSRealTime.ConflictException.self, + "InternalServerException": IVSRealTime.InternalServerException.self, + "PendingVerification": IVSRealTime.PendingVerification.self, + "ResourceNotFoundException": IVSRealTime.ResourceNotFoundException.self, + "ServiceQuotaExceededException": IVSRealTime.ServiceQuotaExceededException.self, + "ValidationException": IVSRealTime.ValidationException.self + ] +} + extension IVSRealTimeErrorType: Equatable { public static func == (lhs: IVSRealTimeErrorType, rhs: IVSRealTimeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IdentityStore/IdentityStore_api.swift b/Sources/Soto/Services/IdentityStore/IdentityStore_api.swift index 2bb9e6a34cd..736c3562d73 100644 --- a/Sources/Soto/Services/IdentityStore/IdentityStore_api.swift +++ b/Sources/Soto/Services/IdentityStore/IdentityStore_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IdentityStore/IdentityStore_shapes.swift b/Sources/Soto/Services/IdentityStore/IdentityStore_shapes.swift index 52cefeb7bde..aacbdb7625b 100644 --- a/Sources/Soto/Services/IdentityStore/IdentityStore_shapes.swift +++ b/Sources/Soto/Services/IdentityStore/IdentityStore_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,20 @@ import Foundation extension IdentityStore { // MARK: Enums + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case concurrentModification = "CONCURRENT_MODIFICATION" + case uniquenessConstraintViolation = "UNIQUENESS_CONSTRAINT_VIOLATION" + public var description: String { return self.rawValue } + } + + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case group = "GROUP" + case groupMembership = "GROUP_MEMBERSHIP" + case identityStore = "IDENTITY_STORE" + case user = "USER" + public var description: String { return self.rawValue } + } + public enum AlternateIdentifier: AWSEncodableShape, Sendable { /// The identifier issued to this resource by an external identity provider. case externalId(ExternalId) @@ -149,6 +162,27 @@ extension IdentityStore { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// This request cannot be completed for one of the following reasons: Performing the requested operation would violate an existing uniqueness claim in the identity store. Resolve the conflict before retrying this request. The requested resource was being concurrently modified by another request. + public let reason: ConflictExceptionReason? + /// The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails. + public let requestId: String? + + @inlinable + public init(message: String? = nil, reason: ConflictExceptionReason? = nil, requestId: String? = nil) { + self.message = message + self.reason = reason + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + case requestId = "RequestId" + } + } + public struct CreateGroupMembershipRequest: AWSEncodableShape { /// The identifier for a group in the identity store. public let groupId: String @@ -1372,6 +1406,48 @@ extension IdentityStore { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails. + public let requestId: String? + /// The identifier for a resource in the identity store that can be used as UserId or GroupId. The format for ResourceId is either UUID or 1234567890-UUID, where UUID is a randomly generated value for each resource when it is created and 1234567890 represents the IdentityStoreId string value. In the case that the identity store is migrated from a legacy SSO identity store, the ResourceId for that identity store will be in the format of UUID. Otherwise, it will be in the 1234567890-UUID format. + public let resourceId: String? + /// An enum object indicating the type of resource in the identity store service. Valid values include USER, GROUP, and IDENTITY_STORE. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, requestId: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.requestId = requestId + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct UniqueAttribute: AWSEncodableShape { /// A string representation of the path to a given attribute or sub-attribute. Supports JMESPath. public let attributePath: String @@ -1550,6 +1626,23 @@ extension IdentityStore { } } + public struct ValidationException: AWSErrorShape { + public let message: String? + /// The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct MemberId: AWSEncodableShape & AWSDecodableShape { /// An object containing the identifiers of resources that can be members. public let userId: String? @@ -1619,6 +1712,15 @@ public struct IdentityStoreErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IdentityStoreErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": IdentityStore.ConflictException.self, + "ResourceNotFoundException": IdentityStore.ResourceNotFoundException.self, + "ServiceQuotaExceededException": IdentityStore.ServiceQuotaExceededException.self, + "ValidationException": IdentityStore.ValidationException.self + ] +} + extension IdentityStoreErrorType: Equatable { public static func == (lhs: IdentityStoreErrorType, rhs: IdentityStoreErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Imagebuilder/Imagebuilder_api.swift b/Sources/Soto/Services/Imagebuilder/Imagebuilder_api.swift index 30bbf28b010..001d893978d 100644 --- a/Sources/Soto/Services/Imagebuilder/Imagebuilder_api.swift +++ b/Sources/Soto/Services/Imagebuilder/Imagebuilder_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Imagebuilder/Imagebuilder_shapes.swift b/Sources/Soto/Services/Imagebuilder/Imagebuilder_shapes.swift index 7ad1e2db87e..bcea7d19a6b 100644 --- a/Sources/Soto/Services/Imagebuilder/Imagebuilder_shapes.swift +++ b/Sources/Soto/Services/Imagebuilder/Imagebuilder_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Inspector/Inspector_api.swift b/Sources/Soto/Services/Inspector/Inspector_api.swift index b5802f538e9..16f548d684c 100644 --- a/Sources/Soto/Services/Inspector/Inspector_api.swift +++ b/Sources/Soto/Services/Inspector/Inspector_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Inspector/Inspector_shapes.swift b/Sources/Soto/Services/Inspector/Inspector_shapes.swift index 5e9ba66df8b..85201aad1c3 100644 --- a/Sources/Soto/Services/Inspector/Inspector_shapes.swift +++ b/Sources/Soto/Services/Inspector/Inspector_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,18 @@ import Foundation extension Inspector { // MARK: Enums + public enum AccessDeniedErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accessDeniedToAssessmentRun = "ACCESS_DENIED_TO_ASSESSMENT_RUN" + case accessDeniedToAssessmentTarget = "ACCESS_DENIED_TO_ASSESSMENT_TARGET" + case accessDeniedToAssessmentTemplate = "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE" + case accessDeniedToFinding = "ACCESS_DENIED_TO_FINDING" + case accessDeniedToIamRole = "ACCESS_DENIED_TO_IAM_ROLE" + case accessDeniedToResourceGroup = "ACCESS_DENIED_TO_RESOURCE_GROUP" + case accessDeniedToRulesPackage = "ACCESS_DENIED_TO_RULES_PACKAGE" + case accessDeniedToSnsTopic = "ACCESS_DENIED_TO_SNS_TOPIC" + public var description: String { return self.rawValue } + } + public enum AgentHealth: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case healthy = "HEALTHY" case unhealthy = "UNHEALTHY" @@ -92,11 +103,96 @@ extension Inspector { public var description: String { return self.rawValue } } + public enum InvalidCrossAccountRoleErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case roleDoesNotExistOrInvalidTrustRelationship = "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP" + case roleDoesNotHaveCorrectPolicy = "ROLE_DOES_NOT_HAVE_CORRECT_POLICY" + public var description: String { return self.rawValue } + } + + public enum InvalidInputErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case assessmentTargetNameAlreadyTaken = "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN" + case assessmentTemplateNameAlreadyTaken = "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN" + case invalidAgentId = "INVALID_AGENT_ID" + case invalidAssessmentRunArn = "INVALID_ASSESSMENT_RUN_ARN" + case invalidAssessmentRunCompletionTimeRange = "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE" + case invalidAssessmentRunDurationRange = "INVALID_ASSESSMENT_RUN_DURATION_RANGE" + case invalidAssessmentRunStartTimeRange = "INVALID_ASSESSMENT_RUN_START_TIME_RANGE" + case invalidAssessmentRunState = "INVALID_ASSESSMENT_RUN_STATE" + case invalidAssessmentRunStateChangeTimeRange = "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE" + case invalidAssessmentTargetArn = "INVALID_ASSESSMENT_TARGET_ARN" + case invalidAssessmentTargetName = "INVALID_ASSESSMENT_TARGET_NAME" + case invalidAssessmentTargetNamePattern = "INVALID_ASSESSMENT_TARGET_NAME_PATTERN" + case invalidAssessmentTemplateArn = "INVALID_ASSESSMENT_TEMPLATE_ARN" + case invalidAssessmentTemplateDuration = "INVALID_ASSESSMENT_TEMPLATE_DURATION" + case invalidAssessmentTemplateDurationRange = "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE" + case invalidAssessmentTemplateName = "INVALID_ASSESSMENT_TEMPLATE_NAME" + case invalidAssessmentTemplateNamePattern = "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN" + case invalidAttribute = "INVALID_ATTRIBUTE" + case invalidAutoScalingGroup = "INVALID_AUTO_SCALING_GROUP" + case invalidEvent = "INVALID_EVENT" + case invalidFindingArn = "INVALID_FINDING_ARN" + case invalidIamRoleArn = "INVALID_IAM_ROLE_ARN" + case invalidLocale = "INVALID_LOCALE" + case invalidMaxResults = "INVALID_MAX_RESULTS" + case invalidNumberOfAgentIds = "INVALID_NUMBER_OF_AGENT_IDS" + case invalidNumberOfAssessmentRunArns = "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS" + case invalidNumberOfAssessmentRunStates = "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES" + case invalidNumberOfAssessmentTargetArns = "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS" + case invalidNumberOfAssessmentTemplateArns = "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS" + case invalidNumberOfAttributes = "INVALID_NUMBER_OF_ATTRIBUTES" + case invalidNumberOfAutoScalingGroups = "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS" + case invalidNumberOfFindingArns = "INVALID_NUMBER_OF_FINDING_ARNS" + case invalidNumberOfResourceGroupArns = "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS" + case invalidNumberOfResourceGroupTags = "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS" + case invalidNumberOfRuleNames = "INVALID_NUMBER_OF_RULE_NAMES" + case invalidNumberOfRulesPackageArns = "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS" + case invalidNumberOfSeverities = "INVALID_NUMBER_OF_SEVERITIES" + case invalidNumberOfTags = "INVALID_NUMBER_OF_TAGS" + case invalidNumberOfUserAttributes = "INVALID_NUMBER_OF_USER_ATTRIBUTES" + case invalidPaginationToken = "INVALID_PAGINATION_TOKEN" + case invalidResourceArn = "INVALID_RESOURCE_ARN" + case invalidResourceGroupArn = "INVALID_RESOURCE_GROUP_ARN" + case invalidResourceGroupTagKey = "INVALID_RESOURCE_GROUP_TAG_KEY" + case invalidResourceGroupTagValue = "INVALID_RESOURCE_GROUP_TAG_VALUE" + case invalidRuleName = "INVALID_RULE_NAME" + case invalidRulesPackageArn = "INVALID_RULES_PACKAGE_ARN" + case invalidSeverity = "INVALID_SEVERITY" + case invalidSnsTopicArn = "INVALID_SNS_TOPIC_ARN" + case invalidTag = "INVALID_TAG" + case invalidTagKey = "INVALID_TAG_KEY" + case invalidTagValue = "INVALID_TAG_VALUE" + case invalidUserAttribute = "INVALID_USER_ATTRIBUTE" + case invalidUserAttributeKey = "INVALID_USER_ATTRIBUTE_KEY" + case invalidUserAttributeValue = "INVALID_USER_ATTRIBUTE_VALUE" + public var description: String { return self.rawValue } + } + + public enum LimitExceededErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case assessmentRunLimitExceeded = "ASSESSMENT_RUN_LIMIT_EXCEEDED" + case assessmentTargetLimitExceeded = "ASSESSMENT_TARGET_LIMIT_EXCEEDED" + case assessmentTemplateLimitExceeded = "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED" + case eventSubscriptionLimitExceeded = "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED" + case resourceGroupLimitExceeded = "RESOURCE_GROUP_LIMIT_EXCEEDED" + public var description: String { return self.rawValue } + } + public enum Locale: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case enUs = "EN_US" public var description: String { return self.rawValue } } + public enum NoSuchEntityErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case assessmentRunDoesNotExist = "ASSESSMENT_RUN_DOES_NOT_EXIST" + case assessmentTargetDoesNotExist = "ASSESSMENT_TARGET_DOES_NOT_EXIST" + case assessmentTemplateDoesNotExist = "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST" + case findingDoesNotExist = "FINDING_DOES_NOT_EXIST" + case iamRoleDoesNotExist = "IAM_ROLE_DOES_NOT_EXIST" + case resourceGroupDoesNotExist = "RESOURCE_GROUP_DOES_NOT_EXIST" + case rulesPackageDoesNotExist = "RULES_PACKAGE_DOES_NOT_EXIST" + case snsTopicDoesNotExist = "SNS_TOPIC_DOES_NOT_EXIST" + public var description: String { return self.rawValue } + } + public enum PreviewStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case completed = "COMPLETED" case workInProgress = "WORK_IN_PROGRESS" @@ -145,6 +241,28 @@ extension Inspector { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// You can immediately retry your request. + public let canRetry: Bool + /// Code that indicates the type of error that is generated. + public let errorCode: AccessDeniedErrorCode + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, errorCode: AccessDeniedErrorCode, message: String) { + self.canRetry = canRetry + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case errorCode = "errorCode" + case message = "message" + } + } + public struct AddAttributesToFindingsRequest: AWSEncodableShape { /// The array of attributes that you want to assign to specified findings. public let attributes: [Attribute] @@ -190,6 +308,24 @@ extension Inspector { } } + public struct AgentAlreadyRunningAssessment: AWSDecodableShape { + /// ID of the agent that is running on an EC2 instance that is already participating in another started assessment run. + public let agentId: String + /// The ARN of the assessment run that has already been started. + public let assessmentRunArn: String + + @inlinable + public init(agentId: String, assessmentRunArn: String) { + self.agentId = agentId + self.assessmentRunArn = assessmentRunArn + } + + private enum CodingKeys: String, CodingKey { + case agentId = "agentId" + case assessmentRunArn = "assessmentRunArn" + } + } + public struct AgentFilter: AWSEncodableShape { /// The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN. public let agentHealthCodes: [AgentHealthCode] @@ -255,6 +391,30 @@ extension Inspector { } } + public struct AgentsAlreadyRunningAssessmentException: AWSErrorShape { + public let agents: [AgentAlreadyRunningAssessment] + public let agentsTruncated: Bool + /// You can immediately retry your request. + public let canRetry: Bool + /// Details of the exception error. + public let message: String + + @inlinable + public init(agents: [AgentAlreadyRunningAssessment], agentsTruncated: Bool, canRetry: Bool, message: String) { + self.agents = agents + self.agentsTruncated = agentsTruncated + self.canRetry = canRetry + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case agents = "agents" + case agentsTruncated = "agentsTruncated" + case canRetry = "canRetry" + case message = "message" + } + } + public struct AssessmentRun: AWSDecodableShape { /// The ARN of the assessment run. public let arn: String @@ -413,6 +573,32 @@ extension Inspector { } } + public struct AssessmentRunInProgressException: AWSErrorShape { + /// The ARNs of the assessment runs that are currently in progress. + public let assessmentRunArns: [String] + /// Boolean value that indicates whether the ARN list of the assessment runs is truncated. + public let assessmentRunArnsTruncated: Bool + /// You can immediately retry your request. + public let canRetry: Bool + /// Details of the exception error. + public let message: String + + @inlinable + public init(assessmentRunArns: [String], assessmentRunArnsTruncated: Bool, canRetry: Bool, message: String) { + self.assessmentRunArns = assessmentRunArns + self.assessmentRunArnsTruncated = assessmentRunArnsTruncated + self.canRetry = canRetry + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case assessmentRunArns = "assessmentRunArns" + case assessmentRunArnsTruncated = "assessmentRunArnsTruncated" + case canRetry = "canRetry" + case message = "message" + } + } + public struct AssessmentRunNotification: AWSDecodableShape { /// The date of the notification. public let date: Date @@ -1647,6 +1833,90 @@ extension Inspector { } } + public struct InternalException: AWSErrorShape { + /// You can immediately retry your request. + public let canRetry: Bool + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, message: String) { + self.canRetry = canRetry + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case message = "message" + } + } + + public struct InvalidCrossAccountRoleException: AWSErrorShape { + /// You can immediately retry your request. + public let canRetry: Bool + /// Code that indicates the type of error that is generated. + public let errorCode: InvalidCrossAccountRoleErrorCode + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, errorCode: InvalidCrossAccountRoleErrorCode, message: String) { + self.canRetry = canRetry + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case errorCode = "errorCode" + case message = "message" + } + } + + public struct InvalidInputException: AWSErrorShape { + /// You can immediately retry your request. + public let canRetry: Bool + /// Code that indicates the type of error that is generated. + public let errorCode: InvalidInputErrorCode + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, errorCode: InvalidInputErrorCode, message: String) { + self.canRetry = canRetry + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case errorCode = "errorCode" + case message = "message" + } + } + + public struct LimitExceededException: AWSErrorShape { + /// You can immediately retry your request. + public let canRetry: Bool + /// Code that indicates the type of error that is generated. + public let errorCode: LimitExceededErrorCode + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, errorCode: LimitExceededErrorCode, message: String) { + self.canRetry = canRetry + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case errorCode = "errorCode" + case message = "message" + } + } + public struct ListAssessmentRunAgentsRequest: AWSEncodableShape { /// The ARN that specifies the assessment run whose agents you want to list. public let assessmentRunArn: String @@ -2128,6 +2398,28 @@ extension Inspector { } } + public struct NoSuchEntityException: AWSErrorShape { + /// You can immediately retry your request. + public let canRetry: Bool + /// Code that indicates the type of error that is generated. + public let errorCode: NoSuchEntityErrorCode + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, errorCode: NoSuchEntityErrorCode, message: String) { + self.canRetry = canRetry + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case errorCode = "errorCode" + case message = "message" + } + } + public struct PreviewAgentsRequest: AWSEncodableShape { /// You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500. public let maxResults: Int? @@ -2371,6 +2663,24 @@ extension Inspector { } } + public struct ServiceTemporarilyUnavailableException: AWSErrorShape { + /// You can wait and then retry your request. + public let canRetry: Bool + /// Details of the exception error. + public let message: String + + @inlinable + public init(canRetry: Bool, message: String) { + self.canRetry = canRetry + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case message = "message" + } + } + public struct SetTagsForResourceRequest: AWSEncodableShape { /// The ARN of the assessment template that you want to set tags to. public let resourceArn: String @@ -2605,6 +2915,22 @@ extension Inspector { } } + public struct UnsupportedFeatureException: AWSErrorShape { + public let canRetry: Bool + public let message: String + + @inlinable + public init(canRetry: Bool, message: String) { + self.canRetry = canRetry + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case canRetry = "canRetry" + case message = "message" + } + } + public struct UpdateAssessmentTargetRequest: AWSEncodableShape { /// The ARN of the assessment target that you want to update. public let assessmentTargetArn: String @@ -2697,6 +3023,21 @@ public struct InspectorErrorType: AWSErrorType { public static var unsupportedFeatureException: Self { .init(.unsupportedFeatureException) } } +extension InspectorErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Inspector.AccessDeniedException.self, + "AgentsAlreadyRunningAssessmentException": Inspector.AgentsAlreadyRunningAssessmentException.self, + "AssessmentRunInProgressException": Inspector.AssessmentRunInProgressException.self, + "InternalException": Inspector.InternalException.self, + "InvalidCrossAccountRoleException": Inspector.InvalidCrossAccountRoleException.self, + "InvalidInputException": Inspector.InvalidInputException.self, + "LimitExceededException": Inspector.LimitExceededException.self, + "NoSuchEntityException": Inspector.NoSuchEntityException.self, + "ServiceTemporarilyUnavailableException": Inspector.ServiceTemporarilyUnavailableException.self, + "UnsupportedFeatureException": Inspector.UnsupportedFeatureException.self + ] +} + extension InspectorErrorType: Equatable { public static func == (lhs: InspectorErrorType, rhs: InspectorErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Inspector2/Inspector2_api.swift b/Sources/Soto/Services/Inspector2/Inspector2_api.swift index dbde75e3641..4d00aa47af6 100644 --- a/Sources/Soto/Services/Inspector2/Inspector2_api.swift +++ b/Sources/Soto/Services/Inspector2/Inspector2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Inspector2/Inspector2_shapes.swift b/Sources/Soto/Services/Inspector2/Inspector2_shapes.swift index 78520a13cce..2fcb0691f68 100644 --- a/Sources/Soto/Services/Inspector2/Inspector2_shapes.swift +++ b/Sources/Soto/Services/Inspector2/Inspector2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -767,6 +766,13 @@ extension Inspector2 { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + public var description: String { return self.rawValue } + } + public enum VulnerabilitySource: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case nvd = "NVD" public var description: String { return self.rawValue } @@ -2598,6 +2604,27 @@ extension Inspector2 { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the conflicting resource. + public let resourceId: String + /// The type of the conflicting resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Counts: AWSDecodableShape { /// The number of resources. public let count: Int64? @@ -5163,6 +5190,29 @@ extension Inspector2 { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct LambdaFunctionAggregation: AWSEncodableShape { /// The Amazon Web Services Lambda function names to include in the aggregation results. public let functionNames: [StringFilter]? @@ -7133,6 +7183,23 @@ extension Inspector2 { public init() {} } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The ID of the resource that exceeds a service quota. + public let resourceId: String + + @inlinable + public init(message: String, resourceId: String) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + public struct SeverityCounts: AWSDecodableShape { /// The total count of findings from all severities. public let all: Int64? @@ -7529,6 +7596,29 @@ extension Inspector2 { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Time: AWSEncodableShape & AWSDecodableShape { /// The time of day in 24-hour format (00:00). public let timeOfDay: String @@ -8014,6 +8104,45 @@ extension Inspector2 { } } + public struct ValidationException: AWSErrorShape { + /// The fields that failed validation. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason for the validation failure. + public let reason: ValidationExceptionReason + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The validation exception message. + public let message: String + /// The name of the validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct Vulnerability: AWSDecodableShape { /// An object that contains information about the Amazon Web Services Threat Intel Group (ATIG) details for the vulnerability. public let atigData: AtigData? @@ -8222,6 +8351,16 @@ public struct Inspector2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension Inspector2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Inspector2.ConflictException.self, + "InternalServerException": Inspector2.InternalServerException.self, + "ServiceQuotaExceededException": Inspector2.ServiceQuotaExceededException.self, + "ThrottlingException": Inspector2.ThrottlingException.self, + "ValidationException": Inspector2.ValidationException.self + ] +} + extension Inspector2ErrorType: Equatable { public static func == (lhs: Inspector2ErrorType, rhs: Inspector2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/InspectorScan/InspectorScan_api.swift b/Sources/Soto/Services/InspectorScan/InspectorScan_api.swift index c6c60443f41..adbf11f820f 100644 --- a/Sources/Soto/Services/InspectorScan/InspectorScan_api.swift +++ b/Sources/Soto/Services/InspectorScan/InspectorScan_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/InspectorScan/InspectorScan_shapes.swift b/Sources/Soto/Services/InspectorScan/InspectorScan_shapes.swift index eb4c4ba6159..d07387aa4fd 100644 --- a/Sources/Soto/Services/InspectorScan/InspectorScan_shapes.swift +++ b/Sources/Soto/Services/InspectorScan/InspectorScan_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,14 +25,57 @@ import Foundation extension InspectorScan { // MARK: Enums + public enum InternalServerExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case failedToGenerateSbom = "FAILED_TO_GENERATE_SBOM" + case other = "OTHER" + public var description: String { return self.rawValue } + } + public enum OutputFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case cycloneDx15 = "CYCLONE_DX_1_5" case inspector = "INSPECTOR" public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + case unsupportedSbomType = "UNSUPPORTED_SBOM_TYPE" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The reason for the validation failure. + public let reason: InternalServerExceptionReason + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, reason: InternalServerExceptionReason, retryAfterSeconds: Int? = nil) { + self.message = message + self.reason = reason + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.reason = try container.decode(InternalServerExceptionReason.self, forKey: .reason) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct ScanSbomRequest: AWSEncodableShape { /// The output format for the vulnerability report. public let outputFormat: OutputFormat? @@ -65,6 +107,68 @@ extension InspectorScan { case sbom = "sbom" } } + + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + + public struct ValidationException: AWSErrorShape { + /// The fields that failed validation. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason for the validation failure. + public let reason: ValidationExceptionReason + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The validation exception message. + public let message: String + /// The name of the validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -106,6 +210,14 @@ public struct InspectorScanErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension InspectorScanErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerException": InspectorScan.InternalServerException.self, + "ThrottlingException": InspectorScan.ThrottlingException.self, + "ValidationException": InspectorScan.ValidationException.self + ] +} + extension InspectorScanErrorType: Equatable { public static func == (lhs: InspectorScanErrorType, rhs: InspectorScanErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/InternetMonitor/InternetMonitor_api.swift b/Sources/Soto/Services/InternetMonitor/InternetMonitor_api.swift index b751738e481..813235a86ed 100644 --- a/Sources/Soto/Services/InternetMonitor/InternetMonitor_api.swift +++ b/Sources/Soto/Services/InternetMonitor/InternetMonitor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/InternetMonitor/InternetMonitor_shapes.swift b/Sources/Soto/Services/InternetMonitor/InternetMonitor_shapes.swift index 54f8c94e138..ae03f1bdbcd 100644 --- a/Sources/Soto/Services/InternetMonitor/InternetMonitor_shapes.swift +++ b/Sources/Soto/Services/InternetMonitor/InternetMonitor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Invoicing/Invoicing_api.swift b/Sources/Soto/Services/Invoicing/Invoicing_api.swift index 5686d5741f3..1e917cb2d89 100644 --- a/Sources/Soto/Services/Invoicing/Invoicing_api.swift +++ b/Sources/Soto/Services/Invoicing/Invoicing_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Invoicing/Invoicing_shapes.swift b/Sources/Soto/Services/Invoicing/Invoicing_shapes.swift index 12dc4a0376e..a2b1c697e1e 100644 --- a/Sources/Soto/Services/Invoicing/Invoicing_shapes.swift +++ b/Sources/Soto/Services/Invoicing/Invoicing_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,8 +25,43 @@ import Foundation extension Invoicing { // MARK: Enums + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountMembershipError = "accountMembershipError" + case cannotParse = "cannotParse" + case duplicateInvoiceUnit = "duplicateInvoiceUnit" + case expiredNextToken = "expiredNextToken" + case fieldValidationFailed = "fieldValidationFailed" + case invalidInput = "invalidInput" + case invalidNextToken = "invalidNextToken" + case maxAccountsExceeded = "maxAccountsExceeded" + case maxInvoiceUnitsExceeded = "maxInvoiceUnitsExceeded" + case mutualExclusionError = "mutualExclusionError" + case nonMembersPresent = "nonMemberPresent" + case other = "other" + case taxSettingsError = "taxSettingsError" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// You don't have sufficient access to perform this action. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct BatchGetInvoiceProfileRequest: AWSEncodableShape { /// Retrieves the corresponding invoice profile data for these account IDs. public let accountIds: [String] @@ -261,6 +295,29 @@ extension Invoicing { } } + public struct InternalServerException: AWSErrorShape { + public let message: String? + /// The processing request failed because of an unknown error, exception, or failure. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct InvoiceProfile: AWSDecodableShape { /// The account ID the invoice profile is generated for. public let accountId: String? @@ -488,6 +545,23 @@ extension Invoicing { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The resource could not be found. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct ResourceTag: AWSEncodableShape & AWSDecodableShape { /// The object key of your of your resource tag. public let key: String @@ -625,6 +699,49 @@ extension Invoicing { case invoiceUnitArn = "InvoiceUnitArn" } } + + public struct ValidationException: AWSErrorShape { + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// You don't have sufficient access to perform this action. + public let reason: ValidationExceptionReason? + /// You don't have sufficient access to perform this action. + public let resourceName: String? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil, resourceName: String? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + case resourceName = "resourceName" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let message: String + /// The input fails to satisfy the constraints specified by an Amazon Web Services service. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -672,6 +789,15 @@ public struct InvoicingErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension InvoicingErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Invoicing.AccessDeniedException.self, + "InternalServerException": Invoicing.InternalServerException.self, + "ResourceNotFoundException": Invoicing.ResourceNotFoundException.self, + "ValidationException": Invoicing.ValidationException.self + ] +} + extension InvoicingErrorType: Equatable { public static func == (lhs: InvoicingErrorType, rhs: InvoicingErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoT/IoT_api.swift b/Sources/Soto/Services/IoT/IoT_api.swift index 5566434ab58..ec6bc0d79c5 100644 --- a/Sources/Soto/Services/IoT/IoT_api.swift +++ b/Sources/Soto/Services/IoT/IoT_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoT/IoT_shapes.swift b/Sources/Soto/Services/IoT/IoT_shapes.swift index b4706aa5473..944407be42e 100644 --- a/Sources/Soto/Services/IoT/IoT_shapes.swift +++ b/Sources/Soto/Services/IoT/IoT_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -3153,6 +3152,23 @@ extension IoT { public init() {} } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// A resource with the same name already exists. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + public struct CreateAuditSuppressionRequest: AWSEncodableShape { public let checkName: String /// Each audit supression must have a unique client request token. If you try to create a new audit suppression with the same token as one that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request. @@ -16630,6 +16646,28 @@ extension IoT { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + /// The message for the exception. + public let message: String? + /// The ARN of the resource that caused the exception. + public let resourceArn: String? + /// The ID of the resource that caused the exception. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceArn: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceArn = resourceArn + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + case resourceId = "resourceId" + } + } + public struct ResourceIdentifier: AWSEncodableShape & AWSDecodableShape { /// The account with which the resource is associated. public let account: String? @@ -21149,6 +21187,13 @@ public struct IoTErrorType: AWSErrorType { public static var versionsLimitExceededException: Self { .init(.versionsLimitExceededException) } } +extension IoTErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": IoT.ConflictException.self, + "ResourceAlreadyExistsException": IoT.ResourceAlreadyExistsException.self + ] +} + extension IoTErrorType: Equatable { public static func == (lhs: IoTErrorType, rhs: IoTErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_api.swift b/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_api.swift index fa11b0ad921..fce5df68c51 100644 --- a/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_api.swift +++ b/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_shapes.swift b/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_shapes.swift index 78fbee8a759..ab742799e3f 100644 --- a/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_shapes.swift +++ b/Sources/Soto/Services/IoTAnalytics/IoTAnalytics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2861,6 +2860,27 @@ extension IoTAnalytics { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + public let message: String? + /// The ARN of the resource. + public let resourceArn: String? + /// The ID of the resource. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceArn: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceArn = resourceArn + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + case resourceId = "resourceId" + } + } + public struct ResourceConfiguration: AWSEncodableShape & AWSDecodableShape { /// The type of the compute resource used to execute the containerAction. Possible values are: ACU_1 (vCPU=4, memory=16 GiB) or ACU_2 (vCPU=8, memory=32 GiB). public let computeType: ComputeType @@ -3647,6 +3667,12 @@ public struct IoTAnalyticsErrorType: AWSErrorType { public static var throttlingException: Self { .init(.throttlingException) } } +extension IoTAnalyticsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceAlreadyExistsException": IoTAnalytics.ResourceAlreadyExistsException.self + ] +} + extension IoTAnalyticsErrorType: Equatable { public static func == (lhs: IoTAnalyticsErrorType, rhs: IoTAnalyticsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_api.swift b/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_api.swift index df33a692a0d..02c6ccefcb2 100644 --- a/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_api.swift +++ b/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_shapes.swift b/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_shapes.swift index f2f9b686e33..534422f233c 100644 --- a/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_shapes.swift +++ b/Sources/Soto/Services/IoTDataPlane/IoTDataPlane_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_api.swift b/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_api.swift index da1337a2457..2b22c969efa 100644 --- a/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_api.swift +++ b/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_shapes.swift b/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_shapes.swift index 18673d4ced6..157acf2f5a3 100644 --- a/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_shapes.swift +++ b/Sources/Soto/Services/IoTDeviceAdvisor/IoTDeviceAdvisor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTEvents/IoTEvents_api.swift b/Sources/Soto/Services/IoTEvents/IoTEvents_api.swift index 39a8b5f22aa..a0283e453ef 100644 --- a/Sources/Soto/Services/IoTEvents/IoTEvents_api.swift +++ b/Sources/Soto/Services/IoTEvents/IoTEvents_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTEvents/IoTEvents_shapes.swift b/Sources/Soto/Services/IoTEvents/IoTEvents_shapes.swift index dce006c6281..0bea9a935a4 100644 --- a/Sources/Soto/Services/IoTEvents/IoTEvents_shapes.swift +++ b/Sources/Soto/Services/IoTEvents/IoTEvents_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2345,6 +2344,28 @@ extension IoTEvents { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + /// The message for the exception. + public let message: String? + /// The ARN of the resource. + public let resourceArn: String? + /// The ID of the resource. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceArn: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceArn = resourceArn + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + case resourceId = "resourceId" + } + } + public struct RoutedResource: AWSDecodableShape { /// The ARN of the routed resource. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference. public let arn: String? @@ -3015,6 +3036,12 @@ public struct IoTEventsErrorType: AWSErrorType { public static var unsupportedOperationException: Self { .init(.unsupportedOperationException) } } +extension IoTEventsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceAlreadyExistsException": IoTEvents.ResourceAlreadyExistsException.self + ] +} + extension IoTEventsErrorType: Equatable { public static func == (lhs: IoTEventsErrorType, rhs: IoTEventsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoTEventsData/IoTEventsData_api.swift b/Sources/Soto/Services/IoTEventsData/IoTEventsData_api.swift index 348a0bb76dd..0a4c69bb5ea 100644 --- a/Sources/Soto/Services/IoTEventsData/IoTEventsData_api.swift +++ b/Sources/Soto/Services/IoTEventsData/IoTEventsData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTEventsData/IoTEventsData_shapes.swift b/Sources/Soto/Services/IoTEventsData/IoTEventsData_shapes.swift index 7ced0b9509d..33800003168 100644 --- a/Sources/Soto/Services/IoTEventsData/IoTEventsData_shapes.swift +++ b/Sources/Soto/Services/IoTEventsData/IoTEventsData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_api.swift b/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_api.swift index 498c0c97697..f510046e9ed 100644 --- a/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_api.swift +++ b/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_shapes.swift b/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_shapes.swift index 265fdb65e18..59d3c3cae74 100644 --- a/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_shapes.swift +++ b/Sources/Soto/Services/IoTFleetHub/IoTFleetHub_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_api.swift b/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_api.swift index 54af4971224..08760a9f81d 100644 --- a/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_api.swift +++ b/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_shapes.swift b/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_shapes.swift index 67445b91c28..b44f6d74e89 100644 --- a/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_shapes.swift +++ b/Sources/Soto/Services/IoTFleetWise/IoTFleetWise_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -89,6 +88,18 @@ extension IoTFleetWise { public var description: String { return self.rawValue } } + public enum NetworkInterfaceFailureReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case canNetworkInterfaceInfoIsNull = "CAN_NETWORK_INTERFACE_INFO_IS_NULL" + case conflictingNetworkInterface = "CONFLICTING_NETWORK_INTERFACE" + case customDecodingSignalNetworkInterfaceInfoIsNull = "CUSTOM_DECODING_SIGNAL_NETWORK_INTERFACE_INFO_IS_NULL" + case duplicateInterface = "DUPLICATE_NETWORK_INTERFACE" + case networkInterfaceToAddAlreadyExists = "NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS" + case networkInterfaceToRemoveAssociatedWithSignals = "NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS" + case obdNetworkInterfaceInfoIsNull = "OBD_NETWORK_INTERFACE_INFO_IS_NULL" + case vehicleMiddlewareNetworkInterfaceInfoIsNull = "VEHICLE_MIDDLEWARE_NETWORK_INTERFACE_INFO_IS_NULL" + public var description: String { return self.rawValue } + } + public enum NetworkInterfaceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case canInterface = "CAN_INTERFACE" case customDecodingInterface = "CUSTOM_DECODING_INTERFACE" @@ -162,6 +173,26 @@ extension IoTFleetWise { public var description: String { return self.rawValue } } + public enum SignalDecoderFailureReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case canSignalInfoIsNull = "CAN_SIGNAL_INFO_IS_NULL" + case conflictingSignal = "CONFLICTING_SIGNAL" + case customDecodingSignalInfoIsNull = "CUSTOM_DECODING_SIGNAL_INFO_IS_NULL" + case duplicateSignal = "DUPLICATE_SIGNAL" + case emptyMessageSignal = "EMPTY_MESSAGE_SIGNAL" + case messageSignalInfoIsNull = "MESSAGE_SIGNAL_INFO_IS_NULL" + case networkInterfaceTypeIncompatibleWithSignalDecoderType = "NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE" + case noDecoderInfoForSignalInModel = "NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL" + case noSignalInCatalogForDecoderSignal = "NO_SIGNAL_IN_CATALOG_FOR_DECODER_SIGNAL" + case obdSignalInfoIsNull = "OBD_SIGNAL_INFO_IS_NULL" + case signalDecoderIncompatibleWithSignalCatalog = "SIGNAL_DECODER_INCOMPATIBLE_WITH_SIGNAL_CATALOG" + case signalDecoderTypeIncompatibleWithMessageSignalType = "SIGNAL_DECODER_TYPE_INCOMPATIBLE_WITH_MESSAGE_SIGNAL_TYPE" + case signalNotAssociatedWithNetworkInterface = "SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE" + case signalNotInModel = "SIGNAL_NOT_IN_MODEL" + case signalToAddAlreadyExists = "SIGNAL_TO_ADD_ALREADY_EXISTS" + case structSizeMismatch = "STRUCT_SIZE_MISMATCH" + public var description: String { return self.rawValue } + } + public enum SignalDecoderType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case canSignal = "CAN_SIGNAL" case customDecodingSignal = "CUSTOM_DECODING_SIGNAL" @@ -247,6 +278,14 @@ extension IoTFleetWise { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum VehicleAssociationBehavior: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case createIotThing = "CreateIotThing" case validateIotThingExists = "ValidateIotThingExists" @@ -1193,6 +1232,27 @@ extension IoTFleetWise { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The resource on which there are conflicting operations. + public let resource: String + /// The type of resource on which there are conflicting operations.. + public let resourceType: String + + @inlinable + public init(message: String, resource: String, resourceType: String) { + self.message = message + self.resource = resource + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resource = "resource" + case resourceType = "resourceType" + } + } + public struct CreateCampaignRequest: AWSEncodableShape { /// The data collection scheme associated with the campaign. You can specify a scheme that collects data based on time or an event. public let collectionScheme: CollectionScheme @@ -2227,6 +2287,27 @@ extension IoTFleetWise { } } + public struct DecoderManifestValidationException: AWSErrorShape { + /// The request couldn't be completed because of invalid network interfaces in the request. + public let invalidNetworkInterfaces: [InvalidNetworkInterface]? + /// The request couldn't be completed because of invalid signals in the request. + public let invalidSignals: [InvalidSignalDecoder]? + public let message: String? + + @inlinable + public init(invalidNetworkInterfaces: [InvalidNetworkInterface]? = nil, invalidSignals: [InvalidSignalDecoder]? = nil, message: String? = nil) { + self.invalidNetworkInterfaces = invalidNetworkInterfaces + self.invalidSignals = invalidSignals + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidNetworkInterfaces = "invalidNetworkInterfaces" + case invalidSignals = "invalidSignals" + case message = "message" + } + } + public struct DeleteCampaignRequest: AWSEncodableShape { /// The name of the campaign to delete. public let name: String @@ -3404,6 +3485,146 @@ extension IoTFleetWise { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the command. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + + public struct InvalidNetworkInterface: AWSDecodableShape { + /// The ID of the interface that isn't valid. + public let interfaceId: String? + /// A message about why the interface isn't valid. + public let reason: NetworkInterfaceFailureReason? + + @inlinable + public init(interfaceId: String? = nil, reason: NetworkInterfaceFailureReason? = nil) { + self.interfaceId = interfaceId + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case interfaceId = "interfaceId" + case reason = "reason" + } + } + + public struct InvalidNodeException: AWSErrorShape { + /// The specified node type isn't valid. + public let invalidNodes: [Node]? + public let message: String? + /// The reason the node validation failed. + public let reason: String? + + @inlinable + public init(invalidNodes: [Node]? = nil, message: String? = nil, reason: String? = nil) { + self.invalidNodes = invalidNodes + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case invalidNodes = "invalidNodes" + case message = "message" + case reason = "reason" + } + } + + public struct InvalidSignal: AWSDecodableShape { + /// The name of the signal that isn't valid. + public let name: String? + /// A message about why the signal isn't valid. + public let reason: String? + + @inlinable + public init(name: String? = nil, reason: String? = nil) { + self.name = name + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case name = "name" + case reason = "reason" + } + } + + public struct InvalidSignalDecoder: AWSDecodableShape { + /// The possible cause for the invalid signal decoder. + public let hint: String? + /// The name of a signal decoder that isn't valid. + public let name: String? + /// A message about why the signal decoder isn't valid. + public let reason: SignalDecoderFailureReason? + + @inlinable + public init(hint: String? = nil, name: String? = nil, reason: SignalDecoderFailureReason? = nil) { + self.hint = hint + self.name = name + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case hint = "hint" + case name = "name" + case reason = "reason" + } + } + + public struct InvalidSignalsException: AWSErrorShape { + /// The signals which caused the exception. + public let invalidSignals: [InvalidSignal]? + public let message: String? + + @inlinable + public init(invalidSignals: [InvalidSignal]? = nil, message: String? = nil) { + self.invalidSignals = invalidSignals + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidSignals = "invalidSignals" + case message = "message" + } + } + + public struct LimitExceededException: AWSErrorShape { + public let message: String + /// The identifier of the resource that was exceeded. + public let resourceId: String + /// The type of resource that was exceeded. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ListCampaignsRequest: AWSEncodableShape { /// When you set the listResponseScope parameter to METADATA_ONLY, the list response includes: campaign name, Amazon Resource Name (ARN), creation time, and last modification time. public let listResponseScope: ListResponseScope? @@ -4616,6 +4837,27 @@ extension IoTFleetWise { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier of the resource that wasn't found. + public let resourceId: String + /// The type of resource that wasn't found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct S3Config: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) of the Amazon S3 bucket. public let bucketArn: String @@ -5098,6 +5340,39 @@ extension IoTFleetWise { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The quota identifier of the applied throttling rules for this request. + public let quotaCode: String? + /// The number of seconds to wait before retrying the command. + public let retryAfterSeconds: Int? + /// The code for the service that couldn't be completed due to throttling. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct TimeBasedCollectionScheme: AWSEncodableShape & AWSDecodableShape { /// The time period (in milliseconds) to decide how often to collect data. For example, if the time period is 60000, the Edge Agent software collects data once every minute. public let periodMs: Int64 @@ -5980,6 +6255,45 @@ extension IoTFleetWise { } } + public struct ValidationException: AWSErrorShape { + /// The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason the input failed to satisfy the constraints specified by an Amazon Web Services service. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message about the validation error. + public let message: String + /// The name of the parameter field with the validation error. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VehicleMiddleware: AWSEncodableShape & AWSDecodableShape { /// The name of the vehicle middleware. public let name: String @@ -6171,6 +6485,20 @@ public struct IoTFleetWiseErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IoTFleetWiseErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": IoTFleetWise.ConflictException.self, + "DecoderManifestValidationException": IoTFleetWise.DecoderManifestValidationException.self, + "InternalServerException": IoTFleetWise.InternalServerException.self, + "InvalidNodeException": IoTFleetWise.InvalidNodeException.self, + "InvalidSignalsException": IoTFleetWise.InvalidSignalsException.self, + "LimitExceededException": IoTFleetWise.LimitExceededException.self, + "ResourceNotFoundException": IoTFleetWise.ResourceNotFoundException.self, + "ThrottlingException": IoTFleetWise.ThrottlingException.self, + "ValidationException": IoTFleetWise.ValidationException.self + ] +} + extension IoTFleetWiseErrorType: Equatable { public static func == (lhs: IoTFleetWiseErrorType, rhs: IoTFleetWiseErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_api.swift b/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_api.swift index 71e4dcf3ef3..9f4bd5bb91e 100644 --- a/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_api.swift +++ b/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_shapes.swift b/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_shapes.swift index 4fffc34f43f..74f736d4ca8 100644 --- a/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_shapes.swift +++ b/Sources/Soto/Services/IoTJobsDataPlane/IoTJobsDataPlane_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -86,6 +85,23 @@ extension IoTJobsDataPlane { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// A conflict occurred while performing the API request on the resource ID. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + public struct DescribeJobExecutionRequest: AWSEncodableShape { /// Optional. A number that identifies a particular job execution on a particular device. If not specified, the latest job execution is returned. public let executionNumber: Int64? @@ -404,6 +420,24 @@ extension IoTJobsDataPlane { } } + public struct ThrottlingException: AWSErrorShape { + /// The message associated with the exception. + public let message: String? + /// The payload associated with the exception. + public let payload: AWSBase64Data? + + @inlinable + public init(message: String? = nil, payload: AWSBase64Data? = nil) { + self.message = message + self.payload = payload + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case payload = "payload" + } + } + public struct UpdateJobExecutionRequest: AWSEncodableShape { /// Optional. A number that identifies a particular job execution on a particular device. public let executionNumber: Int64? @@ -557,6 +591,13 @@ public struct IoTJobsDataPlaneErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IoTJobsDataPlaneErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": IoTJobsDataPlane.ConflictException.self, + "ThrottlingException": IoTJobsDataPlane.ThrottlingException.self + ] +} + extension IoTJobsDataPlaneErrorType: Equatable { public static func == (lhs: IoTJobsDataPlaneErrorType, rhs: IoTJobsDataPlaneErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_api.swift b/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_api.swift index f15912f0581..2c37500e9bb 100644 --- a/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_api.swift +++ b/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_shapes.swift b/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_shapes.swift index d018658194e..12db96ad16a 100644 --- a/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_shapes.swift +++ b/Sources/Soto/Services/IoTManagedIntegrations/IoTManagedIntegrations_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_api.swift b/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_api.swift index df19be639b2..dc5e4f96e5d 100644 --- a/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_api.swift +++ b/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_shapes.swift b/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_shapes.swift index 0e9844fa7db..6779bce49d8 100644 --- a/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_shapes.swift +++ b/Sources/Soto/Services/IoTSecureTunneling/IoTSecureTunneling_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_api.swift b/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_api.swift index ce1de645522..6a19774cf8d 100644 --- a/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_api.swift +++ b/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_shapes.swift b/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_shapes.swift index fa37b3c7adc..f080df07846 100644 --- a/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_shapes.swift +++ b/Sources/Soto/Services/IoTSiteWise/IoTSiteWise_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2615,7 +2614,7 @@ extension IoTSiteWise { } } - public struct ConflictingOperationException: AWSDecodableShape { + public struct ConflictingOperationException: AWSErrorShape { public let message: String /// The ARN of the resource that conflicts with this operation. public let resourceArn: String @@ -7917,6 +7916,27 @@ extension IoTSiteWise { } } + public struct PreconditionFailedException: AWSErrorShape { + public let message: String + /// The ARN of the resource on which precondition failed with this operation. + public let resourceArn: String + /// The ID of the resource on which precondition failed with this operation. + public let resourceId: String + + @inlinable + public init(message: String, resourceArn: String, resourceId: String) { + self.message = message + self.resourceArn = resourceArn + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + case resourceId = "resourceId" + } + } + public struct ProjectResource: AWSEncodableShape & AWSDecodableShape { /// The ID of the project. public let id: String @@ -8306,6 +8326,27 @@ extension IoTSiteWise { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + public let message: String + /// The ARN of the resource that already exists. + public let resourceArn: String + /// The ID of the resource that already exists. + public let resourceId: String + + @inlinable + public init(message: String, resourceArn: String, resourceId: String) { + self.message = message + self.resourceArn = resourceArn + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + case resourceId = "resourceId" + } + } + public struct ResourceNotFoundException: AWSDecodableShape { public let message: String @@ -8551,6 +8592,23 @@ extension IoTSiteWise { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the resource with too many tags. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct Trace: AWSDecodableShape { /// The cited text from the data source. public let text: String? @@ -9636,6 +9694,15 @@ public struct IoTSiteWiseErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IoTSiteWiseErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictingOperationException": IoTSiteWise.ConflictingOperationException.self, + "PreconditionFailedException": IoTSiteWise.PreconditionFailedException.self, + "ResourceAlreadyExistsException": IoTSiteWise.ResourceAlreadyExistsException.self, + "TooManyTagsException": IoTSiteWise.TooManyTagsException.self + ] +} + extension IoTSiteWiseErrorType: Equatable { public static func == (lhs: IoTSiteWiseErrorType, rhs: IoTSiteWiseErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_api.swift b/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_api.swift index d5cbb087f16..2c959e61b91 100644 --- a/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_api.swift +++ b/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_shapes.swift b/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_shapes.swift index 3f11e0f1b36..74786fd7543 100644 --- a/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_shapes.swift +++ b/Sources/Soto/Services/IoTThingsGraph/IoTThingsGraph_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_api.swift b/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_api.swift index 875d0e067e0..6b8d805430b 100644 --- a/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_api.swift +++ b/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_shapes.swift b/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_shapes.swift index 4e079177b3e..efed6a4c238 100644 --- a/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_shapes.swift +++ b/Sources/Soto/Services/IoTTwinMaker/IoTTwinMaker_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTWireless/IoTWireless_api.swift b/Sources/Soto/Services/IoTWireless/IoTWireless_api.swift index aa38d6e09c4..e21c135fd12 100644 --- a/Sources/Soto/Services/IoTWireless/IoTWireless_api.swift +++ b/Sources/Soto/Services/IoTWireless/IoTWireless_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/IoTWireless/IoTWireless_shapes.swift b/Sources/Soto/Services/IoTWireless/IoTWireless_shapes.swift index c0b92dc9d74..422f1f56a22 100644 --- a/Sources/Soto/Services/IoTWireless/IoTWireless_shapes.swift +++ b/Sources/Soto/Services/IoTWireless/IoTWireless_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1006,6 +1005,27 @@ extension IoTWireless { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// Id of the resource in the conflicting operation. + public let resourceId: String? + /// Type of the resource in the conflicting operation. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ConnectionStatusEventConfiguration: AWSEncodableShape & AWSDecodableShape { /// Connection status event configuration object for enabling or disabling LoRaWAN related event topics. public let loRaWAN: LoRaWANConnectionStatusEventNotificationConfigurations? @@ -6482,6 +6502,27 @@ extension IoTWireless { public init() {} } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// Id of the not found resource. + public let resourceId: String? + /// Type of the font found resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct SemtechGnssConfiguration: AWSEncodableShape { /// Whether forward error correction is enabled. public let fec: PositionConfigurationFec @@ -7647,6 +7688,23 @@ extension IoTWireless { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// Name of the resource that exceeds maximum number of tags allowed. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct TraceContent: AWSEncodableShape & AWSDecodableShape { public let logLevel: LogLevel? public let multicastFrameInfo: MulticastFrameInfo? @@ -8912,6 +8970,14 @@ public struct IoTWirelessErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IoTWirelessErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": IoTWireless.ConflictException.self, + "ResourceNotFoundException": IoTWireless.ResourceNotFoundException.self, + "TooManyTagsException": IoTWireless.TooManyTagsException.self + ] +} + extension IoTWirelessErrorType: Equatable { public static func == (lhs: IoTWirelessErrorType, rhs: IoTWirelessErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Ivschat/Ivschat_api.swift b/Sources/Soto/Services/Ivschat/Ivschat_api.swift index 6fa0f6f3d2b..a988010d553 100644 --- a/Sources/Soto/Services/Ivschat/Ivschat_api.swift +++ b/Sources/Soto/Services/Ivschat/Ivschat_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Ivschat/Ivschat_shapes.swift b/Sources/Soto/Services/Ivschat/Ivschat_shapes.swift index 67124b2798f..cb449cab3ee 100644 --- a/Sources/Soto/Services/Ivschat/Ivschat_shapes.swift +++ b/Sources/Soto/Services/Ivschat/Ivschat_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -55,11 +54,23 @@ extension Ivschat { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case room = "ROOM" + public var description: String { return self.rawValue } + } + public enum UpdateLoggingConfigurationState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case active = "ACTIVE" public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum DestinationConfiguration: AWSEncodableShape & AWSDecodableShape, Sendable { /// An Amazon CloudWatch Logs destination configuration where chat activity will be logged. case cloudWatchLogs(CloudWatchLogsDestinationConfiguration) @@ -142,6 +153,25 @@ extension Ivschat { } } + public struct ConflictException: AWSErrorShape { + public let message: String + public let resourceId: String + public let resourceType: ResourceType + + @inlinable + public init(message: String, resourceId: String, resourceType: ResourceType) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateChatTokenRequest: AWSEncodableShape { /// Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. public let attributes: [String: String]? @@ -879,6 +909,25 @@ extension Ivschat { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + public let resourceId: String + public let resourceType: ResourceType + + @inlinable + public init(message: String, resourceId: String, resourceType: ResourceType) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RoomSummary: AWSDecodableShape { /// Room ARN. public let arn: String? @@ -987,6 +1036,28 @@ extension Ivschat { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let limit: Int + public let message: String + public let resourceId: String + public let resourceType: ResourceType + + @inlinable + public init(limit: Int, message: String, resourceId: String, resourceType: ResourceType) { + self.limit = limit + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case limit = "limit" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The ARN of the resource to be tagged. The ARN must be URL-encoded. public let resourceArn: String @@ -1027,6 +1098,28 @@ extension Ivschat { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let limit: Int + public let message: String + public let resourceId: String + public let resourceType: ResourceType + + @inlinable + public init(limit: Int, message: String, resourceId: String, resourceType: ResourceType) { + self.limit = limit + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case limit = "limit" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource to be untagged. The ARN must be URL-encoded. public let resourceArn: String @@ -1243,6 +1336,43 @@ extension Ivschat { case updateTime = "updateTime" } } + + public struct ValidationException: AWSErrorShape { + public let fieldList: [ValidationExceptionField]? + public let message: String + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Explanation of the reason for the validation error. + public let message: String + /// Name of the field which failed validation. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -1288,6 +1418,16 @@ public struct IvschatErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension IvschatErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Ivschat.ConflictException.self, + "ResourceNotFoundException": Ivschat.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Ivschat.ServiceQuotaExceededException.self, + "ThrottlingException": Ivschat.ThrottlingException.self, + "ValidationException": Ivschat.ValidationException.self + ] +} + extension IvschatErrorType: Equatable { public static func == (lhs: IvschatErrorType, rhs: IvschatErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/KMS/KMS_api.swift b/Sources/Soto/Services/KMS/KMS_api.swift index ef7b809112c..46f5f689de5 100644 --- a/Sources/Soto/Services/KMS/KMS_api.swift +++ b/Sources/Soto/Services/KMS/KMS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KMS/KMS_shapes.swift b/Sources/Soto/Services/KMS/KMS_shapes.swift index a63bc7f3d31..884baa90438 100644 --- a/Sources/Soto/Services/KMS/KMS_shapes.swift +++ b/Sources/Soto/Services/KMS/KMS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Kafka/Kafka_api.swift b/Sources/Soto/Services/Kafka/Kafka_api.swift index 8d3f9f03057..19c4a03941e 100644 --- a/Sources/Soto/Services/Kafka/Kafka_api.swift +++ b/Sources/Soto/Services/Kafka/Kafka_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Kafka/Kafka_shapes.swift b/Sources/Soto/Services/Kafka/Kafka_shapes.swift index 36e649a7352..f2a7b4d7951 100644 --- a/Sources/Soto/Services/Kafka/Kafka_shapes.swift +++ b/Sources/Soto/Services/Kafka/Kafka_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -159,6 +158,24 @@ extension Kafka { } } + public struct BadRequestException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct BatchAssociateScramSecretRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the cluster to be updated. public let clusterArn: String @@ -938,6 +955,24 @@ extension Kafka { } } + public struct ConflictException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct ConnectivityInfo: AWSEncodableShape & AWSDecodableShape { /// Public access control for brokers. public let publicAccess: PublicAccess? @@ -2052,6 +2087,24 @@ extension Kafka { } } + public struct ForbiddenException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct GetBootstrapBrokersRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) that uniquely identifies the cluster. public let clusterArn: String @@ -2202,6 +2255,24 @@ extension Kafka { } } + public struct InternalServerErrorException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct JmxExporter: AWSDecodableShape { /// Indicates whether you want to turn on or turn off the JMX Exporter. public let enabledInBroker: Bool? @@ -3073,6 +3144,24 @@ extension Kafka { } } + public struct NotFoundException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct OpenMonitoring: AWSDecodableShape { /// Prometheus settings. public let prometheus: Prometheus? @@ -3689,6 +3778,24 @@ extension Kafka { } } + public struct ServiceUnavailableException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct StateInfo: AWSDecodableShape { public let code: String? public let message: String? @@ -3765,6 +3872,24 @@ extension Kafka { } } + public struct TooManyRequestsException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct TopicReplication: AWSEncodableShape & AWSDecodableShape { /// Whether to periodically configure remote topic ACLs to match their corresponding upstream topics. public let copyAccessControlListsForTopics: Bool? @@ -3865,6 +3990,24 @@ extension Kafka { } } + public struct UnauthorizedException: AWSErrorShape { + /// The parameter that caused the error. + public let invalidParameter: String? + /// The description of the error. + public let message: String? + + @inlinable + public init(invalidParameter: String? = nil, message: String? = nil) { + self.invalidParameter = invalidParameter + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case invalidParameter = "invalidParameter" + case message = "message" + } + } + public struct UnprocessedScramSecret: AWSDecodableShape { /// Error code for associate/disassociate failure. public let errorCode: String? @@ -4779,6 +4922,19 @@ public struct KafkaErrorType: AWSErrorType { public static var unauthorizedException: Self { .init(.unauthorizedException) } } +extension KafkaErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": Kafka.BadRequestException.self, + "ConflictException": Kafka.ConflictException.self, + "ForbiddenException": Kafka.ForbiddenException.self, + "InternalServerErrorException": Kafka.InternalServerErrorException.self, + "NotFoundException": Kafka.NotFoundException.self, + "ServiceUnavailableException": Kafka.ServiceUnavailableException.self, + "TooManyRequestsException": Kafka.TooManyRequestsException.self, + "UnauthorizedException": Kafka.UnauthorizedException.self + ] +} + extension KafkaErrorType: Equatable { public static func == (lhs: KafkaErrorType, rhs: KafkaErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/KafkaConnect/KafkaConnect_api.swift b/Sources/Soto/Services/KafkaConnect/KafkaConnect_api.swift index 7550344de3e..7b7b68429bf 100644 --- a/Sources/Soto/Services/KafkaConnect/KafkaConnect_api.swift +++ b/Sources/Soto/Services/KafkaConnect/KafkaConnect_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KafkaConnect/KafkaConnect_shapes.swift b/Sources/Soto/Services/KafkaConnect/KafkaConnect_shapes.swift index db7c707823e..a90f7cf060f 100644 --- a/Sources/Soto/Services/KafkaConnect/KafkaConnect_shapes.swift +++ b/Sources/Soto/Services/KafkaConnect/KafkaConnect_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Kendra/Kendra_api.swift b/Sources/Soto/Services/Kendra/Kendra_api.swift index e20eddc05ec..b6eecd5ca74 100644 --- a/Sources/Soto/Services/Kendra/Kendra_api.swift +++ b/Sources/Soto/Services/Kendra/Kendra_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Kendra/Kendra_shapes.swift b/Sources/Soto/Services/Kendra/Kendra_shapes.swift index 03a2c583a1c..5249a84c6b5 100644 --- a/Sources/Soto/Services/Kendra/Kendra_shapes.swift +++ b/Sources/Soto/Services/Kendra/Kendra_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1608,6 +1607,28 @@ extension Kendra { } } + public struct ConflictingItem: AWSDecodableShape { + /// The text of the conflicting query. + public let queryText: String? + /// The identifier of the set of featured results that the conflicting query belongs to. + public let setId: String? + /// The name for the set of featured results that the conflicting query belongs to. + public let setName: String? + + @inlinable + public init(queryText: String? = nil, setId: String? = nil, setName: String? = nil) { + self.queryText = queryText + self.setId = setId + self.setName = setName + } + + private enum CodingKeys: String, CodingKey { + case queryText = "QueryText" + case setId = "SetId" + case setName = "SetName" + } + } + public struct ConfluenceAttachmentConfiguration: AWSEncodableShape & AWSDecodableShape { /// Maps attributes or field names of Confluence attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata. If you specify the AttachentFieldMappings parameter, you must specify at least one field mapping. public let attachmentFieldMappings: [ConfluenceAttachmentToIndexFieldMapping]? @@ -4927,6 +4948,24 @@ extension Kendra { } } + public struct FeaturedResultsConflictException: AWSErrorShape { + /// A list of the conflicting queries, including the query text, the name for the featured results set, and the identifier of the featured results set. + public let conflictingItems: [ConflictingItem]? + /// An explanation for the conflicting queries. + public let message: String? + + @inlinable + public init(conflictingItems: [ConflictingItem]? = nil, message: String? = nil) { + self.conflictingItems = conflictingItems + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case conflictingItems = "ConflictingItems" + case message = "Message" + } + } + public struct FeaturedResultsItem: AWSDecodableShape { /// One or more additional attributes associated with the featured result. public let additionalAttributes: [AdditionalResultAttribute]? @@ -9722,6 +9761,12 @@ public struct KendraErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension KendraErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "FeaturedResultsConflictException": Kendra.FeaturedResultsConflictException.self + ] +} + extension KendraErrorType: Equatable { public static func == (lhs: KendraErrorType, rhs: KendraErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/KendraRanking/KendraRanking_api.swift b/Sources/Soto/Services/KendraRanking/KendraRanking_api.swift index d2413647283..069a0b3f937 100644 --- a/Sources/Soto/Services/KendraRanking/KendraRanking_api.swift +++ b/Sources/Soto/Services/KendraRanking/KendraRanking_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KendraRanking/KendraRanking_shapes.swift b/Sources/Soto/Services/KendraRanking/KendraRanking_shapes.swift index 9514da34846..5557ea83b15 100644 --- a/Sources/Soto/Services/KendraRanking/KendraRanking_shapes.swift +++ b/Sources/Soto/Services/KendraRanking/KendraRanking_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Keyspaces/Keyspaces_api.swift b/Sources/Soto/Services/Keyspaces/Keyspaces_api.swift index a06613e6d13..8d4e0cfa0de 100644 --- a/Sources/Soto/Services/Keyspaces/Keyspaces_api.swift +++ b/Sources/Soto/Services/Keyspaces/Keyspaces_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Keyspaces/Keyspaces_shapes.swift b/Sources/Soto/Services/Keyspaces/Keyspaces_shapes.swift index 6fd8e1d0132..fbadd5a5f53 100644 --- a/Sources/Soto/Services/Keyspaces/Keyspaces_shapes.swift +++ b/Sources/Soto/Services/Keyspaces/Keyspaces_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1271,6 +1270,24 @@ extension Keyspaces { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// Description of the error. + public let message: String? + /// The unique identifier in the format of Amazon Resource Name (ARN) for the resource couldn’t be found. + public let resourceArn: String? + + @inlinable + public init(message: String? = nil, resourceArn: String? = nil) { + self.message = message + self.resourceArn = resourceArn + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "resourceArn" + } + } + public struct RestoreTableRequest: AWSEncodableShape { /// The optional auto scaling settings for the restored table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide. public let autoScalingSpecification: AutoScalingSpecification? @@ -1738,6 +1755,12 @@ public struct KeyspacesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension KeyspacesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": Keyspaces.ResourceNotFoundException.self + ] +} + extension KeyspacesErrorType: Equatable { public static func == (lhs: KeyspacesErrorType, rhs: KeyspacesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Kinesis/Kinesis_api.swift b/Sources/Soto/Services/Kinesis/Kinesis_api.swift index 6d7f7cd63d0..6004ab3684f 100644 --- a/Sources/Soto/Services/Kinesis/Kinesis_api.swift +++ b/Sources/Soto/Services/Kinesis/Kinesis_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Kinesis/Kinesis_shapes.swift b/Sources/Soto/Services/Kinesis/Kinesis_shapes.swift index 147d661a3d6..1829eaf5db3 100644 --- a/Sources/Soto/Services/Kinesis/Kinesis_shapes.swift +++ b/Sources/Soto/Services/Kinesis/Kinesis_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_api.swift b/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_api.swift index 6827c1455c3..cd985296619 100644 --- a/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_api.swift +++ b/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_shapes.swift b/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_shapes.swift index 53a2c2cc452..0da059c9563 100644 --- a/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_shapes.swift +++ b/Sources/Soto/Services/KinesisAnalytics/KinesisAnalytics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2201,6 +2200,25 @@ extension KinesisAnalytics { public init() {} } + public struct UnableToDetectSchemaException: AWSErrorShape { + public let message: String? + public let processedInputRecords: [String]? + public let rawInputRecords: [String]? + + @inlinable + public init(message: String? = nil, processedInputRecords: [String]? = nil, rawInputRecords: [String]? = nil) { + self.message = message + self.processedInputRecords = processedInputRecords + self.rawInputRecords = rawInputRecords + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case processedInputRecords = "ProcessedInputRecords" + case rawInputRecords = "RawInputRecords" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the Kinesis Analytics application from which to remove the tags. public let resourceARN: String @@ -2334,6 +2352,12 @@ public struct KinesisAnalyticsErrorType: AWSErrorType { public static var unsupportedOperationException: Self { .init(.unsupportedOperationException) } } +extension KinesisAnalyticsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "UnableToDetectSchemaException": KinesisAnalytics.UnableToDetectSchemaException.self + ] +} + extension KinesisAnalyticsErrorType: Equatable { public static func == (lhs: KinesisAnalyticsErrorType, rhs: KinesisAnalyticsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_api.swift b/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_api.swift index 8f41a3f8657..fea67798555 100644 --- a/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_api.swift +++ b/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_shapes.swift b/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_shapes.swift index e1317f3b421..e7eba0cc391 100644 --- a/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_shapes.swift +++ b/Sources/Soto/Services/KinesisAnalyticsV2/KinesisAnalyticsV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -4500,6 +4499,27 @@ extension KinesisAnalyticsV2 { public init() {} } + public struct UnableToDetectSchemaException: AWSErrorShape { + public let message: String? + /// Stream data that was modified by the processor specified in the InputProcessingConfiguration parameter. + public let processedInputRecords: [String]? + /// Raw stream data that was sampled to infer the schema. + public let rawInputRecords: [String]? + + @inlinable + public init(message: String? = nil, processedInputRecords: [String]? = nil, rawInputRecords: [String]? = nil) { + self.message = message + self.processedInputRecords = processedInputRecords + self.rawInputRecords = rawInputRecords + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case processedInputRecords = "ProcessedInputRecords" + case rawInputRecords = "RawInputRecords" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the Managed Service for Apache Flink application from which to remove the tags. public let resourceARN: String @@ -4943,6 +4963,12 @@ public struct KinesisAnalyticsV2ErrorType: AWSErrorType { public static var unsupportedOperationException: Self { .init(.unsupportedOperationException) } } +extension KinesisAnalyticsV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "UnableToDetectSchemaException": KinesisAnalyticsV2.UnableToDetectSchemaException.self + ] +} + extension KinesisAnalyticsV2ErrorType: Equatable { public static func == (lhs: KinesisAnalyticsV2ErrorType, rhs: KinesisAnalyticsV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/KinesisVideo/KinesisVideo_api.swift b/Sources/Soto/Services/KinesisVideo/KinesisVideo_api.swift index 99768a1c397..daf52cb2b66 100644 --- a/Sources/Soto/Services/KinesisVideo/KinesisVideo_api.swift +++ b/Sources/Soto/Services/KinesisVideo/KinesisVideo_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideo/KinesisVideo_shapes.swift b/Sources/Soto/Services/KinesisVideo/KinesisVideo_shapes.swift index dba86dbe13e..17b01bfd0f4 100644 --- a/Sources/Soto/Services/KinesisVideo/KinesisVideo_shapes.swift +++ b/Sources/Soto/Services/KinesisVideo/KinesisVideo_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_api.swift b/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_api.swift index d3800d380f4..8697a85ce87 100644 --- a/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_api.swift +++ b/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_shapes.swift b/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_shapes.swift index baebe1a2454..b90b843a1e5 100644 --- a/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_shapes.swift +++ b/Sources/Soto/Services/KinesisVideoArchivedMedia/KinesisVideoArchivedMedia_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_api.swift b/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_api.swift index 5d821773f1c..ada3b0acf15 100644 --- a/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_api.swift +++ b/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_shapes.swift b/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_shapes.swift index f2eedd410a6..f2f40db26c1 100644 --- a/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_shapes.swift +++ b/Sources/Soto/Services/KinesisVideoMedia/KinesisVideoMedia_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_api.swift b/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_api.swift index 4b53a13aea3..7ec37549ab4 100644 --- a/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_api.swift +++ b/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_shapes.swift b/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_shapes.swift index 200a6c862d3..af31b672eb9 100644 --- a/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_shapes.swift +++ b/Sources/Soto/Services/KinesisVideoSignaling/KinesisVideoSignaling_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_api.swift b/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_api.swift index 76706e08b14..2aed7f28925 100644 --- a/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_api.swift +++ b/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_shapes.swift b/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_shapes.swift index 11b817c25ae..108be62d7c9 100644 --- a/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_shapes.swift +++ b/Sources/Soto/Services/KinesisVideoWebRTCStorage/KinesisVideoWebRTCStorage_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LakeFormation/LakeFormation_api.swift b/Sources/Soto/Services/LakeFormation/LakeFormation_api.swift index 57c33e54ce7..11afaeadf1a 100644 --- a/Sources/Soto/Services/LakeFormation/LakeFormation_api.swift +++ b/Sources/Soto/Services/LakeFormation/LakeFormation_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LakeFormation/LakeFormation_shapes.swift b/Sources/Soto/Services/LakeFormation/LakeFormation_shapes.swift index 9cebf2c8b80..2305565df6a 100644 --- a/Sources/Soto/Services/LakeFormation/LakeFormation_shapes.swift +++ b/Sources/Soto/Services/LakeFormation/LakeFormation_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Lambda/Lambda_api.swift b/Sources/Soto/Services/Lambda/Lambda_api.swift index dc02d57277b..baf42a2fd3b 100644 --- a/Sources/Soto/Services/Lambda/Lambda_api.swift +++ b/Sources/Soto/Services/Lambda/Lambda_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Lambda/Lambda_shapes.swift b/Sources/Soto/Services/Lambda/Lambda_shapes.swift index 8e04a6848d3..752b61a1718 100644 --- a/Sources/Soto/Services/Lambda/Lambda_shapes.swift +++ b/Sources/Soto/Services/Lambda/Lambda_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -281,6 +280,16 @@ extension Lambda { public var description: String { return self.rawValue } } + public enum ThrottleReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case callerRateLimitExceeded = "CallerRateLimitExceeded" + case concurrentInvocationLimitExceeded = "ConcurrentInvocationLimitExceeded" + case concurrentSnapshotCreateLimitExceeded = "ConcurrentSnapshotCreateLimitExceeded" + case functionInvocationRateLimitExceeded = "FunctionInvocationRateLimitExceeded" + case reservedFunctionConcurrentInvocationLimitExceeded = "ReservedFunctionConcurrentInvocationLimitExceeded" + case reservedFunctionInvocationRateLimitExceeded = "ReservedFunctionInvocationRateLimitExceeded" + public var description: String { return self.rawValue } + } + public enum TracingMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case active = "Active" case passThrough = "PassThrough" @@ -692,6 +701,22 @@ extension Lambda { } } + public struct CodeSigningConfigNotFoundException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct CodeSigningPolicies: AWSEncodableShape & AWSDecodableShape { /// Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Default value: Warn public let untrustedArtifactOnDeployment: CodeSigningPolicy? @@ -706,6 +731,39 @@ extension Lambda { } } + public struct CodeStorageExceededException: AWSErrorShape { + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + + public struct CodeVerificationFailedException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct Concurrency: AWSDecodableShape { /// The number of concurrent executions that are reserved for this function. For more information, see Managing Lambda reserved concurrency. public let reservedConcurrentExecutions: Int? @@ -1618,6 +1676,137 @@ extension Lambda { } } + public struct EC2AccessDeniedException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct EC2ThrottledException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct EC2UnexpectedException: AWSErrorShape { + public let ec2ErrorCode: String? + public let message: String? + public let type: String? + + @inlinable + public init(ec2ErrorCode: String? = nil, message: String? = nil, type: String? = nil) { + self.ec2ErrorCode = ec2ErrorCode + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case ec2ErrorCode = "EC2ErrorCode" + case message = "Message" + case type = "Type" + } + } + + public struct EFSIOException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct EFSMountConnectivityException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct EFSMountFailureException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct EFSMountTimeoutException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct ENILimitReachedException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct Environment: AWSEncodableShape { /// Environment variable key-value pairs. For more information, see Using Lambda environment variables. public let variables: [String: String]? @@ -3025,6 +3214,122 @@ extension Lambda { } } + public struct InvalidCodeSignatureException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct InvalidParameterValueException: AWSErrorShape { + /// The exception message. + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + + public struct InvalidRequestContentException: AWSErrorShape { + /// The exception message. + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + + public struct InvalidRuntimeException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct InvalidSecurityGroupIDException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct InvalidSubnetIDException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct InvalidZipFileException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct InvocationRequest: AWSEncodableShape { /// Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only. public let clientContext: String? @@ -3270,6 +3575,70 @@ extension Lambda { private enum CodingKeys: CodingKey {} } + public struct KMSAccessDeniedException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct KMSDisabledException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct KMSInvalidStateException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct KMSNotFoundException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct Layer: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the function layer. public let arn: String? @@ -4118,6 +4487,40 @@ extension Lambda { } } + public struct PolicyLengthExceededException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + + public struct PreconditionFailedException: AWSErrorShape { + /// The exception message. + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + public struct ProvisionedConcurrencyConfigListItem: AWSDecodableShape { /// The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions. public let allocatedProvisionedConcurrentExecutions: Int? @@ -4156,6 +4559,22 @@ extension Lambda { } } + public struct ProvisionedConcurrencyConfigNotFoundException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + public struct ProvisionedPollerConfig: AWSEncodableShape & AWSDecodableShape { /// The maximum number of event pollers this event source can scale up to. public let maximumPollers: Int? @@ -4641,6 +5060,24 @@ extension Lambda { } } + public struct RecursiveInvocationException: AWSErrorShape { + /// The exception message. + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct RemoveLayerVersionPermissionRequest: AWSEncodableShape { /// The name or Amazon Resource Name (ARN) of the layer. public let layerName: String @@ -4722,6 +5159,90 @@ extension Lambda { private enum CodingKeys: CodingKey {} } + public struct RequestTooLargeException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + + public struct ResourceConflictException: AWSErrorShape { + /// The exception message. + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + + public struct ResourceInUseException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct ResourceNotReadyException: AWSErrorShape { + /// The exception message. + public let message: String? + /// The exception type. + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + public struct RuntimeVersionConfig: AWSDecodableShape { /// Error response when Lambda is unable to retrieve the runtime version for a function. public let error: RuntimeVersionError? @@ -4820,6 +5341,22 @@ extension Lambda { } } + public struct ServiceException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct SnapStart: AWSEncodableShape { /// Set to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version. public let applyOn: SnapStartApplyOn? @@ -4834,6 +5371,38 @@ extension Lambda { } } + public struct SnapStartException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + + public struct SnapStartNotReadyException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct SnapStartResponse: AWSDecodableShape { /// When set to PublishedVersions, Lambda creates a snapshot of the execution environment when you publish a function version. public let applyOn: SnapStartApplyOn? @@ -4852,6 +5421,22 @@ extension Lambda { } } + public struct SnapStartTimeoutException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct SourceAccessConfiguration: AWSEncodableShape & AWSDecodableShape { /// The type of authentication protocol, VPC components, or virtual host for your event source. For example: "Type":"SASL_SCRAM_512_AUTH". BASIC_AUTH – (Amazon MQ) The Secrets Manager secret that stores your broker credentials. BASIC_AUTH – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers. VPC_SUBNET – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster. VPC_SECURITY_GROUP – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers. SASL_SCRAM_256_AUTH – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. SASL_SCRAM_512_AUTH – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers. VIRTUAL_HOST –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call. CLIENT_CERTIFICATE_TLS_AUTH – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers. SERVER_ROOT_CA_CERTIFICATE – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers. public let type: SourceAccessType? @@ -4876,6 +5461,22 @@ extension Lambda { } } + public struct SubnetIPAddressLimitReachedException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The resource's Amazon Resource Name (ARN). public let resource: String @@ -4924,6 +5525,37 @@ extension Lambda { } } + public struct TooManyRequestsException: AWSErrorShape { + public let message: String? + public let reason: ThrottleReason? + /// The number of seconds the caller should wait before retrying. + public let retryAfterSeconds: String? + public let type: String? + + @inlinable + public init(message: String? = nil, reason: ThrottleReason? = nil, retryAfterSeconds: String? = nil, type: String? = nil) { + self.message = message + self.reason = reason + self.retryAfterSeconds = retryAfterSeconds + self.type = type + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.reason = try container.decodeIfPresent(ThrottleReason.self, forKey: .reason) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + self.type = try container.decodeIfPresent(String.self, forKey: .type) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "Reason" + case type = "Type" + } + } + public struct TracingConfig: AWSEncodableShape { /// The tracing mode. public let mode: TracingMode? @@ -4952,6 +5584,22 @@ extension Lambda { } } + public struct UnsupportedMediaTypeException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case type = "Type" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The resource's Amazon Resource Name (ARN). public let resource: String @@ -5792,6 +6440,49 @@ public struct LambdaErrorType: AWSErrorType { public static var unsupportedMediaTypeException: Self { .init(.unsupportedMediaTypeException) } } +extension LambdaErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "CodeSigningConfigNotFoundException": Lambda.CodeSigningConfigNotFoundException.self, + "CodeStorageExceededException": Lambda.CodeStorageExceededException.self, + "CodeVerificationFailedException": Lambda.CodeVerificationFailedException.self, + "EC2AccessDeniedException": Lambda.EC2AccessDeniedException.self, + "EC2ThrottledException": Lambda.EC2ThrottledException.self, + "EC2UnexpectedException": Lambda.EC2UnexpectedException.self, + "EFSIOException": Lambda.EFSIOException.self, + "EFSMountConnectivityException": Lambda.EFSMountConnectivityException.self, + "EFSMountFailureException": Lambda.EFSMountFailureException.self, + "EFSMountTimeoutException": Lambda.EFSMountTimeoutException.self, + "ENILimitReachedException": Lambda.ENILimitReachedException.self, + "InvalidCodeSignatureException": Lambda.InvalidCodeSignatureException.self, + "InvalidParameterValueException": Lambda.InvalidParameterValueException.self, + "InvalidRequestContentException": Lambda.InvalidRequestContentException.self, + "InvalidRuntimeException": Lambda.InvalidRuntimeException.self, + "InvalidSecurityGroupIDException": Lambda.InvalidSecurityGroupIDException.self, + "InvalidSubnetIDException": Lambda.InvalidSubnetIDException.self, + "InvalidZipFileException": Lambda.InvalidZipFileException.self, + "KMSAccessDeniedException": Lambda.KMSAccessDeniedException.self, + "KMSDisabledException": Lambda.KMSDisabledException.self, + "KMSInvalidStateException": Lambda.KMSInvalidStateException.self, + "KMSNotFoundException": Lambda.KMSNotFoundException.self, + "PolicyLengthExceededException": Lambda.PolicyLengthExceededException.self, + "PreconditionFailedException": Lambda.PreconditionFailedException.self, + "ProvisionedConcurrencyConfigNotFoundException": Lambda.ProvisionedConcurrencyConfigNotFoundException.self, + "RecursiveInvocationException": Lambda.RecursiveInvocationException.self, + "RequestTooLargeException": Lambda.RequestTooLargeException.self, + "ResourceConflictException": Lambda.ResourceConflictException.self, + "ResourceInUseException": Lambda.ResourceInUseException.self, + "ResourceNotFoundException": Lambda.ResourceNotFoundException.self, + "ResourceNotReadyException": Lambda.ResourceNotReadyException.self, + "ServiceException": Lambda.ServiceException.self, + "SnapStartException": Lambda.SnapStartException.self, + "SnapStartNotReadyException": Lambda.SnapStartNotReadyException.self, + "SnapStartTimeoutException": Lambda.SnapStartTimeoutException.self, + "SubnetIPAddressLimitReachedException": Lambda.SubnetIPAddressLimitReachedException.self, + "TooManyRequestsException": Lambda.TooManyRequestsException.self, + "UnsupportedMediaTypeException": Lambda.UnsupportedMediaTypeException.self + ] +} + extension LambdaErrorType: Equatable { public static func == (lhs: LambdaErrorType, rhs: LambdaErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LaunchWizard/LaunchWizard_api.swift b/Sources/Soto/Services/LaunchWizard/LaunchWizard_api.swift index 66591fe05da..f0b92438b2c 100644 --- a/Sources/Soto/Services/LaunchWizard/LaunchWizard_api.swift +++ b/Sources/Soto/Services/LaunchWizard/LaunchWizard_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LaunchWizard/LaunchWizard_shapes.swift b/Sources/Soto/Services/LaunchWizard/LaunchWizard_shapes.swift index 66704d764eb..2285529eb09 100644 --- a/Sources/Soto/Services/LaunchWizard/LaunchWizard_shapes.swift +++ b/Sources/Soto/Services/LaunchWizard/LaunchWizard_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_api.swift b/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_api.swift index 57863616d9c..4fc6c6f27bd 100644 --- a/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_api.swift +++ b/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_shapes.swift b/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_shapes.swift index c909a1f5c3c..ae2b74225d5 100644 --- a/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_shapes.swift +++ b/Sources/Soto/Services/LexModelBuildingService/LexModelBuildingService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -146,6 +145,14 @@ extension LexModelBuildingService { public var description: String { return self.rawValue } } + public enum ReferenceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case bot = "Bot" + case botalias = "BotAlias" + case botchannel = "BotChannel" + case intent = "Intent" + public var description: String { return self.rawValue } + } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case bot = "BOT" case intent = "INTENT" @@ -2547,6 +2554,28 @@ extension LexModelBuildingService { } } + public struct LimitExceededException: AWSErrorShape { + public let message: String? + public let retryAfterSeconds: String? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: String? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListTagsForResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource to get a list of tags for. public let resourceArn: String @@ -3469,6 +3498,40 @@ extension LexModelBuildingService { } } + public struct ResourceInUseException: AWSErrorShape { + public let exampleReference: ResourceReference? + public let referenceType: ReferenceType? + + @inlinable + public init(exampleReference: ResourceReference? = nil, referenceType: ReferenceType? = nil) { + self.exampleReference = exampleReference + self.referenceType = referenceType + } + + private enum CodingKeys: String, CodingKey { + case exampleReference = "exampleReference" + case referenceType = "referenceType" + } + } + + public struct ResourceReference: AWSDecodableShape { + /// The name of the resource that is using the resource that you are trying to delete. + public let name: String? + /// The version of the resource that is using the resource that you are trying to delete. + public let version: String? + + @inlinable + public init(name: String? = nil, version: String? = nil) { + self.name = name + self.version = version + } + + private enum CodingKeys: String, CodingKey { + case name = "name" + case version = "version" + } + } + public struct Slot: AWSEncodableShape & AWSDecodableShape { /// A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values. public let defaultValueSpec: SlotDefaultValueSpec? @@ -4037,6 +4100,13 @@ public struct LexModelBuildingServiceErrorType: AWSErrorType { public static var resourceInUseException: Self { .init(.resourceInUseException) } } +extension LexModelBuildingServiceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "LimitExceededException": LexModelBuildingService.LimitExceededException.self, + "ResourceInUseException": LexModelBuildingService.ResourceInUseException.self + ] +} + extension LexModelBuildingServiceErrorType: Equatable { public static func == (lhs: LexModelBuildingServiceErrorType, rhs: LexModelBuildingServiceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LexModelsV2/LexModelsV2_api.swift b/Sources/Soto/Services/LexModelsV2/LexModelsV2_api.swift index e183d1bab40..e003859b161 100644 --- a/Sources/Soto/Services/LexModelsV2/LexModelsV2_api.swift +++ b/Sources/Soto/Services/LexModelsV2/LexModelsV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LexModelsV2/LexModelsV2_shapes.swift b/Sources/Soto/Services/LexModelsV2/LexModelsV2_shapes.swift index 2f16c2945d6..c7a0a1413af 100644 --- a/Sources/Soto/Services/LexModelsV2/LexModelsV2_shapes.swift +++ b/Sources/Soto/Services/LexModelsV2/LexModelsV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -13653,6 +13652,29 @@ extension LexModelsV2 { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The number of seconds after which the user can invoke the API again. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct TranscriptFilter: AWSEncodableShape & AWSDecodableShape { /// The object representing the filter that Amazon Lex will use to select the appropriate transcript when the transcript format is the Amazon Lex format. public let lexTranscriptFilter: LexTranscriptFilter? @@ -15422,6 +15444,12 @@ public struct LexModelsV2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension LexModelsV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ThrottlingException": LexModelsV2.ThrottlingException.self + ] +} + extension LexModelsV2ErrorType: Equatable { public static func == (lhs: LexModelsV2ErrorType, rhs: LexModelsV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_api.swift b/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_api.swift index 39e7de01195..e24b8bed252 100644 --- a/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_api.swift +++ b/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_shapes.swift b/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_shapes.swift index 1a69301bcf9..e8d212d0c67 100644 --- a/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_shapes.swift +++ b/Sources/Soto/Services/LexRuntimeService/LexRuntimeService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -411,6 +410,28 @@ extension LexRuntimeService { } } + public struct LimitExceededException: AWSErrorShape { + public let message: String? + public let retryAfterSeconds: String? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: String? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct PostContentRequest: AWSEncodableShape { public static let _options: AWSShapeOptions = [.allowStreaming, .allowChunkedStreaming] /// You pass this value as the Accept HTTP header. The message Amazon Lex returns in the response can be either text or speech based on the Accept HTTP header value in the request. If the value is text/plain; charset=utf-8, Amazon Lex returns text in the response. If the value begins with audio/, Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to generate the speech (using the configuration you specified in the Accept header). For example, if you specify audio/mpeg as the value, Amazon Lex returns speech in the MPEG format. If the value is audio/pcm, the speech returned is audio/pcm in 16-bit, little endian format. The following are the accepted values: audio/mpeg audio/ogg audio/pcm text/plain; charset=utf-8 audio/* (defaults to mpeg) @@ -973,6 +994,12 @@ public struct LexRuntimeServiceErrorType: AWSErrorType { public static var unsupportedMediaTypeException: Self { .init(.unsupportedMediaTypeException) } } +extension LexRuntimeServiceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "LimitExceededException": LexRuntimeService.LimitExceededException.self + ] +} + extension LexRuntimeServiceErrorType: Equatable { public static func == (lhs: LexRuntimeServiceErrorType, rhs: LexRuntimeServiceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_api.swift b/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_api.swift index cfed8a5a369..217238f54ae 100644 --- a/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_api.swift +++ b/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_shapes.swift b/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_shapes.swift index d94f5b34398..d383cb95b0e 100644 --- a/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_shapes.swift +++ b/Sources/Soto/Services/LexRuntimeV2/LexRuntimeV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LicenseManager/LicenseManager_api.swift b/Sources/Soto/Services/LicenseManager/LicenseManager_api.swift index f034116f0ea..0d8010ca723 100644 --- a/Sources/Soto/Services/LicenseManager/LicenseManager_api.swift +++ b/Sources/Soto/Services/LicenseManager/LicenseManager_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LicenseManager/LicenseManager_shapes.swift b/Sources/Soto/Services/LicenseManager/LicenseManager_shapes.swift index bdcaade6800..d21e7dfcdd4 100644 --- a/Sources/Soto/Services/LicenseManager/LicenseManager_shapes.swift +++ b/Sources/Soto/Services/LicenseManager/LicenseManager_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1359,6 +1358,22 @@ extension LicenseManager { } } + public struct FailedDependencyException: AWSErrorShape { + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "ErrorCode" + case message = "Message" + } + } + public struct Filter: AWSEncodableShape { /// Name of the filter. Filter names are case-sensitive. public let name: String? @@ -3174,6 +3189,28 @@ extension LicenseManager { } } + public struct RedirectException: AWSErrorShape { + public let location: String? + public let message: String? + + @inlinable + public init(location: String? = nil, message: String? = nil) { + self.location = location + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.location = try response.decodeHeaderIfPresent(String.self, key: "Location") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct RejectGrantRequest: AWSEncodableShape { /// Amazon Resource Name (ARN) of the grant. public let grantArn: String @@ -3703,6 +3740,13 @@ public struct LicenseManagerErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension LicenseManagerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "FailedDependencyException": LicenseManager.FailedDependencyException.self, + "RedirectException": LicenseManager.RedirectException.self + ] +} + extension LicenseManagerErrorType: Equatable { public static func == (lhs: LicenseManagerErrorType, rhs: LicenseManagerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_api.swift b/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_api.swift index a71c47a9411..c58b8830e9b 100644 --- a/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_api.swift +++ b/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_shapes.swift b/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_shapes.swift index f82abcdfc7d..9d69c4ce7f6 100644 --- a/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_shapes.swift +++ b/Sources/Soto/Services/LicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptions_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_api.swift b/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_api.swift index 14eb44aa5ff..9bf23522640 100644 --- a/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_api.swift +++ b/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_shapes.swift b/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_shapes.swift index 43f14fe1c19..74be8d0d311 100644 --- a/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_shapes.swift +++ b/Sources/Soto/Services/LicenseManagerUserSubscriptions/LicenseManagerUserSubscriptions_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Lightsail/Lightsail_api.swift b/Sources/Soto/Services/Lightsail/Lightsail_api.swift index bbb23df7939..5d8be9219e2 100644 --- a/Sources/Soto/Services/Lightsail/Lightsail_api.swift +++ b/Sources/Soto/Services/Lightsail/Lightsail_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Lightsail/Lightsail_shapes.swift b/Sources/Soto/Services/Lightsail/Lightsail_shapes.swift index 466551ca666..0bbec0848b3 100644 --- a/Sources/Soto/Services/Lightsail/Lightsail_shapes.swift +++ b/Sources/Soto/Services/Lightsail/Lightsail_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -828,6 +827,28 @@ extension Lightsail { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct AccessKey: AWSDecodableShape { /// The ID of the access key. public let accessKeyId: String? @@ -924,6 +945,28 @@ extension Lightsail { } } + public struct AccountSetupInProgressException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct AddOn: AWSDecodableShape { /// The amount of idle time in minutes after which your virtual computer will automatically stop. This add-on only applies to Lightsail for Research resources. public let duration: String? @@ -8316,6 +8359,28 @@ extension Lightsail { } } + public struct InvalidInputException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct IsVpcPeeredRequest: AWSEncodableShape { public init() {} } @@ -8912,6 +8977,28 @@ extension Lightsail { } } + public struct NotFoundException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct OpenInstancePublicPortsRequest: AWSEncodableShape { /// The name of the instance for which to open ports. public let instanceName: String @@ -9007,6 +9094,28 @@ extension Lightsail { } } + public struct OperationFailureException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct Origin: AWSDecodableShape { /// The name of the origin resource. public let name: String? @@ -10088,6 +10197,28 @@ extension Lightsail { } } + public struct ServiceException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct Session: AWSDecodableShape { /// When true, this Boolean value indicates the primary session for the specified resource. public let isPrimary: Bool? @@ -10748,6 +10879,28 @@ extension Lightsail { } } + public struct UnauthenticatedException: AWSErrorShape { + public let code: String? + public let docs: String? + public let message: String? + public let tip: String? + + @inlinable + public init(code: String? = nil, docs: String? = nil, message: String? = nil, tip: String? = nil) { + self.code = code + self.docs = docs + self.message = message + self.tip = tip + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case docs = "docs" + case message = "message" + case tip = "tip" + } + } + public struct UnpeerVpcRequest: AWSEncodableShape { public init() {} } @@ -11358,6 +11511,18 @@ public struct LightsailErrorType: AWSErrorType { public static var unauthenticatedException: Self { .init(.unauthenticatedException) } } +extension LightsailErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Lightsail.AccessDeniedException.self, + "AccountSetupInProgressException": Lightsail.AccountSetupInProgressException.self, + "InvalidInputException": Lightsail.InvalidInputException.self, + "NotFoundException": Lightsail.NotFoundException.self, + "OperationFailureException": Lightsail.OperationFailureException.self, + "ServiceException": Lightsail.ServiceException.self, + "UnauthenticatedException": Lightsail.UnauthenticatedException.self + ] +} + extension LightsailErrorType: Equatable { public static func == (lhs: LightsailErrorType, rhs: LightsailErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Location/Location_api.swift b/Sources/Soto/Services/Location/Location_api.swift index 3648a366b8e..3623faa26e8 100644 --- a/Sources/Soto/Services/Location/Location_api.swift +++ b/Sources/Soto/Services/Location/Location_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Location/Location_shapes.swift b/Sources/Soto/Services/Location/Location_shapes.swift index f8962c73079..9c23e74074d 100644 --- a/Sources/Soto/Services/Location/Location_shapes.swift +++ b/Sources/Soto/Services/Location/Location_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -131,6 +130,22 @@ extension Location { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + /// The input cannot be parsed. For example a required JSON document, ARN identifier, date value, or numeric field cannot be parsed. + case cannotParse = "CannotParse" + /// The input is present and parsable, but it is otherwise invalid. For example, a required numeric argument is outside the allowed range. + case fieldValidationFailed = "FieldValidationFailed" + /// The required input is missing. + case missing = "Missing" + /// The input is invalid but no more specific reason is applicable. + case other = "Other" + /// No such field is supported. + case unknownField = "UnknownField" + /// No such operation is supported. + case unknownOperation = "UnknownOperation" + public var description: String { return self.rawValue } + } + public enum VehicleWeightUnit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case kilograms = "Kilograms" case pounds = "Pounds" @@ -5512,6 +5527,45 @@ extension Location { } } + public struct ValidationException: AWSErrorShape { + /// The field where the invalid entry was detected. + public let fieldList: [ValidationExceptionField] + public let message: String + /// A message with the reason for the validation exception error. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField], message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message with the reason for the validation exception error. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VerifyDevicePositionRequest: AWSEncodableShape { /// The device's state, including position, IP address, cell signals and Wi-Fi access points. public let deviceState: DeviceState @@ -5647,6 +5701,12 @@ public struct LocationErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension LocationErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": Location.ValidationException.self + ] +} + extension LocationErrorType: Equatable { public static func == (lhs: LocationErrorType, rhs: LocationErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_api.swift b/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_api.swift index 9d3262b7392..ff740fa9341 100644 --- a/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_api.swift +++ b/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_shapes.swift b/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_shapes.swift index 8da7df370dd..c2c1de4883b 100644 --- a/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_shapes.swift +++ b/Sources/Soto/Services/LookoutEquipment/LookoutEquipment_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_api.swift b/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_api.swift index 3aa29227d7c..95cb4506009 100644 --- a/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_api.swift +++ b/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_shapes.swift b/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_shapes.swift index 9890755d820..bf3427e5408 100644 --- a/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_shapes.swift +++ b/Sources/Soto/Services/LookoutMetrics/LookoutMetrics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -135,6 +134,14 @@ extension LookoutMetrics { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct Action: AWSEncodableShape & AWSDecodableShape { @@ -766,6 +773,27 @@ extension LookoutMetrics { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ContributionMatrix: AWSDecodableShape { /// A list of contributing dimensions. public let dimensionContributionList: [DimensionContribution]? @@ -2702,6 +2730,27 @@ extension LookoutMetrics { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct S3SourceConfig: AWSEncodableShape & AWSDecodableShape { /// Contains information about a source file's formatting. public let fileFormatDescriptor: FileFormatDescriptor? @@ -2818,6 +2867,35 @@ extension LookoutMetrics { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota code. + public let quotaCode: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: String? + /// The service code. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The resource's Amazon Resource Name (ARN). public let resourceArn: String @@ -3151,6 +3229,45 @@ extension LookoutMetrics { } } + public struct ValidationException: AWSErrorShape { + /// Fields that failed validation. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason that validation failed. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message with more information about the validation exception. + public let message: String + /// The name of the field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } + public struct VpcConfiguration: AWSEncodableShape & AWSDecodableShape { /// An array of strings containing the list of security groups. public let securityGroupIdList: [String] @@ -3230,6 +3347,15 @@ public struct LookoutMetricsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension LookoutMetricsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": LookoutMetrics.ConflictException.self, + "ResourceNotFoundException": LookoutMetrics.ResourceNotFoundException.self, + "ServiceQuotaExceededException": LookoutMetrics.ServiceQuotaExceededException.self, + "ValidationException": LookoutMetrics.ValidationException.self + ] +} + extension LookoutMetricsErrorType: Equatable { public static func == (lhs: LookoutMetricsErrorType, rhs: LookoutMetricsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/LookoutVision/LookoutVision_api.swift b/Sources/Soto/Services/LookoutVision/LookoutVision_api.swift index 0d91dbd2d73..bfd919349b3 100644 --- a/Sources/Soto/Services/LookoutVision/LookoutVision_api.swift +++ b/Sources/Soto/Services/LookoutVision/LookoutVision_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/LookoutVision/LookoutVision_shapes.swift b/Sources/Soto/Services/LookoutVision/LookoutVision_shapes.swift index b4eb8a3ba75..d14f3144cd5 100644 --- a/Sources/Soto/Services/LookoutVision/LookoutVision_shapes.swift +++ b/Sources/Soto/Services/LookoutVision/LookoutVision_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -70,6 +69,15 @@ extension LookoutVision { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case dataset = "DATASET" + case model = "MODEL" + case modelPackageJob = "MODEL_PACKAGE_JOB" + case project = "PROJECT" + case trial = "TRIAL" + public var description: String { return self.rawValue } + } + public enum TargetDevice: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case jetsonXavier = "jetson_xavier" public var description: String { return self.rawValue } @@ -111,6 +119,27 @@ extension LookoutVision { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct CreateDatasetRequest: AWSEncodableShape { /// ClientToken is an idempotency token that ensures a call to CreateDataset completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateDataset. In this case, safely retry your call to CreateDataset by using the same ClientToken parameter value. If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You'll need to provide your own value for other use cases. An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to CreateDataset. An idempotency token is active for 8 hours. public let clientToken: String? @@ -952,6 +981,29 @@ extension LookoutVision { } } + public struct InternalServerException: AWSErrorShape { + public let message: String? + /// The period of time, in seconds, before the operation can be retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct ListDatasetEntriesRequest: AWSEncodableShape { /// Only includes entries after the specified date in the response. For example, 2020-06-23T00:00:00. public let afterCreationDate: Date? @@ -1592,6 +1644,27 @@ extension LookoutVision { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct S3Location: AWSEncodableShape & AWSDecodableShape { /// The S3 bucket that contains the training or model packaging job output. If you are training a model, the bucket must in your AWS account. If you use an S3 bucket for a model packaging job, the S3 bucket must be in the same AWS Region and AWS account in which you use AWS IoT Greengrass. public let bucket: String? @@ -1618,6 +1691,35 @@ extension LookoutVision { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The quota code. + public let quotaCode: String? + /// The ID of the resource. + public let resourceId: String? + /// The type of the resource. + public let resourceType: ResourceType? + /// The service code. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct StartModelPackagingJobRequest: AWSEncodableShape { /// ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value. If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You'll need to provide your own value for other use cases. An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours. public let clientToken: String? @@ -1896,6 +1998,39 @@ extension LookoutVision { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The quota code. + public let quotaCode: String? + /// The period of time, in seconds, before the operation can be retried. + public let retryAfterSeconds: Int? + /// The service code. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the model from which you want to remove tags. public let resourceArn: String @@ -2042,6 +2177,16 @@ public struct LookoutVisionErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension LookoutVisionErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": LookoutVision.ConflictException.self, + "InternalServerException": LookoutVision.InternalServerException.self, + "ResourceNotFoundException": LookoutVision.ResourceNotFoundException.self, + "ServiceQuotaExceededException": LookoutVision.ServiceQuotaExceededException.self, + "ThrottlingException": LookoutVision.ThrottlingException.self + ] +} + extension LookoutVisionErrorType: Equatable { public static func == (lhs: LookoutVisionErrorType, rhs: LookoutVisionErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/M2/M2_api.swift b/Sources/Soto/Services/M2/M2_api.swift index c888c38830f..4cfa0f32ee4 100644 --- a/Sources/Soto/Services/M2/M2_api.swift +++ b/Sources/Soto/Services/M2/M2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/M2/M2_shapes.swift b/Sources/Soto/Services/M2/M2_shapes.swift index 36dcd49b066..9c34eefbab9 100644 --- a/Sources/Soto/Services/M2/M2_shapes.swift +++ b/Sources/Soto/Services/M2/M2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -113,6 +112,16 @@ extension M2 { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case featureNotAvailable = "featureNotAvailable" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + case unsupportedEngineVersion = "unsupportedEngineVersion" + public var description: String { return self.rawValue } + } + public enum BatchJobDefinition: AWSDecodableShape, Sendable { /// Specifies a file containing a batch job definition. case fileBatchJobDefinition(FileBatchJobDefinition) @@ -657,6 +666,27 @@ extension M2 { public init() {} } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the conflicting resource. + public let resourceId: String? + /// The type of the conflicting resource. + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateApplicationRequest: AWSEncodableShape { /// A client token is a unique, case-sensitive string of up to 128 ASCII characters with ASCII values of 33-126 inclusive. It's generated by the client to ensure idempotent operations, allowing for safe retries without unintended side effects. public let clientToken: String? @@ -2030,6 +2060,29 @@ extension M2 { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct JobStep: AWSDecodableShape { /// The name of a procedure step. public let procStepName: String? @@ -2866,6 +2919,27 @@ extension M2 { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the missing resource. + public let resourceId: String? + /// The type of the missing resource. + public let resourceType: String? + + @inlinable + public init(message: String, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RestartBatchJobIdentifier: AWSEncodableShape & AWSDecodableShape { /// The executionId from the StartBatchJob response when the job ran for the first time. public let executionId: String @@ -2938,6 +3012,35 @@ extension M2 { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The identifier of the exceeded quota. + public let quotaCode: String? + /// The ID of the resource that is exceeding the quota limit. + public let resourceId: String? + /// The type of resource that is exceeding the quota limit for Amazon Web Services Mainframe Modernization. + public let resourceType: String? + /// A code that identifies the service that the exceeded quota belongs to. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StartApplicationRequest: AWSEncodableShape { /// The unique identifier of the application you want to start. public let applicationId: String @@ -3097,6 +3200,39 @@ extension M2 { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The identifier of the throttled request. + public let quotaCode: String? + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + /// The identifier of the service that the throttled request was made to. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -3256,6 +3392,45 @@ extension M2 { } } + public struct ValidationException: AWSErrorShape { + /// The list of fields that failed service validation. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason why it failed service validation. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message of the exception field. + public let message: String + /// The name of the exception field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VsamAttributes: AWSEncodableShape { /// The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them. public let alternateKeys: [AlternateKey]? @@ -3393,6 +3568,17 @@ public struct M2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension M2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": M2.ConflictException.self, + "InternalServerException": M2.InternalServerException.self, + "ResourceNotFoundException": M2.ResourceNotFoundException.self, + "ServiceQuotaExceededException": M2.ServiceQuotaExceededException.self, + "ThrottlingException": M2.ThrottlingException.self, + "ValidationException": M2.ValidationException.self + ] +} + extension M2ErrorType: Equatable { public static func == (lhs: M2ErrorType, rhs: M2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MQ/MQ_api.swift b/Sources/Soto/Services/MQ/MQ_api.swift index 67e3cf7637f..bf6ece58304 100644 --- a/Sources/Soto/Services/MQ/MQ_api.swift +++ b/Sources/Soto/Services/MQ/MQ_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MQ/MQ_shapes.swift b/Sources/Soto/Services/MQ/MQ_shapes.swift index da0dcb8f18b..3d60592a84f 100644 --- a/Sources/Soto/Services/MQ/MQ_shapes.swift +++ b/Sources/Soto/Services/MQ/MQ_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -133,6 +132,24 @@ extension MQ { } } + public struct BadRequestException: AWSErrorShape { + /// The attribute which caused the error. + public let errorAttribute: String? + /// The explanation of the error. + public let message: String? + + @inlinable + public init(errorAttribute: String? = nil, message: String? = nil) { + self.errorAttribute = errorAttribute + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorAttribute = "errorAttribute" + case message = "message" + } + } + public struct BrokerEngineType: AWSDecodableShape { /// The broker's engine type. public let engineType: EngineType? @@ -364,6 +381,24 @@ extension MQ { } } + public struct ConflictException: AWSErrorShape { + /// The attribute which caused the error. + public let errorAttribute: String? + /// The explanation of the error. + public let message: String? + + @inlinable + public init(errorAttribute: String? = nil, message: String? = nil) { + self.errorAttribute = errorAttribute + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorAttribute = "errorAttribute" + case message = "message" + } + } + public struct CreateBrokerRequest: AWSEncodableShape { /// Optional. The authentication strategy used to secure the broker. The default is SIMPLE. public let authenticationStrategy: AuthenticationStrategy? @@ -1209,6 +1244,42 @@ extension MQ { } } + public struct ForbiddenException: AWSErrorShape { + /// The attribute which caused the error. + public let errorAttribute: String? + /// The explanation of the error. + public let message: String? + + @inlinable + public init(errorAttribute: String? = nil, message: String? = nil) { + self.errorAttribute = errorAttribute + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorAttribute = "errorAttribute" + case message = "message" + } + } + + public struct InternalServerErrorException: AWSErrorShape { + /// The attribute which caused the error. + public let errorAttribute: String? + /// The explanation of the error. + public let message: String? + + @inlinable + public init(errorAttribute: String? = nil, message: String? = nil) { + self.errorAttribute = errorAttribute + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorAttribute = "errorAttribute" + case message = "message" + } + } + public struct LdapServerMetadataInput: AWSEncodableShape { /// Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional failover server. public let hosts: [String]? @@ -1601,6 +1672,24 @@ extension MQ { } } + public struct NotFoundException: AWSErrorShape { + /// The attribute which caused the error. + public let errorAttribute: String? + /// The explanation of the error. + public let message: String? + + @inlinable + public init(errorAttribute: String? = nil, message: String? = nil) { + self.errorAttribute = errorAttribute + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorAttribute = "errorAttribute" + case message = "message" + } + } + public struct PendingLogs: AWSDecodableShape { /// Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. public let audit: Bool? @@ -1701,6 +1790,24 @@ extension MQ { } } + public struct UnauthorizedException: AWSErrorShape { + /// The attribute which caused the error. + public let errorAttribute: String? + /// The explanation of the error. + public let message: String? + + @inlinable + public init(errorAttribute: String? = nil, message: String? = nil) { + self.errorAttribute = errorAttribute + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorAttribute = "errorAttribute" + case message = "message" + } + } + public struct UpdateBrokerRequest: AWSEncodableShape { /// Optional. The authentication strategy used to secure the broker. The default is SIMPLE. public let authenticationStrategy: AuthenticationStrategy? @@ -2085,6 +2192,17 @@ public struct MQErrorType: AWSErrorType { public static var unauthorizedException: Self { .init(.unauthorizedException) } } +extension MQErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": MQ.BadRequestException.self, + "ConflictException": MQ.ConflictException.self, + "ForbiddenException": MQ.ForbiddenException.self, + "InternalServerErrorException": MQ.InternalServerErrorException.self, + "NotFoundException": MQ.NotFoundException.self, + "UnauthorizedException": MQ.UnauthorizedException.self + ] +} + extension MQErrorType: Equatable { public static func == (lhs: MQErrorType, rhs: MQErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MTurk/MTurk_api.swift b/Sources/Soto/Services/MTurk/MTurk_api.swift index 25575161607..0df30065ed1 100644 --- a/Sources/Soto/Services/MTurk/MTurk_api.swift +++ b/Sources/Soto/Services/MTurk/MTurk_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MTurk/MTurk_shapes.swift b/Sources/Soto/Services/MTurk/MTurk_shapes.swift index e5ae8c45c9a..0816d39f42d 100644 --- a/Sources/Soto/Services/MTurk/MTurk_shapes.swift +++ b/Sources/Soto/Services/MTurk/MTurk_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2047,6 +2046,22 @@ extension MTurk { public init() {} } + public struct RequestError: AWSErrorShape { + public let message: String? + public let turkErrorCode: String? + + @inlinable + public init(message: String? = nil, turkErrorCode: String? = nil) { + self.message = message + self.turkErrorCode = turkErrorCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case turkErrorCode = "TurkErrorCode" + } + } + public struct ReviewActionDetail: AWSDecodableShape { /// The unique identifier for the action. public let actionId: String? @@ -2227,6 +2242,22 @@ extension MTurk { public init() {} } + public struct ServiceFault: AWSErrorShape { + public let message: String? + public let turkErrorCode: String? + + @inlinable + public init(message: String? = nil, turkErrorCode: String? = nil) { + self.message = message + self.turkErrorCode = turkErrorCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case turkErrorCode = "TurkErrorCode" + } + } + public struct UpdateExpirationForHITRequest: AWSEncodableShape { /// The date and time at which you want the HIT to expire public let expireAt: Date @@ -2464,6 +2495,13 @@ public struct MTurkErrorType: AWSErrorType { public static var serviceFault: Self { .init(.serviceFault) } } +extension MTurkErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "RequestError": MTurk.RequestError.self, + "ServiceFault": MTurk.ServiceFault.self + ] +} + extension MTurkErrorType: Equatable { public static func == (lhs: MTurkErrorType, rhs: MTurkErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MWAA/MWAA_api.swift b/Sources/Soto/Services/MWAA/MWAA_api.swift index 560811312bd..9c9fbc526a4 100644 --- a/Sources/Soto/Services/MWAA/MWAA_api.swift +++ b/Sources/Soto/Services/MWAA/MWAA_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MWAA/MWAA_shapes.swift b/Sources/Soto/Services/MWAA/MWAA_shapes.swift index 3a79b346262..f68c34ac611 100644 --- a/Sources/Soto/Services/MWAA/MWAA_shapes.swift +++ b/Sources/Soto/Services/MWAA/MWAA_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1028,6 +1027,42 @@ extension MWAA { public init() {} } + public struct RestApiClientException: AWSErrorShape { + /// The error response data from the Apache Airflow REST API call, provided as a JSON object. + public let restApiResponse: AWSDocument? + /// The HTTP status code returned by the Apache Airflow REST API call. + public let restApiStatusCode: Int? + + @inlinable + public init(restApiResponse: AWSDocument? = nil, restApiStatusCode: Int? = nil) { + self.restApiResponse = restApiResponse + self.restApiStatusCode = restApiStatusCode + } + + private enum CodingKeys: String, CodingKey { + case restApiResponse = "RestApiResponse" + case restApiStatusCode = "RestApiStatusCode" + } + } + + public struct RestApiServerException: AWSErrorShape { + /// The error response data from the Apache Airflow REST API call, provided as a JSON object. + public let restApiResponse: AWSDocument? + /// The HTTP status code returned by the Apache Airflow REST API call. + public let restApiStatusCode: Int? + + @inlinable + public init(restApiResponse: AWSDocument? = nil, restApiStatusCode: Int? = nil) { + self.restApiResponse = restApiResponse + self.restApiStatusCode = restApiStatusCode + } + + private enum CodingKeys: String, CodingKey { + case restApiResponse = "RestApiResponse" + case restApiStatusCode = "RestApiStatusCode" + } + } + public struct StatisticSet: AWSEncodableShape { /// Internal only. The maximum value of the sample set. public let maximum: Double? @@ -1414,6 +1449,13 @@ public struct MWAAErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension MWAAErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "RestApiClientException": MWAA.RestApiClientException.self, + "RestApiServerException": MWAA.RestApiServerException.self + ] +} + extension MWAAErrorType: Equatable { public static func == (lhs: MWAAErrorType, rhs: MWAAErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MachineLearning/MachineLearning_api.swift b/Sources/Soto/Services/MachineLearning/MachineLearning_api.swift index 9404a60967b..8c4372089ee 100644 --- a/Sources/Soto/Services/MachineLearning/MachineLearning_api.swift +++ b/Sources/Soto/Services/MachineLearning/MachineLearning_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MachineLearning/MachineLearning_shapes.swift b/Sources/Soto/Services/MachineLearning/MachineLearning_shapes.swift index bd2ee3d2c48..d23a7fd33ef 100644 --- a/Sources/Soto/Services/MachineLearning/MachineLearning_shapes.swift +++ b/Sources/Soto/Services/MachineLearning/MachineLearning_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1815,6 +1814,70 @@ extension MachineLearning { } } + public struct IdempotentParameterMismatchException: AWSErrorShape { + public let code: Int? + public let message: String? + + @inlinable + public init(code: Int? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + + public struct InternalServerException: AWSErrorShape { + public let code: Int? + public let message: String? + + @inlinable + public init(code: Int? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + + public struct InvalidInputException: AWSErrorShape { + public let code: Int? + public let message: String? + + @inlinable + public init(code: Int? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + + public struct LimitExceededException: AWSErrorShape { + public let code: Int? + public let message: String? + + @inlinable + public init(code: Int? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct MLModel: AWSDecodableShape { /// The algorithm used to train the MLModel. The following algorithm is supported: SGD -- Stochastic gradient descent. The goal of SGD is to minimize the gradient of the loss function. public let algorithm: Algorithm? @@ -2283,6 +2346,22 @@ extension MachineLearning { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: Int? + public let message: String? + + @inlinable + public init(code: Int? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct S3DataSpec: AWSEncodableShape { /// The location of the data file(s) used by a DataSource. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files. public let dataLocationS3: String @@ -2561,6 +2640,16 @@ public struct MachineLearningErrorType: AWSErrorType { public static var tagLimitExceededException: Self { .init(.tagLimitExceededException) } } +extension MachineLearningErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "IdempotentParameterMismatchException": MachineLearning.IdempotentParameterMismatchException.self, + "InternalServerException": MachineLearning.InternalServerException.self, + "InvalidInputException": MachineLearning.InvalidInputException.self, + "LimitExceededException": MachineLearning.LimitExceededException.self, + "ResourceNotFoundException": MachineLearning.ResourceNotFoundException.self + ] +} + extension MachineLearningErrorType: Equatable { public static func == (lhs: MachineLearningErrorType, rhs: MachineLearningErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Macie2/Macie2_api.swift b/Sources/Soto/Services/Macie2/Macie2_api.swift index f37524d56ec..c228ce6b955 100644 --- a/Sources/Soto/Services/Macie2/Macie2_api.swift +++ b/Sources/Soto/Services/Macie2/Macie2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Macie2/Macie2_shapes.swift b/Sources/Soto/Services/Macie2/Macie2_shapes.swift index d8d07deec20..1a4d3ec48b4 100644 --- a/Sources/Soto/Services/Macie2/Macie2_shapes.swift +++ b/Sources/Soto/Services/Macie2/Macie2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MailManager/MailManager_api.swift b/Sources/Soto/Services/MailManager/MailManager_api.swift index 51a060f19ee..913d38332d7 100644 --- a/Sources/Soto/Services/MailManager/MailManager_api.swift +++ b/Sources/Soto/Services/MailManager/MailManager_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MailManager/MailManager_shapes.swift b/Sources/Soto/Services/MailManager/MailManager_shapes.swift index 58d82d8c74e..a84634fa038 100644 --- a/Sources/Soto/Services/MailManager/MailManager_shapes.swift +++ b/Sources/Soto/Services/MailManager/MailManager_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_api.swift b/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_api.swift index 7a5972462ba..da29d245ee0 100644 --- a/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_api.swift +++ b/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_shapes.swift b/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_shapes.swift index 7f6f8a94281..c0c24acfcd7 100644 --- a/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_shapes.swift +++ b/Sources/Soto/Services/ManagedBlockchain/ManagedBlockchain_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2215,6 +2214,23 @@ extension ManagedBlockchain { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// A requested resource doesn't exist. It may have been deleted or referenced inaccurately. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. public let resourceArn: String @@ -2255,6 +2271,22 @@ extension ManagedBlockchain { public init() {} } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. public let resourceArn: String @@ -2519,6 +2551,13 @@ public struct ManagedBlockchainErrorType: AWSErrorType { public static var tooManyTagsException: Self { .init(.tooManyTagsException) } } +extension ManagedBlockchainErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": ManagedBlockchain.ResourceNotFoundException.self, + "TooManyTagsException": ManagedBlockchain.TooManyTagsException.self + ] +} + extension ManagedBlockchainErrorType: Equatable { public static func == (lhs: ManagedBlockchainErrorType, rhs: ManagedBlockchainErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_api.swift b/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_api.swift index f9af06d9f7e..91cf6e9af47 100644 --- a/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_api.swift +++ b/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_shapes.swift b/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_shapes.swift index 7f1f7fb71fd..6c0c4ae2476 100644 --- a/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_shapes.swift +++ b/Sources/Soto/Services/ManagedBlockchainQuery/ManagedBlockchainQuery_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -103,6 +102,11 @@ extension ManagedBlockchainQuery { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case collection = "collection" + public var description: String { return self.rawValue } + } + public enum SortOrder: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { /// Result sorted in ascending order case ascending = "ASCENDING" @@ -111,6 +115,14 @@ extension ManagedBlockchainQuery { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AddressIdentifierFilter: AWSEncodableShape { @@ -515,6 +527,30 @@ extension ManagedBlockchainQuery { } } + public struct InternalServerException: AWSErrorShape { + /// The container for the exception message. + public let message: String + /// Specifies the retryAfterSeconds value. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListAssetContractsInput: AWSEncodableShape { /// Contains the filter parameter for the request. public let contractFilter: ContractFilter @@ -865,6 +901,92 @@ extension ManagedBlockchainQuery { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The container for the exception message. + public let message: String + /// The resourceId of the resource that caused the exception. + public let resourceId: String + /// The resourceType of the resource that caused the exception. + public let resourceType: ResourceType + + @inlinable + public init(message: String, resourceId: String, resourceType: ResourceType) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + /// The container for the exception message. + public let message: String + /// The container for the quotaCode. + public let quotaCode: String + /// The resourceId of the resource that caused the exception. + public let resourceId: String + /// The resourceType of the resource that caused the exception. + public let resourceType: ResourceType + /// The container for the serviceCode. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: ResourceType, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + + public struct ThrottlingException: AWSErrorShape { + /// The container for the exception message. + public let message: String + /// The container for the quotaCode. + public let quotaCode: String + /// The container of the retryAfterSeconds value. + public let retryAfterSeconds: Int? + /// The container for the serviceCode. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, retryAfterSeconds: Int? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decode(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decode(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct TimeFilter: AWSEncodableShape { public let from: BlockchainInstant? public let to: BlockchainInstant? @@ -1158,6 +1280,46 @@ extension ManagedBlockchainQuery { } } + public struct ValidationException: AWSErrorShape { + /// The container for the fieldList of the exception. + public let fieldList: [ValidationExceptionField]? + /// The container for the exception message. + public let message: String + /// The container for the reason for the exception + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The ValidationException message. + public let message: String + /// The name of the field that triggered the ValidationException. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VoutFilter: AWSEncodableShape { /// Specifies if the transaction output is spent or unspent. public let voutSpent: Bool @@ -1218,6 +1380,16 @@ public struct ManagedBlockchainQueryErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ManagedBlockchainQueryErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerException": ManagedBlockchainQuery.InternalServerException.self, + "ResourceNotFoundException": ManagedBlockchainQuery.ResourceNotFoundException.self, + "ServiceQuotaExceededException": ManagedBlockchainQuery.ServiceQuotaExceededException.self, + "ThrottlingException": ManagedBlockchainQuery.ThrottlingException.self, + "ValidationException": ManagedBlockchainQuery.ValidationException.self + ] +} + extension ManagedBlockchainQueryErrorType: Equatable { public static func == (lhs: ManagedBlockchainQueryErrorType, rhs: ManagedBlockchainQueryErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_api.swift b/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_api.swift index 6f5ef97ea96..41d4654d71b 100644 --- a/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_api.swift +++ b/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_shapes.swift b/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_shapes.swift index 8c3dc3395a5..9630fff2f4e 100644 --- a/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_shapes.swift +++ b/Sources/Soto/Services/MarketplaceAgreement/MarketplaceAgreement_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -39,12 +38,32 @@ extension MarketplaceAgreement { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case agreement = "Agreement" + public var description: String { return self.rawValue } + } + public enum SortOrder: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case ascending = "ASCENDING" case descending = "DESCENDING" public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidAgreementId = "INVALID_AGREEMENT_ID" + case invalidCatalog = "INVALID_CATALOG" + case invalidFilterName = "INVALID_FILTER_NAME" + case invalidFilterValues = "INVALID_FILTER_VALUES" + case invalidMaxResults = "INVALID_MAX_RESULTS" + case invalidNextToken = "INVALID_NEXT_TOKEN" + case invalidSortBy = "INVALID_SORT_BY" + case invalidSortOrder = "INVALID_SORT_ORDER" + case missingAgreementId = "MISSING_AGREEMENT_ID" + case other = "OTHER" + case unsupportedFilters = "UNSUPPORTED_FILTERS" + public var description: String { return self.rawValue } + } + public enum AcceptedTerm: AWSDecodableShape, Sendable { /// Enables you and your customers to move your existing agreements to AWS Marketplace. The customer won't be charged for product usage in AWS Marketplace because they already paid for the product outside of AWS Marketplace. case byolPricingTerm(ByolPricingTerm) @@ -146,6 +165,23 @@ extension MarketplaceAgreement { } } + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// The unique identifier for the error. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case requestId = "requestId" + } + } + public struct AgreementViewSummary: AWSDecodableShape { /// The date and time that the agreement was accepted. public let acceptanceTime: Date? @@ -569,6 +605,23 @@ extension MarketplaceAgreement { } } + public struct InternalServerException: AWSErrorShape { + public let message: String? + /// The unique identifier for the error. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case requestId = "requestId" + } + } + public struct LegalTerm: AWSDecodableShape { /// List of references to legal resources proposed to the buyers. An example is the EULA. public let documents: [DocumentItem]? @@ -735,6 +788,31 @@ extension MarketplaceAgreement { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The unique identifier for the error. + public let requestId: String? + /// The unique identifier for the resource. + public let resourceId: String? + /// The type of resource. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, requestId: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.requestId = requestId + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case requestId = "requestId" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ScheduleItem: AWSDecodableShape { /// The price that the customer would pay on the scheduled date (chargeDate). public let chargeAmount: String? @@ -877,6 +955,23 @@ extension MarketplaceAgreement { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The unique identifier for the error. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case requestId = "requestId" + } + } + public struct UsageBasedPricingTerm: AWSDecodableShape { /// Defines the currency for the prices mentioned in the term. public let currencyCode: String? @@ -913,6 +1008,49 @@ extension MarketplaceAgreement { } } + public struct ValidationException: AWSErrorShape { + /// The fields associated with the error. + public let fields: [ValidationExceptionField]? + public let message: String? + /// The reason associated with the error. + public let reason: ValidationExceptionReason? + /// The unique identifier associated with the error. + public let requestId: String? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil, requestId: String? = nil) { + self.fields = fields + self.message = message + self.reason = reason + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + case requestId = "requestId" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// See applicable actions. + public let message: String + /// The name of the field associated with the error. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct ValidityTerm: AWSDecodableShape { /// Defines the duration that the agreement remains active. If AgreementStartDate isn’t provided, the agreement duration is relative to the agreement signature time. The duration is represented in the ISO_8601 format. public let agreementDuration: String? @@ -982,6 +1120,16 @@ public struct MarketplaceAgreementErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension MarketplaceAgreementErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": MarketplaceAgreement.AccessDeniedException.self, + "InternalServerException": MarketplaceAgreement.InternalServerException.self, + "ResourceNotFoundException": MarketplaceAgreement.ResourceNotFoundException.self, + "ThrottlingException": MarketplaceAgreement.ThrottlingException.self, + "ValidationException": MarketplaceAgreement.ValidationException.self + ] +} + extension MarketplaceAgreementErrorType: Equatable { public static func == (lhs: MarketplaceAgreementErrorType, rhs: MarketplaceAgreementErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_api.swift b/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_api.swift index e90162ae304..44aae2d22af 100644 --- a/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_api.swift +++ b/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_shapes.swift b/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_shapes.swift index 407d541ce5c..6291f3d9104 100644 --- a/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_shapes.swift +++ b/Sources/Soto/Services/MarketplaceCatalog/MarketplaceCatalog_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_api.swift b/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_api.swift index 80e4c3e1482..fb66d5fe991 100644 --- a/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_api.swift +++ b/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_shapes.swift b/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_shapes.swift index 819bebd9c7e..84a633d5b8c 100644 --- a/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_shapes.swift +++ b/Sources/Soto/Services/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalytics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_api.swift b/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_api.swift index a06671a61dc..635ba616382 100644 --- a/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_api.swift +++ b/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_shapes.swift b/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_shapes.swift index 209a45c0235..9f66c2c8d29 100644 --- a/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_shapes.swift +++ b/Sources/Soto/Services/MarketplaceDeployment/MarketplaceDeployment_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -28,6 +27,23 @@ extension MarketplaceDeployment { // MARK: Shapes + public struct ConflictException: AWSErrorShape { + public let message: String + /// The unique identifier for the resource associated with the error. + public let resourceId: String + + @inlinable + public init(message: String, resourceId: String) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + public struct DeploymentParameterInput: AWSEncodableShape { /// The desired name of the deployment parameter. This is the identifier on which deployment parameters are keyed for a given buyer and product. If this name matches an existing deployment parameter, this request will update the existing resource. public let name: String @@ -238,6 +254,23 @@ extension MarketplaceDeployment { public struct UntagResourceResponse: AWSDecodableShape { public init() {} } + + public struct ValidationException: AWSErrorShape { + /// The field name associated with the error. + public let fieldName: String + public let message: String + + @inlinable + public init(fieldName: String, message: String) { + self.fieldName = fieldName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldName = "fieldName" + case message = "message" + } + } } // MARK: - Errors @@ -288,6 +321,13 @@ public struct MarketplaceDeploymentErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension MarketplaceDeploymentErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": MarketplaceDeployment.ConflictException.self, + "ValidationException": MarketplaceDeployment.ValidationException.self + ] +} + extension MarketplaceDeploymentErrorType: Equatable { public static func == (lhs: MarketplaceDeploymentErrorType, rhs: MarketplaceDeploymentErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_api.swift b/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_api.swift index 772600cdf2d..242a4b423f7 100644 --- a/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_api.swift +++ b/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_shapes.swift b/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_shapes.swift index 80abf50c37b..5dbb5c6b0fd 100644 --- a/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_shapes.swift +++ b/Sources/Soto/Services/MarketplaceEntitlementService/MarketplaceEntitlementService_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_api.swift b/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_api.swift index a0320db5b81..67b9ddfc48b 100644 --- a/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_api.swift +++ b/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_shapes.swift b/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_shapes.swift index 6deea6aa4b9..594b2051006 100644 --- a/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_shapes.swift +++ b/Sources/Soto/Services/MarketplaceMetering/MarketplaceMetering_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_api.swift b/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_api.swift index a19b744904e..ecc87fb2e73 100644 --- a/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_api.swift +++ b/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_shapes.swift b/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_shapes.swift index 2b776b956b6..7e0ff60cb52 100644 --- a/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_shapes.swift +++ b/Sources/Soto/Services/MarketplaceReporting/MarketplaceReporting_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaConnect/MediaConnect_api.swift b/Sources/Soto/Services/MediaConnect/MediaConnect_api.swift index 2ca329bdf44..a3e25e20e86 100644 --- a/Sources/Soto/Services/MediaConnect/MediaConnect_api.swift +++ b/Sources/Soto/Services/MediaConnect/MediaConnect_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaConnect/MediaConnect_shapes.swift b/Sources/Soto/Services/MediaConnect/MediaConnect_shapes.swift index 0d9fae1eedc..37bf8329f82 100644 --- a/Sources/Soto/Services/MediaConnect/MediaConnect_shapes.swift +++ b/Sources/Soto/Services/MediaConnect/MediaConnect_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaConvert/MediaConvert_api.swift b/Sources/Soto/Services/MediaConvert/MediaConvert_api.swift index 3b1ef3ab81f..368a0420941 100644 --- a/Sources/Soto/Services/MediaConvert/MediaConvert_api.swift +++ b/Sources/Soto/Services/MediaConvert/MediaConvert_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaConvert/MediaConvert_shapes.swift b/Sources/Soto/Services/MediaConvert/MediaConvert_shapes.swift index 383bf1b41dd..5ca87f2f8f1 100644 --- a/Sources/Soto/Services/MediaConvert/MediaConvert_shapes.swift +++ b/Sources/Soto/Services/MediaConvert/MediaConvert_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaLive/MediaLive_api.swift b/Sources/Soto/Services/MediaLive/MediaLive_api.swift index 33768273abe..379576048ef 100644 --- a/Sources/Soto/Services/MediaLive/MediaLive_api.swift +++ b/Sources/Soto/Services/MediaLive/MediaLive_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaLive/MediaLive_shapes.swift b/Sources/Soto/Services/MediaLive/MediaLive_shapes.swift index 9902cf295a7..99220068c36 100644 --- a/Sources/Soto/Services/MediaLive/MediaLive_shapes.swift +++ b/Sources/Soto/Services/MediaLive/MediaLive_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -16971,6 +16970,24 @@ extension MediaLive { } } + public struct UnprocessableEntityException: AWSErrorShape { + /// The error message. + public let message: String? + /// A collection of validation error responses. + public let validationErrors: [ValidationError]? + + @inlinable + public init(message: String? = nil, validationErrors: [ValidationError]? = nil) { + self.message = message + self.validationErrors = validationErrors + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case validationErrors = "validationErrors" + } + } + public struct UpdateAccountConfigurationRequest: AWSEncodableShape { public let accountConfiguration: AccountConfiguration? @@ -18289,6 +18306,24 @@ extension MediaLive { } } + public struct ValidationError: AWSDecodableShape { + /// Path to the source of the error. + public let elementPath: String? + /// The error message. + public let errorMessage: String? + + @inlinable + public init(elementPath: String? = nil, errorMessage: String? = nil) { + self.elementPath = elementPath + self.errorMessage = errorMessage + } + + private enum CodingKeys: String, CodingKey { + case elementPath = "elementPath" + case errorMessage = "errorMessage" + } + } + public struct VideoBlackFailoverSettings: AWSEncodableShape & AWSDecodableShape { /// A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the input to be considered black, every pixel in a frame must be below this threshold. The threshold is calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black). Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color depth: (1023*0.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1 in an 8-bit color depth: (255*0.1=25.5), which means a pixel value of 25 or less is 'black'. The range is 0.0 to 1.0, with any number of decimal places. public let blackDetectThreshold: Double? @@ -18643,6 +18678,12 @@ public struct MediaLiveErrorType: AWSErrorType { public static var unprocessableEntityException: Self { .init(.unprocessableEntityException) } } +extension MediaLiveErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "UnprocessableEntityException": MediaLive.UnprocessableEntityException.self + ] +} + extension MediaLiveErrorType: Equatable { public static func == (lhs: MediaLiveErrorType, rhs: MediaLiveErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MediaPackage/MediaPackage_api.swift b/Sources/Soto/Services/MediaPackage/MediaPackage_api.swift index b82a3041950..3b0c227a65c 100644 --- a/Sources/Soto/Services/MediaPackage/MediaPackage_api.swift +++ b/Sources/Soto/Services/MediaPackage/MediaPackage_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaPackage/MediaPackage_shapes.swift b/Sources/Soto/Services/MediaPackage/MediaPackage_shapes.swift index 4fe1a4adc65..980ff49ec81 100644 --- a/Sources/Soto/Services/MediaPackage/MediaPackage_shapes.swift +++ b/Sources/Soto/Services/MediaPackage/MediaPackage_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_api.swift b/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_api.swift index fd880f8e78d..6e628c6acdf 100644 --- a/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_api.swift +++ b/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_shapes.swift b/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_shapes.swift index 8c2d5f4de14..cdd9a038c66 100644 --- a/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_shapes.swift +++ b/Sources/Soto/Services/MediaPackageV2/MediaPackageV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -43,6 +42,14 @@ extension MediaPackageV2 { public var description: String { return self.rawValue } } + public enum ConflictExceptionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case conflictingOperation = "CONFLICTING_OPERATION" + case idempotentParameterMismatch = "IDEMPOTENT_PARAMETER_MISMATCH" + case resourceAlreadyExists = "RESOURCE_ALREADY_EXISTS" + case resourceInUse = "RESOURCE_IN_USE" + public var description: String { return self.rawValue } + } + public enum ContainerType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case cmaf = "CMAF" case ts = "TS" @@ -132,6 +139,14 @@ extension MediaPackageV2 { public var description: String { return self.rawValue } } + public enum ResourceTypeNotFound: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case channel = "CHANNEL" + case channelGroup = "CHANNEL_GROUP" + case harvestJob = "HARVEST_JOB" + case originEndpoint = "ORIGIN_ENDPOINT" + public var description: String { return self.rawValue } + } + public enum ScteFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case `break` = "BREAK" case distributorAdvertisement = "DISTRIBUTOR_ADVERTISEMENT" @@ -151,6 +166,69 @@ extension MediaPackageV2 { public var description: String { return self.rawValue } } + public enum ValidationExceptionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cencIvIncompatible = "CENC_IV_INCOMPATIBLE" + case clipStartTimeWithStartOrEnd = "CLIP_START_TIME_WITH_START_OR_END" + case containerTypeImmutable = "CONTAINER_TYPE_IMMUTABLE" + case directModeWithTimingSource = "DIRECT_MODE_WITH_TIMING_SOURCE" + case drmSignalingMismatchSegmentEncryptionStatus = "DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS" + case drmSystemsEncryptionMethodIncompatible = "DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE" + case encryptionContractShared = "ENCRYPTION_CONTRACT_SHARED" + case encryptionContractUnencrypted = "ENCRYPTION_CONTRACT_UNENCRYPTED" + case encryptionContractWithoutAudioRenditionIncompatible = "ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE" + case encryptionMethodContainerTypeMismatch = "ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH" + case endTimeEarlierThanStartTime = "END_TIME_EARLIER_THAN_START_TIME" + case harvestJobCustomerEndpointReadAccessDenied = "HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED" + case harvestJobIneligibleForCancellation = "HARVEST_JOB_INELIGIBLE_FOR_CANCELLATION" + case harvestJobS3DestinationMissingOrIncomplete = "HARVEST_JOB_S3_DESTINATION_MISSING_OR_INCOMPLETE" + case harvestJobUnableToWriteToS3Destination = "HARVEST_JOB_UNABLE_TO_WRITE_TO_S3_DESTINATION" + case harvestedManifestHasStartEndFilterConfiguration = "HARVESTED_MANIFEST_HAS_START_END_FILTER_CONFIGURATION" + case harvestedManifestNotFoundOnEndpoint = "HARVESTED_MANIFEST_NOT_FOUND_ON_ENDPOINT" + case invalidHarvestJobDuration = "INVALID_HARVEST_JOB_DURATION" + case invalidManifestFilter = "INVALID_MANIFEST_FILTER" + case invalidPaginationMaxResults = "INVALID_PAGINATION_MAX_RESULTS" + case invalidPaginationToken = "INVALID_PAGINATION_TOKEN" + case invalidPolicy = "INVALID_POLICY" + case invalidRoleArn = "INVALID_ROLE_ARN" + case invalidTimeDelaySeconds = "INVALID_TIME_DELAY_SECONDS" + case manifestDrmSystemsIncompatible = "MANIFEST_DRM_SYSTEMS_INCOMPATIBLE" + case manifestNameCollision = "MANIFEST_NAME_COLLISION" + case memberDoesNotMatchPattern = "MEMBER_DOES_NOT_MATCH_PATTERN" + case memberInvalid = "MEMBER_INVALID" + case memberInvalidEnumValue = "MEMBER_INVALID_ENUM_VALUE" + case memberMaxLength = "MEMBER_MAX_LENGTH" + case memberMaxValue = "MEMBER_MAX_VALUE" + case memberMinLength = "MEMBER_MIN_LENGTH" + case memberMinValue = "MEMBER_MIN_VALUE" + case memberMissing = "MEMBER_MISSING" + case noneModeWithTimingSource = "NONE_MODE_WITH_TIMING_SOURCE" + case numManifestsHigh = "NUM_MANIFESTS_HIGH" + case numManifestsLow = "NUM_MANIFESTS_LOW" + case onlyCmafInputTypeAllowForceEndpointErrorConfiguration = "ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION" + case onlyCmafInputTypeAllowMqcsInputSwitching = "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING" + case onlyCmafInputTypeAllowMqcsOutputConfiguration = "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION" + case periodTriggersNoneSpecifiedWithAdditionalValues = "PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES" + case roleArnInvalidFormat = "ROLE_ARN_INVALID_FORMAT" + case roleArnLengthOutOfRange = "ROLE_ARN_LENGTH_OUT_OF_RANGE" + case roleArnNotAssumable = "ROLE_ARN_NOT_ASSUMABLE" + case sourceDisruptionsEnabledIncorrectly = "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY" + case startTagTimeOffsetInvalid = "START_TAG_TIME_OFFSET_INVALID" + case timingSourceMissing = "TIMING_SOURCE_MISSING" + case tooManyInProgressHarvestJobs = "TOO_MANY_IN_PROGRESS_HARVEST_JOBS" + case tsContainerTypeWithDashManifest = "TS_CONTAINER_TYPE_WITH_DASH_MANIFEST" + case updatePeriodSmallerThanSegmentDuration = "UPDATE_PERIOD_SMALLER_THAN_SEGMENT_DURATION" + case urlInvalid = "URL_INVALID" + case urlLinkLocalAddress = "URL_LINK_LOCAL_ADDRESS" + case urlLocalAddress = "URL_LOCAL_ADDRESS" + case urlLoopbackAddress = "URL_LOOPBACK_ADDRESS" + case urlMulticastAddress = "URL_MULTICAST_ADDRESS" + case urlPort = "URL_PORT" + case urlScheme = "URL_SCHEME" + case urlUnknownHost = "URL_UNKNOWN_HOST" + case urlUserInfo = "URL_USER_INFO" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct CancelHarvestJobRequest: AWSEncodableShape { @@ -277,6 +355,23 @@ extension MediaPackageV2 { } } + public struct ConflictException: AWSErrorShape { + /// The type of ConflictException. + public let conflictExceptionType: ConflictExceptionType? + public let message: String? + + @inlinable + public init(conflictExceptionType: ConflictExceptionType? = nil, message: String? = nil) { + self.conflictExceptionType = conflictExceptionType + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case conflictExceptionType = "ConflictExceptionType" + case message = "Message" + } + } + public struct CreateChannelGroupRequest: AWSEncodableShape { /// The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region. You can't use spaces in the name. You can't change the name after you create the channel group. public let channelGroupName: String @@ -2761,6 +2856,23 @@ extension MediaPackageV2 { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The specified resource type wasn't found. + public let resourceTypeNotFound: ResourceTypeNotFound? + + @inlinable + public init(message: String? = nil, resourceTypeNotFound: ResourceTypeNotFound? = nil) { + self.message = message + self.resourceTypeNotFound = resourceTypeNotFound + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceTypeNotFound = "ResourceTypeNotFound" + } + } + public struct S3DestinationConfig: AWSEncodableShape & AWSDecodableShape { /// The name of an S3 bucket within which harvested content will be exported. public let bucketName: String @@ -3330,6 +3442,23 @@ extension MediaPackageV2 { case tags = "tags" } } + + public struct ValidationException: AWSErrorShape { + public let message: String? + /// The type of ValidationException. + public let validationExceptionType: ValidationExceptionType? + + @inlinable + public init(message: String? = nil, validationExceptionType: ValidationExceptionType? = nil) { + self.message = message + self.validationExceptionType = validationExceptionType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case validationExceptionType = "ValidationExceptionType" + } + } } // MARK: - Errors @@ -3380,6 +3509,14 @@ public struct MediaPackageV2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension MediaPackageV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": MediaPackageV2.ConflictException.self, + "ResourceNotFoundException": MediaPackageV2.ResourceNotFoundException.self, + "ValidationException": MediaPackageV2.ValidationException.self + ] +} + extension MediaPackageV2ErrorType: Equatable { public static func == (lhs: MediaPackageV2ErrorType, rhs: MediaPackageV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_api.swift b/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_api.swift index 50b4f2a0225..b2ae6c0532c 100644 --- a/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_api.swift +++ b/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_shapes.swift b/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_shapes.swift index 4a29ad0978c..a06e483ba9a 100644 --- a/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_shapes.swift +++ b/Sources/Soto/Services/MediaPackageVod/MediaPackageVod_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaStore/MediaStore_api.swift b/Sources/Soto/Services/MediaStore/MediaStore_api.swift index 3848e19bdf8..3ad8f92aa2f 100644 --- a/Sources/Soto/Services/MediaStore/MediaStore_api.swift +++ b/Sources/Soto/Services/MediaStore/MediaStore_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaStore/MediaStore_shapes.swift b/Sources/Soto/Services/MediaStore/MediaStore_shapes.swift index 75132b1a56c..39aee94f299 100644 --- a/Sources/Soto/Services/MediaStore/MediaStore_shapes.swift +++ b/Sources/Soto/Services/MediaStore/MediaStore_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaStoreData/MediaStoreData_api.swift b/Sources/Soto/Services/MediaStoreData/MediaStoreData_api.swift index 7deedb66062..a749462fac3 100644 --- a/Sources/Soto/Services/MediaStoreData/MediaStoreData_api.swift +++ b/Sources/Soto/Services/MediaStoreData/MediaStoreData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaStoreData/MediaStoreData_shapes.swift b/Sources/Soto/Services/MediaStoreData/MediaStoreData_shapes.swift index 8096197840c..8697d4ebe3f 100644 --- a/Sources/Soto/Services/MediaStoreData/MediaStoreData_shapes.swift +++ b/Sources/Soto/Services/MediaStoreData/MediaStoreData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaTailor/MediaTailor_api.swift b/Sources/Soto/Services/MediaTailor/MediaTailor_api.swift index b7277554658..109e53cbfdc 100644 --- a/Sources/Soto/Services/MediaTailor/MediaTailor_api.swift +++ b/Sources/Soto/Services/MediaTailor/MediaTailor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MediaTailor/MediaTailor_shapes.swift b/Sources/Soto/Services/MediaTailor/MediaTailor_shapes.swift index 737b0f8b369..369c9425e87 100644 --- a/Sources/Soto/Services/MediaTailor/MediaTailor_shapes.swift +++ b/Sources/Soto/Services/MediaTailor/MediaTailor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MedicalImaging/MedicalImaging_api.swift b/Sources/Soto/Services/MedicalImaging/MedicalImaging_api.swift index ee0cab204f2..9aed8e329bd 100644 --- a/Sources/Soto/Services/MedicalImaging/MedicalImaging_api.swift +++ b/Sources/Soto/Services/MedicalImaging/MedicalImaging_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MedicalImaging/MedicalImaging_shapes.swift b/Sources/Soto/Services/MedicalImaging/MedicalImaging_shapes.swift index ac39c522959..8ff2c98c440 100644 --- a/Sources/Soto/Services/MedicalImaging/MedicalImaging_shapes.swift +++ b/Sources/Soto/Services/MedicalImaging/MedicalImaging_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MemoryDB/MemoryDB_api.swift b/Sources/Soto/Services/MemoryDB/MemoryDB_api.swift index 82ba08f0f8f..3ff5083e14d 100644 --- a/Sources/Soto/Services/MemoryDB/MemoryDB_api.swift +++ b/Sources/Soto/Services/MemoryDB/MemoryDB_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MemoryDB/MemoryDB_shapes.swift b/Sources/Soto/Services/MemoryDB/MemoryDB_shapes.swift index 644f47d76b5..9feb161f73c 100644 --- a/Sources/Soto/Services/MemoryDB/MemoryDB_shapes.swift +++ b/Sources/Soto/Services/MemoryDB/MemoryDB_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Mgn/Mgn_api.swift b/Sources/Soto/Services/Mgn/Mgn_api.swift index f23de237c3d..d34a17d88a1 100644 --- a/Sources/Soto/Services/Mgn/Mgn_api.swift +++ b/Sources/Soto/Services/Mgn/Mgn_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Mgn/Mgn_shapes.swift b/Sources/Soto/Services/Mgn/Mgn_shapes.swift index adabe00667b..6ff7f7d6b47 100644 --- a/Sources/Soto/Services/Mgn/Mgn_shapes.swift +++ b/Sources/Soto/Services/Mgn/Mgn_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -297,6 +296,14 @@ extension Mgn { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum VolumeType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case gp2 = "gp2" case gp3 = "gp3" @@ -324,6 +331,22 @@ extension Mgn { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct Application: AWSDecodableShape { /// Application aggregated status. public let applicationAggregatedStatus: ApplicationAggregatedStatus? @@ -601,6 +624,34 @@ extension Mgn { } } + public struct ConflictException: AWSErrorShape { + public let code: String? + /// Conflict Exception specific errors. + public let errors: [ErrorDetails]? + public let message: String? + /// A conflict occurred when prompting for the Resource ID. + public let resourceId: String? + /// A conflict occurred when prompting for resource type. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, errors: [ErrorDetails]? = nil, message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.code = code + self.errors = errors + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case errors = "errors" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Connector: AWSDecodableShape { /// Connector arn. public let arn: String? @@ -1827,6 +1878,32 @@ extension Mgn { } } + public struct ErrorDetails: AWSDecodableShape { + /// Error details code. + public let code: String? + /// Error details message. + public let message: String? + /// Error details resourceId. + public let resourceId: String? + /// Error details resourceType. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.code = code + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ExportErrorData: AWSDecodableShape { /// Export errors data raw error. public let rawError: String? @@ -2220,6 +2297,29 @@ extension Mgn { public init() {} } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The server encountered an unexpected condition that prevented it from fulfilling the request. The request will be retried again after x seconds. + public let retryAfterSeconds: Int64? + + @inlinable + public init(message: String, retryAfterSeconds: Int64? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int64.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct Job: AWSDecodableShape { /// the ARN of the specific Job. public let arn: String? @@ -4033,6 +4133,30 @@ extension Mgn { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + /// Resource ID not found error. + public let resourceId: String? + /// Resource type not found error. + public let resourceType: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.code = code + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ResumeReplicationRequest: AWSEncodableShape { /// Resume Replication Request account ID. public let accountID: String? @@ -4117,6 +4241,42 @@ extension Mgn { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let code: String? + public let message: String? + /// Exceeded the service quota code. + public let quotaCode: String? + /// Exceeded the service quota value. + public let quotaValue: Int? + /// Exceeded the service quota resource ID. + public let resourceId: String? + /// Exceeded the service quota resource type. + public let resourceType: String? + /// Exceeded the service quota service code. + public let serviceCode: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, quotaCode: String? = nil, quotaValue: Int? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.code = code + self.message = message + self.quotaCode = quotaCode + self.quotaValue = quotaValue + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + case quotaCode = "quotaCode" + case quotaValue = "quotaValue" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SourceProperties: AWSDecodableShape { /// Source Server CPUs. public let cpus: [CPU]? @@ -4829,6 +4989,39 @@ extension Mgn { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Reached throttling quota exception. + public let quotaCode: String? + /// Reached throttling quota exception will retry after x seconds. + public let retryAfterSeconds: String? + /// Reached throttling quota exception service code. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UnarchiveApplicationRequest: AWSEncodableShape { /// Account ID. public let accountID: String? @@ -4883,6 +5076,22 @@ extension Mgn { } } + public struct UninitializedAccountException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// Untag resource by ARN. public let resourceArn: String @@ -5437,6 +5646,48 @@ extension Mgn { } } + public struct ValidationException: AWSErrorShape { + public let code: String? + /// Validate exception field list. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// Validate exception reason. + public let reason: ValidationExceptionReason? + + @inlinable + public init(code: String? = nil, fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.code = code + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Validate exception field message. + public let message: String? + /// Validate exception field name. + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VcenterClient: AWSDecodableShape { /// Arn of vCenter client. public let arn: String? @@ -5627,6 +5878,19 @@ public struct MgnErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension MgnErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Mgn.AccessDeniedException.self, + "ConflictException": Mgn.ConflictException.self, + "InternalServerException": Mgn.InternalServerException.self, + "ResourceNotFoundException": Mgn.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Mgn.ServiceQuotaExceededException.self, + "ThrottlingException": Mgn.ThrottlingException.self, + "UninitializedAccountException": Mgn.UninitializedAccountException.self, + "ValidationException": Mgn.ValidationException.self + ] +} + extension MgnErrorType: Equatable { public static func == (lhs: MgnErrorType, rhs: MgnErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MigrationHub/MigrationHub_api.swift b/Sources/Soto/Services/MigrationHub/MigrationHub_api.swift index c4b5e2088b6..1926315f2b9 100644 --- a/Sources/Soto/Services/MigrationHub/MigrationHub_api.swift +++ b/Sources/Soto/Services/MigrationHub/MigrationHub_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MigrationHub/MigrationHub_shapes.swift b/Sources/Soto/Services/MigrationHub/MigrationHub_shapes.swift index f3b32664031..3119fe1e022 100644 --- a/Sources/Soto/Services/MigrationHub/MigrationHub_shapes.swift +++ b/Sources/Soto/Services/MigrationHub/MigrationHub_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1237,6 +1236,30 @@ extension MigrationHub { case statusDetail = "StatusDetail" } } + + public struct ThrottlingException: AWSErrorShape { + /// A message that provides information about the exception. + public let message: String + /// The number of seconds the caller should wait before retrying. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } } // MARK: - Errors @@ -1296,6 +1319,12 @@ public struct MigrationHubErrorType: AWSErrorType { public static var unauthorizedOperation: Self { .init(.unauthorizedOperation) } } +extension MigrationHubErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ThrottlingException": MigrationHub.ThrottlingException.self + ] +} + extension MigrationHubErrorType: Equatable { public static func == (lhs: MigrationHubErrorType, rhs: MigrationHubErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_api.swift b/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_api.swift index 0b9ac64da46..f9c1d583a9e 100644 --- a/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_api.swift +++ b/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_shapes.swift b/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_shapes.swift index 146b8c5d46a..92827bea636 100644 --- a/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_shapes.swift +++ b/Sources/Soto/Services/MigrationHubConfig/MigrationHubConfig_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -229,6 +228,29 @@ extension MigrationHubConfig { case type = "Type" } } + + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The number of seconds the caller should wait before retrying. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } } // MARK: - Errors @@ -276,6 +298,12 @@ public struct MigrationHubConfigErrorType: AWSErrorType { public static var throttlingException: Self { .init(.throttlingException) } } +extension MigrationHubConfigErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ThrottlingException": MigrationHubConfig.ThrottlingException.self + ] +} + extension MigrationHubConfigErrorType: Equatable { public static func == (lhs: MigrationHubConfigErrorType, rhs: MigrationHubConfigErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_api.swift b/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_api.swift index c4935a08059..b6008de0baf 100644 --- a/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_api.swift +++ b/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_shapes.swift b/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_shapes.swift index 8b1532d28fd..6d2c9882095 100644 --- a/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_shapes.swift +++ b/Sources/Soto/Services/MigrationHubOrchestrator/MigrationHubOrchestrator_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_api.swift b/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_api.swift index f101d04f821..40ec0d8012d 100644 --- a/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_api.swift +++ b/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_shapes.swift b/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_shapes.swift index ec884685975..5e9f037d300 100644 --- a/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_shapes.swift +++ b/Sources/Soto/Services/MigrationHubRefactorSpaces/MigrationHubRefactorSpaces_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -314,6 +313,27 @@ extension MigrationHubRefactorSpaces { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The type of resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct CreateApplicationRequest: AWSEncodableShape { /// A wrapper object holding the API Gateway endpoint type and stage name for the proxy. public let apiGatewayProxy: ApiGatewayProxyInput? @@ -2113,6 +2133,27 @@ extension MigrationHubRefactorSpaces { public init() {} } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The type of resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct RouteSummary: AWSDecodableShape { /// If set to true, this option appends the source path to the service URL endpoint. public let appendSourcePath: Bool? @@ -2195,6 +2236,35 @@ extension MigrationHubRefactorSpaces { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// Service quota requirement to identify originating quota. Reached throttling quota exception. + public let quotaCode: String? + /// The ID of the resource. + public let resourceId: String + /// The type of resource. + public let resourceType: String + /// Service quota requirement to identify originating service. Reached throttling quota exception service code. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct ServiceSummary: AWSDecodableShape { /// The unique identifier of the application. public let applicationId: String? @@ -2305,6 +2375,39 @@ extension MigrationHubRefactorSpaces { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Service quota requirement to identify originating quota. Reached throttling quota exception. + public let quotaCode: String? + /// The number of seconds to wait before retrying. + public let retryAfterSeconds: Int? + /// Service quota requirement to identify originating service. Reached throttling quota exception service code. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -2562,6 +2665,15 @@ public struct MigrationHubRefactorSpacesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension MigrationHubRefactorSpacesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": MigrationHubRefactorSpaces.ConflictException.self, + "ResourceNotFoundException": MigrationHubRefactorSpaces.ResourceNotFoundException.self, + "ServiceQuotaExceededException": MigrationHubRefactorSpaces.ServiceQuotaExceededException.self, + "ThrottlingException": MigrationHubRefactorSpaces.ThrottlingException.self + ] +} + extension MigrationHubRefactorSpacesErrorType: Equatable { public static func == (lhs: MigrationHubRefactorSpacesErrorType, rhs: MigrationHubRefactorSpacesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_api.swift b/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_api.swift index 9fa7edf00cf..8803aca50fa 100644 --- a/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_api.swift +++ b/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_shapes.swift b/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_shapes.swift index 8ef9c6d1b06..ee18d769dad 100644 --- a/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_shapes.swift +++ b/Sources/Soto/Services/MigrationHubStrategy/MigrationHubStrategy_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Neptune/Neptune_api.swift b/Sources/Soto/Services/Neptune/Neptune_api.swift index 4fc4fc839f8..1102033a322 100644 --- a/Sources/Soto/Services/Neptune/Neptune_api.swift +++ b/Sources/Soto/Services/Neptune/Neptune_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Neptune/Neptune_shapes.swift b/Sources/Soto/Services/Neptune/Neptune_shapes.swift index 97dde3e1d90..e302ba4cf21 100644 --- a/Sources/Soto/Services/Neptune/Neptune_shapes.swift +++ b/Sources/Soto/Services/Neptune/Neptune_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_api.swift b/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_api.swift index bfe67fabae3..c8bcac59d06 100644 --- a/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_api.swift +++ b/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_shapes.swift b/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_shapes.swift index ac3b6b7f13a..e8d06c40f19 100644 --- a/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_shapes.swift +++ b/Sources/Soto/Services/NeptuneGraph/NeptuneGraph_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -31,6 +30,11 @@ extension NeptuneGraph { public var description: String { return self.rawValue } } + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case concurrentModification = "CONCURRENT_MODIFICATION" + public var description: String { return self.rawValue } + } + public enum ExplainMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case `static` = "STATIC" case details = "DETAILS" @@ -149,6 +153,26 @@ extension NeptuneGraph { public var description: String { return self.rawValue } } + public enum UnprocessableExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case internalLimitExceeded = "INTERNAL_LIMIT_EXCEEDED" + case memoryLimitExceeded = "MEMORY_LIMIT_EXCEEDED" + case partitionFull = "PARTITION_FULL" + case queryTimeout = "QUERY_TIMEOUT" + case storageLimitExceeded = "STORAGE_LIMIT_EXCEEDED" + public var description: String { return self.rawValue } + } + + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case badRequest = "BAD_REQUEST" + case constraintViolation = "CONSTRAINT_VIOLATION" + case illegalArgument = "ILLEGAL_ARGUMENT" + case malformedQuery = "MALFORMED_QUERY" + case queryCancelled = "QUERY_CANCELLED" + case queryTooLarge = "QUERY_TOO_LARGE" + case unsupportedOperation = "UNSUPPORTED_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct CancelExportTaskInput: AWSEncodableShape { @@ -306,6 +330,24 @@ extension NeptuneGraph { private enum CodingKeys: CodingKey {} } + public struct ConflictException: AWSErrorShape { + /// A message describing the problem. + public let message: String + /// The reason for the conflict exception. + public let reason: ConflictExceptionReason? + + @inlinable + public init(message: String, reason: ConflictExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct CreateGraphInput: AWSEncodableShape { /// Indicates whether or not to enable deletion protection on the graph. The graph can’t be deleted when deletion protection is enabled. (true or false). public let deletionProtection: Bool? @@ -2550,6 +2592,35 @@ extension NeptuneGraph { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// Service quota code of the resource for which quota was exceeded. + public let quotaCode: String? + /// The identifier of the resource that exceeded quota. + public let resourceId: String? + /// The type of the resource that exceeded quota. Ex: Graph, Snapshot + public let resourceType: String? + /// The service code that exceeded quota. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StartExportTaskInput: AWSEncodableShape { /// The Amazon S3 URI where data will be exported to. public let destination: String @@ -2798,6 +2869,23 @@ extension NeptuneGraph { public init() {} } + public struct UnprocessableException: AWSErrorShape { + public let message: String + /// The reason for the unprocessable exception. + public let reason: UnprocessableExceptionReason + + @inlinable + public init(message: String, reason: UnprocessableExceptionReason) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct UntagResourceInput: AWSEncodableShape { /// ARN of the resource whose tag needs to be removed. public let resourceArn: String @@ -2945,6 +3033,24 @@ extension NeptuneGraph { } } + public struct ValidationException: AWSErrorShape { + /// A message describing the problem. + public let message: String + /// The reason that the resource could not be validated. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct VectorSearchConfiguration: AWSEncodableShape & AWSDecodableShape { /// The number of dimensions. public let dimension: Int @@ -3030,6 +3136,15 @@ public struct NeptuneGraphErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension NeptuneGraphErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": NeptuneGraph.ConflictException.self, + "ServiceQuotaExceededException": NeptuneGraph.ServiceQuotaExceededException.self, + "UnprocessableException": NeptuneGraph.UnprocessableException.self, + "ValidationException": NeptuneGraph.ValidationException.self + ] +} + extension NeptuneGraphErrorType: Equatable { public static func == (lhs: NeptuneGraphErrorType, rhs: NeptuneGraphErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Neptunedata/Neptunedata_api.swift b/Sources/Soto/Services/Neptunedata/Neptunedata_api.swift index fa8564c60c3..904d81cc855 100644 --- a/Sources/Soto/Services/Neptunedata/Neptunedata_api.swift +++ b/Sources/Soto/Services/Neptunedata/Neptunedata_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Neptunedata/Neptunedata_shapes.swift b/Sources/Soto/Services/Neptunedata/Neptunedata_shapes.swift index 029a9563812..45cda865664 100644 --- a/Sources/Soto/Services/Neptunedata/Neptunedata_shapes.swift +++ b/Sources/Soto/Services/Neptunedata/Neptunedata_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -119,6 +118,72 @@ extension Neptunedata { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct BadRequestException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the bad request. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct BulkLoadIdNotFoundException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The bulk-load job ID that could not be found. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct CancelGremlinQueryInput: AWSEncodableShape { /// The unique identifier that identifies the query to be canceled. public let queryId: String @@ -343,6 +408,94 @@ extension Neptunedata { } } + public struct CancelledByUserException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct ClientTimeoutException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct ConcurrentModificationException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct ConstraintViolationException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct CreateMLEndpointInput: AWSEncodableShape { /// A unique identifier for the new inference endpoint. The default is an autogenerated timestamped name. public let id: String? @@ -823,6 +976,50 @@ extension Neptunedata { } } + public struct ExpiredStreamException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct FailureByQueryException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct FastResetToken: AWSDecodableShape { /// A UUID generated by the database in the initiateDatabaseReset action, and then consumed by the performDatabaseReset to reset the database. public let token: String? @@ -1528,6 +1725,116 @@ extension Neptunedata { } } + public struct IllegalArgumentException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct InternalFailureException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct InvalidArgumentException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct InvalidNumericDataException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct InvalidParameterException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that includes an invalid parameter. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct ListGremlinQueriesInput: AWSEncodableShape { /// If set to TRUE, the list returned includes waiting queries. The default is FALSE; public let includeWaiting: Bool? @@ -1812,6 +2119,28 @@ extension Neptunedata { } } + public struct LoadUrlAccessDeniedException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct LoaderIdResult: AWSDecodableShape { /// A list of load IDs. public let loadIds: [String]? @@ -1826,6 +2155,50 @@ extension Neptunedata { } } + public struct MLResourceNotFoundException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct MalformedQueryException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the malformed query request. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct ManagePropertygraphStatisticsInput: AWSEncodableShape { /// The statistics generation mode. One of: DISABLE_AUTOCOMPUTE, ENABLE_AUTOCOMPUTE, or REFRESH, the last of which manually triggers DFE statistics generation. public let mode: StatisticsAutoGenerationMode? @@ -1890,6 +2263,72 @@ extension Neptunedata { } } + public struct MemoryLimitExceededException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that failed. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct MethodNotAllowedException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct MissingParameterException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in which the parameter is missing. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct MlConfigDefinition: AWSDecodableShape { /// The ARN for the configuration. public let arn: String? @@ -1964,6 +2403,50 @@ extension Neptunedata { } } + public struct ParsingException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct PreconditionsFailedException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct PropertygraphData: AWSDecodableShape { /// If this is an edge (type = e), the ID of the corresponding from vertex or source node. public let from: String? @@ -2156,6 +2639,72 @@ extension Neptunedata { } } + public struct QueryLimitExceededException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request which exceeded the limit. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct QueryLimitException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that exceeded the limit. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct QueryTooLargeException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that is too large. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct RDFGraphSummary: AWSDecodableShape { /// A list of the classes in the graph. public let classes: [String]? @@ -2216,6 +2765,28 @@ extension Neptunedata { } } + public struct ReadOnlyViolationException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in which the parameter is missing. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct RefreshStatisticsIdMap: AWSDecodableShape { /// The ID of the statistics generation run that is currently occurring. public let statisticsId: String? @@ -2230,6 +2801,50 @@ extension Neptunedata { } } + public struct S3Exception: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct ServerShutdownException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct SparqlData: AWSDecodableShape { /// Holds an N-QUADS statement expressing the changed quad. public let stmt: String @@ -2668,6 +3283,28 @@ extension Neptunedata { } } + public struct StatisticsNotAvailableException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct StatisticsSummary: AWSDecodableShape { /// The total number of characteristic-set instances. public let instanceCount: Int? @@ -2690,6 +3327,28 @@ extension Neptunedata { } } + public struct StreamRecordsNotFoundException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + public struct SubjectStructure: AWSDecodableShape { /// Number of occurrences of this specific structure. public let count: Int64? @@ -2707,6 +3366,94 @@ extension Neptunedata { case predicates = "predicates" } } + + public struct ThrottlingException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that could not be processed for this reason. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct TimeLimitExceededException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that could not be processed for this reason. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct TooManyRequestsException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request that could not be processed for this reason. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } + + public struct UnsupportedOperationException: AWSErrorShape { + /// The HTTP status code returned with the exception. + public let code: String + /// A detailed message describing the problem. + public let detailedMessage: String + /// The ID of the request in question. + public let requestId: String + + @inlinable + public init(code: String, detailedMessage: String, requestId: String) { + self.code = code + self.detailedMessage = detailedMessage + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case detailedMessage = "detailedMessage" + case requestId = "requestId" + } + } } // MARK: - Errors @@ -2838,6 +3585,45 @@ public struct NeptunedataErrorType: AWSErrorType { public static var unsupportedOperationException: Self { .init(.unsupportedOperationException) } } +extension NeptunedataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Neptunedata.AccessDeniedException.self, + "BadRequestException": Neptunedata.BadRequestException.self, + "BulkLoadIdNotFoundException": Neptunedata.BulkLoadIdNotFoundException.self, + "CancelledByUserException": Neptunedata.CancelledByUserException.self, + "ClientTimeoutException": Neptunedata.ClientTimeoutException.self, + "ConcurrentModificationException": Neptunedata.ConcurrentModificationException.self, + "ConstraintViolationException": Neptunedata.ConstraintViolationException.self, + "ExpiredStreamException": Neptunedata.ExpiredStreamException.self, + "FailureByQueryException": Neptunedata.FailureByQueryException.self, + "IllegalArgumentException": Neptunedata.IllegalArgumentException.self, + "InternalFailureException": Neptunedata.InternalFailureException.self, + "InvalidArgumentException": Neptunedata.InvalidArgumentException.self, + "InvalidNumericDataException": Neptunedata.InvalidNumericDataException.self, + "InvalidParameterException": Neptunedata.InvalidParameterException.self, + "LoadUrlAccessDeniedException": Neptunedata.LoadUrlAccessDeniedException.self, + "MLResourceNotFoundException": Neptunedata.MLResourceNotFoundException.self, + "MalformedQueryException": Neptunedata.MalformedQueryException.self, + "MemoryLimitExceededException": Neptunedata.MemoryLimitExceededException.self, + "MethodNotAllowedException": Neptunedata.MethodNotAllowedException.self, + "MissingParameterException": Neptunedata.MissingParameterException.self, + "ParsingException": Neptunedata.ParsingException.self, + "PreconditionsFailedException": Neptunedata.PreconditionsFailedException.self, + "QueryLimitExceededException": Neptunedata.QueryLimitExceededException.self, + "QueryLimitException": Neptunedata.QueryLimitException.self, + "QueryTooLargeException": Neptunedata.QueryTooLargeException.self, + "ReadOnlyViolationException": Neptunedata.ReadOnlyViolationException.self, + "S3Exception": Neptunedata.S3Exception.self, + "ServerShutdownException": Neptunedata.ServerShutdownException.self, + "StatisticsNotAvailableException": Neptunedata.StatisticsNotAvailableException.self, + "StreamRecordsNotFoundException": Neptunedata.StreamRecordsNotFoundException.self, + "ThrottlingException": Neptunedata.ThrottlingException.self, + "TimeLimitExceededException": Neptunedata.TimeLimitExceededException.self, + "TooManyRequestsException": Neptunedata.TooManyRequestsException.self, + "UnsupportedOperationException": Neptunedata.UnsupportedOperationException.self + ] +} + extension NeptunedataErrorType: Equatable { public static func == (lhs: NeptunedataErrorType, rhs: NeptunedataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_api.swift b/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_api.swift index 04226c1ab36..be7fb6999dd 100644 --- a/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_api.swift +++ b/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_shapes.swift b/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_shapes.swift index a068dd1465e..f09ab3f0ce9 100644 --- a/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_shapes.swift +++ b/Sources/Soto/Services/NetworkFirewall/NetworkFirewall_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_api.swift b/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_api.swift index ac7feea938b..f29d09bce71 100644 --- a/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_api.swift +++ b/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_shapes.swift b/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_shapes.swift index 6181d5f5870..765f435090f 100644 --- a/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_shapes.swift +++ b/Sources/Soto/Services/NetworkFlowMonitor/NetworkFlowMonitor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NetworkManager/NetworkManager_api.swift b/Sources/Soto/Services/NetworkManager/NetworkManager_api.swift index 2484527155b..8daddb9db4c 100644 --- a/Sources/Soto/Services/NetworkManager/NetworkManager_api.swift +++ b/Sources/Soto/Services/NetworkManager/NetworkManager_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NetworkManager/NetworkManager_shapes.swift b/Sources/Soto/Services/NetworkManager/NetworkManager_shapes.swift index 4045ca2fdfc..8803688de74 100644 --- a/Sources/Soto/Services/NetworkManager/NetworkManager_shapes.swift +++ b/Sources/Soto/Services/NetworkManager/NetworkManager_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -315,6 +314,14 @@ extension NetworkManager { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CannotParse" + case fieldValidationFailed = "FieldValidationFailed" + case other = "Other" + case unknownOperation = "UnknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AWSLocation: AWSEncodableShape & AWSDecodableShape { @@ -766,6 +773,27 @@ extension NetworkManager { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ConnectAttachment: AWSDecodableShape { /// The attachment details. public let attachment: Attachment? @@ -1416,6 +1444,23 @@ extension NetworkManager { } } + public struct CoreNetworkPolicyException: AWSErrorShape { + /// Describes a core network policy exception. + public let errors: [CoreNetworkPolicyError]? + public let message: String + + @inlinable + public init(errors: [CoreNetworkPolicyError]? = nil, message: String) { + self.errors = errors + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errors = "Errors" + case message = "Message" + } + } + public struct CoreNetworkPolicyVersion: AWSDecodableShape { /// Whether a core network policy is the current policy or the most recently submitted policy. public let alias: CoreNetworkPolicyAlias? @@ -4852,6 +4897,29 @@ extension NetworkManager { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// Indicates when to retry the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct Link: AWSDecodableShape { /// The bandwidth for the link. public let bandwidth: Bandwidth? @@ -5965,6 +6033,31 @@ extension NetworkManager { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The specified resource could not be found. + public let context: [String: String]? + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(context: [String: String]? = nil, message: String, resourceId: String, resourceType: String) { + self.context = context + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case context = "Context" + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct RestoreCoreNetworkPolicyVersionRequest: AWSEncodableShape { /// The ID of a core network. public let coreNetworkId: String @@ -6221,6 +6314,36 @@ extension NetworkManager { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// The limit code. + public let limitCode: String + /// The error message. + public let message: String + /// The ID of the resource. + public let resourceId: String? + /// The resource type. + public let resourceType: String? + /// The service code. + public let serviceCode: String + + @inlinable + public init(limitCode: String, message: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.limitCode = limitCode + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case limitCode = "LimitCode" + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct Site: AWSDecodableShape { /// The date and time that the site was created. public let createdAt: Date? @@ -6434,6 +6557,29 @@ extension NetworkManager { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Indicates when to retry the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct TransitGatewayConnectPeerAssociation: AWSDecodableShape { /// The ID of the device. public let deviceId: String? @@ -7129,6 +7275,45 @@ extension NetworkManager { } } + public struct ValidationException: AWSErrorShape { + /// The fields that caused the error, if applicable. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason for the error. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message for the field. + public let message: String + /// The name of the field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } + public struct Via: AWSDecodableShape { /// The list of network function groups associated with the service insertion action. public let networkFunctionGroups: [NetworkFunctionGroup]? @@ -7253,6 +7438,18 @@ public struct NetworkManagerErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension NetworkManagerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": NetworkManager.ConflictException.self, + "CoreNetworkPolicyException": NetworkManager.CoreNetworkPolicyException.self, + "InternalServerException": NetworkManager.InternalServerException.self, + "ResourceNotFoundException": NetworkManager.ResourceNotFoundException.self, + "ServiceQuotaExceededException": NetworkManager.ServiceQuotaExceededException.self, + "ThrottlingException": NetworkManager.ThrottlingException.self, + "ValidationException": NetworkManager.ValidationException.self + ] +} + extension NetworkManagerErrorType: Equatable { public static func == (lhs: NetworkManagerErrorType, rhs: NetworkManagerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_api.swift b/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_api.swift index e7277f0e8f6..b03de7c0033 100644 --- a/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_api.swift +++ b/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_shapes.swift b/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_shapes.swift index 73f6e426193..068c65442e7 100644 --- a/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_shapes.swift +++ b/Sources/Soto/Services/NetworkMonitor/NetworkMonitor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Notifications/Notifications_api.swift b/Sources/Soto/Services/Notifications/Notifications_api.swift index d859017ec5e..2bf4ea795da 100644 --- a/Sources/Soto/Services/Notifications/Notifications_api.swift +++ b/Sources/Soto/Services/Notifications/Notifications_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Notifications/Notifications_shapes.swift b/Sources/Soto/Services/Notifications/Notifications_shapes.swift index b5392f6cbdd..c2517e45c9d 100644 --- a/Sources/Soto/Services/Notifications/Notifications_shapes.swift +++ b/Sources/Soto/Services/Notifications/Notifications_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -185,6 +184,12 @@ extension Notifications { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AggregationDetail: AWSDecodableShape { @@ -351,6 +356,23 @@ extension Notifications { public init() {} } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The resource ID that prompted the conflict error. + public let resourceId: String + + @inlinable + public init(message: String, resourceId: String) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + public struct CreateEventRuleRequest: AWSEncodableShape { /// An additional event pattern used to further filter the events this EventRule receives. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide. public let eventPattern: String? @@ -2403,6 +2425,52 @@ extension Notifications { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource that wasn't found. + public let resourceId: String + + @inlinable + public init(message: String, resourceId: String) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code for the service quota in Service Quotas. + public let quotaCode: String? + /// The ID of the resource that exceeds the service quota. + public let resourceId: String? + /// The type of the resource that exceeds the service quota. + public let resourceType: String + /// The code for the service quota exceeded in Service Quotas. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SourceEventMetadata: AWSDecodableShape { /// The date and time the source event occurred. This is based on the Source Event. public let eventOccurrenceTime: Date @@ -2570,6 +2638,39 @@ extension Notifications { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Identifies the quota that is being throttled. + public let quotaCode: String? + /// The number of seconds a client should wait before retrying the request. + public let retryAfterSeconds: Int? + /// Identifies the service being throttled. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) to use to untag a resource. public let arn: String @@ -2722,6 +2823,45 @@ extension Notifications { case arn = "arn" } } + + public struct ValidationException: AWSErrorShape { + /// The list of input fields that are invalid. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason why your input is considered invalid. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message with the reason for the validation exception error. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -2772,6 +2912,16 @@ public struct NotificationsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension NotificationsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Notifications.ConflictException.self, + "ResourceNotFoundException": Notifications.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Notifications.ServiceQuotaExceededException.self, + "ThrottlingException": Notifications.ThrottlingException.self, + "ValidationException": Notifications.ValidationException.self + ] +} + extension NotificationsErrorType: Equatable { public static func == (lhs: NotificationsErrorType, rhs: NotificationsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_api.swift b/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_api.swift index 848f68b09ae..4bc47e8fd12 100644 --- a/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_api.swift +++ b/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_shapes.swift b/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_shapes.swift index ce675d5a563..1138f37c24b 100644 --- a/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_shapes.swift +++ b/Sources/Soto/Services/NotificationsContacts/NotificationsContacts_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -32,6 +31,12 @@ extension NotificationsContacts { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct ActivateEmailContactRequest: AWSEncodableShape { @@ -67,6 +72,27 @@ extension NotificationsContacts { public init() {} } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The resource ID that prompted the conflict error. + public let resourceId: String + /// The resource type that prompted the conflict error. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateEmailContactRequest: AWSEncodableShape { /// The email address this email contact points to. The activation email and any subscribed emails are sent here. This email address can't receive emails until it's activated. public let emailAddress: String @@ -291,6 +317,27 @@ extension NotificationsContacts { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource that wasn't found. + public let resourceId: String + /// The type of resource that wasn't found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct SendActivationCodeRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let arn: String @@ -317,6 +364,35 @@ extension NotificationsContacts { public init() {} } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code for the service quota in Service Quotas. + public let quotaCode: String + /// The ID of the resource that exceeds the service quota. + public let resourceId: String + /// The type of the resource that exceeds the service quota. + public let resourceType: String + /// The code for the service quota exceeded in Service Quotas. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The ARN of the configuration. public let arn: String @@ -354,6 +430,39 @@ extension NotificationsContacts { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Identifies the quota that is being throttled. + public let quotaCode: String? + /// The number of seconds a client should wait before retrying the request. + public let retryAfterSeconds: Int? + /// Identifies the service being throttled. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role. public let arn: String @@ -386,6 +495,45 @@ extension NotificationsContacts { public struct UntagResourceResponse: AWSDecodableShape { public init() {} } + + public struct ValidationException: AWSErrorShape { + /// The list of input fields that are invalid. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason why your input is considered invalid. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message with the reason for the validation exception error. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -436,6 +584,16 @@ public struct NotificationsContactsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension NotificationsContactsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": NotificationsContacts.ConflictException.self, + "ResourceNotFoundException": NotificationsContacts.ResourceNotFoundException.self, + "ServiceQuotaExceededException": NotificationsContacts.ServiceQuotaExceededException.self, + "ThrottlingException": NotificationsContacts.ThrottlingException.self, + "ValidationException": NotificationsContacts.ValidationException.self + ] +} + extension NotificationsContactsErrorType: Equatable { public static func == (lhs: NotificationsContactsErrorType, rhs: NotificationsContactsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/OAM/OAM_api.swift b/Sources/Soto/Services/OAM/OAM_api.swift index 349bd53414b..cd02a61c8e4 100644 --- a/Sources/Soto/Services/OAM/OAM_api.swift +++ b/Sources/Soto/Services/OAM/OAM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OAM/OAM_shapes.swift b/Sources/Soto/Services/OAM/OAM_shapes.swift index f1a01bf136b..0547eee1cd6 100644 --- a/Sources/Soto/Services/OAM/OAM_shapes.swift +++ b/Sources/Soto/Services/OAM/OAM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -39,6 +38,29 @@ extension OAM { // MARK: Shapes + public struct ConflictException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct CreateLinkInput: AWSEncodableShape { /// Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account. You can use a custom label or use the following variables: $AccountName is the name of the account $AccountEmail is the globally unique email address of the account $AccountEmailNoDomain is the email address of the account without the domain name public let labelTemplate: String @@ -368,6 +390,52 @@ extension OAM { } } + public struct InternalServiceFault: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + + public struct InvalidParameterException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct LinkConfiguration: AWSEncodableShape & AWSDecodableShape { /// Use this structure to filter which log groups are to send log events from the source account to the monitoring account. public let logGroupConfiguration: LogGroupConfiguration? @@ -667,6 +735,29 @@ extension OAM { } } + public struct MissingRequiredParameterException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct PutSinkPolicyInput: AWSEncodableShape { /// The JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here. The policy must be in JSON string format with quotation marks escaped and no newlines. For examples of different types of policies, see the Examples section on this page. public let policy: String @@ -711,6 +802,52 @@ extension OAM { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct TagResourceInput: AWSEncodableShape { /// The ARN of the resource that you're adding tags to. The ARN format of a sink is arn:aws:oam:Region:account-id:sink/sink-id The ARN format of a link is arn:aws:oam:Region:account-id:link/link-id For more information about ARN format, see CloudWatch Logs resources and operations. public let resourceArn: String @@ -906,6 +1043,17 @@ public struct OAMErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension OAMErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": OAM.ConflictException.self, + "InternalServiceFault": OAM.InternalServiceFault.self, + "InvalidParameterException": OAM.InvalidParameterException.self, + "MissingRequiredParameterException": OAM.MissingRequiredParameterException.self, + "ResourceNotFoundException": OAM.ResourceNotFoundException.self, + "ServiceQuotaExceededException": OAM.ServiceQuotaExceededException.self + ] +} + extension OAMErrorType: Equatable { public static func == (lhs: OAMErrorType, rhs: OAMErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/OSIS/OSIS_api.swift b/Sources/Soto/Services/OSIS/OSIS_api.swift index 6adc416b8ef..0a6bd78d224 100644 --- a/Sources/Soto/Services/OSIS/OSIS_api.swift +++ b/Sources/Soto/Services/OSIS/OSIS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OSIS/OSIS_shapes.swift b/Sources/Soto/Services/OSIS/OSIS_shapes.swift index 1e70dad3c49..0efb5ff1052 100644 --- a/Sources/Soto/Services/OSIS/OSIS_shapes.swift +++ b/Sources/Soto/Services/OSIS/OSIS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_api.swift b/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_api.swift index 8e2c1df9775..90d2ff9fe8f 100644 --- a/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_api.swift +++ b/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_shapes.swift b/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_shapes.swift index 15f8bfa4f3f..b18f3d99495 100644 --- a/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_shapes.swift +++ b/Sources/Soto/Services/ObservabilityAdmin/ObservabilityAdmin_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -60,6 +59,29 @@ extension ObservabilityAdmin { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct GetTelemetryEvaluationStatusForOrganizationOutput: AWSDecodableShape { /// This field describes the reason for the failure status. The field will only be populated if Status is FAILED_START or FAILED_STOP. public let failureReason: String? @@ -96,6 +118,29 @@ extension ObservabilityAdmin { } } + public struct InternalServerException: AWSErrorShape { + /// The name of the exception. + public let amznErrorType: String? + public let message: String? + + @inlinable + public init(amznErrorType: String? = nil, message: String? = nil) { + self.amznErrorType = amznErrorType + self.message = message + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.amznErrorType = try response.decodeHeaderIfPresent(String.self, key: "x-amzn-ErrorType") + self.message = try container.decodeIfPresent(String.self, forKey: .message) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct ListResourceTelemetryForOrganizationInput: AWSEncodableShape { /// A list of AWS account IDs used to filter the resources to those associated with the specified accounts. public let accountIdentifiers: [String]? @@ -315,6 +360,13 @@ public struct ObservabilityAdminErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ObservabilityAdminErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": ObservabilityAdmin.AccessDeniedException.self, + "InternalServerException": ObservabilityAdmin.InternalServerException.self + ] +} + extension ObservabilityAdminErrorType: Equatable { public static func == (lhs: ObservabilityAdminErrorType, rhs: ObservabilityAdminErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Omics/Omics_api.swift b/Sources/Soto/Services/Omics/Omics_api.swift index 018aa187a4f..7a73f83fc87 100644 --- a/Sources/Soto/Services/Omics/Omics_api.swift +++ b/Sources/Soto/Services/Omics/Omics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Omics/Omics_shapes.swift b/Sources/Soto/Services/Omics/Omics_shapes.swift index e5fa2732f8a..24c71361efd 100644 --- a/Sources/Soto/Services/Omics/Omics_shapes.swift +++ b/Sources/Soto/Services/Omics/Omics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OpenSearch/OpenSearch_api.swift b/Sources/Soto/Services/OpenSearch/OpenSearch_api.swift index d57d72a7155..0f06fb84bc2 100644 --- a/Sources/Soto/Services/OpenSearch/OpenSearch_api.swift +++ b/Sources/Soto/Services/OpenSearch/OpenSearch_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OpenSearch/OpenSearch_shapes.swift b/Sources/Soto/Services/OpenSearch/OpenSearch_shapes.swift index 7b3419224d7..d0087a4ca86 100644 --- a/Sources/Soto/Services/OpenSearch/OpenSearch_shapes.swift +++ b/Sources/Soto/Services/OpenSearch/OpenSearch_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -6858,6 +6857,24 @@ extension OpenSearch { } } + public struct SlotNotAvailableException: AWSErrorShape { + /// A description of the error. + public let message: String? + /// Alternate time slots during which OpenSearch Service has available capacity to schedule a domain action. + public let slotSuggestions: [Int64]? + + @inlinable + public init(message: String? = nil, slotSuggestions: [Int64]? = nil) { + self.message = message + self.slotSuggestions = slotSuggestions + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case slotSuggestions = "SlotSuggestions" + } + } + public struct SnapshotOptions: AWSEncodableShape & AWSDecodableShape { /// The time, in UTC format, when OpenSearch Service takes a daily automated snapshot of the specified domain. Default is 0 hours. public let automatedSnapshotStartHour: Int? @@ -8078,6 +8095,12 @@ public struct OpenSearchErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension OpenSearchErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "SlotNotAvailableException": OpenSearch.SlotNotAvailableException.self + ] +} + extension OpenSearchErrorType: Equatable { public static func == (lhs: OpenSearchErrorType, rhs: OpenSearchErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_api.swift b/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_api.swift index 4c83ee0b4a5..71cf19e93cd 100644 --- a/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_api.swift +++ b/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_shapes.swift b/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_shapes.swift index d156ef9cb5c..24deb856778 100644 --- a/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_shapes.swift +++ b/Sources/Soto/Services/OpenSearchServerless/OpenSearchServerless_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2200,6 +2199,36 @@ extension OpenSearchServerless { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Service Quotas requirement to identify originating quota. + public let quotaCode: String? + /// Identifier of the resource affected. + public let resourceId: String? + /// Type of the resource affected. + public let resourceType: String? + /// Service Quotas requirement to identify originating service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct Tag: AWSEncodableShape & AWSDecodableShape { /// The key to use in the tag. public let key: String @@ -2940,6 +2969,12 @@ public struct OpenSearchServerlessErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension OpenSearchServerlessErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ServiceQuotaExceededException": OpenSearchServerless.ServiceQuotaExceededException.self + ] +} + extension OpenSearchServerlessErrorType: Equatable { public static func == (lhs: OpenSearchServerlessErrorType, rhs: OpenSearchServerlessErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/OpsWorks/OpsWorks_api.swift b/Sources/Soto/Services/OpsWorks/OpsWorks_api.swift index becbb9d9a08..c066d19d106 100644 --- a/Sources/Soto/Services/OpsWorks/OpsWorks_api.swift +++ b/Sources/Soto/Services/OpsWorks/OpsWorks_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OpsWorks/OpsWorks_shapes.swift b/Sources/Soto/Services/OpsWorks/OpsWorks_shapes.swift index 7aaa63104fe..fa5679b34c2 100644 --- a/Sources/Soto/Services/OpsWorks/OpsWorks_shapes.swift +++ b/Sources/Soto/Services/OpsWorks/OpsWorks_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_api.swift b/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_api.swift index 1c7613e40ef..c723fdae64f 100644 --- a/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_api.swift +++ b/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_shapes.swift b/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_shapes.swift index 46b977c1ff7..03a916e3708 100644 --- a/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_shapes.swift +++ b/Sources/Soto/Services/OpsWorksCM/OpsWorksCM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Organizations/Organizations_api.swift b/Sources/Soto/Services/Organizations/Organizations_api.swift index 63b95c1ae0a..c4f03d64b9b 100644 --- a/Sources/Soto/Services/Organizations/Organizations_api.swift +++ b/Sources/Soto/Services/Organizations/Organizations_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Organizations/Organizations_shapes.swift b/Sources/Soto/Services/Organizations/Organizations_shapes.swift index 54388fea5df..346676240c9 100644 --- a/Sources/Soto/Services/Organizations/Organizations_shapes.swift +++ b/Sources/Soto/Services/Organizations/Organizations_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,11 @@ import Foundation extension Organizations { // MARK: Enums + public enum AccessDeniedForDependencyExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accessDeniedDuringCreateServiceLinkedRole = "ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE" + public var description: String { return self.rawValue } + } + public enum AccountJoinedMethod: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case created = "CREATED" case invited = "INVITED" @@ -53,6 +57,46 @@ extension Organizations { public var description: String { return self.rawValue } } + public enum ConstraintViolationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountCannotLeaveOrganization = "ACCOUNT_CANNOT_LEAVE_ORGANIZATION" + case accountCannotLeaveWithoutEula = "ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA" + case accountCannotLeaveWithoutPhoneVerification = "ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION" + case accountCreationNotComplete = "ACCOUNT_CREATION_NOT_COMPLETE" + case accountCreationRateLimitExceeded = "ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED" + case accountNumberLimitExceeded = "ACCOUNT_NUMBER_LIMIT_EXCEEDED" + case allFeaturesMigrationOrganizationSizeLimitExceeded = "ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED" + case cannotCloseManagementAccount = "CANNOT_CLOSE_MANAGEMENT_ACCOUNT" + case cannotRegisterMasterAsDelegatedAdministrator = "CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR" + case cannotRegisterSuspendedAccountAsDelegatedAdministrator = "CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR" + case cannotRemoveDelegatedAdministratorFromOrg = "CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG" + case closeAccountQuotaExceeded = "CLOSE_ACCOUNT_QUOTA_EXCEEDED" + case closeAccountRequestsLimitExceeded = "CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED" + case createOrganizationInBillingModeUnsupportedRegion = "CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION" + case delegatedAdministratorExistsForThisService = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE" + case emailVerificationCodeExpired = "EMAIL_VERIFICATION_CODE_EXPIRED" + case handshakeRateLimitExceeded = "HANDSHAKE_RATE_LIMIT_EXCEEDED" + case invalidPaymentInstrument = "INVALID_PAYMENT_INSTRUMENT" + case masterAccountAddressDoesNotMatchMarketplace = "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE" + case masterAccountMissingBusinessLicense = "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE" + case masterAccountMissingContactInfo = "MASTER_ACCOUNT_MISSING_CONTACT_INFO" + case masterAccountNotGovcloudEnabled = "MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED" + case masterAccountPaymentInstrumentRequired = "MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED" + case maxDelegatedAdministratorsForServiceLimitExceeded = "MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED" + case maxPolicyTypeAttachmentLimitExceeded = "MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED" + case maxTagLimitExceeded = "MAX_TAG_LIMIT_EXCEEDED" + case memberAccountPaymentInstrumentRequired = "MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED" + case minPolicyTypeAttachmentLimitExceeded = "MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED" + case organizationNotInAllFeaturesMode = "ORGANIZATION_NOT_IN_ALL_FEATURES_MODE" + case ouDepthLimitExceeded = "OU_DEPTH_LIMIT_EXCEEDED" + case ouNumberLimitExceeded = "OU_NUMBER_LIMIT_EXCEEDED" + case policyContentLimitExceeded = "POLICY_CONTENT_LIMIT_EXCEEDED" + case policyNumberLimitExceeded = "POLICY_NUMBER_LIMIT_EXCEEDED" + case serviceAccessNotEnabled = "SERVICE_ACCESS_NOT_ENABLED" + case tagPolicyViolation = "TAG_POLICY_VIOLATION" + case waitPeriodActive = "WAIT_PERIOD_ACTIVE" + public var description: String { return self.rawValue } + } + public enum CreateAccountFailureReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case accountLimitExceeded = "ACCOUNT_LIMIT_EXCEEDED" case concurrentAccountModification = "CONCURRENT_ACCOUNT_MODIFICATION" @@ -88,6 +132,20 @@ extension Organizations { public var description: String { return self.rawValue } } + public enum HandshakeConstraintViolationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountNumberLimitExceeded = "ACCOUNT_NUMBER_LIMIT_EXCEEDED" + case alreadyInAnOrganization = "ALREADY_IN_AN_ORGANIZATION" + case handshakeRateLimitExceeded = "HANDSHAKE_RATE_LIMIT_EXCEEDED" + case inviteDisabledDuringEnableAllFeatures = "INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES" + case managementAccountEmailNotVerified = "MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED" + case organizationAlreadyHasAllFeatures = "ORGANIZATION_ALREADY_HAS_ALL_FEATURES" + case organizationFromDifferentSellerOfRecord = "ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD" + case organizationIsAlreadyPendingAllFeaturesMigration = "ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION" + case organizationMembershipChangeRateLimitExceeded = "ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED" + case paymentInstrumentRequired = "PAYMENT_INSTRUMENT_REQUIRED" + public var description: String { return self.rawValue } + } + public enum HandshakePartyType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case account = "ACCOUNT" case email = "EMAIL" @@ -123,6 +181,40 @@ extension Organizations { public var description: String { return self.rawValue } } + public enum InvalidInputExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case duplicateTagKey = "DUPLICATE_TAG_KEY" + case immutablePolicy = "IMMUTABLE_POLICY" + case inputRequired = "INPUT_REQUIRED" + case invalidEmailAddressTarget = "INVALID_EMAIL_ADDRESS_TARGET" + case invalidEnum = "INVALID_ENUM" + case invalidEnumPolicyType = "INVALID_ENUM_POLICY_TYPE" + case invalidFullNameTarget = "INVALID_FULL_NAME_TARGET" + case invalidListMember = "INVALID_LIST_MEMBER" + case invalidPaginationToken = "INVALID_NEXT_TOKEN" + case invalidPartyTypeTarget = "INVALID_PARTY_TYPE_TARGET" + case invalidPattern = "INVALID_PATTERN" + case invalidPatternTargetId = "INVALID_PATTERN_TARGET_ID" + case invalidPrincipal = "INVALID_PRINCIPAL" + case invalidResourcePolicyJson = "INVALID_RESOURCE_POLICY_JSON" + case invalidRoleName = "INVALID_ROLE_NAME" + case invalidSyntaxOrganization = "INVALID_SYNTAX_ORGANIZATION_ARN" + case invalidSyntaxPolicy = "INVALID_SYNTAX_POLICY_ID" + case invalidSystemTagsParameter = "INVALID_SYSTEM_TAGS_PARAMETER" + case maxFilterLimitExceeded = "MAX_LIMIT_EXCEEDED_FILTER" + case maxLengthExceeded = "MAX_LENGTH_EXCEEDED" + case maxValueExceeded = "MAX_VALUE_EXCEEDED" + case minLengthExceeded = "MIN_LENGTH_EXCEEDED" + case minValueExceeded = "MIN_VALUE_EXCEEDED" + case movingAccountBetweenDifferentRoots = "MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS" + case nonDetachablePolicy = "NON_DETACHABLE_POLICY" + case targetNotSupported = "TARGET_NOT_SUPPORTED" + case unrecognizedServicePrincipal = "UNRECOGNIZED_SERVICE_PRINCIPAL" + case unsupportedActionInResourcePolicy = "UNSUPPORTED_ACTION_IN_RESOURCE_POLICY" + case unsupportedPolicyTypeInResourcePolicy = "UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY" + case unsupportedResourceInResourcePolicy = "UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY" + public var description: String { return self.rawValue } + } + public enum OrganizationFeatureSet: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case all = "ALL" case consolidatedBilling = "CONSOLIDATED_BILLING" @@ -195,6 +287,22 @@ extension Organizations { } } + public struct AccessDeniedForDependencyException: AWSErrorShape { + public let message: String? + public let reason: AccessDeniedForDependencyExceptionReason? + + @inlinable + public init(message: String? = nil, reason: AccessDeniedForDependencyExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct Account: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the account. For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference. public let arn: String? @@ -328,6 +436,22 @@ extension Organizations { } } + public struct ConstraintViolationException: AWSErrorShape { + public let message: String? + public let reason: ConstraintViolationExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ConstraintViolationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct CreateAccountRequest: AWSEncodableShape { /// The friendly name of the member account. public let accountName: String @@ -1247,6 +1371,22 @@ extension Organizations { } } + public struct HandshakeConstraintViolationException: AWSErrorShape { + public let message: String? + public let reason: HandshakeConstraintViolationExceptionReason? + + @inlinable + public init(message: String? = nil, reason: HandshakeConstraintViolationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct HandshakeFilter: AWSEncodableShape { /// Specifies the type of handshake action. If you specify ActionType, you cannot also specify ParentHandshakeId. public let actionType: ActionType? @@ -1316,6 +1456,22 @@ extension Organizations { } } + public struct InvalidInputException: AWSErrorShape { + public let message: String? + public let reason: InvalidInputExceptionReason? + + @inlinable + public init(message: String? = nil, reason: InvalidInputExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct InviteAccountToOrganizationRequest: AWSEncodableShape { /// Additional information that you want to include in the generated email to the recipient account owner. public let notes: String? @@ -2529,6 +2685,22 @@ extension Organizations { } } + public struct TooManyRequestsException: AWSErrorShape { + public let message: String? + public let type: String? + + @inlinable + public init(message: String? = nil, type: String? = nil) { + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case type = "Type" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ID of the resource to remove a tag from. You can specify any of the following taggable resources. Amazon Web Services account – specify the account ID number. Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz Root – specify the root ID that begins with r- and looks similar to: r-1a2b Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3 public let resourceId: String @@ -2818,6 +2990,16 @@ public struct OrganizationsErrorType: AWSErrorType { public static var unsupportedAPIEndpointException: Self { .init(.unsupportedAPIEndpointException) } } +extension OrganizationsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedForDependencyException": Organizations.AccessDeniedForDependencyException.self, + "ConstraintViolationException": Organizations.ConstraintViolationException.self, + "HandshakeConstraintViolationException": Organizations.HandshakeConstraintViolationException.self, + "InvalidInputException": Organizations.InvalidInputException.self, + "TooManyRequestsException": Organizations.TooManyRequestsException.self + ] +} + extension OrganizationsErrorType: Equatable { public static func == (lhs: OrganizationsErrorType, rhs: OrganizationsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Outposts/Outposts_api.swift b/Sources/Soto/Services/Outposts/Outposts_api.swift index 450bb349f4c..f0e4f17b6e7 100644 --- a/Sources/Soto/Services/Outposts/Outposts_api.swift +++ b/Sources/Soto/Services/Outposts/Outposts_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Outposts/Outposts_shapes.swift b/Sources/Soto/Services/Outposts/Outposts_shapes.swift index 0e842ffddd4..a1a036a83a3 100644 --- a/Sources/Soto/Services/Outposts/Outposts_shapes.swift +++ b/Sources/Soto/Services/Outposts/Outposts_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -202,6 +201,12 @@ extension Outposts { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case order = "ORDER" + case outpost = "OUTPOST" + public var description: String { return self.rawValue } + } + public enum ShipmentCarrier: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case dbs = "DBS" case dhl = "DHL" @@ -639,6 +644,27 @@ extension Outposts { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The ID of the resource causing the conflict. + public let resourceId: String? + /// The type of the resource causing the conflict. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ConnectionDetails: AWSDecodableShape { /// The allowed IP addresses. public let allowedIps: [String]? @@ -2917,6 +2943,12 @@ public struct OutpostsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension OutpostsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Outposts.ConflictException.self + ] +} + extension OutpostsErrorType: Equatable { public static func == (lhs: OutpostsErrorType, rhs: OutpostsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PCS/PCS_api.swift b/Sources/Soto/Services/PCS/PCS_api.swift index 92b3cce5b81..30e1d42b425 100644 --- a/Sources/Soto/Services/PCS/PCS_api.swift +++ b/Sources/Soto/Services/PCS/PCS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PCS/PCS_shapes.swift b/Sources/Soto/Services/PCS/PCS_shapes.swift index d378e277486..31820dfd9d5 100644 --- a/Sources/Soto/Services/PCS/PCS_shapes.swift +++ b/Sources/Soto/Services/PCS/PCS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -91,6 +90,14 @@ extension PCS { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct Cluster: AWSDecodableShape { @@ -377,6 +384,27 @@ extension PCS { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The unique identifier of the resource that caused the conflict exception. + public let resourceId: String + /// The type or category of the resource that caused the conflict exception." + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateClusterRequest: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you. public let clientToken: String? @@ -1217,6 +1245,27 @@ extension PCS { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The unique identifier of the resource that was not found. + public let resourceId: String + /// The type or category of the resource that was not found. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ScalingConfiguration: AWSDecodableShape { /// The upper bound of the number of instances allowed in the compute fleet. public let maxInstanceCount: Int @@ -1289,6 +1338,35 @@ extension PCS { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota code of the service quota that was exceeded. + public let quotaCode: String? + /// The unique identifier of the resource that caused the quota to be exceeded. + public let resourceId: String? + /// The type or category of the resource that caused the quota to be exceeded. + public let resourceType: String? + /// The service code associated with the quota that was exceeded. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SlurmAuthKey: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the the shared Slurm key. public let secretArn: String @@ -1370,6 +1448,29 @@ extension PCS { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -1539,6 +1640,45 @@ extension PCS { case queue = "queue" } } + + public struct ValidationException: AWSErrorShape { + /// A list of fields or properties that failed validation. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The specific reason or cause of the validation error. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message body of the exception. + public let message: String + /// The name of the exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -1589,6 +1729,16 @@ public struct PCSErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PCSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": PCS.ConflictException.self, + "ResourceNotFoundException": PCS.ResourceNotFoundException.self, + "ServiceQuotaExceededException": PCS.ServiceQuotaExceededException.self, + "ThrottlingException": PCS.ThrottlingException.self, + "ValidationException": PCS.ValidationException.self + ] +} + extension PCSErrorType: Equatable { public static func == (lhs: PCSErrorType, rhs: PCSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PI/PI_api.swift b/Sources/Soto/Services/PI/PI_api.swift index 2a11227ffcf..91a1b49914a 100644 --- a/Sources/Soto/Services/PI/PI_api.swift +++ b/Sources/Soto/Services/PI/PI_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PI/PI_shapes.swift b/Sources/Soto/Services/PI/PI_shapes.swift index bf5600036ea..9b14fd148b1 100644 --- a/Sources/Soto/Services/PI/PI_shapes.swift +++ b/Sources/Soto/Services/PI/PI_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Panorama/Panorama_api.swift b/Sources/Soto/Services/Panorama/Panorama_api.swift index 3812b98f39c..4fd0fa67f36 100644 --- a/Sources/Soto/Services/Panorama/Panorama_api.swift +++ b/Sources/Soto/Services/Panorama/Panorama_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Panorama/Panorama_shapes.swift b/Sources/Soto/Services/Panorama/Panorama_shapes.swift index 0858be18f1b..d4123176ab9 100644 --- a/Sources/Soto/Services/Panorama/Panorama_shapes.swift +++ b/Sources/Soto/Services/Panorama/Panorama_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -239,6 +238,14 @@ extension Panorama { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AlternateSoftwareMetadata: AWSDecodableShape { @@ -313,6 +320,53 @@ extension Panorama { } } + public struct ConflictException: AWSErrorShape { + /// A list of attributes that led to the exception and their values. + public let errorArguments: [ConflictExceptionErrorArgument]? + /// A unique ID for the error. + public let errorId: String? + public let message: String + /// The resource's ID. + public let resourceId: String + /// The resource's type. + public let resourceType: String + + @inlinable + public init(errorArguments: [ConflictExceptionErrorArgument]? = nil, errorId: String? = nil, message: String, resourceId: String, resourceType: String) { + self.errorArguments = errorArguments + self.errorId = errorId + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case errorArguments = "ErrorArguments" + case errorId = "ErrorId" + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + + public struct ConflictExceptionErrorArgument: AWSDecodableShape { + /// The error argument's name. + public let name: String + /// The error argument's value. + public let value: String + + @inlinable + public init(name: String, value: String) { + self.name = name + self.value = value + } + + private enum CodingKeys: String, CodingKey { + case name = "Name" + case value = "Value" + } + } + public struct CreateApplicationInstanceRequest: AWSEncodableShape { /// The ID of an application instance to replace with the new instance. public let applicationInstanceIdToReplace: String? @@ -1671,6 +1725,29 @@ extension Panorama { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds a client should wait before retrying the call. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct Job: AWSDecodableShape { /// The target device's ID. public let deviceId: String? @@ -3031,6 +3108,27 @@ extension Panorama { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The resource's ID. + public let resourceId: String + /// The resource's type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct S3Location: AWSEncodableShape & AWSDecodableShape { /// A bucket name. public let bucketName: String @@ -3065,6 +3163,35 @@ extension Panorama { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The name of the limit. + public let quotaCode: String + /// The target resource's ID. + public let resourceId: String? + /// The target resource's type. + public let resourceType: String? + /// The name of the service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct SignalApplicationInstanceNodeInstancesRequest: AWSEncodableShape { /// An application instance ID. public let applicationInstanceId: String @@ -3313,6 +3440,71 @@ extension Panorama { } } + public struct ValidationException: AWSErrorShape { + /// A list of attributes that led to the exception and their values. + public let errorArguments: [ValidationExceptionErrorArgument]? + /// A unique ID for the error. + public let errorId: String? + /// A list of request parameters that failed validation. + public let fields: [ValidationExceptionField]? + public let message: String + /// The reason that validation failed. + public let reason: ValidationExceptionReason? + + @inlinable + public init(errorArguments: [ValidationExceptionErrorArgument]? = nil, errorId: String? = nil, fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.errorArguments = errorArguments + self.errorId = errorId + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case errorArguments = "ErrorArguments" + case errorId = "ErrorId" + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionErrorArgument: AWSDecodableShape { + /// The argument's name. + public let name: String + /// The argument's value. + public let value: String + + @inlinable + public init(name: String, value: String) { + self.name = name + self.value = value + } + + private enum CodingKeys: String, CodingKey { + case name = "Name" + case value = "Value" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The field's message. + public let message: String + /// The field's name. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } + public struct ManifestOverridesPayload: AWSEncodableShape & AWSDecodableShape { /// The overrides document. public let payloadData: String? @@ -3398,6 +3590,16 @@ public struct PanoramaErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PanoramaErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Panorama.ConflictException.self, + "InternalServerException": Panorama.InternalServerException.self, + "ResourceNotFoundException": Panorama.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Panorama.ServiceQuotaExceededException.self, + "ValidationException": Panorama.ValidationException.self + ] +} + extension PanoramaErrorType: Equatable { public static func == (lhs: PanoramaErrorType, rhs: PanoramaErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_api.swift b/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_api.swift index 90052d64185..84875fc6a27 100644 --- a/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_api.swift +++ b/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_shapes.swift b/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_shapes.swift index 483c605896e..bfdf9feb1fe 100644 --- a/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_shapes.swift +++ b/Sources/Soto/Services/PartnerCentralSelling/PartnerCentralSelling_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -882,6 +881,25 @@ extension PartnerCentralSelling { public var description: String { return self.rawValue } } + public enum ValidationExceptionErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case actionNotPermitted = "ACTION_NOT_PERMITTED" + case duplicateKeyValue = "DUPLICATE_KEY_VALUE" + case invalidEnumValue = "INVALID_ENUM_VALUE" + case invalidResourceState = "INVALID_RESOURCE_STATE" + case invalidStringFormat = "INVALID_STRING_FORMAT" + case invalidValue = "INVALID_VALUE" + case requiredFieldMissing = "REQUIRED_FIELD_MISSING" + case tooManyValues = "TOO_MANY_VALUES" + case valueOutOfRange = "VALUE_OUT_OF_RANGE" + public var description: String { return self.rawValue } + } + + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case businessValidationFailed = "BUSINESS_VALIDATION_FAILED" + case requestValidationFailed = "REQUEST_VALIDATION_FAILED" + public var description: String { return self.rawValue } + } + public enum Visibility: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case full = "Full" case limited = "Limited" @@ -4807,6 +4825,49 @@ extension PartnerCentralSelling { } } + public struct ValidationException: AWSErrorShape { + /// A list of issues that were discovered in the submitted request or the resource state. + public let errorList: [ValidationExceptionError]? + public let message: String + /// The primary reason for this validation exception to occur. REQUEST_VALIDATION_FAILED: The request format is not valid. Fix: Verify your request payload includes all required fields, uses correct data types and string formats. BUSINESS_VALIDATION_FAILED: The requested change doesn't pass the business validation rules. Fix: Check that your change aligns with the business rules defined by AWS Partner Central. + public let reason: ValidationExceptionReason + + @inlinable + public init(errorList: [ValidationExceptionError]? = nil, message: String, reason: ValidationExceptionReason) { + self.errorList = errorList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case errorList = "ErrorList" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionError: AWSDecodableShape { + /// Specifies the error code for the invalid field value. + public let code: ValidationExceptionErrorCode + /// Specifies the field name with the invalid value. + public let fieldName: String? + /// Specifies the detailed error message for the invalid field value. + public let message: String + + @inlinable + public init(code: ValidationExceptionErrorCode, fieldName: String? = nil, message: String) { + self.code = code + self.fieldName = fieldName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case fieldName = "FieldName" + case message = "Message" + } + } + public struct EngagementContextPayload: AWSEncodableShape & AWSDecodableShape { /// Contains detailed information about a customer project when the context type is "CustomerProject". This field is present only when the Type in EngagementContextDetails is set to "CustomerProject". public let customerProject: CustomerProjectsContext? @@ -4924,6 +4985,12 @@ public struct PartnerCentralSellingErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PartnerCentralSellingErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": PartnerCentralSelling.ValidationException.self + ] +} + extension PartnerCentralSellingErrorType: Equatable { public static func == (lhs: PartnerCentralSellingErrorType, rhs: PartnerCentralSellingErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_api.swift b/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_api.swift index d628890cd83..f0c9eee264a 100644 --- a/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_api.swift +++ b/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_shapes.swift b/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_shapes.swift index ba366b25da3..e499a81facc 100644 --- a/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_shapes.swift +++ b/Sources/Soto/Services/PaymentCryptography/PaymentCryptography_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1300,6 +1299,20 @@ extension PaymentCryptography { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The string for the exception. + public let resourceId: String? + + @inlinable + public init(resourceId: String? = nil) { + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case resourceId = "ResourceId" + } + } + public struct RestoreKeyInput: AWSEncodableShape { /// The KeyARN of the key to be restored within Amazon Web Services Payment Cryptography. public let keyIdentifier: String @@ -1670,6 +1683,12 @@ public struct PaymentCryptographyErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PaymentCryptographyErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": PaymentCryptography.ResourceNotFoundException.self + ] +} + extension PaymentCryptographyErrorType: Equatable { public static func == (lhs: PaymentCryptographyErrorType, rhs: PaymentCryptographyErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_api.swift b/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_api.swift index 9c0bfb64cf1..013df0d444d 100644 --- a/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_api.swift +++ b/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_shapes.swift b/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_shapes.swift index ecaa193d2a6..80091f1b816 100644 --- a/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_shapes.swift +++ b/Sources/Soto/Services/PaymentCryptographyData/PaymentCryptographyData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -160,6 +159,14 @@ extension PaymentCryptographyData { public var description: String { return self.rawValue } } + public enum VerificationFailedReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidAuthRequestCryptogram = "INVALID_AUTH_REQUEST_CRYPTOGRAM" + case invalidMac = "INVALID_MAC" + case invalidPin = "INVALID_PIN" + case invalidValidationData = "INVALID_VALIDATION_DATA" + public var description: String { return self.rawValue } + } + public enum CardGenerationAttributes: AWSEncodableShape, Sendable { case amexCardSecurityCodeVersion1(AmexCardSecurityCodeVersion1) /// Card data parameters that are required to generate a Card Security Code (CSC2) for an AMEX payment card. @@ -2277,6 +2284,20 @@ extension PaymentCryptographyData { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The resource that is missing. + public let resourceId: String? + + @inlinable + public init(resourceId: String? = nil) { + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case resourceId = "ResourceId" + } + } + public struct SessionKeyAmex: AWSEncodableShape { /// A number that identifies and differentiates payment cards with the same Primary Account Number (PAN). public let panSequenceNumber: String @@ -2578,6 +2599,58 @@ extension PaymentCryptographyData { public init() {} } + public struct ValidationException: AWSErrorShape { + /// The request was denied due to an invalid request error. + public let fieldList: [ValidationExceptionField]? + public let message: String + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String) { + self.fieldList = fieldList + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The request was denied due to an invalid request error. + public let message: String + /// The request was denied due to an invalid request error. + public let path: String + + @inlinable + public init(message: String, path: String) { + self.message = message + self.path = path + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case path = "path" + } + } + + public struct VerificationFailedException: AWSErrorShape { + public let message: String + /// The reason for the exception. + public let reason: VerificationFailedReason + + @inlinable + public init(message: String, reason: VerificationFailedReason) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct VerifyAuthRequestCryptogramInput: AWSEncodableShape { /// The auth request cryptogram imported into Amazon Web Services Payment Cryptography for ARQC verification using a major encryption key and transaction data. public let authRequestCryptogram: String @@ -3074,6 +3147,14 @@ public struct PaymentCryptographyDataErrorType: AWSErrorType { public static var verificationFailedException: Self { .init(.verificationFailedException) } } +extension PaymentCryptographyDataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": PaymentCryptographyData.ResourceNotFoundException.self, + "ValidationException": PaymentCryptographyData.ValidationException.self, + "VerificationFailedException": PaymentCryptographyData.VerificationFailedException.self + ] +} + extension PaymentCryptographyDataErrorType: Equatable { public static func == (lhs: PaymentCryptographyDataErrorType, rhs: PaymentCryptographyDataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_api.swift b/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_api.swift index 0423efa811b..ca49677d481 100644 --- a/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_api.swift +++ b/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_shapes.swift b/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_shapes.swift index 936587444be..16d5bfafee3 100644 --- a/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_shapes.swift +++ b/Sources/Soto/Services/PcaConnectorAd/PcaConnectorAd_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -226,6 +225,19 @@ extension PcaConnectorAd { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case invalidCaSubject = "INVALID_CA_SUBJECT" + case invalidPermission = "INVALID_PERMISSION" + case invalidState = "INVALID_STATE" + case mismatchedConnector = "MISMATCHED_CONNECTOR" + case mismatchedVpc = "MISMATCHED_VPC" + case noClientToken = "NO_CLIENT_TOKEN" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum ValidityPeriodType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case days = "DAYS" case hours = "HOURS" @@ -520,6 +532,27 @@ extension PcaConnectorAd { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The identifier of the Amazon Web Services resource. + public let resourceId: String + /// The resource type, which can be one of Connector, Template, TemplateGroupAccessControlEntry, ServicePrincipalName, or DirectoryRegistration. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct Connector: AWSDecodableShape { /// The Amazon Resource Name (ARN) that was returned when you called CreateConnector. public let arn: String? @@ -2018,6 +2051,27 @@ extension PcaConnectorAd { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier of the Amazon Web Services resource. + public let resourceId: String + /// The resource type, which can be one of Connector, Template, TemplateGroupAccessControlEntry, ServicePrincipalName, or DirectoryRegistration. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ServicePrincipalName: AWSDecodableShape { /// The Amazon Resource Name (ARN) that was returned when you called CreateConnector.html. public let connectorArn: String? @@ -2086,6 +2140,35 @@ extension PcaConnectorAd { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code associated with the service quota. + public let quotaCode: String + /// The identifier of the Amazon Web Services resource. + public let resourceId: String + /// The resource type, which can be one of Connector, Template, TemplateGroupAccessControlEntry, ServicePrincipalName, or DirectoryRegistration. + public let resourceType: String + /// Identifies the originating service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct SubjectNameFlagsV2: AWSEncodableShape & AWSDecodableShape { /// Include the common name in the subject name. public let requireCommonName: Bool? @@ -2548,6 +2631,27 @@ extension PcaConnectorAd { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The code associated with the quota. + public let quotaCode: String? + /// Identifies the originating service. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) that was returned when you created the resource. public let resourceArn: String @@ -2650,6 +2754,23 @@ extension PcaConnectorAd { } } + public struct ValidationException: AWSErrorShape { + public let message: String + /// The reason for the validation error. This won't be return for every validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct ValidityPeriod: AWSEncodableShape & AWSDecodableShape { /// The numeric value for the validity period. public let period: Int64 @@ -2745,6 +2866,16 @@ public struct PcaConnectorAdErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PcaConnectorAdErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": PcaConnectorAd.ConflictException.self, + "ResourceNotFoundException": PcaConnectorAd.ResourceNotFoundException.self, + "ServiceQuotaExceededException": PcaConnectorAd.ServiceQuotaExceededException.self, + "ThrottlingException": PcaConnectorAd.ThrottlingException.self, + "ValidationException": PcaConnectorAd.ValidationException.self + ] +} + extension PcaConnectorAdErrorType: Equatable { public static func == (lhs: PcaConnectorAdErrorType, rhs: PcaConnectorAdErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_api.swift b/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_api.swift index 210d1cd629d..9573f291933 100644 --- a/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_api.swift +++ b/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_shapes.swift b/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_shapes.swift index 6b8cb5dd8ee..d3b91677987 100644 --- a/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_shapes.swift +++ b/Sources/Soto/Services/PcaConnectorScep/PcaConnectorScep_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -48,6 +47,17 @@ extension PcaConnectorScep { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case caCertValidityTooShort = "CA_CERT_VALIDITY_TOO_SHORT" + case invalidCaUsageMode = "INVALID_CA_USAGE_MODE" + case invalidConnectorType = "INVALID_CONNECTOR_TYPE" + case invalidState = "INVALID_STATE" + case noClientToken = "NO_CLIENT_TOKEN" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct Challenge: AWSDecodableShape { @@ -132,6 +142,27 @@ extension PcaConnectorScep { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The identifier of the Amazon Web Services resource. + public let resourceId: String + /// The resource type, which can be either Connector or Challenge. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct Connector: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the connector. public let arn: String? @@ -673,6 +704,52 @@ extension PcaConnectorScep { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier of the Amazon Web Services resource. + public let resourceId: String + /// The resource type, which can be either Connector or Challenge. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota identifier. + public let quotaCode: String + /// The resource type, which can be either Connector or Challenge. + public let resourceType: String + /// Identifies the originating service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct TagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -719,6 +796,23 @@ extension PcaConnectorScep { private enum CodingKeys: CodingKey {} } + public struct ValidationException: AWSErrorShape { + public let message: String + /// The reason for the validation error, if available. The service doesn't return a reason for every validation exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct MobileDeviceManagement: AWSEncodableShape & AWSDecodableShape { /// Configuration settings for use with Microsoft Intune. For information about using Connector for SCEP for Microsoft Intune, see Using Connector for SCEP for Microsoft Intune. public let intune: IntuneConfiguration? @@ -789,6 +883,15 @@ public struct PcaConnectorScepErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PcaConnectorScepErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": PcaConnectorScep.ConflictException.self, + "ResourceNotFoundException": PcaConnectorScep.ResourceNotFoundException.self, + "ServiceQuotaExceededException": PcaConnectorScep.ServiceQuotaExceededException.self, + "ValidationException": PcaConnectorScep.ValidationException.self + ] +} + extension PcaConnectorScepErrorType: Equatable { public static func == (lhs: PcaConnectorScepErrorType, rhs: PcaConnectorScepErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Personalize/Personalize_api.swift b/Sources/Soto/Services/Personalize/Personalize_api.swift index 0691f9ebff4..1047b87c3dd 100644 --- a/Sources/Soto/Services/Personalize/Personalize_api.swift +++ b/Sources/Soto/Services/Personalize/Personalize_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Personalize/Personalize_shapes.swift b/Sources/Soto/Services/Personalize/Personalize_shapes.swift index 1bd90a482e9..417b8cab546 100644 --- a/Sources/Soto/Services/Personalize/Personalize_shapes.swift +++ b/Sources/Soto/Services/Personalize/Personalize_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_api.swift b/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_api.swift index 012d3fefe86..0f822a375a0 100644 --- a/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_api.swift +++ b/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_shapes.swift b/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_shapes.swift index 568dcdaf9ad..31f0b4fb878 100644 --- a/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_shapes.swift +++ b/Sources/Soto/Services/PersonalizeEvents/PersonalizeEvents_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_api.swift b/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_api.swift index 0b60197bbc4..f5fc5757bbd 100644 --- a/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_api.swift +++ b/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_shapes.swift b/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_shapes.swift index 78673529a05..45ab68a295a 100644 --- a/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_shapes.swift +++ b/Sources/Soto/Services/PersonalizeRuntime/PersonalizeRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Pinpoint/Pinpoint_api.swift b/Sources/Soto/Services/Pinpoint/Pinpoint_api.swift index 8bc157e4f55..dac735117a0 100644 --- a/Sources/Soto/Services/Pinpoint/Pinpoint_api.swift +++ b/Sources/Soto/Services/Pinpoint/Pinpoint_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Pinpoint/Pinpoint_shapes.swift b/Sources/Soto/Services/Pinpoint/Pinpoint_shapes.swift index a978e829935..28fccd77918 100644 --- a/Sources/Soto/Services/Pinpoint/Pinpoint_shapes.swift +++ b/Sources/Soto/Services/Pinpoint/Pinpoint_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1335,6 +1334,24 @@ extension Pinpoint { } } + public struct BadRequestException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct BaiduChannelRequest: AWSEncodableShape { /// The API key that you received from the Baidu Cloud Push service to communicate with the service. public let apiKey: String? @@ -2003,6 +2020,24 @@ extension Pinpoint { } } + public struct ConflictException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct ContactCenterActivity: AWSEncodableShape & AWSDecodableShape { /// The unique identifier for the next activity to perform after the this activity. public let nextActivity: String? @@ -4597,6 +4632,24 @@ extension Pinpoint { } } + public struct ForbiddenException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct GCMChannelRequest: AWSEncodableShape { /// The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services. public let apiKey: String? @@ -7257,6 +7310,24 @@ extension Pinpoint { } } + public struct InternalServerErrorException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct ItemResponse: AWSDecodableShape { /// The response that was received after the endpoint data was accepted. public let endpointItemResponse: EndpointItemResponse? @@ -8199,6 +8270,24 @@ extension Pinpoint { } } + public struct MethodNotAllowedException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct MetricDimension: AWSEncodableShape & AWSDecodableShape { /// The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL. public let comparisonOperator: String? @@ -8257,6 +8346,24 @@ extension Pinpoint { } } + public struct NotFoundException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct NumberValidateRequest: AWSEncodableShape { /// The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered. public let isoCountryCode: String? @@ -8407,6 +8514,24 @@ extension Pinpoint { } } + public struct PayloadTooLargeException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct PhoneNumberValidateRequest: AWSEncodableShape { public let numberValidateRequest: NumberValidateRequest? @@ -10093,6 +10218,24 @@ extension Pinpoint { } } + public struct TooManyRequestsException: AWSErrorShape { + /// The message that's returned from the API. + public let message: String? + /// The unique identifier for the request or response. + public let requestID: String? + + @inlinable + public init(message: String? = nil, requestID: String? = nil) { + self.message = message + self.requestID = requestID + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestID = "RequestID" + } + } + public struct TreatmentResource: AWSDecodableShape { /// The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object. public let customDeliveryConfiguration: CustomDeliveryConfiguration? @@ -11799,6 +11942,19 @@ public struct PinpointErrorType: AWSErrorType { public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) } } +extension PinpointErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": Pinpoint.BadRequestException.self, + "ConflictException": Pinpoint.ConflictException.self, + "ForbiddenException": Pinpoint.ForbiddenException.self, + "InternalServerErrorException": Pinpoint.InternalServerErrorException.self, + "MethodNotAllowedException": Pinpoint.MethodNotAllowedException.self, + "NotFoundException": Pinpoint.NotFoundException.self, + "PayloadTooLargeException": Pinpoint.PayloadTooLargeException.self, + "TooManyRequestsException": Pinpoint.TooManyRequestsException.self + ] +} + extension PinpointErrorType: Equatable { public static func == (lhs: PinpointErrorType, rhs: PinpointErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/PinpointEmail/PinpointEmail_api.swift b/Sources/Soto/Services/PinpointEmail/PinpointEmail_api.swift index 0e4e5551d6b..f772cdd3fc7 100644 --- a/Sources/Soto/Services/PinpointEmail/PinpointEmail_api.swift +++ b/Sources/Soto/Services/PinpointEmail/PinpointEmail_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PinpointEmail/PinpointEmail_shapes.swift b/Sources/Soto/Services/PinpointEmail/PinpointEmail_shapes.swift index 1703e07610e..1fb920b5241 100644 --- a/Sources/Soto/Services/PinpointEmail/PinpointEmail_shapes.swift +++ b/Sources/Soto/Services/PinpointEmail/PinpointEmail_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_api.swift b/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_api.swift index 3b4d3817837..e3a7b072bfc 100644 --- a/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_api.swift +++ b/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_shapes.swift b/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_shapes.swift index 88ae7b033e7..2371b469d25 100644 --- a/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_shapes.swift +++ b/Sources/Soto/Services/PinpointSMSVoice/PinpointSMSVoice_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_api.swift b/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_api.swift index d88a29882a8..0e28d4a5d0f 100644 --- a/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_api.swift +++ b/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_shapes.swift b/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_shapes.swift index c8f441798bb..fe8200c631f 100644 --- a/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_shapes.swift +++ b/Sources/Soto/Services/PinpointSMSVoiceV2/PinpointSMSVoiceV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,12 @@ import Foundation extension PinpointSMSVoiceV2 { // MARK: Enums + public enum AccessDeniedExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountDisabled = "ACCOUNT_DISABLED" + case insufficientAccountReputation = "INSUFFICIENT_ACCOUNT_REPUTATION" + public var description: String { return self.rawValue } + } + public enum AccountAttributeName: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case accountTier = "ACCOUNT_TIER" case defaultProtectConfigurationId = "DEFAULT_PROTECT_CONFIGURATION_ID" @@ -67,6 +72,46 @@ extension PinpointSMSVoiceV2 { public var description: String { return self.rawValue } } + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case createRegistrationVersionNotAllowed = "CREATE_REGISTRATION_VERSION_NOT_ALLOWED" + case deletionProtectionEnabled = "DELETION_PROTECTION_ENABLED" + case destinationCountryBlockedByProtectConfiguration = "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION" + case destinationPhoneNumberBlockedByProtectNumberOverride = "DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE" + case destinationPhoneNumberNotVerified = "DESTINATION_PHONE_NUMBER_NOT_VERIFIED" + case destinationPhoneNumberOptedOut = "DESTINATION_PHONE_NUMBER_OPTED_OUT" + case disassociateRegistrationNotAllowed = "DISASSOCIATE_REGISTRATION_NOT_ALLOWED" + case discardRegistrationVersionNotAllowed = "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED" + case editRegistrationFieldValuesNotAllowed = "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED" + case eventDestinationMismatch = "EVENT_DESTINATION_MISMATCH" + case keywordMismatch = "KEYWORD_MISMATCH" + case lastPhoneNumber = "LAST_PHONE_NUMBER" + case messageTypeMismatch = "MESSAGE_TYPE_MISMATCH" + case noOriginationIdentitiesFound = "NO_ORIGINATION_IDENTITIES_FOUND" + case numberCapabilitiesMismatch = "NUMBER_CAPABILITIES_MISMATCH" + case optOutListMismatch = "OPT_OUT_LIST_MISMATCH" + case phoneNumberAssociatedToPool = "PHONE_NUMBER_ASSOCIATED_TO_POOL" + case phoneNumberAssociatedToRegistration = "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION" + case phoneNumberNotAssociatedToPool = "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL" + case phoneNumberNotInRegistrationRegion = "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION" + case protectConfigurationAssociatedWithConfigurationSet = "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET" + case protectConfigurationIsAccountDefault = "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT" + case protectConfigurationNotAssociatedWithConfigurationSet = "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET" + case registrationAlreadySubmitted = "REGISTRATION_ALREADY_SUBMITTED" + case registrationNotComplete = "REGISTRATION_NOT_COMPLETE" + case resourceAlreadyExists = "RESOURCE_ALREADY_EXISTS" + case resourceDeletionNotAllowed = "RESOURCE_DELETION_NOT_ALLOWED" + case resourceModificationNotAllowed = "RESOURCE_MODIFICATION_NOT_ALLOWED" + case resourceNotActive = "RESOURCE_NOT_ACTIVE" + case resourceNotEmpty = "RESOURCE_NOT_EMPTY" + case selfManagedOptOutsMismatch = "SELF_MANAGED_OPT_OUTS_MISMATCH" + case senderIdAssociatedToPool = "SENDER_ID_ASSOCIATED_TO_POOL" + case submitRegistrationVersionNotAllowed = "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED" + case twoWayConfigMismatch = "TWO_WAY_CONFIG_MISMATCH" + case verificationAlreadyComplete = "VERIFICATION_ALREADY_COMPLETE" + case verificationCodeExpired = "VERIFICATION_CODE_EXPIRED" + public var description: String { return self.rawValue } + } + public enum DestinationCountryParameterKey: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case inEntityId = "IN_ENTITY_ID" case inTemplateId = "IN_TEMPLATE_ID" @@ -355,6 +400,25 @@ extension PinpointSMSVoiceV2 { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case account = "account" + case configurationSet = "configuration-set" + case eventDestination = "event-destination" + case keyword = "keyword" + case message = "message" + case optOutList = "opt-out-list" + case optedOutNumber = "opted-out-number" + case phoneNumber = "phone-number" + case policy = "policy" + case pool = "pool" + case protectConfiguration = "protect-configuration" + case registration = "registration" + case registrationAttachment = "registration-attachment" + case senderId = "sender-id" + case verifiedDestinationNumber = "verified-destination-number" + public var description: String { return self.rawValue } + } + public enum SenderIdFilterName: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case deletionProtectionEnabled = "deletion-protection-enabled" case isoCountryCode = "iso-country-code" @@ -364,6 +428,33 @@ extension PinpointSMSVoiceV2 { public var description: String { return self.rawValue } } + public enum ServiceQuotaExceededExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case associationsPerRegistration = "ASSOCIATIONS_PER_REGISTRATION" + case configurationSetsPerAccount = "CONFIGURATION_SETS_PER_ACCOUNT" + case dailyDestinationCallLimit = "DAILY_DESTINATION_CALL_LIMIT" + case eventDestinationsPerConfigurationSet = "EVENT_DESTINATIONS_PER_CONFIGURATION_SET" + case keywordsPerPhoneNumber = "KEYWORDS_PER_PHONE_NUMBER" + case keywordsPerPool = "KEYWORDS_PER_POOL" + case monthlySpendLimitReachedForMedia = "MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA" + case monthlySpendLimitReachedForText = "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT" + case monthlySpendLimitReachedForVoice = "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE" + case optOutListsPerAccount = "OPT_OUT_LISTS_PER_ACCOUNT" + case originationIdentitiesPerPool = "ORIGINATION_IDENTITIES_PER_POOL" + case phoneNumbersPerAccount = "PHONE_NUMBERS_PER_ACCOUNT" + case phoneNumbersPerRegistration = "PHONE_NUMBERS_PER_REGISTRATION" + case poolsPerAccount = "POOLS_PER_ACCOUNT" + case protectConfigurationsPerAccount = "PROTECT_CONFIGURATIONS_PER_ACCOUNT" + case registrationsPerAccount = "REGISTRATIONS_PER_ACCOUNT" + case registrationAttachmentsCreatedPerDay = "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY" + case registrationAttachmentsPerAccount = "REGISTRATION_ATTACHMENTS_PER_ACCOUNT" + case registrationVersionsCreatedPerDay = "REGISTRATION_VERSIONS_CREATED_PER_DAY" + case senderIdsPerAccount = "SENDER_IDS_PER_ACCOUNT" + case tagsPerResource = "TAGS_PER_RESOURCE" + case verificationAttemptsPerDay = "VERIFICATION_ATTEMPTS_PER_DAY" + case verifiedDestinationNumbersPerAccount = "VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT" + public var description: String { return self.rawValue } + } + public enum SpendLimitName: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case mediaMessageMonthlySpendLimit = "MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT" case textMessageMonthlySpendLimit = "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT" @@ -371,6 +462,50 @@ extension PinpointSMSVoiceV2 { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case attachmentTypeNotSupported = "ATTACHMENT_TYPE_NOT_SUPPORTED" + case cannotAddOptedOutNumber = "CANNOT_ADD_OPTED_OUT_NUMBER" + case cannotParse = "CANNOT_PARSE" + case countryCodeMismatch = "COUNTRY_CODE_MISMATCH" + case destinationCountryBlocked = "DESTINATION_COUNTRY_BLOCKED" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case invalidArn = "INVALID_ARN" + case invalidFilterValues = "INVALID_FILTER_VALUES" + case invalidIdentityForDestinationCountry = "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY" + case invalidNextToken = "INVALID_NEXT_TOKEN" + case invalidParameter = "INVALID_PARAMETER" + case invalidRegistrationAssociation = "INVALID_REGISTRATION_ASSOCIATION" + case invalidRequest = "INVALID_REQUEST" + case maximumSizeExceeded = "MAXIMUM_SIZE_EXCEEDED" + case mediaTypeNotSupported = "MEDIA_TYPE_NOT_SUPPORTED" + case missingParameter = "MISSING_PARAMETER" + case other = "OTHER" + case parametersCannotBeUsedTogether = "PARAMETERS_CANNOT_BE_USED_TOGETHER" + case phoneNumberCannotBeOptedIn = "PHONE_NUMBER_CANNOT_BE_OPTED_IN" + case phoneNumberCannotBeReleased = "PHONE_NUMBER_CANNOT_BE_RELEASED" + case priceOverThreshold = "PRICE_OVER_THRESHOLD" + case registrationFieldCannotBeDeleted = "REGISTRATION_FIELD_CANNOT_BE_DELETED" + case requestedSpendLimitHigherThanServiceLimit = "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT" + case resourceNotAccessible = "RESOURCE_NOT_ACCESSIBLE" + case senderIdNotRegistered = "SENDER_ID_NOT_REGISTERED" + case senderIdNotSupported = "SENDER_ID_NOT_SUPPORTED" + case senderIdRequiresRegistration = "SENDER_ID_REQUIRES_REGISTRATION" + case twoWayChannelNotPresent = "TWO_WAY_CHANNEL_NOT_PRESENT" + case twoWayNotEnabled = "TWO_WAY_NOT_ENABLED" + case twoWayNotSupportedInCountry = "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY" + case twoWayNotSupportedInRegion = "TWO_WAY_NOT_SUPPORTED_IN_REGION" + case twoWayTopicNotPresent = "TWO_WAY_TOPIC_NOT_PRESENT" + case unknownOperation = "UNKNOWN_OPERATION" + case unknownRegistrationField = "UNKNOWN_REGISTRATION_FIELD" + case unknownRegistrationSection = "UNKNOWN_REGISTRATION_SECTION" + case unknownRegistrationType = "UNKNOWN_REGISTRATION_TYPE" + case unknownRegistrationVersion = "UNKNOWN_REGISTRATION_VERSION" + case unspecifiedParameterNotSupported = "UNSPECIFIED_PARAMETER_NOT_SUPPORTED" + case verificationCodeMismatch = "VERIFICATION_CODE_MISMATCH" + case voiceCapabilityNotAvailable = "VOICE_CAPABILITY_NOT_AVAILABLE" + public var description: String { return self.rawValue } + } + public enum VerificationChannel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case text = "TEXT" case voice = "VOICE" @@ -459,6 +594,23 @@ extension PinpointSMSVoiceV2 { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: AccessDeniedExceptionReason? + + @inlinable + public init(message: String? = nil, reason: AccessDeniedExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct AccountAttribute: AWSDecodableShape { /// The name of the account attribute. public let name: AccountAttributeName @@ -720,6 +872,31 @@ extension PinpointSMSVoiceV2 { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ConflictExceptionReason? + /// The unique identifier of the request. + public let resourceId: String? + /// The type of resource that caused the exception. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, reason: ConflictExceptionReason? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.reason = reason + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct CreateConfigurationSetRequest: AWSEncodableShape { /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency. public let clientToken: String? @@ -3835,6 +4012,23 @@ extension PinpointSMSVoiceV2 { } } + public struct InternalServerException: AWSErrorShape { + public let message: String? + /// The unique identifier of the request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct KeywordFilter: AWSEncodableShape { /// The name of the attribute to filter on. public let name: KeywordFilterName @@ -5963,6 +6157,27 @@ extension PinpointSMSVoiceV2 { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The unique identifier of the resource. + public let resourceId: String? + /// The type of resource that caused the exception. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct SelectOptionDescription: AWSDecodableShape { /// A description of the option meaning. public let description: String? @@ -6511,6 +6726,23 @@ extension PinpointSMSVoiceV2 { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ServiceQuotaExceededExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ServiceQuotaExceededExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct SetAccountDefaultProtectConfigurationRequest: AWSEncodableShape { /// The unique identifier for the protect configuration. public let protectConfigurationId: String @@ -7535,6 +7767,45 @@ extension PinpointSMSVoiceV2 { } } + public struct ValidationException: AWSErrorShape { + /// The field that failed validation. + public let fields: [ValidationExceptionField]? + public let message: String? + /// The reason for the exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message associated with the validation exception with information to help determine its cause. + public let message: String + /// The name of the field. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } + public struct VerifiedDestinationNumberFilter: AWSEncodableShape { /// The name of the attribute to filter on. public let name: VerifiedDestinationNumberFilterName @@ -7699,6 +7970,17 @@ public struct PinpointSMSVoiceV2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PinpointSMSVoiceV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": PinpointSMSVoiceV2.AccessDeniedException.self, + "ConflictException": PinpointSMSVoiceV2.ConflictException.self, + "InternalServerException": PinpointSMSVoiceV2.InternalServerException.self, + "ResourceNotFoundException": PinpointSMSVoiceV2.ResourceNotFoundException.self, + "ServiceQuotaExceededException": PinpointSMSVoiceV2.ServiceQuotaExceededException.self, + "ValidationException": PinpointSMSVoiceV2.ValidationException.self + ] +} + extension PinpointSMSVoiceV2ErrorType: Equatable { public static func == (lhs: PinpointSMSVoiceV2ErrorType, rhs: PinpointSMSVoiceV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Pipes/Pipes_api.swift b/Sources/Soto/Services/Pipes/Pipes_api.swift index be5375c1364..ad46b0d0fc8 100644 --- a/Sources/Soto/Services/Pipes/Pipes_api.swift +++ b/Sources/Soto/Services/Pipes/Pipes_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Pipes/Pipes_shapes.swift b/Sources/Soto/Services/Pipes/Pipes_shapes.swift index 99b6ab5007d..a68f461d9e8 100644 --- a/Sources/Soto/Services/Pipes/Pipes_shapes.swift +++ b/Sources/Soto/Services/Pipes/Pipes_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -551,6 +550,27 @@ extension Pipes { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource that caused the exception. + public let resourceId: String + /// The type of resource that caused the exception. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreatePipeRequest: AWSEncodableShape { /// A description of the pipe. public let description: String? @@ -1163,6 +1183,29 @@ extension Pipes { } } + public struct InternalException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the action that caused the exception. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListPipesRequest: AWSEncodableShape { /// The state the pipe is in. public let currentState: PipeState? @@ -2620,6 +2663,35 @@ extension Pipes { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The identifier of the quota that caused the exception. + public let quotaCode: String + /// The ID of the resource that caused the exception. + public let resourceId: String + /// The type of resource that caused the exception. + public let resourceType: String + /// The identifier of the service that caused the exception. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SingleMeasureMapping: AWSEncodableShape & AWSDecodableShape { /// Target measure name for the measurement attribute in the Timestream table. public let measureName: String @@ -2830,6 +2902,39 @@ extension Pipes { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The identifier of the quota that caused the exception. + public let quotaCode: String? + /// The number of seconds to wait before retrying the action that caused the exception. + public let retryAfterSeconds: Int? + /// The identifier of the service that caused the exception. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the pipe. public let resourceArn: String @@ -3312,6 +3417,41 @@ extension Pipes { } } + public struct ValidationException: AWSErrorShape { + /// The list of fields for which validation failed and the corresponding failure messages. + public let fieldList: [ValidationExceptionField]? + public let message: String? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil) { + self.fieldList = fieldList + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message of the exception. + public let message: String + /// The name of the exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct MQBrokerAccessCredentials: AWSEncodableShape & AWSDecodableShape { /// The ARN of the Secrets Manager secret. public let basicAuth: String? @@ -3378,6 +3518,16 @@ public struct PipesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PipesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Pipes.ConflictException.self, + "InternalException": Pipes.InternalException.self, + "ServiceQuotaExceededException": Pipes.ServiceQuotaExceededException.self, + "ThrottlingException": Pipes.ThrottlingException.self, + "ValidationException": Pipes.ValidationException.self + ] +} + extension PipesErrorType: Equatable { public static func == (lhs: PipesErrorType, rhs: PipesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Polly/Polly_api.swift b/Sources/Soto/Services/Polly/Polly_api.swift index f8a5184d0fa..10d7b9c9889 100644 --- a/Sources/Soto/Services/Polly/Polly_api.swift +++ b/Sources/Soto/Services/Polly/Polly_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Polly/Polly_shapes.swift b/Sources/Soto/Services/Polly/Polly_shapes.swift index 39a5eb2591c..cc3afd86737 100644 --- a/Sources/Soto/Services/Polly/Polly_shapes.swift +++ b/Sources/Soto/Services/Polly/Polly_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Pricing/Pricing_api.swift b/Sources/Soto/Services/Pricing/Pricing_api.swift index c4b27e9749b..121e961c425 100644 --- a/Sources/Soto/Services/Pricing/Pricing_api.swift +++ b/Sources/Soto/Services/Pricing/Pricing_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Pricing/Pricing_shapes.swift b/Sources/Soto/Services/Pricing/Pricing_shapes.swift index c54efc27786..beaa425b831 100644 --- a/Sources/Soto/Services/Pricing/Pricing_shapes.swift +++ b/Sources/Soto/Services/Pricing/Pricing_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_api.swift b/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_api.swift index a3df6a1d118..922bd858d52 100644 --- a/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_api.swift +++ b/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_shapes.swift b/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_shapes.swift index 71c1a897694..6cfa8818687 100644 --- a/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_shapes.swift +++ b/Sources/Soto/Services/PrivateNetworks/PrivateNetworks_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -143,6 +142,15 @@ extension PrivateNetworks { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotAssumeRole = "CANNOT_ASSUME_ROLE" + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AcknowledgeOrderReceiptRequest: AWSEncodableShape { @@ -949,6 +957,30 @@ extension PrivateNetworks { } } + public struct InternalServerException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListDeviceIdentifiersRequest: AWSEncodableShape { /// The filters. ORDER - The Amazon Resource Name (ARN) of the order. STATUS - The status (ACTIVE | INACTIVE). TRAFFIC_GROUP - The Amazon Resource Name (ARN) of the traffic group. Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values. public let filters: [DeviceIdentifierFilterKeys: [String]]? @@ -1535,6 +1567,28 @@ extension PrivateNetworks { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// Description of the error. + public let message: String + /// Identifier of the affected resource. + public let resourceId: String + /// Type of the affected resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ReturnInformation: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the replacement order. public let replacementOrderArn: String? @@ -1794,6 +1848,46 @@ extension PrivateNetworks { case tags = "tags" } } + + public struct ValidationException: AWSErrorShape { + /// The list of fields that caused the error, if applicable. + public let fieldList: [ValidationExceptionField]? + /// Description of the error. + public let message: String + /// Reason the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message about the validation failure. + public let message: String + /// The field name that failed validation. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -1841,6 +1935,14 @@ public struct PrivateNetworksErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension PrivateNetworksErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerException": PrivateNetworks.InternalServerException.self, + "ResourceNotFoundException": PrivateNetworks.ResourceNotFoundException.self, + "ValidationException": PrivateNetworks.ValidationException.self + ] +} + extension PrivateNetworksErrorType: Equatable { public static func == (lhs: PrivateNetworksErrorType, rhs: PrivateNetworksErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Proton/Proton_api.swift b/Sources/Soto/Services/Proton/Proton_api.swift index 7c955c7a36d..2ec87730ce5 100644 --- a/Sources/Soto/Services/Proton/Proton_api.swift +++ b/Sources/Soto/Services/Proton/Proton_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Proton/Proton_shapes.swift b/Sources/Soto/Services/Proton/Proton_shapes.swift index 56c756d4405..3751c7bccd8 100644 --- a/Sources/Soto/Services/Proton/Proton_shapes.swift +++ b/Sources/Soto/Services/Proton/Proton_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QApps/QApps_api.swift b/Sources/Soto/Services/QApps/QApps_api.swift index 54e73df1b28..f894564105e 100644 --- a/Sources/Soto/Services/QApps/QApps_api.swift +++ b/Sources/Soto/Services/QApps/QApps_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QApps/QApps_shapes.swift b/Sources/Soto/Services/QApps/QApps_shapes.swift index 2d32ea5c804..32523862017 100644 --- a/Sources/Soto/Services/QApps/QApps_shapes.swift +++ b/Sources/Soto/Services/QApps/QApps_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -742,6 +741,48 @@ extension QApps { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The unique identifier of the resource + public let resourceId: String + /// The type of the resource + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ContentTooLargeException: AWSErrorShape { + public let message: String + /// The unique identifier of the resource + public let resourceId: String + /// The type of the resource + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ConversationMessage: AWSEncodableShape { /// The text content of the conversation message. public let body: String @@ -1822,6 +1863,29 @@ extension QApps { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying the operation + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct LibraryItemMember: AWSDecodableShape { /// The unique identifier of the Q App associated with the library item. public let appId: String @@ -2436,6 +2500,56 @@ extension QApps { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The unique identifier of the resource + public let resourceId: String + /// The type of the resource + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code of the quota that was exceeded + public let quotaCode: String + /// The unique identifier of the resource + public let resourceId: String + /// The type of the resource + public let resourceType: String + /// The code for the service where the quota was exceeded + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SessionSharingConfiguration: AWSEncodableShape & AWSDecodableShape { /// Indicates whether an Q App session can accept responses from users. public let acceptResponses: Bool? @@ -2713,6 +2827,39 @@ extension QApps { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The code of the quota that was exceeded + public let quotaCode: String + /// The number of seconds to wait before retrying the operation + public let retryAfterSeconds: Int? + /// The code for the service where the quota was exceeded + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, retryAfterSeconds: Int? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decode(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decode(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource to disassociate the tag from. public let resourceARN: String @@ -3289,6 +3436,17 @@ public struct QAppsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension QAppsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": QApps.ConflictException.self, + "ContentTooLargeException": QApps.ContentTooLargeException.self, + "InternalServerException": QApps.InternalServerException.self, + "ResourceNotFoundException": QApps.ResourceNotFoundException.self, + "ServiceQuotaExceededException": QApps.ServiceQuotaExceededException.self, + "ThrottlingException": QApps.ThrottlingException.self + ] +} + extension QAppsErrorType: Equatable { public static func == (lhs: QAppsErrorType, rhs: QAppsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/QBusiness/QBusiness_api.swift b/Sources/Soto/Services/QBusiness/QBusiness_api.swift index 75ae7b79238..dca9c7e5696 100644 --- a/Sources/Soto/Services/QBusiness/QBusiness_api.swift +++ b/Sources/Soto/Services/QBusiness/QBusiness_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QBusiness/QBusiness_shapes.swift b/Sources/Soto/Services/QBusiness/QBusiness_shapes.swift index e836cef1d59..70b93717054 100644 --- a/Sources/Soto/Services/QBusiness/QBusiness_shapes.swift +++ b/Sources/Soto/Services/QBusiness/QBusiness_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -405,6 +404,13 @@ extension QBusiness { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum VideoExtractionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case disabled = "DISABLED" case enabled = "ENABLED" @@ -2443,6 +2449,28 @@ extension QBusiness { } } + public struct ConflictException: AWSErrorShape { + /// The message describing a ConflictException. + public let message: String + /// The identifier of the resource affected. + public let resourceId: String + /// The type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct ContentBlockerRule: AWSEncodableShape & AWSDecodableShape { /// The configured custom message displayed to an end user informing them that they've used a blocked phrase during chat. public let systemMessageOverride: String? @@ -7414,6 +7442,28 @@ extension QBusiness { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The message describing a ResourceNotFoundException. + public let message: String + /// The identifier of the resource affected. + public let resourceId: String + /// The type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Retriever: AWSDecodableShape { /// The identifier of the Amazon Q Business application using the retriever. public let applicationId: String? @@ -7665,6 +7715,28 @@ extension QBusiness { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + /// The message describing a ServiceQuotaExceededException. + public let message: String + /// The identifier of the resource affected. + public let resourceId: String + /// The type of the resource affected. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct SnippetExcerpt: AWSDecodableShape { /// The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q chat response. public let text: String? @@ -8934,6 +9006,46 @@ extension QBusiness { } } + public struct ValidationException: AWSErrorShape { + /// The input field(s) that failed validation. + public let fields: [ValidationExceptionField]? + /// The message describing the ValidationException. + public let message: String + /// The reason for the ValidationException. + public let reason: ValidationExceptionReason + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message about the validation exception. + public let message: String + /// The field name where the invalid entry was detected. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct VideoExtractionConfiguration: AWSEncodableShape & AWSDecodableShape { /// The status of video extraction (ENABLED or DISABLED) for processing video content from files. public let videoExtractionStatus: VideoExtractionStatus @@ -9137,6 +9249,15 @@ public struct QBusinessErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension QBusinessErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": QBusiness.ConflictException.self, + "ResourceNotFoundException": QBusiness.ResourceNotFoundException.self, + "ServiceQuotaExceededException": QBusiness.ServiceQuotaExceededException.self, + "ValidationException": QBusiness.ValidationException.self + ] +} + extension QBusinessErrorType: Equatable { public static func == (lhs: QBusinessErrorType, rhs: QBusinessErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/QConnect/QConnect_api.swift b/Sources/Soto/Services/QConnect/QConnect_api.swift index 46637902f86..20673c307f2 100644 --- a/Sources/Soto/Services/QConnect/QConnect_api.swift +++ b/Sources/Soto/Services/QConnect/QConnect_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QConnect/QConnect_shapes.swift b/Sources/Soto/Services/QConnect/QConnect_shapes.swift index e224a49cf97..2fb1141ef4a 100644 --- a/Sources/Soto/Services/QConnect/QConnect_shapes.swift +++ b/Sources/Soto/Services/QConnect/QConnect_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -8363,6 +8362,23 @@ extension QConnect { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The specified resource name. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct ResultData: AWSDecodableShape { /// Summary of the recommended content. public let data: DataSummary? @@ -9314,6 +9330,23 @@ extension QConnect { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The specified resource name. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -10554,6 +10587,13 @@ public struct QConnectErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension QConnectErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": QConnect.ResourceNotFoundException.self, + "TooManyTagsException": QConnect.TooManyTagsException.self + ] +} + extension QConnectErrorType: Equatable { public static func == (lhs: QConnectErrorType, rhs: QConnectErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/QLDB/QLDB_api.swift b/Sources/Soto/Services/QLDB/QLDB_api.swift index 972b724763b..6a416be6b8e 100644 --- a/Sources/Soto/Services/QLDB/QLDB_api.swift +++ b/Sources/Soto/Services/QLDB/QLDB_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QLDB/QLDB_shapes.swift b/Sources/Soto/Services/QLDB/QLDB_shapes.swift index 2788a2e8917..f235f58e5d8 100644 --- a/Sources/Soto/Services/QLDB/QLDB_shapes.swift +++ b/Sources/Soto/Services/QLDB/QLDB_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -614,6 +613,23 @@ extension QLDB { } } + public struct InvalidParameterException: AWSErrorShape { + public let message: String? + /// The name of the invalid parameter. + public let parameterName: String? + + @inlinable + public init(message: String? = nil, parameterName: String? = nil) { + self.message = message + self.parameterName = parameterName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case parameterName = "ParameterName" + } + } + public struct JournalKinesisStreamDescription: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the QLDB journal stream. public let arn: String? @@ -780,6 +796,23 @@ extension QLDB { } } + public struct LimitExceededException: AWSErrorShape { + public let message: String? + /// The type of resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct ListJournalKinesisStreamsForLedgerRequest: AWSEncodableShape { /// The name of the ledger. public let ledgerName: String @@ -1023,6 +1056,90 @@ extension QLDB { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + public let message: String? + /// The name of the resource. + public let resourceName: String? + /// The type of resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + case resourceType = "ResourceType" + } + } + + public struct ResourceInUseException: AWSErrorShape { + public let message: String? + /// The name of the resource. + public let resourceName: String? + /// The type of resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + case resourceType = "ResourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The name of the resource. + public let resourceName: String? + /// The type of resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + case resourceType = "ResourceType" + } + } + + public struct ResourcePreconditionNotMetException: AWSErrorShape { + public let message: String? + /// The name of the resource. + public let resourceName: String? + /// The type of resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + case resourceType = "ResourceType" + } + } + public struct S3EncryptionConfiguration: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) of a symmetric encryption key in Key Management Service (KMS). Amazon S3 does not support asymmetric KMS keys. You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType. KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType. public let kmsKeyArn: String? @@ -1419,6 +1536,17 @@ public struct QLDBErrorType: AWSErrorType { public static var resourcePreconditionNotMetException: Self { .init(.resourcePreconditionNotMetException) } } +extension QLDBErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidParameterException": QLDB.InvalidParameterException.self, + "LimitExceededException": QLDB.LimitExceededException.self, + "ResourceAlreadyExistsException": QLDB.ResourceAlreadyExistsException.self, + "ResourceInUseException": QLDB.ResourceInUseException.self, + "ResourceNotFoundException": QLDB.ResourceNotFoundException.self, + "ResourcePreconditionNotMetException": QLDB.ResourcePreconditionNotMetException.self + ] +} + extension QLDBErrorType: Equatable { public static func == (lhs: QLDBErrorType, rhs: QLDBErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/QLDBSession/QLDBSession_api.swift b/Sources/Soto/Services/QLDBSession/QLDBSession_api.swift index 43086da94c8..f2e51528a00 100644 --- a/Sources/Soto/Services/QLDBSession/QLDBSession_api.swift +++ b/Sources/Soto/Services/QLDBSession/QLDBSession_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QLDBSession/QLDBSession_shapes.swift b/Sources/Soto/Services/QLDBSession/QLDBSession_shapes.swift index b551acd784c..6fad8053784 100644 --- a/Sources/Soto/Services/QLDBSession/QLDBSession_shapes.swift +++ b/Sources/Soto/Services/QLDBSession/QLDBSession_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -46,6 +45,22 @@ extension QLDBSession { } } + public struct BadRequestException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct CommitTransactionRequest: AWSEncodableShape { /// Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates CommitDigest and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB. The purpose of the CommitDigest parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates. public let commitDigest: AWSBase64Data @@ -236,6 +251,22 @@ extension QLDBSession { } } + public struct InvalidSessionException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Page: AWSDecodableShape { /// The token of the next page. public let nextPageToken: String? @@ -489,6 +520,13 @@ public struct QLDBSessionErrorType: AWSErrorType { public static var rateExceededException: Self { .init(.rateExceededException) } } +extension QLDBSessionErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": QLDBSession.BadRequestException.self, + "InvalidSessionException": QLDBSession.InvalidSessionException.self + ] +} + extension QLDBSessionErrorType: Equatable { public static func == (lhs: QLDBSessionErrorType, rhs: QLDBSessionErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/QuickSight/QuickSight_api.swift b/Sources/Soto/Services/QuickSight/QuickSight_api.swift index f690608b3e7..a605a2407b3 100644 --- a/Sources/Soto/Services/QuickSight/QuickSight_api.swift +++ b/Sources/Soto/Services/QuickSight/QuickSight_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/QuickSight/QuickSight_shapes.swift b/Sources/Soto/Services/QuickSight/QuickSight_shapes.swift index 6759520a28b..1c0b4fb7f1b 100644 --- a/Sources/Soto/Services/QuickSight/QuickSight_shapes.swift +++ b/Sources/Soto/Services/QuickSight/QuickSight_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -677,6 +676,19 @@ extension QuickSight { public var description: String { return self.rawValue } } + public enum ExceptionResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case accountSettings = "ACCOUNT_SETTINGS" + case dataSet = "DATA_SET" + case dataSource = "DATA_SOURCE" + case group = "GROUP" + case iampolicyAssignment = "IAMPOLICY_ASSIGNMENT" + case ingestion = "INGESTION" + case namespace = "NAMESPACE" + case user = "USER" + case vpcConnection = "VPC_CONNECTION" + public var description: String { return self.rawValue } + } + public enum FileFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case clf = "CLF" case csv = "CSV" @@ -2478,6 +2490,23 @@ extension QuickSight { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct AccountCustomization: AWSEncodableShape & AWSDecodableShape { /// The default email customization template. public let defaultEmailCustomizationTemplate: String? @@ -7656,6 +7685,22 @@ extension QuickSight { } } + public struct ConcurrentUpdatingException: AWSErrorShape { + public let message: String? + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct ConditionalFormattingColor: AWSEncodableShape & AWSDecodableShape { /// Formatting configuration for gradient color. public let gradient: ConditionalFormattingGradientColor? @@ -7842,6 +7887,23 @@ extension QuickSight { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct ContextMenuOption: AWSEncodableShape & AWSDecodableShape { /// The availability status of the context menu options. If the value of this property is set to ENABLED, dashboard readers can interact with the context menu. public let availabilityStatus: DashboardBehavior? @@ -10978,6 +11040,23 @@ extension QuickSight { } } + public struct CustomerManagedKeyUnavailableException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this operation. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct Dashboard: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the resource. public let arn: String? @@ -18955,6 +19034,23 @@ extension QuickSight { } } + public struct DomainNotWhitelistedException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct DonutCenterOptions: AWSEncodableShape & AWSDecodableShape { /// Determines the visibility of the label in a donut chart. In the Amazon QuickSight console, this option is called 'Show total'. public let labelVisibility: Visibility? @@ -23732,6 +23828,23 @@ extension QuickSight { } } + public struct IdentityTypeNotSupportedException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct Image: AWSDecodableShape { /// The URL that points to the generated logo image. public let generatedImageUrl: String? @@ -24278,6 +24391,74 @@ extension QuickSight { } } + public struct InternalFailureException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidNextTokenException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidParameterValueException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct InvalidRequestException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct InvalidTopicReviewedAnswer: AWSDecodableShape { /// The answer ID for the InvalidTopicReviewedAnswer. public let answerId: String? @@ -25023,6 +25204,27 @@ extension QuickSight { } } + public struct LimitExceededException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + /// Limit exceeded. + public let resourceType: ExceptionResourceType? + + @inlinable + public init(message: String? = nil, requestId: String? = nil, resourceType: ExceptionResourceType? = nil) { + self.message = message + self.requestId = requestId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + case resourceType = "ResourceType" + } + } + public struct LineChartAggregatedFieldWells: AWSEncodableShape & AWSDecodableShape { /// The category field wells of a line chart. Values are grouped by category fields. public let category: [DimensionField]? @@ -31113,6 +31315,23 @@ extension QuickSight { } } + public struct PreconditionNotMetException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct PredefinedHierarchy: AWSEncodableShape & AWSDecodableShape { /// The list of columns that define the predefined hierarchy. public let columns: [ColumnIdentifier] @@ -31408,6 +31627,23 @@ extension QuickSight { } } + public struct QuickSightUserNotFoundException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct RadarChartAggregatedFieldWells: AWSEncodableShape & AWSDecodableShape { /// The aggregated field well categories of a radar chart. public let category: [DimensionField]? @@ -32618,6 +32854,48 @@ extension QuickSight { } } + public struct ResourceExistsException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + /// The resource type for this request. + public let resourceType: ExceptionResourceType? + + @inlinable + public init(message: String? = nil, requestId: String? = nil, resourceType: ExceptionResourceType? = nil) { + self.message = message + self.requestId = requestId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + case resourceType = "ResourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + /// The resource type for this request. + public let resourceType: ExceptionResourceType? + + @inlinable + public init(message: String? = nil, requestId: String? = nil, resourceType: ExceptionResourceType? = nil) { + self.message = message + self.requestId = requestId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + case resourceType = "ResourceType" + } + } + public struct ResourcePermission: AWSEncodableShape & AWSDecodableShape { /// The IAM action to grant or revoke permissions on. public let actions: [String] @@ -32643,6 +32921,27 @@ extension QuickSight { } } + public struct ResourceUnavailableException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + /// The resource type for this request. + public let resourceType: ExceptionResourceType? + + @inlinable + public init(message: String? = nil, requestId: String? = nil, resourceType: ExceptionResourceType? = nil) { + self.message = message + self.requestId = requestId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + case resourceType = "ResourceType" + } + } + public struct RestoreAnalysisRequest: AWSEncodableShape { /// The ID of the analysis that you're restoring. public let analysisId: String @@ -34331,6 +34630,23 @@ extension QuickSight { } } + public struct SessionLifetimeInMinutesInvalidException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct SessionTag: AWSEncodableShape { /// The key for the tag. public let key: String @@ -37842,6 +38158,23 @@ extension QuickSight { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct TileLayoutStyle: AWSEncodableShape & AWSDecodableShape { /// The gutter settings that apply between tiles. public let gutter: GutterStyle? @@ -40005,6 +40338,40 @@ extension QuickSight { } } + public struct UnsupportedPricingPlanException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + + public struct UnsupportedUserEditionException: AWSErrorShape { + public let message: String? + /// The Amazon Web Services request ID for this request. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case requestId = "RequestId" + } + } + public struct UntagColumnOperation: AWSEncodableShape & AWSDecodableShape { /// The column that this operation acts on. public let columnName: String @@ -44872,6 +45239,31 @@ public struct QuickSightErrorType: AWSErrorType { public static var unsupportedUserEditionException: Self { .init(.unsupportedUserEditionException) } } +extension QuickSightErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": QuickSight.AccessDeniedException.self, + "ConcurrentUpdatingException": QuickSight.ConcurrentUpdatingException.self, + "ConflictException": QuickSight.ConflictException.self, + "CustomerManagedKeyUnavailableException": QuickSight.CustomerManagedKeyUnavailableException.self, + "DomainNotWhitelistedException": QuickSight.DomainNotWhitelistedException.self, + "IdentityTypeNotSupportedException": QuickSight.IdentityTypeNotSupportedException.self, + "InternalFailureException": QuickSight.InternalFailureException.self, + "InvalidNextTokenException": QuickSight.InvalidNextTokenException.self, + "InvalidParameterValueException": QuickSight.InvalidParameterValueException.self, + "InvalidRequestException": QuickSight.InvalidRequestException.self, + "LimitExceededException": QuickSight.LimitExceededException.self, + "PreconditionNotMetException": QuickSight.PreconditionNotMetException.self, + "QuickSightUserNotFoundException": QuickSight.QuickSightUserNotFoundException.self, + "ResourceExistsException": QuickSight.ResourceExistsException.self, + "ResourceNotFoundException": QuickSight.ResourceNotFoundException.self, + "ResourceUnavailableException": QuickSight.ResourceUnavailableException.self, + "SessionLifetimeInMinutesInvalidException": QuickSight.SessionLifetimeInMinutesInvalidException.self, + "ThrottlingException": QuickSight.ThrottlingException.self, + "UnsupportedPricingPlanException": QuickSight.UnsupportedPricingPlanException.self, + "UnsupportedUserEditionException": QuickSight.UnsupportedUserEditionException.self + ] +} + extension QuickSightErrorType: Equatable { public static func == (lhs: QuickSightErrorType, rhs: QuickSightErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/RAM/RAM_api.swift b/Sources/Soto/Services/RAM/RAM_api.swift index d0bc81d333d..ff43874a87c 100644 --- a/Sources/Soto/Services/RAM/RAM_api.swift +++ b/Sources/Soto/Services/RAM/RAM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RAM/RAM_shapes.swift b/Sources/Soto/Services/RAM/RAM_shapes.swift index 3e264e65d43..b614b9c273e 100644 --- a/Sources/Soto/Services/RAM/RAM_shapes.swift +++ b/Sources/Soto/Services/RAM/RAM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RDS/RDS_api.swift b/Sources/Soto/Services/RDS/RDS_api.swift index a5ca6c3f399..d0e2c819bc8 100644 --- a/Sources/Soto/Services/RDS/RDS_api.swift +++ b/Sources/Soto/Services/RDS/RDS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RDS/RDS_shapes.swift b/Sources/Soto/Services/RDS/RDS_shapes.swift index 3066705faea..fc107bc7de5 100644 --- a/Sources/Soto/Services/RDS/RDS_shapes.swift +++ b/Sources/Soto/Services/RDS/RDS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RDSData/RDSData_api.swift b/Sources/Soto/Services/RDSData/RDSData_api.swift index 3bc9f1cb0fb..7e1ed321910 100644 --- a/Sources/Soto/Services/RDSData/RDSData_api.swift +++ b/Sources/Soto/Services/RDSData/RDSData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RDSData/RDSData_shapes.swift b/Sources/Soto/Services/RDSData/RDSData_shapes.swift index 9c4e4c3a3a7..161ac099400 100644 --- a/Sources/Soto/Services/RDSData/RDSData_shapes.swift +++ b/Sources/Soto/Services/RDSData/RDSData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -804,6 +803,24 @@ extension RDSData { } } + public struct StatementTimeoutException: AWSErrorShape { + /// The database connection ID that executed the SQL statement. + public let dbConnectionId: Int64? + /// The error message returned by this StatementTimeoutException error. + public let message: String? + + @inlinable + public init(dbConnectionId: Int64? = nil, message: String? = nil) { + self.dbConnectionId = dbConnectionId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case dbConnectionId = "dbConnectionId" + case message = "message" + } + } + public struct StructValue: AWSDecodableShape { /// The attributes returned in the record. public let attributes: [Value]? @@ -911,6 +928,12 @@ public struct RDSDataErrorType: AWSErrorType { public static var unsupportedResultException: Self { .init(.unsupportedResultException) } } +extension RDSDataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "StatementTimeoutException": RDSData.StatementTimeoutException.self + ] +} + extension RDSDataErrorType: Equatable { public static func == (lhs: RDSDataErrorType, rhs: RDSDataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/RUM/RUM_api.swift b/Sources/Soto/Services/RUM/RUM_api.swift index 6959c8c3fae..909f7a6443d 100644 --- a/Sources/Soto/Services/RUM/RUM_api.swift +++ b/Sources/Soto/Services/RUM/RUM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RUM/RUM_shapes.swift b/Sources/Soto/Services/RUM/RUM_shapes.swift index a616566b884..0c59bfd7b1c 100644 --- a/Sources/Soto/Services/RUM/RUM_shapes.swift +++ b/Sources/Soto/Services/RUM/RUM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -470,6 +469,27 @@ extension RUM { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The name of the resource that is associated with the error. + public let resourceName: String + /// The type of the resource that is associated with the error. + public let resourceType: String? + + @inlinable + public init(message: String, resourceName: String, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + case resourceType = "resourceType" + } + } + public struct CreateAppMonitorRequest: AWSEncodableShape { /// A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services. If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. public let appMonitorConfiguration: AppMonitorConfiguration? @@ -869,6 +889,29 @@ extension RUM { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The value of a parameter in the request caused an error. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct JavaScriptSourceMaps: AWSEncodableShape & AWSDecodableShape { /// The S3Uri of the bucket or folder that stores the source map files. It is required if status is ENABLED. public let s3Uri: String? @@ -1321,6 +1364,27 @@ extension RUM { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The name of the resource that is associated with the error. + public let resourceName: String + /// The type of the resource that is associated with the error. + public let resourceType: String? + + @inlinable + public init(message: String, resourceName: String, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + case resourceType = "resourceType" + } + } + public struct RumEvent: AWSEncodableShape { /// A string containing details about the event. public let details: String @@ -1389,6 +1453,39 @@ extension RUM { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The ID of the service quota that was exceeded. + public let quotaCode: String? + /// The value of a parameter in the request caused an error. + public let retryAfterSeconds: Int? + /// The ID of the service that is associated with the error. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct TimeRange: AWSEncodableShape { /// The beginning of the time range to retrieve performance events from. public let after: Int64 @@ -1647,6 +1744,15 @@ public struct RUMErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension RUMErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": RUM.ConflictException.self, + "InternalServerException": RUM.InternalServerException.self, + "ResourceNotFoundException": RUM.ResourceNotFoundException.self, + "ThrottlingException": RUM.ThrottlingException.self + ] +} + extension RUMErrorType: Equatable { public static func == (lhs: RUMErrorType, rhs: RUMErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Rbin/Rbin_api.swift b/Sources/Soto/Services/Rbin/Rbin_api.swift index 67847cb1814..3fccdee3348 100644 --- a/Sources/Soto/Services/Rbin/Rbin_api.swift +++ b/Sources/Soto/Services/Rbin/Rbin_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Rbin/Rbin_shapes.swift b/Sources/Soto/Services/Rbin/Rbin_shapes.swift index 18f6e4d6527..c6c8053767b 100644 --- a/Sources/Soto/Services/Rbin/Rbin_shapes.swift +++ b/Sources/Soto/Services/Rbin/Rbin_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -26,6 +25,11 @@ import Foundation extension Rbin { // MARK: Enums + public enum ConflictExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidRuleState = "INVALID_RULE_STATE" + public var description: String { return self.rawValue } + } + public enum LockState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case locked = "locked" case pendingUnlock = "pending_unlock" @@ -33,6 +37,11 @@ extension Rbin { public var description: String { return self.rawValue } } + public enum ResourceNotFoundExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case ruleNotFound = "RULE_NOT_FOUND" + public var description: String { return self.rawValue } + } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case ebsSnapshot = "EBS_SNAPSHOT" case ec2Image = "EC2_IMAGE" @@ -50,13 +59,41 @@ extension Rbin { public var description: String { return self.rawValue } } + public enum ServiceQuotaExceededExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case serviceQuotaExceeded = "SERVICE_QUOTA_EXCEEDED" + public var description: String { return self.rawValue } + } + public enum UnlockDelayUnit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case days = "DAYS" public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case invalidPageToken = "INVALID_PAGE_TOKEN" + case invalidParameterValue = "INVALID_PARAMETER_VALUE" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ConflictExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ConflictExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct CreateRuleRequest: AWSEncodableShape { /// The retention rule description. public let description: String? @@ -474,6 +511,23 @@ extension Rbin { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ResourceNotFoundExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ResourceNotFoundExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct ResourceTag: AWSEncodableShape & AWSDecodableShape { /// The tag key. public let resourceTagKey: String @@ -550,6 +604,23 @@ extension Rbin { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ServiceQuotaExceededExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ServiceQuotaExceededExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } + public struct Tag: AWSEncodableShape & AWSDecodableShape { /// The tag key. public let key: String @@ -858,6 +929,23 @@ extension Rbin { case status = "Status" } } + + public struct ValidationException: AWSErrorShape { + public let message: String? + /// The reason for the exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reason = "Reason" + } + } } // MARK: - Errors @@ -902,6 +990,15 @@ public struct RbinErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension RbinErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Rbin.ConflictException.self, + "ResourceNotFoundException": Rbin.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Rbin.ServiceQuotaExceededException.self, + "ValidationException": Rbin.ValidationException.self + ] +} + extension RbinErrorType: Equatable { public static func == (lhs: RbinErrorType, rhs: RbinErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Redshift/Redshift_api.swift b/Sources/Soto/Services/Redshift/Redshift_api.swift index 5e47f056c12..c6cb307aa8f 100644 --- a/Sources/Soto/Services/Redshift/Redshift_api.swift +++ b/Sources/Soto/Services/Redshift/Redshift_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Redshift/Redshift_shapes.swift b/Sources/Soto/Services/Redshift/Redshift_shapes.swift index 2eb60d5d2bb..65b0785acd0 100644 --- a/Sources/Soto/Services/Redshift/Redshift_shapes.swift +++ b/Sources/Soto/Services/Redshift/Redshift_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RedshiftData/RedshiftData_api.swift b/Sources/Soto/Services/RedshiftData/RedshiftData_api.swift index 140476cef43..0aabb5554fe 100644 --- a/Sources/Soto/Services/RedshiftData/RedshiftData_api.swift +++ b/Sources/Soto/Services/RedshiftData/RedshiftData_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RedshiftData/RedshiftData_shapes.swift b/Sources/Soto/Services/RedshiftData/RedshiftData_shapes.swift index 80ee008dd52..eb21e84814e 100644 --- a/Sources/Soto/Services/RedshiftData/RedshiftData_shapes.swift +++ b/Sources/Soto/Services/RedshiftData/RedshiftData_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -110,6 +109,23 @@ extension RedshiftData { // MARK: Shapes + public struct BatchExecuteStatementException: AWSErrorShape { + public let message: String + /// Statement identifier of the exception. + public let statementId: String + + @inlinable + public init(message: String, statementId: String) { + self.message = message + self.statementId = statementId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case statementId = "StatementId" + } + } + public struct BatchExecuteStatementInput: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. public let clientToken: String? @@ -518,6 +534,24 @@ extension RedshiftData { } } + public struct ExecuteStatementException: AWSErrorShape { + /// The exception message. + public let message: String + /// Statement identifier of the exception. + public let statementId: String + + @inlinable + public init(message: String, statementId: String) { + self.message = message + self.statementId = statementId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case statementId = "StatementId" + } + } + public struct ExecuteStatementInput: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. public let clientToken: String? @@ -1033,6 +1067,24 @@ extension RedshiftData { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// The exception message. + public let message: String + /// Resource identifier associated with the exception. + public let resourceId: String + + @inlinable + public init(message: String, resourceId: String) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct SqlParameter: AWSEncodableShape & AWSDecodableShape { /// The name of the parameter. public let name: String @@ -1259,6 +1311,14 @@ public struct RedshiftDataErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension RedshiftDataErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BatchExecuteStatementException": RedshiftData.BatchExecuteStatementException.self, + "ExecuteStatementException": RedshiftData.ExecuteStatementException.self, + "ResourceNotFoundException": RedshiftData.ResourceNotFoundException.self + ] +} + extension RedshiftDataErrorType: Equatable { public static func == (lhs: RedshiftDataErrorType, rhs: RedshiftDataErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_api.swift b/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_api.swift index 2c9bdc43486..282fdfd556b 100644 --- a/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_api.swift +++ b/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_shapes.swift b/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_shapes.swift index 4241631375d..a4ba10d9998 100644 --- a/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_shapes.swift +++ b/Sources/Soto/Services/RedshiftServerless/RedshiftServerless_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -142,6 +141,22 @@ extension RedshiftServerless { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct Association: AWSDecodableShape { /// The custom domain name’s certificate Amazon resource name (ARN). public let customDomainCertificateArn: String? @@ -2443,6 +2458,23 @@ extension RedshiftServerless { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The name of the resource that could not be found. + public let resourceName: String? + + @inlinable + public init(message: String, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct ResourcePolicy: AWSDecodableShape { /// The resource policy. public let policy: String? @@ -3059,6 +3091,39 @@ extension RedshiftServerless { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the resource that exceeded the number of tags allowed for a resource. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource to remove tags from. public let resourceArn: String @@ -3778,6 +3843,15 @@ public struct RedshiftServerlessErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension RedshiftServerlessErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": RedshiftServerless.AccessDeniedException.self, + "ResourceNotFoundException": RedshiftServerless.ResourceNotFoundException.self, + "ThrottlingException": RedshiftServerless.ThrottlingException.self, + "TooManyTagsException": RedshiftServerless.TooManyTagsException.self + ] +} + extension RedshiftServerlessErrorType: Equatable { public static func == (lhs: RedshiftServerlessErrorType, rhs: RedshiftServerlessErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Rekognition/Rekognition_api.swift b/Sources/Soto/Services/Rekognition/Rekognition_api.swift index 597fcdea28a..ad3efc78b5b 100644 --- a/Sources/Soto/Services/Rekognition/Rekognition_api.swift +++ b/Sources/Soto/Services/Rekognition/Rekognition_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Rekognition/Rekognition_shapes.swift b/Sources/Soto/Services/Rekognition/Rekognition_shapes.swift index 352877aba75..e73b0aecc3a 100644 --- a/Sources/Soto/Services/Rekognition/Rekognition_shapes.swift +++ b/Sources/Soto/Services/Rekognition/Rekognition_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -398,6 +397,26 @@ extension Rekognition { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct AgeRange: AWSDecodableShape { /// The highest estimated age. public let high: Int? @@ -859,6 +878,26 @@ extension Rekognition { } } + public struct ConflictException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct ConnectedHomeSettings: AWSEncodableShape & AWSDecodableShape { /// Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL". public let labels: [String] @@ -4277,6 +4316,58 @@ extension Rekognition { } } + public struct HumanLoopQuotaExceededException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + /// The quota code. + public let quotaCode: String? + /// The resource type. + public let resourceType: String? + /// The service code. + public let serviceCode: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil, quotaCode: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.code = code + self.logref = logref + self.message = message + self.quotaCode = quotaCode + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + case quotaCode = "QuotaCode" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + + public struct IdempotentParameterMismatchException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct Image: AWSEncodableShape { /// Blob of image bytes up to 5 MBs. Note that the maximum image size you can pass to DetectCustomLabels is 4MB. public let bytes: AWSBase64Data? @@ -4319,6 +4410,26 @@ extension Rekognition { } } + public struct ImageTooLargeException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct IndexFacesRequest: AWSEncodableShape { /// The ID of an existing collection to which you want to add the faces that are detected in the input images. public let collectionId: String @@ -4412,6 +4523,146 @@ extension Rekognition { } } + public struct InternalServerError: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct InvalidImageFormatException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct InvalidManifestException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct InvalidPaginationTokenException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct InvalidParameterException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct InvalidPolicyRevisionIdException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct InvalidS3ObjectException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct KinesisDataStream: AWSEncodableShape & AWSDecodableShape { /// ARN of the output Amazon Kinesis Data Streams stream. public let arn: String? @@ -4618,6 +4869,26 @@ extension Rekognition { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct ListCollectionsRequest: AWSEncodableShape { /// Maximum number of collection IDs to return. public let maxResults: Int? @@ -5097,6 +5368,26 @@ extension Rekognition { } } + public struct MalformedPolicyDocumentException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct MatchedUser: AWSDecodableShape { /// A provided ID for the UserID. Unique within the collection. public let userId: String? @@ -5795,6 +6086,26 @@ extension Rekognition { } } + public struct ProvisionedThroughputExceededException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct PutProjectPolicyRequest: AWSEncodableShape { /// A resource policy to add to the model. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference. public let policyDocument: String @@ -5907,6 +6218,86 @@ extension Rekognition { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct ResourceInUseException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct ResourceNotReadyException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct S3Destination: AWSEncodableShape & AWSDecodableShape { /// The name of the Amazon S3 bucket you want to associate with the streaming video project. You must be the owner of the Amazon S3 bucket. public let bucket: String? @@ -6343,6 +6734,46 @@ extension Rekognition { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + + public struct SessionNotFoundException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct ShotSegment: AWSDecodableShape { /// The confidence that Amazon Rekognition Video has in the accuracy of the detected segment. public let confidence: Float? @@ -7486,6 +7917,26 @@ extension Rekognition { } } + public struct ThrottlingException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } + public struct TrainingData: AWSEncodableShape & AWSDecodableShape { /// A manifest file that contains references to the training images and ground-truth annotations. public let assets: [Asset]? @@ -7842,6 +8293,26 @@ extension Rekognition { case frameWidth = "FrameWidth" } } + + public struct VideoTooLargeException: AWSErrorShape { + public let code: String? + /// A universally unique identifier (UUID) for the request. + public let logref: String? + public let message: String? + + @inlinable + public init(code: String? = nil, logref: String? = nil, message: String? = nil) { + self.code = code + self.logref = logref + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case logref = "Logref" + case message = "Message" + } + } } // MARK: - Errors @@ -7940,6 +8411,34 @@ public struct RekognitionErrorType: AWSErrorType { public static var videoTooLargeException: Self { .init(.videoTooLargeException) } } +extension RekognitionErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Rekognition.AccessDeniedException.self, + "ConflictException": Rekognition.ConflictException.self, + "HumanLoopQuotaExceededException": Rekognition.HumanLoopQuotaExceededException.self, + "IdempotentParameterMismatchException": Rekognition.IdempotentParameterMismatchException.self, + "ImageTooLargeException": Rekognition.ImageTooLargeException.self, + "InternalServerError": Rekognition.InternalServerError.self, + "InvalidImageFormatException": Rekognition.InvalidImageFormatException.self, + "InvalidManifestException": Rekognition.InvalidManifestException.self, + "InvalidPaginationTokenException": Rekognition.InvalidPaginationTokenException.self, + "InvalidParameterException": Rekognition.InvalidParameterException.self, + "InvalidPolicyRevisionIdException": Rekognition.InvalidPolicyRevisionIdException.self, + "InvalidS3ObjectException": Rekognition.InvalidS3ObjectException.self, + "LimitExceededException": Rekognition.LimitExceededException.self, + "MalformedPolicyDocumentException": Rekognition.MalformedPolicyDocumentException.self, + "ProvisionedThroughputExceededException": Rekognition.ProvisionedThroughputExceededException.self, + "ResourceAlreadyExistsException": Rekognition.ResourceAlreadyExistsException.self, + "ResourceInUseException": Rekognition.ResourceInUseException.self, + "ResourceNotFoundException": Rekognition.ResourceNotFoundException.self, + "ResourceNotReadyException": Rekognition.ResourceNotReadyException.self, + "ServiceQuotaExceededException": Rekognition.ServiceQuotaExceededException.self, + "SessionNotFoundException": Rekognition.SessionNotFoundException.self, + "ThrottlingException": Rekognition.ThrottlingException.self, + "VideoTooLargeException": Rekognition.VideoTooLargeException.self + ] +} + extension RekognitionErrorType: Equatable { public static func == (lhs: RekognitionErrorType, rhs: RekognitionErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Repostspace/Repostspace_api.swift b/Sources/Soto/Services/Repostspace/Repostspace_api.swift index d084f43ee7f..12c1a3722dd 100644 --- a/Sources/Soto/Services/Repostspace/Repostspace_api.swift +++ b/Sources/Soto/Services/Repostspace/Repostspace_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Repostspace/Repostspace_shapes.swift b/Sources/Soto/Services/Repostspace/Repostspace_shapes.swift index e078ee0994e..b2e8338b694 100644 --- a/Sources/Soto/Services/Repostspace/Repostspace_shapes.swift +++ b/Sources/Soto/Services/Repostspace/Repostspace_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -46,6 +45,14 @@ extension Repostspace { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum VanityDomainStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case approved = "APPROVED" case pending = "PENDING" @@ -179,6 +186,27 @@ extension Repostspace { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The type of the resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateSpaceInput: AWSEncodableShape { /// A description for the private re:Post. This is used only to help you identify this private re:Post. public let description: String? @@ -427,6 +455,29 @@ extension Repostspace { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListSpacesInput: AWSEncodableShape { /// The maximum number of private re:Posts to include in the results. public let maxResults: Int? @@ -531,6 +582,27 @@ extension Repostspace { private enum CodingKeys: CodingKey {} } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The ID of the resource. + public let resourceId: String + /// The type of the resource. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct SendInvitesInput: AWSEncodableShape { /// The array of identifiers for the users and groups. public let accessorIds: [String] @@ -573,6 +645,35 @@ extension Repostspace { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The code to identify the quota. + public let quotaCode: String + /// The id of the resource. + public let resourceId: String + /// The type of the resource. + public let resourceType: String + /// The code to identify the service. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SpaceData: AWSDecodableShape { /// The ARN of the private re:Post. public let arn: String @@ -687,6 +788,39 @@ extension Repostspace { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The code to identify the quota. + public let quotaCode: String? + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + /// The code to identify the service. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource. public let resourceArn: String @@ -765,6 +899,45 @@ extension Repostspace { case tier = "tier" } } + + public struct ValidationException: AWSErrorShape { + /// The field that caused the error, if applicable. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason why the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The name of the field. + public let message: String + /// Message describing why the field failed validation. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -815,6 +988,17 @@ public struct RepostspaceErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension RepostspaceErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Repostspace.ConflictException.self, + "InternalServerException": Repostspace.InternalServerException.self, + "ResourceNotFoundException": Repostspace.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Repostspace.ServiceQuotaExceededException.self, + "ThrottlingException": Repostspace.ThrottlingException.self, + "ValidationException": Repostspace.ValidationException.self + ] +} + extension RepostspaceErrorType: Equatable { public static func == (lhs: RepostspaceErrorType, rhs: RepostspaceErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Resiliencehub/Resiliencehub_api.swift b/Sources/Soto/Services/Resiliencehub/Resiliencehub_api.swift index 07a86aa082f..04245ac2f50 100644 --- a/Sources/Soto/Services/Resiliencehub/Resiliencehub_api.swift +++ b/Sources/Soto/Services/Resiliencehub/Resiliencehub_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Resiliencehub/Resiliencehub_shapes.swift b/Sources/Soto/Services/Resiliencehub/Resiliencehub_shapes.swift index 39679ae19ab..c34452d4d0b 100644 --- a/Sources/Soto/Services/Resiliencehub/Resiliencehub_shapes.swift +++ b/Sources/Soto/Services/Resiliencehub/Resiliencehub_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1289,6 +1288,27 @@ extension Resiliencehub { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The identifier of the resource that the exception applies to. + public let resourceId: String? + /// The type of the resource that the exception applies to. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct Cost: AWSDecodableShape { /// The cost amount. public let amount: Double @@ -5095,6 +5115,27 @@ extension Resiliencehub { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The identifier of the resource that the exception applies to. + public let resourceId: String? + /// The type of the resource that the exception applies to. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct S3Location: AWSDecodableShape { /// The name of the Amazon S3 bucket. public let bucket: String? @@ -5488,6 +5529,23 @@ extension Resiliencehub { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The number of seconds to wait before retrying the operation. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case retryAfterSeconds = "retryAfterSeconds" + } + } + public struct UnsupportedResource: AWSDecodableShape { /// Logical resource identifier for the unsupported resource. public let logicalResourceId: LogicalResourceId @@ -6019,6 +6077,14 @@ public struct ResiliencehubErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ResiliencehubErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Resiliencehub.ConflictException.self, + "ResourceNotFoundException": Resiliencehub.ResourceNotFoundException.self, + "ThrottlingException": Resiliencehub.ThrottlingException.self + ] +} + extension ResiliencehubErrorType: Equatable { public static func == (lhs: ResiliencehubErrorType, rhs: ResiliencehubErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_api.swift b/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_api.swift index bedab069f33..dcc228eae83 100644 --- a/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_api.swift +++ b/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_shapes.swift b/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_shapes.swift index dbb42654999..33cde59ecd4 100644 --- a/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_shapes.swift +++ b/Sources/Soto/Services/ResourceExplorer2/ResourceExplorer2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -979,6 +978,27 @@ extension ResourceExplorer2 { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The name of the service quota that was exceeded by the request. + public let name: String + /// The current value for the quota that the request tried to exceed. + public let value: String + + @inlinable + public init(message: String, name: String, value: String) { + self.message = message + self.name = name + self.value = value + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + case value = "Value" + } + } + public struct SupportedResourceType: AWSDecodableShape { /// The unique identifier of the resource type. public let resourceType: String? @@ -1131,6 +1151,41 @@ extension ResourceExplorer2 { } } + public struct ValidationException: AWSErrorShape { + /// An array of the request fields that had validation errors. + public let fieldList: [ValidationExceptionField]? + public let message: String + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String) { + self.fieldList = fieldList + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "FieldList" + case message = "Message" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The name of the request field that had a validation error. + public let name: String + /// The validation error caused by the request field. + public let validationIssue: String + + @inlinable + public init(name: String, validationIssue: String) { + self.name = name + self.validationIssue = validationIssue + } + + private enum CodingKeys: String, CodingKey { + case name = "Name" + case validationIssue = "ValidationIssue" + } + } + public struct View: AWSDecodableShape { /// An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view. public let filters: SearchFilter? @@ -1217,6 +1272,13 @@ public struct ResourceExplorer2ErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ResourceExplorer2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ServiceQuotaExceededException": ResourceExplorer2.ServiceQuotaExceededException.self, + "ValidationException": ResourceExplorer2.ValidationException.self + ] +} + extension ResourceExplorer2ErrorType: Equatable { public static func == (lhs: ResourceExplorer2ErrorType, rhs: ResourceExplorer2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ResourceGroups/ResourceGroups_api.swift b/Sources/Soto/Services/ResourceGroups/ResourceGroups_api.swift index 775d73804f9..9ff4cd7d8ee 100644 --- a/Sources/Soto/Services/ResourceGroups/ResourceGroups_api.swift +++ b/Sources/Soto/Services/ResourceGroups/ResourceGroups_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ResourceGroups/ResourceGroups_shapes.swift b/Sources/Soto/Services/ResourceGroups/ResourceGroups_shapes.swift index 8e902cec3a3..b84ce216edd 100644 --- a/Sources/Soto/Services/ResourceGroups/ResourceGroups_shapes.swift +++ b/Sources/Soto/Services/ResourceGroups/ResourceGroups_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_api.swift b/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_api.swift index 6c7eaf2f649..39b59363468 100644 --- a/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_api.swift +++ b/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_shapes.swift b/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_shapes.swift index a6c1e3c3b1f..a99bdf08a35 100644 --- a/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_shapes.swift +++ b/Sources/Soto/Services/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPI_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RoboMaker/RoboMaker_api.swift b/Sources/Soto/Services/RoboMaker/RoboMaker_api.swift index 4416825da46..38141e71ba0 100644 --- a/Sources/Soto/Services/RoboMaker/RoboMaker_api.swift +++ b/Sources/Soto/Services/RoboMaker/RoboMaker_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RoboMaker/RoboMaker_shapes.swift b/Sources/Soto/Services/RoboMaker/RoboMaker_shapes.swift index e7077899819..8b58d485131 100644 --- a/Sources/Soto/Services/RoboMaker/RoboMaker_shapes.swift +++ b/Sources/Soto/Services/RoboMaker/RoboMaker_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_api.swift b/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_api.swift index 26002c6fd19..44105feae20 100644 --- a/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_api.swift +++ b/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_shapes.swift b/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_shapes.swift index 0e1b25025f3..bb2caac5ccb 100644 --- a/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_shapes.swift +++ b/Sources/Soto/Services/RolesAnywhere/RolesAnywhere_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53/Route53_api.swift b/Sources/Soto/Services/Route53/Route53_api.swift index a5f7af31aa6..b8699eb256a 100644 --- a/Sources/Soto/Services/Route53/Route53_api.swift +++ b/Sources/Soto/Services/Route53/Route53_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53/Route53_shapes.swift b/Sources/Soto/Services/Route53/Route53_shapes.swift index cba9604dd20..b0a6d9623fa 100644 --- a/Sources/Soto/Services/Route53/Route53_shapes.swift +++ b/Sources/Soto/Services/Route53/Route53_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -3537,6 +3536,25 @@ extension Route53 { } } + public struct InvalidChangeBatch: AWSErrorShape { + public struct _messagesEncoding: ArrayCoderProperties { public static let member = "Message" } + + public let message: String? + @OptionalCustomCoding> + public var messages: [String]? + + @inlinable + public init(message: String? = nil, messages: [String]? = nil) { + self.message = message + self.messages = messages + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case messages = "messages" + } + } + public struct KeySigningKey: AWSDecodableShape { /// The date when the key-signing key (KSK) was created. public let createdDate: Date? @@ -6684,6 +6702,12 @@ public struct Route53ErrorType: AWSErrorType { public static var vpcAssociationNotFound: Self { .init(.vpcAssociationNotFound) } } +extension Route53ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidChangeBatch": Route53.InvalidChangeBatch.self + ] +} + extension Route53ErrorType: Equatable { public static func == (lhs: Route53ErrorType, rhs: Route53ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Route53Domains/Route53Domains_api.swift b/Sources/Soto/Services/Route53Domains/Route53Domains_api.swift index 7a463c9d5d3..13fb0ed4da4 100644 --- a/Sources/Soto/Services/Route53Domains/Route53Domains_api.swift +++ b/Sources/Soto/Services/Route53Domains/Route53Domains_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53Domains/Route53Domains_shapes.swift b/Sources/Soto/Services/Route53Domains/Route53Domains_shapes.swift index 095b9aa438e..1aac69cc303 100644 --- a/Sources/Soto/Services/Route53Domains/Route53Domains_shapes.swift +++ b/Sources/Soto/Services/Route53Domains/Route53Domains_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1123,6 +1122,24 @@ extension Route53Domains { } } + public struct DuplicateRequest: AWSErrorShape { + /// The request is already in progress for the domain. + public let message: String? + /// ID of the request operation. + public let requestId: String? + + @inlinable + public init(message: String? = nil, requestId: String? = nil) { + self.message = message + self.requestId = requestId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case requestId = "requestId" + } + } + public struct EnableDomainAutoRenewRequest: AWSEncodableShape { /// The name of the domain that you want to enable automatic renewal for. public let domainName: String @@ -2777,6 +2794,12 @@ public struct Route53DomainsErrorType: AWSErrorType { public static var unsupportedTLD: Self { .init(.unsupportedTLD) } } +extension Route53DomainsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DuplicateRequest": Route53Domains.DuplicateRequest.self + ] +} + extension Route53DomainsErrorType: Equatable { public static func == (lhs: Route53DomainsErrorType, rhs: Route53DomainsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Route53Profiles/Route53Profiles_api.swift b/Sources/Soto/Services/Route53Profiles/Route53Profiles_api.swift index f47a2daeb71..78e07fd748b 100644 --- a/Sources/Soto/Services/Route53Profiles/Route53Profiles_api.swift +++ b/Sources/Soto/Services/Route53Profiles/Route53Profiles_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53Profiles/Route53Profiles_shapes.swift b/Sources/Soto/Services/Route53Profiles/Route53Profiles_shapes.swift index 355c3fb8737..61cf64695d6 100644 --- a/Sources/Soto/Services/Route53Profiles/Route53Profiles_shapes.swift +++ b/Sources/Soto/Services/Route53Profiles/Route53Profiles_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -429,6 +428,40 @@ extension Route53Profiles { } } + public struct InvalidParameterException: AWSErrorShape { + /// The parameter field name for the invalid parameter exception. + public let fieldName: String? + public let message: String + + @inlinable + public init(fieldName: String? = nil, message: String) { + self.fieldName = fieldName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldName = "FieldName" + case message = "Message" + } + } + + public struct LimitExceededException: AWSErrorShape { + public let message: String? + /// The resource type that caused the limits to be exceeded. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct ListProfileAssociationsRequest: AWSEncodableShape { /// The maximum number of objects that you want to return for this request. If more objects are available, in the response, a NextToken value, which you can use in a subsequent call to get the next batch of objects, is provided. If you don't specify a value for MaxResults, up to 100 objects are returned. public let maxResults: Int? @@ -800,6 +833,40 @@ extension Route53Profiles { } } + public struct ResourceExistsException: AWSErrorShape { + public let message: String? + /// The resource type that caused the resource exists exception. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The resource type that caused the resource not found exception. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct Tag: AWSEncodableShape { /// Key associated with the Tag. public let key: String @@ -1007,6 +1074,15 @@ public struct Route53ProfilesErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension Route53ProfilesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidParameterException": Route53Profiles.InvalidParameterException.self, + "LimitExceededException": Route53Profiles.LimitExceededException.self, + "ResourceExistsException": Route53Profiles.ResourceExistsException.self, + "ResourceNotFoundException": Route53Profiles.ResourceNotFoundException.self + ] +} + extension Route53ProfilesErrorType: Equatable { public static func == (lhs: Route53ProfilesErrorType, rhs: Route53ProfilesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_api.swift b/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_api.swift index 7e8cc8fcf7e..a24a5af3138 100644 --- a/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_api.swift +++ b/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_shapes.swift b/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_shapes.swift index 56a4042be38..7d515c7fa4f 100644 --- a/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_shapes.swift +++ b/Sources/Soto/Services/Route53RecoveryCluster/Route53RecoveryCluster_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -32,8 +31,38 @@ extension Route53RecoveryCluster { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct ConflictException: AWSErrorShape { + /// Description of the ConflictException error + public let message: String + /// Identifier of the resource in use + public let resourceId: String + /// Type of the resource in use + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct GetRoutingControlStateRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) for the routing control that you want to get the state for. public let routingControlArn: String @@ -76,6 +105,28 @@ extension Route53RecoveryCluster { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListRoutingControlsRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the control panel of the routing controls to list. public let controlPanelArn: String? @@ -126,6 +177,27 @@ extension Route53RecoveryCluster { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Hypothetical resource identifier that was not found + public let resourceId: String + /// Hypothetical resource type that was not found + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RoutingControl: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the control panel where the routing control is located. public let controlPanelArn: String? @@ -162,6 +234,57 @@ extension Route53RecoveryCluster { } } + public struct ServiceLimitExceededException: AWSErrorShape { + /// The code of the limit that was exceeded. + public let limitCode: String + public let message: String + /// The resource identifier of the limit that was exceeded. + public let resourceId: String? + /// The resource type of the limit that was exceeded. + public let resourceType: String? + /// The service code of the limit that was exceeded. + public let serviceCode: String + + @inlinable + public init(limitCode: String, message: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.limitCode = limitCode + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case limitCode = "limitCode" + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + + public struct ThrottlingException: AWSErrorShape { + public let message: String + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UpdateRoutingControlStateEntry: AWSEncodableShape { /// The Amazon Resource Name (ARN) for a routing control state entry. public let routingControlArn: String @@ -261,6 +384,43 @@ extension Route53RecoveryCluster { public struct UpdateRoutingControlStatesResponse: AWSDecodableShape { public init() {} } + + public struct ValidationException: AWSErrorShape { + public let fields: [ValidationExceptionField]? + public let message: String + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Information about the validation exception. + public let message: String + /// The field that had the validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -314,6 +474,17 @@ public struct Route53RecoveryClusterErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension Route53RecoveryClusterErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Route53RecoveryCluster.ConflictException.self, + "InternalServerException": Route53RecoveryCluster.InternalServerException.self, + "ResourceNotFoundException": Route53RecoveryCluster.ResourceNotFoundException.self, + "ServiceLimitExceededException": Route53RecoveryCluster.ServiceLimitExceededException.self, + "ThrottlingException": Route53RecoveryCluster.ThrottlingException.self, + "ValidationException": Route53RecoveryCluster.ValidationException.self + ] +} + extension Route53RecoveryClusterErrorType: Equatable { public static func == (lhs: Route53RecoveryClusterErrorType, rhs: Route53RecoveryClusterErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_api.swift b/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_api.swift index 6a3bfa50712..f966f930b18 100644 --- a/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_api.swift +++ b/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_shapes.swift b/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_shapes.swift index 104fed53650..9db0d6407db 100644 --- a/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_shapes.swift +++ b/Sources/Soto/Services/Route53RecoveryControlConfig/Route53RecoveryControlConfig_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_api.swift b/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_api.swift index 45610eed6d7..877275db7ba 100644 --- a/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_api.swift +++ b/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_shapes.swift b/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_shapes.swift index b8276cbad21..30de5afd7a6 100644 --- a/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_shapes.swift +++ b/Sources/Soto/Services/Route53RecoveryReadiness/Route53RecoveryReadiness_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53Resolver/Route53Resolver_api.swift b/Sources/Soto/Services/Route53Resolver/Route53Resolver_api.swift index 2b52bdf268a..13fe93cf5ff 100644 --- a/Sources/Soto/Services/Route53Resolver/Route53Resolver_api.swift +++ b/Sources/Soto/Services/Route53Resolver/Route53Resolver_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Route53Resolver/Route53Resolver_shapes.swift b/Sources/Soto/Services/Route53Resolver/Route53Resolver_shapes.swift index b695648f7dc..bd50867a194 100644 --- a/Sources/Soto/Services/Route53Resolver/Route53Resolver_shapes.swift +++ b/Sources/Soto/Services/Route53Resolver/Route53Resolver_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2377,6 +2376,23 @@ extension Route53Resolver { } } + public struct InvalidParameterException: AWSErrorShape { + /// For an InvalidParameterException error, the name of the parameter that's invalid. + public let fieldName: String? + public let message: String + + @inlinable + public init(fieldName: String? = nil, message: String) { + self.fieldName = fieldName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fieldName = "FieldName" + case message = "Message" + } + } + public struct IpAddressRequest: AWSEncodableShape { /// The IPv4 address that you want to use for DNS queries. public let ip: String? @@ -2493,6 +2509,23 @@ extension Route53Resolver { } } + public struct LimitExceededException: AWSErrorShape { + public let message: String? + /// For a LimitExceededException error, the type of resource that exceeded the current limit. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct ListFirewallConfigsRequest: AWSEncodableShape { /// The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a NextToken value that you can use in a subsequent call to get the next batch of objects. If you don't specify a value for MaxResults, Resolver returns up to 100 objects. public let maxResults: Int? @@ -3951,6 +3984,74 @@ extension Route53Resolver { } } + public struct ResourceExistsException: AWSErrorShape { + public let message: String? + /// For a ResourceExistsException error, the type of resource that the error applies to. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + + public struct ResourceInUseException: AWSErrorShape { + public let message: String? + /// For a ResourceInUseException error, the type of resource that is currently in use. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// For a ResourceNotFoundException error, the type of resource that doesn't exist. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + + public struct ResourceUnavailableException: AWSErrorShape { + public let message: String? + /// For a ResourceUnavailableException error, the type of resource that isn't available. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct Tag: AWSEncodableShape & AWSDecodableShape { /// The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, /// the value of Key might be account-id. @@ -4684,6 +4785,17 @@ public struct Route53ResolverErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension Route53ResolverErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidParameterException": Route53Resolver.InvalidParameterException.self, + "LimitExceededException": Route53Resolver.LimitExceededException.self, + "ResourceExistsException": Route53Resolver.ResourceExistsException.self, + "ResourceInUseException": Route53Resolver.ResourceInUseException.self, + "ResourceNotFoundException": Route53Resolver.ResourceNotFoundException.self, + "ResourceUnavailableException": Route53Resolver.ResourceUnavailableException.self + ] +} + extension Route53ResolverErrorType: Equatable { public static func == (lhs: Route53ResolverErrorType, rhs: Route53ResolverErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/S3/S3_api.swift b/Sources/Soto/Services/S3/S3_api.swift index 0256fc69ac3..68ed0199230 100644 --- a/Sources/Soto/Services/S3/S3_api.swift +++ b/Sources/Soto/Services/S3/S3_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/S3/S3_shapes.swift b/Sources/Soto/Services/S3/S3_shapes.swift index 8fc993117e6..91e2053fde9 100644 --- a/Sources/Soto/Services/S3/S3_shapes.swift +++ b/Sources/Soto/Services/S3/S3_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -5199,6 +5198,22 @@ extension S3 { } } + public struct InvalidObjectState: AWSErrorShape { + public let accessTier: IntelligentTieringAccessTier? + public let storageClass: StorageClass? + + @inlinable + public init(accessTier: IntelligentTieringAccessTier? = nil, storageClass: StorageClass? = nil) { + self.accessTier = accessTier + self.storageClass = storageClass + } + + private enum CodingKeys: String, CodingKey { + case accessTier = "AccessTier" + case storageClass = "StorageClass" + } + } + public struct InventoryConfiguration: AWSEncodableShape & AWSDecodableShape { public struct _OptionalFieldsEncoding: ArrayCoderProperties { public static let member = "Field" } @@ -10239,6 +10254,12 @@ public struct S3ErrorType: AWSErrorType { public static var tooManyParts: Self { .init(.tooManyParts) } } +extension S3ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidObjectState": S3.InvalidObjectState.self + ] +} + extension S3ErrorType: Equatable { public static func == (lhs: S3ErrorType, rhs: S3ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/S3Control/S3Control_api.swift b/Sources/Soto/Services/S3Control/S3Control_api.swift index d051d38560a..6295700ede9 100644 --- a/Sources/Soto/Services/S3Control/S3Control_api.swift +++ b/Sources/Soto/Services/S3Control/S3Control_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/S3Control/S3Control_shapes.swift b/Sources/Soto/Services/S3Control/S3Control_shapes.swift index 887734db978..9d4854ed8cc 100644 --- a/Sources/Soto/Services/S3Control/S3Control_shapes.swift +++ b/Sources/Soto/Services/S3Control/S3Control_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/S3Outposts/S3Outposts_api.swift b/Sources/Soto/Services/S3Outposts/S3Outposts_api.swift index 95a5429533b..e687a1cbd35 100644 --- a/Sources/Soto/Services/S3Outposts/S3Outposts_api.swift +++ b/Sources/Soto/Services/S3Outposts/S3Outposts_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/S3Outposts/S3Outposts_shapes.swift b/Sources/Soto/Services/S3Outposts/S3Outposts_shapes.swift index baf0983c843..746da627e48 100644 --- a/Sources/Soto/Services/S3Outposts/S3Outposts_shapes.swift +++ b/Sources/Soto/Services/S3Outposts/S3Outposts_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/S3Tables/S3Tables_api.swift b/Sources/Soto/Services/S3Tables/S3Tables_api.swift index 62b2f6f7071..78509b75881 100644 --- a/Sources/Soto/Services/S3Tables/S3Tables_api.swift +++ b/Sources/Soto/Services/S3Tables/S3Tables_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/S3Tables/S3Tables_shapes.swift b/Sources/Soto/Services/S3Tables/S3Tables_shapes.swift index 5be8bb57cba..d852d200911 100644 --- a/Sources/Soto/Services/S3Tables/S3Tables_shapes.swift +++ b/Sources/Soto/Services/S3Tables/S3Tables_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SES/SES_api.swift b/Sources/Soto/Services/SES/SES_api.swift index f39a8e4503c..915cb506bd3 100644 --- a/Sources/Soto/Services/SES/SES_api.swift +++ b/Sources/Soto/Services/SES/SES_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SES/SES_shapes.swift b/Sources/Soto/Services/SES/SES_shapes.swift index 9f67e951c4c..85153268a24 100644 --- a/Sources/Soto/Services/SES/SES_shapes.swift +++ b/Sources/Soto/Services/SES/SES_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -175,6 +174,23 @@ extension SES { } } + public struct AlreadyExistsException: AWSErrorShape { + public let message: String? + /// Indicates that a resource could not be created because the resource name already exists. + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "Name" + } + } + public struct Body: AWSEncodableShape { /// The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message. public let html: Content? @@ -297,6 +313,23 @@ extension SES { } } + public struct CannotDeleteException: AWSErrorShape { + public let message: String? + /// Indicates that a resource could not be deleted because no resource with the specified name exists. + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "Name" + } + } + public struct CloneReceiptRuleSetRequest: AWSEncodableShape { /// The name of the rule set to clone. public let originalRuleSetName: String @@ -370,6 +403,57 @@ extension SES { } } + public struct ConfigurationSetAlreadyExistsException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case message = "message" + } + } + + public struct ConfigurationSetDoesNotExistException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case message = "message" + } + } + + public struct ConfigurationSetSendingPausedException: AWSErrorShape { + /// The name of the configuration set for which email sending is disabled. + public let configurationSetName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case message = "message" + } + } + public struct ConnectAction: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) of the IAM role to be used by Amazon Simple Email Service while starting email contacts to the Amazon Connect instance. This role should have permission to invoke connect:StartEmailContact for the given Amazon Connect instance. public let iamRoleARN: String @@ -622,6 +706,40 @@ extension SES { } } + public struct CustomVerificationEmailTemplateAlreadyExistsException: AWSErrorShape { + /// Indicates that the provided custom verification email template with the specified template name already exists. + public let customVerificationEmailTemplateName: String? + public let message: String? + + @inlinable + public init(customVerificationEmailTemplateName: String? = nil, message: String? = nil) { + self.customVerificationEmailTemplateName = customVerificationEmailTemplateName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case customVerificationEmailTemplateName = "CustomVerificationEmailTemplateName" + case message = "message" + } + } + + public struct CustomVerificationEmailTemplateDoesNotExistException: AWSErrorShape { + /// Indicates that the provided custom verification email template does not exist. + public let customVerificationEmailTemplateName: String? + public let message: String? + + @inlinable + public init(customVerificationEmailTemplateName: String? = nil, message: String? = nil) { + self.customVerificationEmailTemplateName = customVerificationEmailTemplateName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case customVerificationEmailTemplateName = "CustomVerificationEmailTemplateName" + case message = "message" + } + } + public struct DeleteConfigurationSetEventDestinationRequest: AWSEncodableShape { /// The name of the configuration set from which to delete the event destination. public let configurationSetName: String @@ -1040,6 +1158,48 @@ extension SES { } } + public struct EventDestinationAlreadyExistsException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + /// Indicates that the event destination does not exist. + public let eventDestinationName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.eventDestinationName = eventDestinationName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case eventDestinationName = "EventDestinationName" + case message = "message" + } + } + + public struct EventDestinationDoesNotExistException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + /// Indicates that the event destination does not exist. + public let eventDestinationName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.eventDestinationName = eventDestinationName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case eventDestinationName = "EventDestinationName" + case message = "message" + } + } + public struct ExtensionField: AWSEncodableShape { /// The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only. public let name: String @@ -1058,6 +1218,23 @@ extension SES { } } + public struct FromEmailAddressNotVerifiedException: AWSErrorShape { + /// Indicates that the from email address associated with the custom verification email template is not verified. + public let fromEmailAddress: String? + public let message: String? + + @inlinable + public init(fromEmailAddress: String? = nil, message: String? = nil) { + self.fromEmailAddress = fromEmailAddress + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case fromEmailAddress = "FromEmailAddress" + case message = "message" + } + } + public struct GetAccountSendingEnabledResponse: AWSDecodableShape { /// Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region. public let enabled: Bool? @@ -1446,6 +1623,152 @@ extension SES { } } + public struct InvalidCloudWatchDestinationException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + /// Indicates that the event destination does not exist. + public let eventDestinationName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.eventDestinationName = eventDestinationName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case eventDestinationName = "EventDestinationName" + case message = "message" + } + } + + public struct InvalidFirehoseDestinationException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + /// Indicates that the event destination does not exist. + public let eventDestinationName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.eventDestinationName = eventDestinationName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case eventDestinationName = "EventDestinationName" + case message = "message" + } + } + + public struct InvalidLambdaFunctionException: AWSErrorShape { + /// Indicates that the ARN of the function was not found. + public let functionArn: String? + public let message: String? + + @inlinable + public init(functionArn: String? = nil, message: String? = nil) { + self.functionArn = functionArn + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case functionArn = "FunctionArn" + case message = "message" + } + } + + public struct InvalidRenderingParameterException: AWSErrorShape { + public let message: String? + public let templateName: String? + + @inlinable + public init(message: String? = nil, templateName: String? = nil) { + self.message = message + self.templateName = templateName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case templateName = "TemplateName" + } + } + + public struct InvalidS3ConfigurationException: AWSErrorShape { + /// Indicated that the S3 Bucket was not found. + public let bucket: String? + public let message: String? + + @inlinable + public init(bucket: String? = nil, message: String? = nil) { + self.bucket = bucket + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case bucket = "Bucket" + case message = "message" + } + } + + public struct InvalidSNSDestinationException: AWSErrorShape { + /// Indicates that the configuration set does not exist. + public let configurationSetName: String? + /// Indicates that the event destination does not exist. + public let eventDestinationName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, eventDestinationName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.eventDestinationName = eventDestinationName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case eventDestinationName = "EventDestinationName" + case message = "message" + } + } + + public struct InvalidSnsTopicException: AWSErrorShape { + public let message: String? + /// Indicates that the topic does not exist. + public let topic: String? + + @inlinable + public init(message: String? = nil, topic: String? = nil) { + self.message = message + self.topic = topic + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case topic = "Topic" + } + } + + public struct InvalidTemplateException: AWSErrorShape { + public let message: String? + public let templateName: String? + + @inlinable + public init(message: String? = nil, templateName: String? = nil) { + self.message = message + self.templateName = templateName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case templateName = "TemplateName" + } + } + public struct KinesisFirehoseDestination: AWSEncodableShape & AWSDecodableShape { /// The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to. public let deliveryStreamARN: String @@ -1798,6 +2121,22 @@ extension SES { } } + public struct MissingRenderingAttributeException: AWSErrorShape { + public let message: String? + public let templateName: String? + + @inlinable + public init(message: String? = nil, templateName: String? = nil) { + self.message = message + self.templateName = templateName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case templateName = "TemplateName" + } + } + public struct PutConfigurationSetDeliveryOptionsRequest: AWSEncodableShape { /// The name of the configuration set. public let configurationSetName: String @@ -2093,6 +2432,40 @@ extension SES { } } + public struct RuleDoesNotExistException: AWSErrorShape { + public let message: String? + /// Indicates that the named receipt rule does not exist. + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "Name" + } + } + + public struct RuleSetDoesNotExistException: AWSErrorShape { + public let message: String? + /// Indicates that the named receipt rule set does not exist. + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "Name" + } + } + public struct S3Action: AWSEncodableShape & AWSDecodableShape { /// The name of the Amazon S3 bucket for incoming email. public let bucketName: String @@ -2759,6 +3132,22 @@ extension SES { } } + public struct TemplateDoesNotExistException: AWSErrorShape { + public let message: String? + public let templateName: String? + + @inlinable + public init(message: String? = nil, templateName: String? = nil) { + self.message = message + self.templateName = templateName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case templateName = "TemplateName" + } + } + public struct TemplateMetadata: AWSDecodableShape { /// The time and date the template was created. public let createdTimestamp: Date? @@ -2827,6 +3216,40 @@ extension SES { } } + public struct TrackingOptionsAlreadyExistsException: AWSErrorShape { + /// Indicates that a TrackingOptions object already exists in the specified configuration set. + public let configurationSetName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case message = "message" + } + } + + public struct TrackingOptionsDoesNotExistException: AWSErrorShape { + /// Indicates that a TrackingOptions object does not exist in the specified configuration set. + public let configurationSetName: String? + public let message: String? + + @inlinable + public init(configurationSetName: String? = nil, message: String? = nil) { + self.configurationSetName = configurationSetName + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case configurationSetName = "ConfigurationSetName" + case message = "message" + } + } + public struct UpdateAccountSendingEnabledRequest: AWSEncodableShape { /// Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region. public let enabled: Bool? @@ -3234,6 +3657,35 @@ public struct SESErrorType: AWSErrorType { public static var trackingOptionsDoesNotExistException: Self { .init(.trackingOptionsDoesNotExistException) } } +extension SESErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AlreadyExists": SES.AlreadyExistsException.self, + "CannotDelete": SES.CannotDeleteException.self, + "ConfigurationSetAlreadyExists": SES.ConfigurationSetAlreadyExistsException.self, + "ConfigurationSetDoesNotExist": SES.ConfigurationSetDoesNotExistException.self, + "ConfigurationSetSendingPausedException": SES.ConfigurationSetSendingPausedException.self, + "CustomVerificationEmailTemplateAlreadyExists": SES.CustomVerificationEmailTemplateAlreadyExistsException.self, + "CustomVerificationEmailTemplateDoesNotExist": SES.CustomVerificationEmailTemplateDoesNotExistException.self, + "EventDestinationAlreadyExists": SES.EventDestinationAlreadyExistsException.self, + "EventDestinationDoesNotExist": SES.EventDestinationDoesNotExistException.self, + "FromEmailAddressNotVerified": SES.FromEmailAddressNotVerifiedException.self, + "InvalidCloudWatchDestination": SES.InvalidCloudWatchDestinationException.self, + "InvalidFirehoseDestination": SES.InvalidFirehoseDestinationException.self, + "InvalidLambdaFunction": SES.InvalidLambdaFunctionException.self, + "InvalidRenderingParameter": SES.InvalidRenderingParameterException.self, + "InvalidS3Configuration": SES.InvalidS3ConfigurationException.self, + "InvalidSNSDestination": SES.InvalidSNSDestinationException.self, + "InvalidSnsTopic": SES.InvalidSnsTopicException.self, + "InvalidTemplate": SES.InvalidTemplateException.self, + "MissingRenderingAttribute": SES.MissingRenderingAttributeException.self, + "RuleDoesNotExist": SES.RuleDoesNotExistException.self, + "RuleSetDoesNotExist": SES.RuleSetDoesNotExistException.self, + "TemplateDoesNotExist": SES.TemplateDoesNotExistException.self, + "TrackingOptionsAlreadyExistsException": SES.TrackingOptionsAlreadyExistsException.self, + "TrackingOptionsDoesNotExistException": SES.TrackingOptionsDoesNotExistException.self + ] +} + extension SESErrorType: Equatable { public static func == (lhs: SESErrorType, rhs: SESErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SESv2/SESv2_api.swift b/Sources/Soto/Services/SESv2/SESv2_api.swift index 98ba534371c..6161d8580ac 100644 --- a/Sources/Soto/Services/SESv2/SESv2_api.swift +++ b/Sources/Soto/Services/SESv2/SESv2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SESv2/SESv2_shapes.swift b/Sources/Soto/Services/SESv2/SESv2_shapes.swift index 2a54b7310d5..c475f897297 100644 --- a/Sources/Soto/Services/SESv2/SESv2_shapes.swift +++ b/Sources/Soto/Services/SESv2/SESv2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SFN/SFN_api.swift b/Sources/Soto/Services/SFN/SFN_api.swift index b6a41e3d98a..9d032f1c231 100644 --- a/Sources/Soto/Services/SFN/SFN_api.swift +++ b/Sources/Soto/Services/SFN/SFN_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SFN/SFN_shapes.swift b/Sources/Soto/Services/SFN/SFN_shapes.swift index bf426dd5e0b..fe5b201d081 100644 --- a/Sources/Soto/Services/SFN/SFN_shapes.swift +++ b/Sources/Soto/Services/SFN/SFN_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -134,6 +133,15 @@ extension SFN { public var description: String { return self.rawValue } } + public enum KmsKeyState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case creating = "CREATING" + case disabled = "DISABLED" + case pendingDeletion = "PENDING_DELETION" + case pendingImport = "PENDING_IMPORT" + case unavailable = "UNAVAILABLE" + public var description: String { return self.rawValue } + } + public enum LogLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case all = "ALL" case error = "ERROR" @@ -189,6 +197,14 @@ extension SFN { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case apiDoesNotSupportLabeledArns = "API_DOES_NOT_SUPPORT_LABELED_ARNS" + case cannotUpdateCompletedMapRun = "CANNOT_UPDATE_COMPLETED_MAP_RUN" + case invalidRoutingConfiguration = "INVALID_ROUTING_CONFIGURATION" + case missingRequiredParameter = "MISSING_REQUIRED_PARAMETER" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct ActivityFailedEventDetails: AWSDecodableShape { @@ -1739,6 +1755,23 @@ extension SFN { } } + public struct KmsInvalidStateException: AWSErrorShape { + /// Current status of the KMS; key. For example: DISABLED, PENDING_DELETION, PENDING_IMPORT, UNAVAILABLE, CREATING. + public let kmsKeyState: KmsKeyState? + public let message: String? + + @inlinable + public init(kmsKeyState: KmsKeyState? = nil, message: String? = nil) { + self.kmsKeyState = kmsKeyState + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case kmsKeyState = "kmsKeyState" + case message = "message" + } + } + public struct LambdaFunctionFailedEventDetails: AWSDecodableShape { /// A more detailed explanation of the cause of the failure. public let cause: String? @@ -2531,6 +2564,22 @@ extension SFN { } } + public struct ResourceNotFound: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct RoutingConfigurationListItem: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration. If you specify the ARN of a second version, it must belong to the same state machine as the first version. public let stateMachineVersionArn: String @@ -3311,6 +3360,22 @@ extension SFN { } } + public struct TooManyTags: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct TracingConfiguration: AWSEncodableShape & AWSDecodableShape { /// When set to true, X-Ray tracing is enabled. public let enabled: Bool? @@ -3598,6 +3663,23 @@ extension SFN { case truncated = "truncated" } } + + public struct ValidationException: AWSErrorShape { + public let message: String? + /// The input does not satisfy the constraints specified by an Amazon Web Services service. + public let reason: ValidationExceptionReason? + + @inlinable + public init(message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } } // MARK: - Errors @@ -3726,6 +3808,15 @@ public struct SFNErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SFNErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "KmsInvalidStateException": SFN.KmsInvalidStateException.self, + "ResourceNotFound": SFN.ResourceNotFound.self, + "TooManyTags": SFN.TooManyTags.self, + "ValidationException": SFN.ValidationException.self + ] +} + extension SFNErrorType: Equatable { public static func == (lhs: SFNErrorType, rhs: SFNErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SMS/SMS_api.swift b/Sources/Soto/Services/SMS/SMS_api.swift index 78e20f682b3..f31cb901169 100644 --- a/Sources/Soto/Services/SMS/SMS_api.swift +++ b/Sources/Soto/Services/SMS/SMS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SMS/SMS_shapes.swift b/Sources/Soto/Services/SMS/SMS_shapes.swift index c12b0b95b23..f634465abed 100644 --- a/Sources/Soto/Services/SMS/SMS_shapes.swift +++ b/Sources/Soto/Services/SMS/SMS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SNS/SNS_api.swift b/Sources/Soto/Services/SNS/SNS_api.swift index 34bd3b6353a..677a1139c09 100644 --- a/Sources/Soto/Services/SNS/SNS_api.swift +++ b/Sources/Soto/Services/SNS/SNS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SNS/SNS_shapes.swift b/Sources/Soto/Services/SNS/SNS_shapes.swift index 65fe5901d64..20a1e74bff4 100644 --- a/Sources/Soto/Services/SNS/SNS_shapes.swift +++ b/Sources/Soto/Services/SNS/SNS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1552,6 +1551,23 @@ extension SNS { public init() {} } + public struct VerificationException: AWSErrorShape { + public let message: String + /// The status of the verification error. + public let status: String + + @inlinable + public init(message: String, status: String) { + self.message = message + self.status = status + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case status = "Status" + } + } + public struct VerifySMSSandboxPhoneNumberInput: AWSEncodableShape { /// The OTP sent to the destination number from the CreateSMSSandBoxPhoneNumber call. public let oneTimePassword: String @@ -1712,6 +1728,12 @@ public struct SNSErrorType: AWSErrorType { public static var verificationException: Self { .init(.verificationException) } } +extension SNSErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "VerificationException": SNS.VerificationException.self + ] +} + extension SNSErrorType: Equatable { public static func == (lhs: SNSErrorType, rhs: SNSErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SQS/SQS_api.swift b/Sources/Soto/Services/SQS/SQS_api.swift index 380d69a7442..9967881f375 100644 --- a/Sources/Soto/Services/SQS/SQS_api.swift +++ b/Sources/Soto/Services/SQS/SQS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SQS/SQS_shapes.swift b/Sources/Soto/Services/SQS/SQS_shapes.swift index e039fdac333..f12c4b5dd9c 100644 --- a/Sources/Soto/Services/SQS/SQS_shapes.swift +++ b/Sources/Soto/Services/SQS/SQS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSM/SSM_api.swift b/Sources/Soto/Services/SSM/SSM_api.swift index d5b66dd8709..f4b45b5e369 100644 --- a/Sources/Soto/Services/SSM/SSM_api.swift +++ b/Sources/Soto/Services/SSM/SSM_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSM/SSM_shapes.swift b/Sources/Soto/Services/SSM/SSM_shapes.swift index 05e28d6318f..a0fa7292e57 100644 --- a/Sources/Soto/Services/SSM/SSM_shapes.swift +++ b/Sources/Soto/Services/SSM/SSM_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -8650,6 +8649,22 @@ extension SSM { } } + public struct InvalidItemContentException: AWSErrorShape { + public let message: String? + public let typeName: String? + + @inlinable + public init(message: String? = nil, typeName: String? = nil) { + self.message = message + self.typeName = typeName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case typeName = "TypeName" + } + } + public struct InventoryAggregator: AWSEncodableShape { /// Nested aggregators to further refine aggregation for an inventory type. public let aggregators: [InventoryAggregator]? @@ -8971,6 +8986,38 @@ extension SSM { } } + public struct ItemContentMismatchException: AWSErrorShape { + public let message: String? + public let typeName: String? + + @inlinable + public init(message: String? = nil, typeName: String? = nil) { + self.message = message + self.typeName = typeName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case typeName = "TypeName" + } + } + + public struct ItemSizeLimitExceededException: AWSErrorShape { + public let message: String? + public let typeName: String? + + @inlinable + public init(message: String? = nil, typeName: String? = nil) { + self.message = message + self.typeName = typeName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case typeName = "TypeName" + } + } + public struct LabelParameterVersionRequest: AWSEncodableShape { /// One or more labels to attach to the specified parameter version. public let labels: [String] @@ -11036,6 +11083,22 @@ extension SSM { } } + public struct OpsItemAlreadyExistsException: AWSErrorShape { + public let message: String? + public let opsItemId: String? + + @inlinable + public init(message: String? = nil, opsItemId: String? = nil) { + self.message = message + self.opsItemId = opsItemId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case opsItemId = "OpsItemId" + } + } + public struct OpsItemDataValue: AWSEncodableShape & AWSDecodableShape { /// The type of key-value pair. Valid types include SearchableString and String. public let type: OpsItemDataType? @@ -11162,6 +11225,44 @@ extension SSM { } } + public struct OpsItemInvalidParameterException: AWSErrorShape { + public let message: String? + public let parameterNames: [String]? + + @inlinable + public init(message: String? = nil, parameterNames: [String]? = nil) { + self.message = message + self.parameterNames = parameterNames + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case parameterNames = "ParameterNames" + } + } + + public struct OpsItemLimitExceededException: AWSErrorShape { + public let limit: Int? + public let limitType: String? + public let message: String? + public let resourceTypes: [String]? + + @inlinable + public init(limit: Int? = nil, limitType: String? = nil, message: String? = nil, resourceTypes: [String]? = nil) { + self.limit = limit + self.limitType = limitType + self.message = message + self.resourceTypes = resourceTypes + } + + private enum CodingKeys: String, CodingKey { + case limit = "Limit" + case limitType = "LimitType" + case message = "Message" + case resourceTypes = "ResourceTypes" + } + } + public struct OpsItemNotification: AWSEncodableShape & AWSDecodableShape { /// The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed. public let arn: String? @@ -11176,6 +11277,25 @@ extension SSM { } } + public struct OpsItemRelatedItemAlreadyExistsException: AWSErrorShape { + public let message: String? + public let opsItemId: String? + public let resourceUri: String? + + @inlinable + public init(message: String? = nil, opsItemId: String? = nil, resourceUri: String? = nil) { + self.message = message + self.opsItemId = opsItemId + self.resourceUri = resourceUri + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case opsItemId = "OpsItemId" + case resourceUri = "ResourceUri" + } + } + public struct OpsItemRelatedItemSummary: AWSDecodableShape { /// The association ID. public let associationId: String? @@ -12785,6 +12905,19 @@ extension SSM { } } + public struct ResourceDataSyncAlreadyExistsException: AWSErrorShape { + public let syncName: String? + + @inlinable + public init(syncName: String? = nil) { + self.syncName = syncName + } + + private enum CodingKeys: String, CodingKey { + case syncName = "SyncName" + } + } + public struct ResourceDataSyncAwsOrganizationsSource: AWSEncodableShape & AWSDecodableShape { /// The Organizations organization units included in the sync. public let organizationalUnits: [ResourceDataSyncOrganizationalUnit]? @@ -12882,6 +13015,25 @@ extension SSM { } } + public struct ResourceDataSyncNotFoundException: AWSErrorShape { + public let message: String? + public let syncName: String? + public let syncType: String? + + @inlinable + public init(message: String? = nil, syncName: String? = nil, syncType: String? = nil) { + self.message = message + self.syncName = syncName + self.syncType = syncType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case syncName = "SyncName" + case syncType = "SyncType" + } + } + public struct ResourceDataSyncOrganizationalUnit: AWSEncodableShape & AWSDecodableShape { /// The Organizations unit ID data source for the sync. public let organizationalUnitId: String? @@ -13023,6 +13175,41 @@ extension SSM { } } + public struct ResourcePolicyInvalidParameterException: AWSErrorShape { + public let message: String? + public let parameterNames: [String]? + + @inlinable + public init(message: String? = nil, parameterNames: [String]? = nil) { + self.message = message + self.parameterNames = parameterNames + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case parameterNames = "ParameterNames" + } + } + + public struct ResourcePolicyLimitExceededException: AWSErrorShape { + public let limit: Int? + public let limitType: String? + public let message: String? + + @inlinable + public init(limit: Int? = nil, limitType: String? = nil, message: String? = nil) { + self.limit = limit + self.limitType = limitType + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case limit = "Limit" + case limitType = "LimitType" + case message = "Message" + } + } + public struct ResultAttribute: AWSEncodableShape { /// Name of the inventory item type. Valid value: AWS:InstanceInformation. Default Value: AWS:InstanceInformation. public let typeName: String @@ -14331,6 +14518,22 @@ extension SSM { } } + public struct UnsupportedInventoryItemContextException: AWSErrorShape { + public let message: String? + public let typeName: String? + + @inlinable + public init(message: String? = nil, typeName: String? = nil) { + self.message = message + self.typeName = typeName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case typeName = "TypeName" + } + } + public struct UpdateAssociationRequest: AWSEncodableShape { public let alarmConfiguration: AlarmConfiguration? /// By default, when you update an association, the system runs it immediately after it is updated and then according to the schedule you specified. Specify true for ApplyOnlyAtCronInterval if you want the association to run only according to the schedule you specified. If you chose this option when you created an association and later you edit that association or you make changes to the Automation runbook or SSM document on which that association is based, State Manager applies the association at the next specified cron interval. For example, if you chose the Latest version of an SSM document when you created an association and you edit the association by choosing a different document version on the Documents page, State Manager applies the association at the next specified cron interval if you previously set ApplyOnlyAtCronInterval to true. If this option wasn't selected, State Manager immediately runs the association. For more information, see Understanding when associations are applied to resources and About target updates with Automation runbooks in the Amazon Web Services Systems Manager User Guide. This parameter isn't supported for rate expressions. You can reset this parameter. To do so, specify the no-apply-only-at-cron-interval parameter when you update the association from the command line. This parameter forces the association to run immediately after updating it and according to the interval specified. @@ -15473,6 +15676,23 @@ extension SSM { public init() {} } + public struct ValidationException: AWSErrorShape { + public let message: String? + /// The reason code for the invalid request. + public let reasonCode: String? + + @inlinable + public init(message: String? = nil, reasonCode: String? = nil) { + self.message = message + self.reasonCode = reasonCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case reasonCode = "ReasonCode" + } + } + public struct ExecutionInputs: AWSEncodableShape { /// Information about the optional inputs that can be specified for an automation execution preview. public let automation: AutomationExecutionInputs? @@ -15952,6 +16172,24 @@ public struct SSMErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SSMErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidItemContentException": SSM.InvalidItemContentException.self, + "ItemContentMismatchException": SSM.ItemContentMismatchException.self, + "ItemSizeLimitExceededException": SSM.ItemSizeLimitExceededException.self, + "OpsItemAlreadyExistsException": SSM.OpsItemAlreadyExistsException.self, + "OpsItemInvalidParameterException": SSM.OpsItemInvalidParameterException.self, + "OpsItemLimitExceededException": SSM.OpsItemLimitExceededException.self, + "OpsItemRelatedItemAlreadyExistsException": SSM.OpsItemRelatedItemAlreadyExistsException.self, + "ResourceDataSyncAlreadyExistsException": SSM.ResourceDataSyncAlreadyExistsException.self, + "ResourceDataSyncNotFoundException": SSM.ResourceDataSyncNotFoundException.self, + "ResourcePolicyInvalidParameterException": SSM.ResourcePolicyInvalidParameterException.self, + "ResourcePolicyLimitExceededException": SSM.ResourcePolicyLimitExceededException.self, + "UnsupportedInventoryItemContextException": SSM.UnsupportedInventoryItemContextException.self, + "ValidationException": SSM.ValidationException.self + ] +} + extension SSMErrorType: Equatable { public static func == (lhs: SSMErrorType, rhs: SSMErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SSMContacts/SSMContacts_api.swift b/Sources/Soto/Services/SSMContacts/SSMContacts_api.swift index 79040d2b924..c2f17541f45 100644 --- a/Sources/Soto/Services/SSMContacts/SSMContacts_api.swift +++ b/Sources/Soto/Services/SSMContacts/SSMContacts_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSMContacts/SSMContacts_shapes.swift b/Sources/Soto/Services/SSMContacts/SSMContacts_shapes.swift index a8b71d269be..b6da286f2a8 100644 --- a/Sources/Soto/Services/SSMContacts/SSMContacts_shapes.swift +++ b/Sources/Soto/Services/SSMContacts/SSMContacts_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -84,6 +83,14 @@ extension SSMContacts { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AcceptPageRequest: AWSEncodableShape { @@ -196,6 +203,31 @@ extension SSMContacts { } } + public struct ConflictException: AWSErrorShape { + /// List of dependent entities containing information on relation type and resourceArns linked to the resource in use + public let dependentEntities: [DependentEntity]? + public let message: String + /// Identifier of the resource in use + public let resourceId: String + /// Type of the resource in use + public let resourceType: String + + @inlinable + public init(dependentEntities: [DependentEntity]? = nil, message: String, resourceId: String, resourceType: String) { + self.dependentEntities = dependentEntities + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case dependentEntities = "DependentEntities" + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct Contact: AWSDecodableShape { /// The unique and identifiable alias of the contact or escalation plan. public let alias: String @@ -705,6 +737,24 @@ extension SSMContacts { public init() {} } + public struct DependentEntity: AWSDecodableShape { + /// The Amazon Resource Names (ARNs) of the dependent resources. + public let dependentResourceIds: [String] + /// The type of relationship between one resource and the other resource that it is related to or depends on. + public let relationType: String + + @inlinable + public init(dependentResourceIds: [String], relationType: String) { + self.dependentResourceIds = dependentResourceIds + self.relationType = relationType + } + + private enum CodingKeys: String, CodingKey { + case dependentResourceIds = "DependentResourceIds" + case relationType = "RelationType" + } + } + public struct DescribeEngagementRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the engagement you want the details of. public let engagementId: String @@ -1169,6 +1219,29 @@ extension SSMContacts { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// Advice to clients on when the call can be safely retried + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + } + } + public struct ListContactChannelsRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the contact. public let contactId: String @@ -2059,6 +2132,27 @@ extension SSMContacts { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Hypothetical resource identifier that was not found + public let resourceId: String + /// Hypothetical resource type that was not found + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct Rotation: AWSDecodableShape { /// The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team. public let contactIds: [String]? @@ -2177,6 +2271,35 @@ extension SSMContacts { public init() {} } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// Service Quotas requirement to identify originating service + public let quotaCode: String + /// Identifier of the resource affected + public let resourceId: String? + /// Type of the resource affected + public let resourceType: String? + /// Service Quotas requirement to identify originating quota + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct ShiftDetails: AWSDecodableShape { /// The Amazon Resources Names (ARNs) of the contacts who were replaced in a shift when an override was created. If the override is deleted, these contacts are restored to the shift. public let overriddenContactIds: [String] @@ -2408,6 +2531,39 @@ extension SSMContacts { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Service Quotas requirement to identify originating service + public let quotaCode: String? + /// Advice to clients on when the call can be safely retried + public let retryAfterSeconds: Int? + /// Service Quotas requirement to identify originating quota + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct TimeRange: AWSEncodableShape { /// The end of the time range. public let endTime: Date? @@ -2581,6 +2737,45 @@ extension SSMContacts { public init() {} } + public struct ValidationException: AWSErrorShape { + /// The fields that caused the error + public let fields: [ValidationExceptionField]? + public let message: String + /// Reason the request failed validation + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Information about what caused the field to cause an exception. + public let message: String + /// The name of the field that caused the exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } + public struct WeeklySetting: AWSEncodableShape & AWSDecodableShape { /// The day of the week when weekly recurring on-call shift rotations begins. public let dayOfWeek: DayOfWeek @@ -2655,6 +2850,17 @@ public struct SSMContactsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SSMContactsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": SSMContacts.ConflictException.self, + "InternalServerException": SSMContacts.InternalServerException.self, + "ResourceNotFoundException": SSMContacts.ResourceNotFoundException.self, + "ServiceQuotaExceededException": SSMContacts.ServiceQuotaExceededException.self, + "ThrottlingException": SSMContacts.ThrottlingException.self, + "ValidationException": SSMContacts.ValidationException.self + ] +} + extension SSMContactsErrorType: Equatable { public static func == (lhs: SSMContactsErrorType, rhs: SSMContactsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SSMIncidents/SSMIncidents_api.swift b/Sources/Soto/Services/SSMIncidents/SSMIncidents_api.swift index e40179b477b..31bf9034063 100644 --- a/Sources/Soto/Services/SSMIncidents/SSMIncidents_api.swift +++ b/Sources/Soto/Services/SSMIncidents/SSMIncidents_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSMIncidents/SSMIncidents_shapes.swift b/Sources/Soto/Services/SSMIncidents/SSMIncidents_shapes.swift index 0b4f4ed77fc..8d2ae05fd86 100644 --- a/Sources/Soto/Services/SSMIncidents/SSMIncidents_shapes.swift +++ b/Sources/Soto/Services/SSMIncidents/SSMIncidents_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -71,6 +70,20 @@ extension SSMIncidents { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case incidentRecord = "INCIDENT_RECORD" + case replicationSet = "REPLICATION_SET" + case resourcePolicy = "RESOURCE_POLICY" + case responsePlan = "RESPONSE_PLAN" + case timelineEvent = "TIMELINE_EVENT" + public var description: String { return self.rawValue } + } + + public enum ServiceCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case ssmIncidents = "ssm-incidents" + public var description: String { return self.rawValue } + } + public enum SortOrder: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case ascending = "ASCENDING" case descending = "DESCENDING" @@ -571,6 +584,31 @@ extension SSMIncidents { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The identifier of the requested resource + public let resourceIdentifier: String? + /// The resource type + public let resourceType: ResourceType? + /// If present in the output, the operation can be retried after this time + public let retryAfter: Date? + + @inlinable + public init(message: String, resourceIdentifier: String? = nil, resourceType: ResourceType? = nil, retryAfter: Date? = nil) { + self.message = message + self.resourceIdentifier = resourceIdentifier + self.resourceType = resourceType + self.retryAfter = retryAfter + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceIdentifier = "resourceIdentifier" + case resourceType = "resourceType" + case retryAfter = "retryAfter" + } + } + public struct CreateReplicationSetInput: AWSEncodableShape { /// A token that ensures that the operation is called only once with the specified details. public let clientToken: String? @@ -2007,6 +2045,27 @@ extension SSMIncidents { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier for the requested resource + public let resourceIdentifier: String? + /// The resource type + public let resourceType: ResourceType? + + @inlinable + public init(message: String, resourceIdentifier: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceIdentifier = resourceIdentifier + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceIdentifier = "resourceIdentifier" + case resourceType = "resourceType" + } + } + public struct ResourcePolicy: AWSDecodableShape { /// The JSON blob that describes the policy. public let policyDocument: String @@ -2051,6 +2110,35 @@ extension SSMIncidents { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// Originating quota code + public let quotaCode: String + /// The identifier for the requested resource + public let resourceIdentifier: String? + /// The resource type + public let resourceType: ResourceType? + /// Originating service code + public let serviceCode: ServiceCode + + @inlinable + public init(message: String, quotaCode: String, resourceIdentifier: String? = nil, resourceType: ResourceType? = nil, serviceCode: ServiceCode) { + self.message = message + self.quotaCode = quotaCode + self.resourceIdentifier = resourceIdentifier + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceIdentifier = "resourceIdentifier" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct SsmAutomation: AWSEncodableShape & AWSDecodableShape { /// The automation document's name. public let documentName: String @@ -2199,6 +2287,27 @@ extension SSMIncidents { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// Originating quota code + public let quotaCode: String + /// Originating service code + public let serviceCode: ServiceCode + + @inlinable + public init(message: String, quotaCode: String, serviceCode: ServiceCode) { + self.message = message + self.quotaCode = quotaCode + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct TimelineEvent: AWSDecodableShape { /// A short description of the event. public let eventData: String @@ -2751,6 +2860,15 @@ public struct SSMIncidentsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SSMIncidentsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": SSMIncidents.ConflictException.self, + "ResourceNotFoundException": SSMIncidents.ResourceNotFoundException.self, + "ServiceQuotaExceededException": SSMIncidents.ServiceQuotaExceededException.self, + "ThrottlingException": SSMIncidents.ThrottlingException.self + ] +} + extension SSMIncidentsErrorType: Equatable { public static func == (lhs: SSMIncidentsErrorType, rhs: SSMIncidentsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_api.swift b/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_api.swift index 5264aa7e3bc..2adaf60af53 100644 --- a/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_api.swift +++ b/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_shapes.swift b/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_shapes.swift index 967b064bce4..3915784aac9 100644 --- a/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_shapes.swift +++ b/Sources/Soto/Services/SSMQuickSetup/SSMQuickSetup_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSO/SSO_api.swift b/Sources/Soto/Services/SSO/SSO_api.swift index fa8c1c11f90..60374f92784 100644 --- a/Sources/Soto/Services/SSO/SSO_api.swift +++ b/Sources/Soto/Services/SSO/SSO_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSO/SSO_shapes.swift b/Sources/Soto/Services/SSO/SSO_shapes.swift index 57f436fd4af..41b743bf6d9 100644 --- a/Sources/Soto/Services/SSO/SSO_shapes.swift +++ b/Sources/Soto/Services/SSO/SSO_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSOAdmin/SSOAdmin_api.swift b/Sources/Soto/Services/SSOAdmin/SSOAdmin_api.swift index aa48eb53749..6350b9379a2 100644 --- a/Sources/Soto/Services/SSOAdmin/SSOAdmin_api.swift +++ b/Sources/Soto/Services/SSOAdmin/SSOAdmin_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSOAdmin/SSOAdmin_shapes.swift b/Sources/Soto/Services/SSOAdmin/SSOAdmin_shapes.swift index 6e1b013770e..0d03be0ce14 100644 --- a/Sources/Soto/Services/SSOAdmin/SSOAdmin_shapes.swift +++ b/Sources/Soto/Services/SSOAdmin/SSOAdmin_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSOOIDC/SSOOIDC_api.swift b/Sources/Soto/Services/SSOOIDC/SSOOIDC_api.swift index 673d77b48b0..798b74acde0 100644 --- a/Sources/Soto/Services/SSOOIDC/SSOOIDC_api.swift +++ b/Sources/Soto/Services/SSOOIDC/SSOOIDC_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SSOOIDC/SSOOIDC_shapes.swift b/Sources/Soto/Services/SSOOIDC/SSOOIDC_shapes.swift index 813dc6d9a5b..b73bae9d43c 100644 --- a/Sources/Soto/Services/SSOOIDC/SSOOIDC_shapes.swift +++ b/Sources/Soto/Services/SSOOIDC/SSOOIDC_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -28,6 +27,42 @@ extension SSOOIDC { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// Single error code. For this exception the value will be access_denied. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct AuthorizationPendingException: AWSErrorShape { + /// Single error code. For this exception the value will be authorization_pending. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + public struct CreateTokenRequest: AWSEncodableShape { /// The unique identifier string for the client or application. This value comes from the result of the RegisterClient API. public let clientId: String @@ -196,6 +231,176 @@ extension SSOOIDC { } } + public struct ExpiredTokenException: AWSErrorShape { + /// Single error code. For this exception the value will be expired_token. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InternalServerException: AWSErrorShape { + /// Single error code. For this exception the value will be server_error. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InvalidClientException: AWSErrorShape { + /// Single error code. For this exception the value will be invalid_client. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InvalidClientMetadataException: AWSErrorShape { + /// Single error code. For this exception the value will be invalid_client_metadata. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InvalidGrantException: AWSErrorShape { + /// Single error code. For this exception the value will be invalid_grant. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InvalidRedirectUriException: AWSErrorShape { + /// Single error code. For this exception the value will be invalid_redirect_uri. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InvalidRequestException: AWSErrorShape { + /// Single error code. For this exception the value will be invalid_request. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct InvalidRequestRegionException: AWSErrorShape { + /// Indicates the IAM Identity Center endpoint which the requester may call with this token. + public let endpoint: String? + /// Single error code. For this exception the value will be invalid_request. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + /// Indicates the region which the requester may call with this token. + public let region: String? + + @inlinable + public init(endpoint: String? = nil, error: String? = nil, errorDescription: String? = nil, region: String? = nil) { + self.endpoint = endpoint + self.error = error + self.errorDescription = errorDescription + self.region = region + } + + private enum CodingKeys: String, CodingKey { + case endpoint = "endpoint" + case error = "error" + case errorDescription = "error_description" + case region = "region" + } + } + + public struct InvalidScopeException: AWSErrorShape { + /// Single error code. For this exception the value will be invalid_scope. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + public struct RegisterClientRequest: AWSEncodableShape { /// The friendly name of the client. public let clientName: String @@ -268,6 +473,24 @@ extension SSOOIDC { } } + public struct SlowDownException: AWSErrorShape { + /// Single error code. For this exception the value will be slow_down. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + public struct StartDeviceAuthorizationRequest: AWSEncodableShape { /// The unique identifier string for the client that is registered with IAM Identity Center. This value should come from the persisted result of the RegisterClient API operation. public let clientId: String @@ -323,6 +546,42 @@ extension SSOOIDC { case verificationUriComplete = "verificationUriComplete" } } + + public struct UnauthorizedClientException: AWSErrorShape { + /// Single error code. For this exception the value will be unauthorized_client. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } + + public struct UnsupportedGrantTypeException: AWSErrorShape { + /// Single error code. For this exception the value will be unsupported_grant_type. + public let error: String? + /// Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. + public let errorDescription: String? + + @inlinable + public init(error: String? = nil, errorDescription: String? = nil) { + self.error = error + self.errorDescription = errorDescription + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case errorDescription = "error_description" + } + } } // MARK: - Errors @@ -394,6 +653,25 @@ public struct SSOOIDCErrorType: AWSErrorType { public static var unsupportedGrantTypeException: Self { .init(.unsupportedGrantTypeException) } } +extension SSOOIDCErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": SSOOIDC.AccessDeniedException.self, + "AuthorizationPendingException": SSOOIDC.AuthorizationPendingException.self, + "ExpiredTokenException": SSOOIDC.ExpiredTokenException.self, + "InternalServerException": SSOOIDC.InternalServerException.self, + "InvalidClientException": SSOOIDC.InvalidClientException.self, + "InvalidClientMetadataException": SSOOIDC.InvalidClientMetadataException.self, + "InvalidGrantException": SSOOIDC.InvalidGrantException.self, + "InvalidRedirectUriException": SSOOIDC.InvalidRedirectUriException.self, + "InvalidRequestException": SSOOIDC.InvalidRequestException.self, + "InvalidRequestRegionException": SSOOIDC.InvalidRequestRegionException.self, + "InvalidScopeException": SSOOIDC.InvalidScopeException.self, + "SlowDownException": SSOOIDC.SlowDownException.self, + "UnauthorizedClientException": SSOOIDC.UnauthorizedClientException.self, + "UnsupportedGrantTypeException": SSOOIDC.UnsupportedGrantTypeException.self + ] +} + extension SSOOIDCErrorType: Equatable { public static func == (lhs: SSOOIDCErrorType, rhs: SSOOIDCErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/STS/STS_api.swift b/Sources/Soto/Services/STS/STS_api.swift index 4c7bdad954a..f43ca85930a 100644 --- a/Sources/Soto/Services/STS/STS_api.swift +++ b/Sources/Soto/Services/STS/STS_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/STS/STS_shapes.swift b/Sources/Soto/Services/STS/STS_shapes.swift index 3e064b0c1e9..9b1b11331ed 100644 --- a/Sources/Soto/Services/STS/STS_shapes.swift +++ b/Sources/Soto/Services/STS/STS_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SWF/SWF_api.swift b/Sources/Soto/Services/SWF/SWF_api.swift index 5f0a6cb5a63..576c15fcec0 100644 --- a/Sources/Soto/Services/SWF/SWF_api.swift +++ b/Sources/Soto/Services/SWF/SWF_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SWF/SWF_shapes.swift b/Sources/Soto/Services/SWF/SWF_shapes.swift index 26d80223f74..a127db879f4 100644 --- a/Sources/Soto/Services/SWF/SWF_shapes.swift +++ b/Sources/Soto/Services/SWF/SWF_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMaker/SageMaker_api.swift b/Sources/Soto/Services/SageMaker/SageMaker_api.swift index 3c47f6d2d2a..6beded5061c 100644 --- a/Sources/Soto/Services/SageMaker/SageMaker_api.swift +++ b/Sources/Soto/Services/SageMaker/SageMaker_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMaker/SageMaker_shapes.swift b/Sources/Soto/Services/SageMaker/SageMaker_shapes.swift index 2c3d0520e56..1de0ff3b3f0 100644 --- a/Sources/Soto/Services/SageMaker/SageMaker_shapes.swift +++ b/Sources/Soto/Services/SageMaker/SageMaker_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_api.swift b/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_api.swift index 2ad3dfd3ac5..97a6f94285a 100644 --- a/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_api.swift +++ b/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_shapes.swift b/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_shapes.swift index 8b3c9f264df..bb62616b633 100644 --- a/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_shapes.swift +++ b/Sources/Soto/Services/SageMakerA2IRuntime/SageMakerA2IRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_api.swift b/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_api.swift index a4c69960af3..c1e453cd4dd 100644 --- a/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_api.swift +++ b/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_shapes.swift b/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_shapes.swift index a5eb1a545ae..94eec1dc385 100644 --- a/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_shapes.swift +++ b/Sources/Soto/Services/SageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_api.swift b/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_api.swift index 055f810b211..59f421b8d13 100644 --- a/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_api.swift +++ b/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_shapes.swift b/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_shapes.swift index 4a97a7f830d..d588eb14a43 100644 --- a/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_shapes.swift +++ b/Sources/Soto/Services/SageMakerGeospatial/SageMakerGeospatial_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -643,6 +642,23 @@ extension SageMakerGeospatial { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// Identifier of the resource affected. + public let resourceId: String? + + @inlinable + public init(message: String, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct CustomIndicesInput: AWSEncodableShape & AWSDecodableShape { /// A list of BandMath indices to compute. public let operations: [Operation]? @@ -1397,6 +1413,22 @@ extension SageMakerGeospatial { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + public let resourceId: String? + + @inlinable + public init(message: String, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct ItemSource: AWSDecodableShape { /// This is a dictionary of Asset Objects data associated with the Item that can be downloaded or streamed, each with a unique key. public let assets: [String: AssetValue]? @@ -2107,6 +2139,23 @@ extension SageMakerGeospatial { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// Identifier of the resource that was not found. + public let resourceId: String? + + @inlinable + public init(message: String, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct ReverseGeocodingConfig: AWSEncodableShape & AWSDecodableShape { /// The field name for the data that describes x-axis coordinate, eg. longitude of a point. public let xAttributeName: String @@ -2175,6 +2224,23 @@ extension SageMakerGeospatial { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// Identifier of the resource affected. + public let resourceId: String? + + @inlinable + public init(message: String, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct StackConfigInput: AWSEncodableShape & AWSDecodableShape { /// The structure representing output resolution (in target georeferenced units) of the result of stacking operation. public let outputResolution: OutputResolutionStackInput? @@ -2498,6 +2564,22 @@ extension SageMakerGeospatial { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + public let resourceId: String? + + @inlinable + public init(message: String, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct TimeRangeFilterInput: AWSEncodableShape { /// The end time for the time-range filter. public let endTime: Date @@ -2585,6 +2667,22 @@ extension SageMakerGeospatial { } } + public struct ValidationException: AWSErrorShape { + public let message: String + public let resourceId: String? + + @inlinable + public init(message: String, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + } + } + public struct VectorEnrichmentJobErrorDetails: AWSDecodableShape { /// A message that you define and then is processed and rendered by the Vector Enrichment job when the error occurs. public let errorMessage: String? @@ -2841,6 +2939,17 @@ public struct SageMakerGeospatialErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SageMakerGeospatialErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": SageMakerGeospatial.ConflictException.self, + "InternalServerException": SageMakerGeospatial.InternalServerException.self, + "ResourceNotFoundException": SageMakerGeospatial.ResourceNotFoundException.self, + "ServiceQuotaExceededException": SageMakerGeospatial.ServiceQuotaExceededException.self, + "ThrottlingException": SageMakerGeospatial.ThrottlingException.self, + "ValidationException": SageMakerGeospatial.ValidationException.self + ] +} + extension SageMakerGeospatialErrorType: Equatable { public static func == (lhs: SageMakerGeospatialErrorType, rhs: SageMakerGeospatialErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_api.swift b/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_api.swift index 9df9b14fd1b..75fd4231291 100644 --- a/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_api.swift +++ b/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_shapes.swift b/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_shapes.swift index a0225abec39..7367e95035f 100644 --- a/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_shapes.swift +++ b/Sources/Soto/Services/SageMakerMetrics/SageMakerMetrics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_api.swift b/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_api.swift index 46e60708995..6e8db199601 100644 --- a/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_api.swift +++ b/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_shapes.swift b/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_shapes.swift index 8d2b29aab97..a4e521b772f 100644 --- a/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_shapes.swift +++ b/Sources/Soto/Services/SageMakerRuntime/SageMakerRuntime_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -410,7 +409,32 @@ extension SageMakerRuntime { private enum CodingKeys: CodingKey {} } - public struct ModelStreamError: AWSDecodableShape { + public struct ModelError: AWSErrorShape { + /// The Amazon Resource Name (ARN) of the log stream. + public let logStreamArn: String? + public let message: String? + /// Original message. + public let originalMessage: String? + /// Original status code. + public let originalStatusCode: Int? + + @inlinable + public init(logStreamArn: String? = nil, message: String? = nil, originalMessage: String? = nil, originalStatusCode: Int? = nil) { + self.logStreamArn = logStreamArn + self.message = message + self.originalMessage = originalMessage + self.originalStatusCode = originalStatusCode + } + + private enum CodingKeys: String, CodingKey { + case logStreamArn = "LogStreamArn" + case message = "Message" + case originalMessage = "OriginalMessage" + case originalStatusCode = "OriginalStatusCode" + } + } + + public struct ModelStreamError: AWSErrorShape { /// This error can have the following error codes: ModelInvocationTimeExceeded The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker. StreamBroken The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed. public let errorCode: String? public let message: String? @@ -496,6 +520,13 @@ public struct SageMakerRuntimeErrorType: AWSErrorType { public static var validationError: Self { .init(.validationError) } } +extension SageMakerRuntimeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ModelError": SageMakerRuntime.ModelError.self, + "ModelStreamError": SageMakerRuntime.ModelStreamError.self + ] +} + extension SageMakerRuntimeErrorType: Equatable { public static func == (lhs: SageMakerRuntimeErrorType, rhs: SageMakerRuntimeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_api.swift b/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_api.swift index a607753f0a8..86ddb5c9407 100644 --- a/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_api.swift +++ b/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_shapes.swift b/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_shapes.swift index e6512f38290..589897a81d6 100644 --- a/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_shapes.swift +++ b/Sources/Soto/Services/SagemakerEdge/SagemakerEdge_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SavingsPlans/SavingsPlans_api.swift b/Sources/Soto/Services/SavingsPlans/SavingsPlans_api.swift index b46a7c6b2f2..91cd1f905db 100644 --- a/Sources/Soto/Services/SavingsPlans/SavingsPlans_api.swift +++ b/Sources/Soto/Services/SavingsPlans/SavingsPlans_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SavingsPlans/SavingsPlans_shapes.swift b/Sources/Soto/Services/SavingsPlans/SavingsPlans_shapes.swift index 98281ecb3c4..f8b09ce2e76 100644 --- a/Sources/Soto/Services/SavingsPlans/SavingsPlans_shapes.swift +++ b/Sources/Soto/Services/SavingsPlans/SavingsPlans_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Scheduler/Scheduler_api.swift b/Sources/Soto/Services/Scheduler/Scheduler_api.swift index 334b6d3b5f0..184b168dce6 100644 --- a/Sources/Soto/Services/Scheduler/Scheduler_api.swift +++ b/Sources/Soto/Services/Scheduler/Scheduler_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Scheduler/Scheduler_shapes.swift b/Sources/Soto/Services/Scheduler/Scheduler_shapes.swift index 2fe2461272f..f34a1bed24c 100644 --- a/Sources/Soto/Services/Scheduler/Scheduler_shapes.swift +++ b/Sources/Soto/Services/Scheduler/Scheduler_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Schemas/Schemas_api.swift b/Sources/Soto/Services/Schemas/Schemas_api.swift index 6e146419d3c..ac6e76a6268 100644 --- a/Sources/Soto/Services/Schemas/Schemas_api.swift +++ b/Sources/Soto/Services/Schemas/Schemas_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Schemas/Schemas_shapes.swift b/Sources/Soto/Services/Schemas/Schemas_shapes.swift index 24f87a9a0e6..78bb923626a 100644 --- a/Sources/Soto/Services/Schemas/Schemas_shapes.swift +++ b/Sources/Soto/Services/Schemas/Schemas_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -47,6 +46,42 @@ extension Schemas { // MARK: Shapes + public struct BadRequestException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ConflictException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct CreateDiscovererRequest: AWSEncodableShape { /// Support discovery of schemas in events sent to the bus from another account. (default: true). public let crossAccount: Bool? @@ -690,6 +725,24 @@ extension Schemas { } } + public struct ForbiddenException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct GetCodeBindingSourceRequest: AWSEncodableShape { /// The language of the code binding. public let language: String @@ -814,6 +867,42 @@ extension Schemas { } } + public struct GoneException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InternalServerErrorException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ListDiscoverersRequest: AWSEncodableShape { /// Specifying this limits the results to only those discoverer IDs that start with the specified prefix. public let discovererIdPrefix: String? @@ -1033,6 +1122,42 @@ extension Schemas { } } + public struct NotFoundException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct PreconditionFailedException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct PutCodeBindingRequest: AWSEncodableShape { /// The language of the code binding. public let language: String @@ -1313,6 +1438,24 @@ extension Schemas { } } + public struct ServiceUnavailableException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct StartDiscovererRequest: AWSEncodableShape { /// The ID of the discoverer. public let discovererId: String @@ -1409,6 +1552,42 @@ extension Schemas { } } + public struct TooManyRequestsException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct UnauthorizedException: AWSErrorShape { + /// The error code. + public let code: String? + /// The message string of the error output. + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The ARN of the resource. public let resourceArn: String @@ -1697,6 +1876,21 @@ public struct SchemasErrorType: AWSErrorType { public static var unauthorizedException: Self { .init(.unauthorizedException) } } +extension SchemasErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": Schemas.BadRequestException.self, + "ConflictException": Schemas.ConflictException.self, + "ForbiddenException": Schemas.ForbiddenException.self, + "GoneException": Schemas.GoneException.self, + "InternalServerErrorException": Schemas.InternalServerErrorException.self, + "NotFoundException": Schemas.NotFoundException.self, + "PreconditionFailedException": Schemas.PreconditionFailedException.self, + "ServiceUnavailableException": Schemas.ServiceUnavailableException.self, + "TooManyRequestsException": Schemas.TooManyRequestsException.self, + "UnauthorizedException": Schemas.UnauthorizedException.self + ] +} + extension SchemasErrorType: Equatable { public static func == (lhs: SchemasErrorType, rhs: SchemasErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SecretsManager/SecretsManager_api.swift b/Sources/Soto/Services/SecretsManager/SecretsManager_api.swift index 7d23c730961..d880d67436f 100644 --- a/Sources/Soto/Services/SecretsManager/SecretsManager_api.swift +++ b/Sources/Soto/Services/SecretsManager/SecretsManager_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SecretsManager/SecretsManager_shapes.swift b/Sources/Soto/Services/SecretsManager/SecretsManager_shapes.swift index 057b7c8ee6a..e9772095f96 100644 --- a/Sources/Soto/Services/SecretsManager/SecretsManager_shapes.swift +++ b/Sources/Soto/Services/SecretsManager/SecretsManager_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SecurityHub/SecurityHub_api.swift b/Sources/Soto/Services/SecurityHub/SecurityHub_api.swift index b2f2f705103..505cfbac9e0 100644 --- a/Sources/Soto/Services/SecurityHub/SecurityHub_api.swift +++ b/Sources/Soto/Services/SecurityHub/SecurityHub_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SecurityHub/SecurityHub_shapes.swift b/Sources/Soto/Services/SecurityHub/SecurityHub_shapes.swift index 1d0d0ca91af..e78452985e9 100644 --- a/Sources/Soto/Services/SecurityHub/SecurityHub_shapes.swift +++ b/Sources/Soto/Services/SecurityHub/SecurityHub_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -643,6 +642,22 @@ extension SecurityHub { public init() {} } + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct AccountDetails: AWSEncodableShape { /// The ID of an Amazon Web Services account. public let accountId: String? @@ -23785,6 +23800,54 @@ extension SecurityHub { } } + public struct InternalException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidAccessException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidInputException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Invitation: AWSDecodableShape { /// The account ID of the Security Hub administrator account that the invitation was sent from. public let accountId: String? @@ -23942,6 +24005,22 @@ extension SecurityHub { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ListAutomationRulesRequest: AWSEncodableShape { /// The maximum number of rules to return in the response. This currently ranges from 1 to 100. public let maxResults: Int? @@ -25521,6 +25600,22 @@ extension SecurityHub { } } + public struct ResourceConflictException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct ResourceDetails: AWSEncodableShape & AWSDecodableShape { /// Provides details about AppSync message broker. A message broker allows software applications and components to communicate using various programming languages, operating systems, and formal messaging protocols. public let awsAmazonMqBroker: AwsAmazonMqBrokerDetails? @@ -26034,6 +26129,38 @@ extension SecurityHub { } } + public struct ResourceInUseException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Result: AWSDecodableShape { /// An Amazon Web Services account ID of the account that was not processed. public let accountId: String? @@ -28866,6 +28993,19 @@ public struct SecurityHubErrorType: AWSErrorType { public static var resourceNotFoundException: Self { .init(.resourceNotFoundException) } } +extension SecurityHubErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": SecurityHub.AccessDeniedException.self, + "InternalException": SecurityHub.InternalException.self, + "InvalidAccessException": SecurityHub.InvalidAccessException.self, + "InvalidInputException": SecurityHub.InvalidInputException.self, + "LimitExceededException": SecurityHub.LimitExceededException.self, + "ResourceConflictException": SecurityHub.ResourceConflictException.self, + "ResourceInUseException": SecurityHub.ResourceInUseException.self, + "ResourceNotFoundException": SecurityHub.ResourceNotFoundException.self + ] +} + extension SecurityHubErrorType: Equatable { public static func == (lhs: SecurityHubErrorType, rhs: SecurityHubErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SecurityIR/SecurityIR_api.swift b/Sources/Soto/Services/SecurityIR/SecurityIR_api.swift index 28429c73f4d..4356991b935 100644 --- a/Sources/Soto/Services/SecurityIR/SecurityIR_api.swift +++ b/Sources/Soto/Services/SecurityIR/SecurityIR_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SecurityIR/SecurityIR_shapes.swift b/Sources/Soto/Services/SecurityIR/SecurityIR_shapes.swift index 9cbb7af6baf..98a1cbc1a99 100644 --- a/Sources/Soto/Services/SecurityIR/SecurityIR_shapes.swift +++ b/Sources/Soto/Services/SecurityIR/SecurityIR_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -143,6 +142,14 @@ extension SecurityIR { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct BatchGetMemberAccountDetailsRequest: AWSEncodableShape { @@ -1711,6 +1718,43 @@ extension SecurityIR { } } + public struct ValidationException: AWSErrorShape { + /// Element that provides the list of field(s) that caused the error, if applicable. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// Element that provides the reason the request failed validation. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + public let message: String + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct Watcher: AWSEncodableShape & AWSDecodableShape { public let email: String public let jobTitle: String? @@ -1787,6 +1831,12 @@ public struct SecurityIRErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SecurityIRErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ValidationException": SecurityIR.ValidationException.self + ] +} + extension SecurityIRErrorType: Equatable { public static func == (lhs: SecurityIRErrorType, rhs: SecurityIRErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SecurityLake/SecurityLake_api.swift b/Sources/Soto/Services/SecurityLake/SecurityLake_api.swift index 096f6fdff19..ffa81106776 100644 --- a/Sources/Soto/Services/SecurityLake/SecurityLake_api.swift +++ b/Sources/Soto/Services/SecurityLake/SecurityLake_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SecurityLake/SecurityLake_shapes.swift b/Sources/Soto/Services/SecurityLake/SecurityLake_shapes.swift index 8e7e3ce1bd3..4e332a95c4f 100644 --- a/Sources/Soto/Services/SecurityLake/SecurityLake_shapes.swift +++ b/Sources/Soto/Services/SecurityLake/SecurityLake_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -156,6 +155,23 @@ extension SecurityLake { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + /// A coded string to provide more information about the access denied exception. You can use the error code to check the exception type. + public let errorCode: String? + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct AwsIdentity: AWSEncodableShape & AWSDecodableShape { /// The external ID used to establish trust relationship with the Amazon Web Services identity. public let externalId: String @@ -241,6 +257,27 @@ extension SecurityLake { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The resource name. + public let resourceName: String? + /// The resource type. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + case resourceType = "resourceType" + } + } + public struct CreateAwsLogSourceRequest: AWSEncodableShape { /// Specify the natively-supported Amazon Web Services service to add as a source in Security Lake. public let sources: [AwsLogSourceConfiguration] @@ -1608,6 +1645,27 @@ extension SecurityLake { public init() {} } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The name of the resource that could not be found. + public let resourceName: String? + /// The type of the resource that could not be found. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceName = resourceName + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + case resourceType = "resourceType" + } + } + public struct SqsNotificationConfiguration: AWSEncodableShape { public init() {} } @@ -1744,6 +1802,39 @@ extension SecurityLake { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// That the rate of requests to Security Lake is exceeding the request quotas for your Amazon Web Services account. + public let quotaCode: String? + /// Retry the request after the specified time. + public let retryAfterSeconds: Int? + /// The code for the service in Service Quotas. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the Amazon Security Lake resource to remove one or more tags from. public let resourceArn: String @@ -2004,6 +2095,15 @@ public struct SecurityLakeErrorType: AWSErrorType { public static var throttlingException: Self { .init(.throttlingException) } } +extension SecurityLakeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": SecurityLake.AccessDeniedException.self, + "ConflictException": SecurityLake.ConflictException.self, + "ResourceNotFoundException": SecurityLake.ResourceNotFoundException.self, + "ThrottlingException": SecurityLake.ThrottlingException.self + ] +} + extension SecurityLakeErrorType: Equatable { public static func == (lhs: SecurityLakeErrorType, rhs: SecurityLakeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_api.swift b/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_api.swift index 42a072a9673..092ceec3705 100644 --- a/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_api.swift +++ b/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_shapes.swift b/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_shapes.swift index 287752ed02d..7cf3b2f789d 100644 --- a/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_shapes.swift +++ b/Sources/Soto/Services/ServerlessApplicationRepository/ServerlessApplicationRepository_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -129,6 +128,42 @@ extension ServerlessApplicationRepository { } } + public struct BadRequestException: AWSErrorShape { + /// 400 + public let errorCode: String? + /// One of the parameters in the request is invalid. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + + public struct ConflictException: AWSErrorShape { + /// 409 + public let errorCode: String? + /// The resource already exists. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct CreateApplicationRequest: AWSEncodableShape { /// The name of the author publishing the app.Minimum length=1. Maximum length=127.Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; public let author: String? @@ -535,6 +570,24 @@ extension ServerlessApplicationRepository { private enum CodingKeys: CodingKey {} } + public struct ForbiddenException: AWSErrorShape { + /// 403 + public let errorCode: String? + /// The client is not authenticated. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct GetApplicationPolicyRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the application. public let applicationId: String @@ -711,6 +764,24 @@ extension ServerlessApplicationRepository { } } + public struct InternalServerErrorException: AWSErrorShape { + /// 500 + public let errorCode: String? + /// The AWS Serverless Application Repository service encountered an internal error. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct ListApplicationDependenciesRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the application. public let applicationId: String @@ -858,6 +929,24 @@ extension ServerlessApplicationRepository { } } + public struct NotFoundException: AWSErrorShape { + /// 404 + public let errorCode: String? + /// The resource (for example, an access policy statement) specified in the request doesn't exist. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct ParameterDefinition: AWSDecodableShape { /// A regular expression that represents the patterns to allow for String types. public let allowedPattern: String? @@ -1030,6 +1119,24 @@ extension ServerlessApplicationRepository { } } + public struct TooManyRequestsException: AWSErrorShape { + /// 429 + public let errorCode: String? + /// The client is sending more than the allowed number of requests per unit of time. + public let message: String? + + @inlinable + public init(errorCode: String? = nil, message: String? = nil) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct UnshareApplicationRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the application. public let applicationId: String @@ -1283,6 +1390,17 @@ public struct ServerlessApplicationRepositoryErrorType: AWSErrorType { public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) } } +extension ServerlessApplicationRepositoryErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "BadRequestException": ServerlessApplicationRepository.BadRequestException.self, + "ConflictException": ServerlessApplicationRepository.ConflictException.self, + "ForbiddenException": ServerlessApplicationRepository.ForbiddenException.self, + "InternalServerErrorException": ServerlessApplicationRepository.InternalServerErrorException.self, + "NotFoundException": ServerlessApplicationRepository.NotFoundException.self, + "TooManyRequestsException": ServerlessApplicationRepository.TooManyRequestsException.self + ] +} + extension ServerlessApplicationRepositoryErrorType: Equatable { public static func == (lhs: ServerlessApplicationRepositoryErrorType, rhs: ServerlessApplicationRepositoryErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_api.swift b/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_api.swift index 1dae1d81c9f..172cda0f207 100644 --- a/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_api.swift +++ b/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_shapes.swift b/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_shapes.swift index c73c3c56648..b5340d2f858 100644 --- a/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_shapes.swift +++ b/Sources/Soto/Services/ServiceCatalog/ServiceCatalog_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_api.swift b/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_api.swift index 7090a8539d0..d18889914bc 100644 --- a/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_api.swift +++ b/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_shapes.swift b/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_shapes.swift index 2692d52c5c7..731f434638a 100644 --- a/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_shapes.swift +++ b/Sources/Soto/Services/ServiceCatalogAppRegistry/ServiceCatalogAppRegistry_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1530,6 +1529,24 @@ extension ServiceCatalogAppRegistry { public init() {} } + public struct ThrottlingException: AWSErrorShape { + /// A message associated with the Throttling exception. + public let message: String + /// The originating service code. + public let serviceCode: String? + + @inlinable + public init(message: String, serviceCode: String? = nil) { + self.message = message + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon resource name (ARN) that specifies the resource. public let resourceArn: String @@ -1745,6 +1762,12 @@ public struct ServiceCatalogAppRegistryErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension ServiceCatalogAppRegistryErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ThrottlingException": ServiceCatalogAppRegistry.ThrottlingException.self + ] +} + extension ServiceCatalogAppRegistryErrorType: Equatable { public static func == (lhs: ServiceCatalogAppRegistryErrorType, rhs: ServiceCatalogAppRegistryErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_api.swift b/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_api.swift index dcf5522b4ac..6677d0178b6 100644 --- a/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_api.swift +++ b/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_shapes.swift b/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_shapes.swift index 6622b06b517..18726cda00d 100644 --- a/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_shapes.swift +++ b/Sources/Soto/Services/ServiceDiscovery/ServiceDiscovery_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -715,6 +714,23 @@ extension ServiceDiscovery { } } + public struct DuplicateRequest: AWSErrorShape { + /// The ID of the operation that's already in progress. + public let duplicateOperationId: String? + public let message: String? + + @inlinable + public init(duplicateOperationId: String? = nil, message: String? = nil) { + self.duplicateOperationId = duplicateOperationId + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case duplicateOperationId = "DuplicateOperationId" + case message = "Message" + } + } + public struct GetInstanceRequest: AWSEncodableShape { /// The ID of the instance that you want to get information about. public let instanceId: String @@ -1363,6 +1379,27 @@ extension ServiceDiscovery { } } + public struct NamespaceAlreadyExists: AWSErrorShape { + /// The CreatorRequestId that was used to create the namespace. + public let creatorRequestId: String? + public let message: String? + /// The ID of the existing namespace. + public let namespaceId: String? + + @inlinable + public init(creatorRequestId: String? = nil, message: String? = nil, namespaceId: String? = nil) { + self.creatorRequestId = creatorRequestId + self.message = message + self.namespaceId = namespaceId + } + + private enum CodingKeys: String, CodingKey { + case creatorRequestId = "CreatorRequestId" + case message = "Message" + case namespaceId = "NamespaceId" + } + } + public struct NamespaceFilter: AWSEncodableShape { /// Specify the operator that you want to use to determine whether a namespace matches the specified value. Valid values for Condition are one of the following. EQ: When you specify EQ for Condition, you can specify only one value. EQ is supported for TYPE, NAME, and HTTP_NAME. EQ is the default condition and can be omitted. BEGINS_WITH: When you specify BEGINS_WITH for Condition, you can specify only one value. BEGINS_WITH is supported for TYPE, NAME, and HTTP_NAME. public let condition: FilterCondition? @@ -1880,6 +1917,27 @@ extension ServiceDiscovery { } } + public struct ServiceAlreadyExists: AWSErrorShape { + /// The CreatorRequestId that was used to create the service. + public let creatorRequestId: String? + public let message: String? + /// The ID of the existing service. + public let serviceId: String? + + @inlinable + public init(creatorRequestId: String? = nil, message: String? = nil, serviceId: String? = nil) { + self.creatorRequestId = creatorRequestId + self.message = message + self.serviceId = serviceId + } + + private enum CodingKeys: String, CodingKey { + case creatorRequestId = "CreatorRequestId" + case message = "Message" + case serviceId = "ServiceId" + } + } + public struct ServiceAttributes: AWSDecodableShape { /// A string map that contains the following information for the service that you specify in ServiceArn: The attributes that apply to the service. For each attribute, the applicable value. You can specify a total of 30 attributes. public let attributes: [String: String]? @@ -2060,6 +2118,23 @@ extension ServiceDiscovery { public init() {} } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The name of the resource. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for. public let resourceARN: String @@ -2387,6 +2462,15 @@ public struct ServiceDiscoveryErrorType: AWSErrorType { public static var tooManyTagsException: Self { .init(.tooManyTagsException) } } +extension ServiceDiscoveryErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DuplicateRequest": ServiceDiscovery.DuplicateRequest.self, + "NamespaceAlreadyExists": ServiceDiscovery.NamespaceAlreadyExists.self, + "ServiceAlreadyExists": ServiceDiscovery.ServiceAlreadyExists.self, + "TooManyTagsException": ServiceDiscovery.TooManyTagsException.self + ] +} + extension ServiceDiscoveryErrorType: Equatable { public static func == (lhs: ServiceDiscoveryErrorType, rhs: ServiceDiscoveryErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_api.swift b/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_api.swift index 031ea54292b..2d81faa7e28 100644 --- a/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_api.swift +++ b/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_shapes.swift b/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_shapes.swift index d393372d9f1..eda4e84d062 100644 --- a/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_shapes.swift +++ b/Sources/Soto/Services/ServiceQuotas/ServiceQuotas_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Shield/Shield_api.swift b/Sources/Soto/Services/Shield/Shield_api.swift index 369a80b56c5..cec64e5c730 100644 --- a/Sources/Soto/Services/Shield/Shield_api.swift +++ b/Sources/Soto/Services/Shield/Shield_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Shield/Shield_shapes.swift b/Sources/Soto/Services/Shield/Shield_shapes.swift index 09aad99f481..84668d11d43 100644 --- a/Sources/Soto/Services/Shield/Shield_shapes.swift +++ b/Sources/Soto/Services/Shield/Shield_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -107,6 +106,12 @@ extension Shield { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct ApplicationLayerAutomaticResponseConfiguration: AWSDecodableShape { @@ -1049,6 +1054,27 @@ extension Shield { } } + public struct InvalidParameterException: AWSErrorShape { + /// Fields that caused the exception. + public let fields: [ValidationExceptionField]? + public let message: String? + /// Additional information about the exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "fields" + case message = "message" + case reason = "reason" + } + } + public struct Limit: AWSDecodableShape { /// The maximum number of protections that can be created for the specified Type. public let max: Int64? @@ -1067,6 +1093,27 @@ extension Shield { } } + public struct LimitsExceededException: AWSErrorShape { + /// The threshold that would be exceeded. + public let limit: Int64? + public let message: String? + /// The type of limit that would be exceeded. + public let type: String? + + @inlinable + public init(limit: Int64? = nil, message: String? = nil, type: String? = nil) { + self.limit = limit + self.message = message + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case limit = "Limit" + case message = "message" + case type = "Type" + } + } + public struct ListAttacksRequest: AWSEncodableShape { /// The end of the time period for the attacks. This is a timestamp type. The request syntax listing for this call indicates a number type, but you can provide the time in any valid timestamp format setting. public let endTime: TimeRange? @@ -1452,6 +1499,40 @@ extension Shield { } } + public struct ResourceAlreadyExistsException: AWSErrorShape { + public let message: String? + /// The type of resource that already exists. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceType = "resourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// Type of resource. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceType = "resourceType" + } + } + public struct ResponseAction: AWSEncodableShape & AWSDecodableShape { /// Specifies that Shield Advanced should configure its WAF rules with the WAF Block action. You must specify exactly one action, either Block or Count. public let block: BlockAction? @@ -1831,6 +1912,24 @@ extension Shield { public struct UpdateSubscriptionResponse: AWSDecodableShape { public init() {} } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message describing why the parameter failed validation. + public let message: String + /// The name of the parameter that failed validation. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -1899,6 +1998,15 @@ public struct ShieldErrorType: AWSErrorType { public static var resourceNotFoundException: Self { .init(.resourceNotFoundException) } } +extension ShieldErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InvalidParameterException": Shield.InvalidParameterException.self, + "LimitsExceededException": Shield.LimitsExceededException.self, + "ResourceAlreadyExistsException": Shield.ResourceAlreadyExistsException.self, + "ResourceNotFoundException": Shield.ResourceNotFoundException.self + ] +} + extension ShieldErrorType: Equatable { public static func == (lhs: ShieldErrorType, rhs: ShieldErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Signer/Signer_api.swift b/Sources/Soto/Services/Signer/Signer_api.swift index b5608e42a06..fcd1579b2a8 100644 --- a/Sources/Soto/Services/Signer/Signer_api.swift +++ b/Sources/Soto/Services/Signer/Signer_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Signer/Signer_shapes.swift b/Sources/Soto/Services/Signer/Signer_shapes.swift index d43ef2a1ce4..9c250ee37f0 100644 --- a/Sources/Soto/Services/Signer/Signer_shapes.swift +++ b/Sources/Soto/Services/Signer/Signer_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -73,6 +72,22 @@ extension Signer { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct AddProfilePermissionRequest: AWSEncodableShape { /// For cross-account signing. Grant a designated account permission to perform one or more of the following actions. Each action is associated with a specific API's operations. For more information about cross-account signing, see Using cross-account signing with signing profiles in the AWS Signer Developer Guide. /// You can designate the following actions to an account. @@ -143,6 +158,22 @@ extension Signer { } } + public struct BadRequestException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct CancelSigningProfileRequest: AWSEncodableShape { /// The name of the signing profile to be canceled. public let profileName: String @@ -167,6 +198,22 @@ extension Signer { private enum CodingKeys: CodingKey {} } + public struct ConflictException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct DescribeSigningJobRequest: AWSEncodableShape { /// The ID of the signing job on input. public let jobId: String @@ -557,6 +604,22 @@ extension Signer { } } + public struct InternalServiceErrorException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct ListProfilePermissionsRequest: AWSEncodableShape { /// String for specifying the next set of paginated results. public let nextToken: String? @@ -852,6 +915,22 @@ extension Signer { } } + public struct NotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct Permission: AWSDecodableShape { /// An AWS Signer action permitted as part of cross-account permissions. public let action: String? @@ -1014,6 +1093,22 @@ extension Signer { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct RevokeSignatureRequest: AWSEncodableShape { /// ID of the signing job to be revoked. public let jobId: String @@ -1157,6 +1252,22 @@ extension Signer { } } + public struct ServiceLimitExceededException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct SignPayloadRequest: AWSEncodableShape { /// Specifies the object digest (hash) to sign. public let payload: AWSBase64Data @@ -1674,6 +1785,38 @@ extension Signer { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + + public struct TooManyRequestsException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) for the signing profile. public let resourceArn: String @@ -1709,6 +1852,22 @@ extension Signer { public struct UntagResourceResponse: AWSDecodableShape { public init() {} } + + public struct ValidationException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" + } + } } // MARK: - Errors @@ -1771,6 +1930,21 @@ public struct SignerErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension SignerErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Signer.AccessDeniedException.self, + "BadRequestException": Signer.BadRequestException.self, + "ConflictException": Signer.ConflictException.self, + "InternalServiceErrorException": Signer.InternalServiceErrorException.self, + "NotFoundException": Signer.NotFoundException.self, + "ResourceNotFoundException": Signer.ResourceNotFoundException.self, + "ServiceLimitExceededException": Signer.ServiceLimitExceededException.self, + "ThrottlingException": Signer.ThrottlingException.self, + "TooManyRequestsException": Signer.TooManyRequestsException.self, + "ValidationException": Signer.ValidationException.self + ] +} + extension SignerErrorType: Equatable { public static func == (lhs: SignerErrorType, rhs: SignerErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_api.swift b/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_api.swift index ff2ebcababc..cb916d98441 100644 --- a/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_api.swift +++ b/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_shapes.swift b/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_shapes.swift index 121acdc08ee..0be609bc9d0 100644 --- a/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_shapes.swift +++ b/Sources/Soto/Services/SimSpaceWeaver/SimSpaceWeaver_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_api.swift b/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_api.swift index 713d4729a3f..897f6e77611 100644 --- a/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_api.swift +++ b/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_shapes.swift b/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_shapes.swift index 8921c566c8e..439f42963f7 100644 --- a/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_shapes.swift +++ b/Sources/Soto/Services/SnowDeviceManagement/SnowDeviceManagement_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Snowball/Snowball_api.swift b/Sources/Soto/Services/Snowball/Snowball_api.swift index 5a3b32582f1..0cae3c9d3ad 100644 --- a/Sources/Soto/Services/Snowball/Snowball_api.swift +++ b/Sources/Soto/Services/Snowball/Snowball_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Snowball/Snowball_shapes.swift b/Sources/Soto/Services/Snowball/Snowball_shapes.swift index 1b2e4052861..201dd67857f 100644 --- a/Sources/Soto/Services/Snowball/Snowball_shapes.swift +++ b/Sources/Soto/Services/Snowball/Snowball_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -439,6 +438,23 @@ extension Snowball { } } + public struct ConflictException: AWSErrorShape { + /// You get this resource when you call CreateReturnShippingLabel more than once when other requests are not completed. . + public let conflictResource: String? + public let message: String? + + @inlinable + public init(conflictResource: String? = nil, message: String? = nil) { + self.conflictResource = conflictResource + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case conflictResource = "ConflictResource" + case message = "Message" + } + } + public struct CreateAddressRequest: AWSEncodableShape { /// The address that you want the Snow device shipped to. public let address: Address @@ -1266,6 +1282,23 @@ extension Snowball { } } + public struct InvalidResourceException: AWSErrorShape { + public let message: String? + /// The provided resource value is invalid. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct JobListEntry: AWSDecodableShape { /// The creation date for this job. public let creationDate: Date? @@ -2532,6 +2565,13 @@ public struct SnowballErrorType: AWSErrorType { public static var unsupportedAddressException: Self { .init(.unsupportedAddressException) } } +extension SnowballErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": Snowball.ConflictException.self, + "InvalidResourceException": Snowball.InvalidResourceException.self + ] +} + extension SnowballErrorType: Equatable { public static func == (lhs: SnowballErrorType, rhs: SnowballErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SocialMessaging/SocialMessaging_api.swift b/Sources/Soto/Services/SocialMessaging/SocialMessaging_api.swift index dba3a5df4f3..d83383d139f 100644 --- a/Sources/Soto/Services/SocialMessaging/SocialMessaging_api.swift +++ b/Sources/Soto/Services/SocialMessaging/SocialMessaging_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SocialMessaging/SocialMessaging_shapes.swift b/Sources/Soto/Services/SocialMessaging/SocialMessaging_shapes.swift index f29c2dff305..e8b30be5536 100644 --- a/Sources/Soto/Services/SocialMessaging/SocialMessaging_shapes.swift +++ b/Sources/Soto/Services/SocialMessaging/SocialMessaging_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SsmSap/SsmSap_api.swift b/Sources/Soto/Services/SsmSap/SsmSap_api.swift index 25e6ebce1df..04074861982 100644 --- a/Sources/Soto/Services/SsmSap/SsmSap_api.swift +++ b/Sources/Soto/Services/SsmSap/SsmSap_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SsmSap/SsmSap_shapes.swift b/Sources/Soto/Services/SsmSap/SsmSap_shapes.swift index 6f6fb0a39e6..de3b2e1bba9 100644 --- a/Sources/Soto/Services/SsmSap/SsmSap_shapes.swift +++ b/Sources/Soto/Services/SsmSap/SsmSap_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/StorageGateway/StorageGateway_api.swift b/Sources/Soto/Services/StorageGateway/StorageGateway_api.swift index 48f940a2d47..e4bf0841dd0 100644 --- a/Sources/Soto/Services/StorageGateway/StorageGateway_api.swift +++ b/Sources/Soto/Services/StorageGateway/StorageGateway_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/StorageGateway/StorageGateway_shapes.swift b/Sources/Soto/Services/StorageGateway/StorageGateway_shapes.swift index fe22e87c511..68781b6142a 100644 --- a/Sources/Soto/Services/StorageGateway/StorageGateway_shapes.swift +++ b/Sources/Soto/Services/StorageGateway/StorageGateway_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -78,6 +77,72 @@ extension StorageGateway { public var description: String { return self.rawValue } } + public enum ErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case activationKeyExpired = "ActivationKeyExpired" + case activationKeyInvalid = "ActivationKeyInvalid" + case activationKeyNotFound = "ActivationKeyNotFound" + case authenticationFailure = "AuthenticationFailure" + case bandwidthThrottleScheduleNotFound = "BandwidthThrottleScheduleNotFound" + case blocked = "Blocked" + case cannotExportSnapshot = "CannotExportSnapshot" + case chapCredentialNotFound = "ChapCredentialNotFound" + case diskAlreadyAllocated = "DiskAlreadyAllocated" + case diskDoesNotExist = "DiskDoesNotExist" + case diskSizeGreaterThanVolumeMaxSize = "DiskSizeGreaterThanVolumeMaxSize" + case diskSizeLessThanVolumeSize = "DiskSizeLessThanVolumeSize" + case diskSizeNotGigAligned = "DiskSizeNotGigAligned" + case duplicateCertificateInfo = "DuplicateCertificateInfo" + case duplicateSchedule = "DuplicateSchedule" + case endpointNotFound = "EndpointNotFound" + case gatewayInternalError = "GatewayInternalError" + case gatewayNotConnected = "GatewayNotConnected" + case gatewayNotFound = "GatewayNotFound" + case gatewayProxyNetworkConnectionBusy = "GatewayProxyNetworkConnectionBusy" + case iamNotSupported = "IAMNotSupported" + case initiatorInvalid = "InitiatorInvalid" + case initiatorNotFound = "InitiatorNotFound" + case internalError = "InternalError" + case invalidEndpoint = "InvalidEndpoint" + case invalidGateway = "InvalidGateway" + case invalidParameters = "InvalidParameters" + case invalidSchedule = "InvalidSchedule" + case joinDomainInProgress = "JoinDomainInProgress" + case localStorageLimitExceeded = "LocalStorageLimitExceeded" + case lunAlreadyAllocated = "LunAlreadyAllocated " + case lunInvalid = "LunInvalid" + case maximumContentLengthExceeded = "MaximumContentLengthExceeded" + case maximumTapeCartridgeCountExceeded = "MaximumTapeCartridgeCountExceeded" + case maximumVolumeCountExceeded = "MaximumVolumeCountExceeded" + case networkConfigurationChanged = "NetworkConfigurationChanged" + case noDisksAvailable = "NoDisksAvailable" + case notImplemented = "NotImplemented" + case notSupported = "NotSupported" + case operationAborted = "OperationAborted" + case outdatedGateway = "OutdatedGateway" + case parametersNotImplemented = "ParametersNotImplemented" + case regionInvalid = "RegionInvalid" + case requestTimeout = "RequestTimeout" + case serviceUnavailable = "ServiceUnavailable" + case snapshotDeleted = "SnapshotDeleted" + case snapshotIdInvalid = "SnapshotIdInvalid" + case snapshotInProgress = "SnapshotInProgress" + case snapshotNotFound = "SnapshotNotFound" + case snapshotScheduleNotFound = "SnapshotScheduleNotFound" + case stagingAreaFull = "StagingAreaFull" + case storageFailure = "StorageFailure" + case tapeCartridgeNotFound = "TapeCartridgeNotFound" + case targetAlreadyExists = "TargetAlreadyExists" + case targetInvalid = "TargetInvalid" + case targetNotFound = "TargetNotFound" + case unauthorizedOperation = "UnauthorizedOperation" + case volumeAlreadyExists = "VolumeAlreadyExists" + case volumeIdInvalid = "VolumeIdInvalid" + case volumeInUse = "VolumeInUse" + case volumeNotFound = "VolumeNotFound" + case volumeNotReady = "VolumeNotReady" + public var description: String { return self.rawValue } + } + public enum FileShareType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case nfs = "NFS" case smb = "SMB" @@ -3633,6 +3698,42 @@ extension StorageGateway { } } + public struct InternalServerError: AWSErrorShape { + /// A StorageGatewayError that provides more information about the cause of the error. + public let error: StorageGatewayError? + /// A human-readable message describing the error that occurred. + public let message: String? + + @inlinable + public init(error: StorageGatewayError? = nil, message: String? = nil) { + self.error = error + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case message = "message" + } + } + + public struct InvalidGatewayRequestException: AWSErrorShape { + /// A StorageGatewayError that provides more detail about the cause of the error. + public let error: StorageGatewayError? + /// A human-readable message describing the error that occurred. + public let message: String? + + @inlinable + public init(error: StorageGatewayError? = nil, message: String? = nil) { + self.error = error + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case message = "message" + } + } + public struct JoinDomainInput: AWSEncodableShape { /// List of IPv4 addresses, NetBIOS names, or host names of your domain server. If you need to specify the port number include it after the colon (“:”). For example, mydc.mydomain.com:389. public let domainControllers: [String]? @@ -4867,6 +4968,24 @@ extension StorageGateway { } } + public struct ServiceUnavailableError: AWSErrorShape { + /// A StorageGatewayError that provides more information about the cause of the error. + public let error: StorageGatewayError? + /// A human-readable message describing the error that occurred. + public let message: String? + + @inlinable + public init(error: StorageGatewayError? = nil, message: String? = nil) { + self.error = error + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case error = "error" + case message = "message" + } + } + public struct SetLocalConsolePasswordInput: AWSEncodableShape { public let gatewayARN: String /// The password you want to set for your VM local console. @@ -5136,6 +5255,24 @@ extension StorageGateway { } } + public struct StorageGatewayError: AWSDecodableShape { + /// Additional information about the error. + public let errorCode: ErrorCode? + /// Human-readable text that provides detail about the error that occurred. + public let errorDetails: [String: String]? + + @inlinable + public init(errorCode: ErrorCode? = nil, errorDetails: [String: String]? = nil) { + self.errorCode = errorCode + self.errorDetails = errorDetails + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case errorDetails = "errorDetails" + } + } + public struct StorediSCSIVolume: AWSDecodableShape { /// The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp. public let createdDate: Date? @@ -6454,6 +6591,14 @@ public struct StorageGatewayErrorType: AWSErrorType { public static var serviceUnavailableError: Self { .init(.serviceUnavailableError) } } +extension StorageGatewayErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "InternalServerError": StorageGateway.InternalServerError.self, + "InvalidGatewayRequestException": StorageGateway.InvalidGatewayRequestException.self, + "ServiceUnavailableError": StorageGateway.ServiceUnavailableError.self + ] +} + extension StorageGatewayErrorType: Equatable { public static func == (lhs: StorageGatewayErrorType, rhs: StorageGatewayErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/SupplyChain/SupplyChain_api.swift b/Sources/Soto/Services/SupplyChain/SupplyChain_api.swift index acf0669db41..55234a0d9d8 100644 --- a/Sources/Soto/Services/SupplyChain/SupplyChain_api.swift +++ b/Sources/Soto/Services/SupplyChain/SupplyChain_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SupplyChain/SupplyChain_shapes.swift b/Sources/Soto/Services/SupplyChain/SupplyChain_shapes.swift index cb53e5295d0..b5b9e1efba4 100644 --- a/Sources/Soto/Services/SupplyChain/SupplyChain_shapes.swift +++ b/Sources/Soto/Services/SupplyChain/SupplyChain_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Support/Support_api.swift b/Sources/Soto/Services/Support/Support_api.swift index 034322de5d4..dd0243f9c9d 100644 --- a/Sources/Soto/Services/Support/Support_api.swift +++ b/Sources/Soto/Services/Support/Support_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Support/Support_shapes.swift b/Sources/Soto/Services/Support/Support_shapes.swift index 53606cad2f5..8e3c7708bb7 100644 --- a/Sources/Soto/Services/Support/Support_shapes.swift +++ b/Sources/Soto/Services/Support/Support_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SupportApp/SupportApp_api.swift b/Sources/Soto/Services/SupportApp/SupportApp_api.swift index 59a0cd08aab..e1faead2fc0 100644 --- a/Sources/Soto/Services/SupportApp/SupportApp_api.swift +++ b/Sources/Soto/Services/SupportApp/SupportApp_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/SupportApp/SupportApp_shapes.swift b/Sources/Soto/Services/SupportApp/SupportApp_shapes.swift index 02a7705c407..7be0bc2c701 100644 --- a/Sources/Soto/Services/SupportApp/SupportApp_shapes.swift +++ b/Sources/Soto/Services/SupportApp/SupportApp_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Synthetics/Synthetics_api.swift b/Sources/Soto/Services/Synthetics/Synthetics_api.swift index 1657bd4e724..fc170238be9 100644 --- a/Sources/Soto/Services/Synthetics/Synthetics_api.swift +++ b/Sources/Soto/Services/Synthetics/Synthetics_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Synthetics/Synthetics_shapes.swift b/Sources/Soto/Services/Synthetics/Synthetics_shapes.swift index f3b4ebfaad7..c14d7a014a6 100644 --- a/Sources/Soto/Services/Synthetics/Synthetics_shapes.swift +++ b/Sources/Soto/Services/Synthetics/Synthetics_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TaxSettings/TaxSettings_api.swift b/Sources/Soto/Services/TaxSettings/TaxSettings_api.swift index 4c482c595c4..85fcae50f1b 100644 --- a/Sources/Soto/Services/TaxSettings/TaxSettings_api.swift +++ b/Sources/Soto/Services/TaxSettings/TaxSettings_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TaxSettings/TaxSettings_shapes.swift b/Sources/Soto/Services/TaxSettings/TaxSettings_shapes.swift index 424d51808b8..16a83ed119e 100644 --- a/Sources/Soto/Services/TaxSettings/TaxSettings_shapes.swift +++ b/Sources/Soto/Services/TaxSettings/TaxSettings_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -140,6 +139,15 @@ extension TaxSettings { public var description: String { return self.rawValue } } + public enum ValidationExceptionErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case expiredToken = "ExpiredToken" + case fieldValidationFailed = "FieldValidationFailed" + case invalidToken = "InvalidToken" + case malformedToken = "MalformedToken" + case missingInput = "MissingInput" + public var description: String { return self.rawValue } + } + // MARK: Shapes public struct AccountDetails: AWSDecodableShape { @@ -687,6 +695,23 @@ extension TaxSettings { } } + public struct ConflictException: AWSErrorShape { + /// 409 + public let errorCode: String + public let message: String + + @inlinable + public init(errorCode: String, message: String) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct DeleteSupplementalTaxRegistrationRequest: AWSEncodableShape { /// The unique authority Id for the supplemental TRN information that needs to be deleted. public let authorityId: String @@ -986,6 +1011,23 @@ extension TaxSettings { } } + public struct InternalServerException: AWSErrorShape { + /// 500 + public let errorCode: String + public let message: String + + @inlinable + public init(errorCode: String, message: String) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct IsraelAdditionalInfo: AWSEncodableShape & AWSDecodableShape { /// Customer type for your TRN in Israel. The value can be Business or Individual. Use Businessfor entities such as not-for-profit and financial institutions. public let customerType: IsraelCustomerType @@ -1395,6 +1437,23 @@ extension TaxSettings { } } + public struct ResourceNotFoundException: AWSErrorShape { + /// 404 + public let errorCode: String + public let message: String + + @inlinable + public init(errorCode: String, message: String) { + self.errorCode = errorCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case message = "message" + } + } + public struct RomaniaAdditionalInfo: AWSEncodableShape & AWSDecodableShape { /// The tax registration number type. The value can be TaxRegistrationNumber or LocalRegistrationNumber. public let taxRegistrationNumberType: TaxRegistrationNumberType @@ -1929,6 +1988,41 @@ extension TaxSettings { } } + public struct ValidationException: AWSErrorShape { + /// 400 + public let errorCode: ValidationExceptionErrorCode + /// 400 + public let fieldList: [ValidationExceptionField]? + public let message: String + + @inlinable + public init(errorCode: ValidationExceptionErrorCode, fieldList: [ValidationExceptionField]? = nil, message: String) { + self.errorCode = errorCode + self.fieldList = fieldList + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case errorCode = "errorCode" + case fieldList = "fieldList" + case message = "message" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The name of the parameter that caused a ValidationException error. + public let name: String + + @inlinable + public init(name: String) { + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case name = "name" + } + } + public struct VerificationDetails: AWSEncodableShape { /// Date of birth to verify your submitted TRN. Use the YYYY-MM-DD format. public let dateOfBirth: String? @@ -2040,6 +2134,15 @@ public struct TaxSettingsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension TaxSettingsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": TaxSettings.ConflictException.self, + "InternalServerException": TaxSettings.InternalServerException.self, + "ResourceNotFoundException": TaxSettings.ResourceNotFoundException.self, + "ValidationException": TaxSettings.ValidationException.self + ] +} + extension TaxSettingsErrorType: Equatable { public static func == (lhs: TaxSettingsErrorType, rhs: TaxSettingsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Textract/Textract_api.swift b/Sources/Soto/Services/Textract/Textract_api.swift index 039097204ba..f0d2d0558ba 100644 --- a/Sources/Soto/Services/Textract/Textract_api.swift +++ b/Sources/Soto/Services/Textract/Textract_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Textract/Textract_shapes.swift b/Sources/Soto/Services/Textract/Textract_shapes.swift index b5ed98f9bcc..f87794876a6 100644 --- a/Sources/Soto/Services/Textract/Textract_shapes.swift +++ b/Sources/Soto/Services/Textract/Textract_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -137,6 +136,22 @@ extension Textract { // MARK: Shapes + public struct AccessDeniedException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Adapter: AWSEncodableShape { /// A unique identifier for the adapter resource. public let adapterId: String @@ -455,6 +470,22 @@ extension Textract { } } + public struct BadDocumentException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Block: AWSDecodableShape { /// The type of text item that's recognized. In operations for text detection, the following types are returned: PAGE - Contains a list of the LINE Block objects that are detected on a document page. WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces. LINE - A string of tab-delimited, contiguous words that are detected on a document page. In text analysis operations, the following types are returned: PAGE - Contains a list of child Block objects that are detected on a document page. KEY_VALUE_SET - Stores the KEY and VALUE Block objects for linked text that's detected on a document page. Use the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE Block object. WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces. LINE - A string of tab-delimited, contiguous words that are detected on a document page. TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each. TABLE_TITLE - The title of a table. A title is typically a line of text above or below a table, or embedded as the first row of a table. TABLE_FOOTER - The footer associated with a table. A footer is typically a line or lines of text below a table or embedded as the last row of a table. CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell. MERGED_CELL - A cell in a table whose content spans more than one row or column. The Relationships array for this cell contain data from individual cells. SELECTION_ELEMENT - A selection element such as an option button (radio button) or a check box that's detected on a document page. Use the value of SelectionStatus to determine the status of the selection element. SIGNATURE - The location and confidence score of a signature detected on a document page. Can be returned as part of a Key-Value pair or a detected cell. QUERY - A question asked during the call of AnalyzeDocument. Contains an alias and an ID that attaches it to its answer. QUERY_RESULT - A response to a question asked during the call of analyze document. Comes with an alias and ID for ease of locating in a response. Also contains location and confidence score. The following BlockTypes are only returned for Amazon Textract Layout. LAYOUT_TITLE - The main title of the document. LAYOUT_HEADER - Text located in the top margin of the document. LAYOUT_FOOTER - Text located in the bottom margin of the document. LAYOUT_SECTION_HEADER - The titles of sections within a document. LAYOUT_PAGE_NUMBER - The page number of the documents. LAYOUT_LIST - Any information grouped together in list form. LAYOUT_FIGURE - Indicates the location of an image in a document. LAYOUT_TABLE - Indicates the location of a table in the document. LAYOUT_KEY_VALUE - Indicates the location of form key-values in a document. LAYOUT_TEXT - Text that is present typically as a part of paragraphs in documents. public let blockType: BlockType? @@ -550,6 +581,22 @@ extension Textract { } } + public struct ConflictException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct CreateAdapterRequest: AWSEncodableShape { /// The name to be assigned to the adapter being created. public let adapterName: String @@ -877,6 +924,22 @@ extension Textract { } } + public struct DocumentTooLargeException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct EvaluationMetric: AWSDecodableShape { /// The F1 score for an adapter version. public let f1Score: Float? @@ -1607,6 +1670,50 @@ extension Textract { } } + public struct HumanLoopQuotaExceededException: AWSErrorShape { + public let code: String? + public let message: String? + /// The quota code. + public let quotaCode: String? + /// The resource type. + public let resourceType: String? + /// The service code. + public let serviceCode: String? + + @inlinable + public init(code: String? = nil, message: String? = nil, quotaCode: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.code = code + self.message = message + self.quotaCode = quotaCode + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + case quotaCode = "QuotaCode" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + + public struct IdempotentParameterMismatchException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct IdentityDocument: AWSDecodableShape { /// Individual word recognition, as returned by document detection. public let blocks: [Block]? @@ -1645,6 +1752,86 @@ extension Textract { } } + public struct InternalServerError: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidJobIdException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidKMSKeyException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidParameterException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + + public struct InvalidS3ObjectException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct LendingDetection: AWSDecodableShape { /// The confidence level for the text of a detected value in a lending document. public let confidence: Float? @@ -1749,6 +1936,22 @@ extension Textract { } } + public struct LimitExceededException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct LineItemFields: AWSDecodableShape { /// ExpenseFields used to show information from detected lines on a table. public let lineItemExpenseFields: [ExpenseField]? @@ -2048,6 +2251,22 @@ extension Textract { } } + public struct ProvisionedThroughputExceededException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct QueriesConfig: AWSEncodableShape { public let queries: [Query] @@ -2123,6 +2342,22 @@ extension Textract { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct S3Object: AWSEncodableShape & AWSDecodableShape { /// The name of the S3 bucket. Note that the # character is not valid in the file name. public let bucket: String? @@ -2157,6 +2392,22 @@ extension Textract { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct SignatureDetection: AWSDecodableShape { /// The confidence, from 0 to 100, in the predicted values for a detected signature. public let confidence: Float? @@ -2489,6 +2740,22 @@ extension Textract { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UndetectedSignature: AWSDecodableShape { /// The page where a signature was expected but not found. public let page: Int? @@ -2503,6 +2770,22 @@ extension Textract { } } + public struct UnsupportedDocumentException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) that specifies the resource to be untagged. public let resourceARN: String @@ -2607,6 +2890,22 @@ extension Textract { } } + public struct ValidationException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct Warning: AWSDecodableShape { /// The error code for the warning. public let errorCode: String? @@ -2707,6 +3006,29 @@ public struct TextractErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension TextractErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "AccessDeniedException": Textract.AccessDeniedException.self, + "BadDocumentException": Textract.BadDocumentException.self, + "ConflictException": Textract.ConflictException.self, + "DocumentTooLargeException": Textract.DocumentTooLargeException.self, + "HumanLoopQuotaExceededException": Textract.HumanLoopQuotaExceededException.self, + "IdempotentParameterMismatchException": Textract.IdempotentParameterMismatchException.self, + "InternalServerError": Textract.InternalServerError.self, + "InvalidJobIdException": Textract.InvalidJobIdException.self, + "InvalidKMSKeyException": Textract.InvalidKMSKeyException.self, + "InvalidParameterException": Textract.InvalidParameterException.self, + "InvalidS3ObjectException": Textract.InvalidS3ObjectException.self, + "LimitExceededException": Textract.LimitExceededException.self, + "ProvisionedThroughputExceededException": Textract.ProvisionedThroughputExceededException.self, + "ResourceNotFoundException": Textract.ResourceNotFoundException.self, + "ServiceQuotaExceededException": Textract.ServiceQuotaExceededException.self, + "ThrottlingException": Textract.ThrottlingException.self, + "UnsupportedDocumentException": Textract.UnsupportedDocumentException.self, + "ValidationException": Textract.ValidationException.self + ] +} + extension TextractErrorType: Equatable { public static func == (lhs: TextractErrorType, rhs: TextractErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_api.swift b/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_api.swift index 4541aa5005c..4548d1dab0f 100644 --- a/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_api.swift +++ b/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_shapes.swift b/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_shapes.swift index 9478176d62a..fdadf1db641 100644 --- a/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_shapes.swift +++ b/Sources/Soto/Services/TimestreamInfluxDB/TimestreamInfluxDB_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -119,8 +118,35 @@ extension TimestreamInfluxDB { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct ConflictException: AWSErrorShape { + public let message: String + /// The identifier for the Timestream for InfluxDB resource associated with the request. + public let resourceId: String + /// The type of Timestream for InfluxDB resource associated with the request. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateDbClusterInput: AWSEncodableShape { /// The amount of storage to allocate for your DB storage type in GiB (gibibytes). public let allocatedStorage: Int @@ -1547,6 +1573,27 @@ extension TimestreamInfluxDB { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The identifier for the Timestream for InfluxDB resource associated with the request. + public let resourceId: String + /// The type of Timestream for InfluxDB resource associated with the request. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct S3Configuration: AWSEncodableShape & AWSDecodableShape { /// The name of the S3 bucket to deliver logs to. public let bucketName: String @@ -1596,6 +1643,29 @@ extension TimestreamInfluxDB { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The number of seconds the caller should wait before retrying. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the tagged resource. public let resourceArn: String @@ -1840,6 +1910,23 @@ extension TimestreamInfluxDB { } } + public struct ValidationException: AWSErrorShape { + public let message: String + /// The reason that validation failed. + public let reason: ValidationExceptionReason + + @inlinable + public init(message: String, reason: ValidationExceptionReason) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct Parameters: AWSEncodableShape & AWSDecodableShape { /// All the customer-modifiable InfluxDB v2 parameters in Timestream for InfluxDB. public let influxDBv2: InfluxDBv2Parameters? @@ -1903,6 +1990,15 @@ public struct TimestreamInfluxDBErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension TimestreamInfluxDBErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": TimestreamInfluxDB.ConflictException.self, + "ResourceNotFoundException": TimestreamInfluxDB.ResourceNotFoundException.self, + "ThrottlingException": TimestreamInfluxDB.ThrottlingException.self, + "ValidationException": TimestreamInfluxDB.ValidationException.self + ] +} + extension TimestreamInfluxDBErrorType: Equatable { public static func == (lhs: TimestreamInfluxDBErrorType, rhs: TimestreamInfluxDBErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_api.swift b/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_api.swift index 416006c85be..f8bb01dbfb0 100644 --- a/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_api.swift +++ b/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_shapes.swift b/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_shapes.swift index 4b66dca1753..7788a8b17e4 100644 --- a/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_shapes.swift +++ b/Sources/Soto/Services/TimestreamQuery/TimestreamQuery_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1112,6 +1111,23 @@ extension TimestreamQuery { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The ARN of the scheduled query. + public let scheduledQueryArn: String? + + @inlinable + public init(message: String? = nil, scheduledQueryArn: String? = nil) { + self.message = message + self.scheduledQueryArn = scheduledQueryArn + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case scheduledQueryArn = "ScheduledQueryArn" + } + } + public struct Row: AWSDecodableShape { /// List of data points in a single row of the result set. public let data: [Datum] @@ -1793,6 +1809,12 @@ public struct TimestreamQueryErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension TimestreamQueryErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": TimestreamQuery.ResourceNotFoundException.self + ] +} + extension TimestreamQueryErrorType: Equatable { public static func == (lhs: TimestreamQueryErrorType, rhs: TimestreamQueryErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_api.swift b/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_api.swift index af07340c4ec..a36961bae27 100644 --- a/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_api.swift +++ b/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_shapes.swift b/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_shapes.swift index 8ecd49e1981..4bcac53e1bd 100644 --- a/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_shapes.swift +++ b/Sources/Soto/Services/TimestreamWrite/TimestreamWrite_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1240,6 +1239,45 @@ extension TimestreamWrite { } } + public struct RejectedRecord: AWSDecodableShape { + /// The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request. + public let existingVersion: Int64? + /// The reason why a record was not successfully inserted into Timestream. Possible causes of failure include: Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but: Measure values are different Version is not present in the request, or the value of version in the new record is equal to or lower than the existing value If Timestream rejects data for this case, the ExistingVersion field in the RejectedRecords response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the ExistingVersion. Records with timestamps that lie outside the retention duration of the memory store. When the retention window is updated, you will receive a RejectedRecords exception if you immediately try to ingest data within the new window. To avoid a RejectedRecords exception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream. Records with dimensions or measures that exceed the Timestream defined limits. For more information, see Access Management in the Timestream Developer Guide. + public let reason: String? + /// The index of the record in the input request for WriteRecords. Indexes begin with 0. + public let recordIndex: Int? + + @inlinable + public init(existingVersion: Int64? = nil, reason: String? = nil, recordIndex: Int? = nil) { + self.existingVersion = existingVersion + self.reason = reason + self.recordIndex = recordIndex + } + + private enum CodingKeys: String, CodingKey { + case existingVersion = "ExistingVersion" + case reason = "Reason" + case recordIndex = "RecordIndex" + } + } + + public struct RejectedRecordsException: AWSErrorShape { + public let message: String? + /// + public let rejectedRecords: [RejectedRecord]? + + @inlinable + public init(message: String? = nil, rejectedRecords: [RejectedRecord]? = nil) { + self.message = message + self.rejectedRecords = rejectedRecords + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case rejectedRecords = "RejectedRecords" + } + } + public struct ReportConfiguration: AWSEncodableShape & AWSDecodableShape { /// Configuration of an S3 location to write error reports and events for a batch load. public let reportS3Configuration: ReportS3Configuration? @@ -1721,6 +1759,12 @@ public struct TimestreamWriteErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension TimestreamWriteErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "RejectedRecordsException": TimestreamWrite.RejectedRecordsException.self + ] +} + extension TimestreamWriteErrorType: Equatable { public static func == (lhs: TimestreamWriteErrorType, rhs: TimestreamWriteErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Tnb/Tnb_api.swift b/Sources/Soto/Services/Tnb/Tnb_api.swift index bfe0879ab2a..dc68b17489f 100644 --- a/Sources/Soto/Services/Tnb/Tnb_api.swift +++ b/Sources/Soto/Services/Tnb/Tnb_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Tnb/Tnb_shapes.swift b/Sources/Soto/Services/Tnb/Tnb_shapes.swift index 96f87fd2668..298dae52ba8 100644 --- a/Sources/Soto/Services/Tnb/Tnb_shapes.swift +++ b/Sources/Soto/Services/Tnb/Tnb_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Transcribe/Transcribe_api.swift b/Sources/Soto/Services/Transcribe/Transcribe_api.swift index 75bf86bff72..b062006538c 100644 --- a/Sources/Soto/Services/Transcribe/Transcribe_api.swift +++ b/Sources/Soto/Services/Transcribe/Transcribe_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Transcribe/Transcribe_shapes.swift b/Sources/Soto/Services/Transcribe/Transcribe_shapes.swift index 7ae33e11d95..9b0c9609720 100644 --- a/Sources/Soto/Services/Transcribe/Transcribe_shapes.swift +++ b/Sources/Soto/Services/Transcribe/Transcribe_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_api.swift b/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_api.swift index b9c3fdb5eee..e53c02d6505 100644 --- a/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_api.swift +++ b/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_shapes.swift b/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_shapes.swift index 88fdfa47bc0..221500abb55 100644 --- a/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_shapes.swift +++ b/Sources/Soto/Services/TranscribeStreaming/TranscribeStreaming_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Transfer/Transfer_api.swift b/Sources/Soto/Services/Transfer/Transfer_api.swift index b66c556e20a..c6730e06d63 100644 --- a/Sources/Soto/Services/Transfer/Transfer_api.swift +++ b/Sources/Soto/Services/Transfer/Transfer_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Transfer/Transfer_shapes.swift b/Sources/Soto/Services/Transfer/Transfer_shapes.swift index 0a7bef9eb3b..3e13e51cc3a 100644 --- a/Sources/Soto/Services/Transfer/Transfer_shapes.swift +++ b/Sources/Soto/Services/Transfer/Transfer_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -4136,6 +4135,44 @@ extension Transfer { } } + public struct ResourceExistsException: AWSErrorShape { + public let message: String + public let resource: String + public let resourceType: String + + @inlinable + public init(message: String, resource: String, resourceType: String) { + self.message = message + self.resource = resource + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resource = "Resource" + case resourceType = "ResourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + public let resource: String + public let resourceType: String + + @inlinable + public init(message: String, resource: String, resourceType: String) { + self.message = message + self.resource = resource + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resource = "Resource" + case resourceType = "ResourceType" + } + } + public struct S3FileLocation: AWSDecodableShape { /// Specifies the S3 bucket that contains the file being used. public let bucket: String? @@ -4699,6 +4736,22 @@ extension Transfer { } } + public struct ThrottlingException: AWSErrorShape { + public let retryAfterSeconds: String? + + @inlinable + public init(retryAfterSeconds: String? = nil) { + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + self.retryAfterSeconds = try response.decodeHeaderIfPresent(String.self, key: "Retry-After") + } + + private enum CodingKeys: CodingKey {} + } + public struct UntagResourceRequest: AWSEncodableShape { /// The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific Amazon Web Services resource, such as a server, user, or role. public let arn: String @@ -5669,6 +5722,14 @@ public struct TransferErrorType: AWSErrorType { public static var throttlingException: Self { .init(.throttlingException) } } +extension TransferErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceExistsException": Transfer.ResourceExistsException.self, + "ResourceNotFoundException": Transfer.ResourceNotFoundException.self, + "ThrottlingException": Transfer.ThrottlingException.self + ] +} + extension TransferErrorType: Equatable { public static func == (lhs: TransferErrorType, rhs: TransferErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Translate/Translate_api.swift b/Sources/Soto/Services/Translate/Translate_api.swift index a59f8f3f996..cbaeca60b0b 100644 --- a/Sources/Soto/Services/Translate/Translate_api.swift +++ b/Sources/Soto/Services/Translate/Translate_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Translate/Translate_shapes.swift b/Sources/Soto/Services/Translate/Translate_shapes.swift index ca13e0df66f..b310618e25e 100644 --- a/Sources/Soto/Services/Translate/Translate_shapes.swift +++ b/Sources/Soto/Services/Translate/Translate_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -286,6 +285,23 @@ extension Translate { } } + public struct DetectedLanguageLowConfidenceException: AWSErrorShape { + /// The language code of the auto-detected language from Amazon Comprehend. + public let detectedLanguageCode: String? + public let message: String? + + @inlinable + public init(detectedLanguageCode: String? = nil, message: String? = nil) { + self.detectedLanguageCode = detectedLanguageCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case detectedLanguageCode = "DetectedLanguageCode" + case message = "Message" + } + } + public struct Document: AWSEncodableShape { /// The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request. public let content: AWSBase64Data @@ -1338,6 +1354,22 @@ extension Translate { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + public let resourceArn: String? + + @inlinable + public init(message: String? = nil, resourceArn: String? = nil) { + self.message = message + self.resourceArn = resourceArn + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceArn = "ResourceArn" + } + } + public struct TranslateDocumentRequest: AWSEncodableShape { /// The content and content type for the document to be translated. The document size must not exceed 100 KB. public let document: Document @@ -1521,6 +1553,44 @@ extension Translate { } } + public struct UnsupportedDisplayLanguageCodeException: AWSErrorShape { + /// Language code passed in with the request. + public let displayLanguageCode: String? + public let message: String? + + @inlinable + public init(displayLanguageCode: String? = nil, message: String? = nil) { + self.displayLanguageCode = displayLanguageCode + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case displayLanguageCode = "DisplayLanguageCode" + case message = "Message" + } + } + + public struct UnsupportedLanguagePairException: AWSErrorShape { + public let message: String? + /// The language code for the language of the input text. + public let sourceLanguageCode: String? + /// The language code for the language of the translated text. + public let targetLanguageCode: String? + + @inlinable + public init(message: String? = nil, sourceLanguageCode: String? = nil, targetLanguageCode: String? = nil) { + self.message = message + self.sourceLanguageCode = sourceLanguageCode + self.targetLanguageCode = targetLanguageCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case sourceLanguageCode = "SourceLanguageCode" + case targetLanguageCode = "TargetLanguageCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the given Amazon Translate resource from which you want to remove the tags. public let resourceArn: String @@ -1690,6 +1760,15 @@ public struct TranslateErrorType: AWSErrorType { public static var unsupportedLanguagePairException: Self { .init(.unsupportedLanguagePairException) } } +extension TranslateErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DetectedLanguageLowConfidenceException": Translate.DetectedLanguageLowConfidenceException.self, + "TooManyTagsException": Translate.TooManyTagsException.self, + "UnsupportedDisplayLanguageCodeException": Translate.UnsupportedDisplayLanguageCodeException.self, + "UnsupportedLanguagePairException": Translate.UnsupportedLanguagePairException.self + ] +} + extension TranslateErrorType: Equatable { public static func == (lhs: TranslateErrorType, rhs: TranslateErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_api.swift b/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_api.swift index 44cb006140c..3f93bffade5 100644 --- a/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_api.swift +++ b/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_shapes.swift b/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_shapes.swift index 09aad72b508..ba76036f06b 100644 --- a/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_shapes.swift +++ b/Sources/Soto/Services/TrustedAdvisor/TrustedAdvisor_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/VPCLattice/VPCLattice_api.swift b/Sources/Soto/Services/VPCLattice/VPCLattice_api.swift index c3c0cb13dc2..4582e73c81f 100644 --- a/Sources/Soto/Services/VPCLattice/VPCLattice_api.swift +++ b/Sources/Soto/Services/VPCLattice/VPCLattice_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/VPCLattice/VPCLattice_shapes.swift b/Sources/Soto/Services/VPCLattice/VPCLattice_shapes.swift index df12fbc6b3b..8e775a52621 100644 --- a/Sources/Soto/Services/VPCLattice/VPCLattice_shapes.swift +++ b/Sources/Soto/Services/VPCLattice/VPCLattice_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -278,6 +277,14 @@ extension VPCLattice { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum HeaderMatchType: AWSEncodableShape & AWSDecodableShape, Sendable { /// A contains type match. case contains(String) @@ -631,6 +638,27 @@ extension VPCLattice { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The resource ID. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateAccessLogSubscriptionRequest: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails. public let clientToken: String? @@ -3504,6 +3532,29 @@ extension VPCLattice { } } + public struct InternalServerException: AWSErrorShape { + public let message: String + /// The number of seconds to wait before retrying. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct IpResource: AWSEncodableShape & AWSDecodableShape { /// The IP address of the IP resource. public let ipAddress: String? @@ -4714,6 +4765,27 @@ extension VPCLattice { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The resource ID. + public let resourceId: String + /// The resource type. + public let resourceType: String + + @inlinable + public init(message: String, resourceId: String, resourceType: String) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct RuleSummary: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the rule. public let arn: String? @@ -5119,6 +5191,35 @@ extension VPCLattice { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The ID of the service quota that was exceeded. + public let quotaCode: String + /// The resource ID. + public let resourceId: String? + /// The resource type. + public let resourceType: String + /// The service code. + public let serviceCode: String + + @inlinable + public init(message: String, quotaCode: String, resourceId: String? = nil, resourceType: String, serviceCode: String) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct ServiceSummary: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the service. public let arn: String? @@ -5402,6 +5503,39 @@ extension VPCLattice { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String + /// The ID of the service quota that was exceeded. + public let quotaCode: String? + /// The number of seconds to wait before retrying. + public let retryAfterSeconds: Int? + /// The service code. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decode(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -6111,6 +6245,45 @@ extension VPCLattice { } } + public struct ValidationException: AWSErrorShape { + /// The fields that failed validation. + public let fieldList: [ValidationExceptionField]? + public let message: String + /// The reason. + public let reason: ValidationExceptionReason + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String, reason: ValidationExceptionReason) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// Additional information about why the validation failed. + public let message: String + /// The name of the validation exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } + public struct WeightedTargetGroup: AWSEncodableShape & AWSDecodableShape { /// The ID or ARN of the target group. public let targetGroupIdentifier: String @@ -6223,6 +6396,17 @@ public struct VPCLatticeErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension VPCLatticeErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": VPCLattice.ConflictException.self, + "InternalServerException": VPCLattice.InternalServerException.self, + "ResourceNotFoundException": VPCLattice.ResourceNotFoundException.self, + "ServiceQuotaExceededException": VPCLattice.ServiceQuotaExceededException.self, + "ThrottlingException": VPCLattice.ThrottlingException.self, + "ValidationException": VPCLattice.ValidationException.self + ] +} + extension VPCLatticeErrorType: Equatable { public static func == (lhs: VPCLatticeErrorType, rhs: VPCLatticeErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_api.swift b/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_api.swift index f0161a84ecb..eb6cb823321 100644 --- a/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_api.swift +++ b/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_shapes.swift b/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_shapes.swift index f41f7f8a283..ff0c96d4edb 100644 --- a/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_shapes.swift +++ b/Sources/Soto/Services/VerifiedPermissions/VerifiedPermissions_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -55,6 +54,15 @@ extension VerifiedPermissions { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case identitySource = "IDENTITY_SOURCE" + case policy = "POLICY" + case policyStore = "POLICY_STORE" + case policyTemplate = "POLICY_TEMPLATE" + case schema = "SCHEMA" + public var description: String { return self.rawValue } + } + public enum ValidationMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case off = "OFF" case strict = "STRICT" @@ -1150,6 +1158,23 @@ extension VerifiedPermissions { } } + public struct ConflictException: AWSErrorShape { + public let message: String + /// The list of resources referenced with this failed request. + public let resources: [ResourceConflict] + + @inlinable + public init(message: String, resources: [ResourceConflict]) { + self.message = message + self.resources = resources + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resources = "resources" + } + } + public struct CreateIdentitySourceInput: AWSEncodableShape { /// Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.. If you don't provide this value, then Amazon Web Services generates a random one for you. If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error. Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken. public let clientToken: String? @@ -2937,6 +2962,74 @@ extension VerifiedPermissions { } } + public struct ResourceConflict: AWSDecodableShape { + /// The unique identifier of the resource involved in a conflict. + public let resourceId: String + /// The type of the resource involved in a conflict. + public let resourceType: ResourceType + + @inlinable + public init(resourceId: String, resourceType: ResourceType) { + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String + /// The unique ID of the resource referenced in the failed request. + public let resourceId: String + /// The resource type of the resource referenced in the failed request. + public let resourceType: ResourceType + + @inlinable + public init(message: String, resourceId: String, resourceType: ResourceType) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String + /// The quota code recognized by the Amazon Web Services Service Quotas service. + public let quotaCode: String? + /// The unique ID of the resource referenced in the failed request. + public let resourceId: String? + /// The resource type of the resource referenced in the failed request. + public let resourceType: ResourceType + /// The code for the Amazon Web Services service that owns the quota. + public let serviceCode: String? + + @inlinable + public init(message: String, quotaCode: String? = nil, resourceId: String? = nil, resourceType: ResourceType, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct StaticPolicyDefinition: AWSEncodableShape { /// The description of the static policy. public let description: String? @@ -3635,6 +3728,14 @@ public struct VerifiedPermissionsErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension VerifiedPermissionsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": VerifiedPermissions.ConflictException.self, + "ResourceNotFoundException": VerifiedPermissions.ResourceNotFoundException.self, + "ServiceQuotaExceededException": VerifiedPermissions.ServiceQuotaExceededException.self + ] +} + extension VerifiedPermissionsErrorType: Equatable { public static func == (lhs: VerifiedPermissionsErrorType, rhs: VerifiedPermissionsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/VoiceID/VoiceID_api.swift b/Sources/Soto/Services/VoiceID/VoiceID_api.swift index 6f8a456b3eb..ffa6873689f 100644 --- a/Sources/Soto/Services/VoiceID/VoiceID_api.swift +++ b/Sources/Soto/Services/VoiceID/VoiceID_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/VoiceID/VoiceID_shapes.swift b/Sources/Soto/Services/VoiceID/VoiceID_shapes.swift index 9869330e2e0..a3ce72b04b9 100644 --- a/Sources/Soto/Services/VoiceID/VoiceID_shapes.swift +++ b/Sources/Soto/Services/VoiceID/VoiceID_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -37,6 +36,20 @@ extension VoiceID { public var description: String { return self.rawValue } } + public enum ConflictType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case anotherActiveStream = "ANOTHER_ACTIVE_STREAM" + case cannotChangeSpeakerAfterEnrollment = "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT" + case cannotDeleteNonEmptyWatchlist = "CANNOT_DELETE_NON_EMPTY_WATCHLIST" + case concurrentChanges = "CONCURRENT_CHANGES" + case domainLockedFromEncryptionUpdates = "DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES" + case domainNotActive = "DOMAIN_NOT_ACTIVE" + case enrollmentAlreadyExists = "ENROLLMENT_ALREADY_EXISTS" + case fraudsterMustBelongToAtLeastOneWatchlist = "FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST" + case speakerNotSet = "SPEAKER_NOT_SET" + case speakerOptedOut = "SPEAKER_OPTED_OUT" + public var description: String { return self.rawValue } + } + public enum DomainStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case active = "ACTIVE" case pending = "PENDING" @@ -84,6 +97,17 @@ extension VoiceID { public var description: String { return self.rawValue } } + public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case batchJob = "BATCH_JOB" + case complianceConsent = "COMPLIANCE_CONSENT" + case domain = "DOMAIN" + case fraudster = "FRAUDSTER" + case session = "SESSION" + case speaker = "SPEAKER" + case watchlist = "WATCHLIST" + public var description: String { return self.rawValue } + } + public enum ServerSideEncryptionUpdateStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case completed = "COMPLETED" case failed = "FAILED" @@ -220,6 +244,23 @@ extension VoiceID { } } + public struct ConflictException: AWSErrorShape { + /// The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows: DOMAIN_NOT_ACTIVE: The domain is not active. CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: You cannot change the speaker ID after an enrollment has been requested. ENROLLMENT_ALREADY_EXISTS: There is already an enrollment for this session. SPEAKER_NOT_SET: You must set the speaker ID before requesting an enrollment. SPEAKER_OPTED_OUT: You cannot request an enrollment for an opted out speaker. CONCURRENT_CHANGES: The request could not be processed as the resource was modified by another request during execution. + public let conflictType: ConflictType? + public let message: String? + + @inlinable + public init(conflictType: ConflictType? = nil, message: String? = nil) { + self.conflictType = conflictType + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case conflictType = "ConflictType" + case message = "Message" + } + } + public struct CreateDomainRequest: AWSEncodableShape { /// A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. public let clientToken: String? @@ -1677,6 +1718,23 @@ extension VoiceID { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The type of resource which cannot not be found. Possible types are BATCH_JOB, COMPLIANCE_CONSENT, DOMAIN, FRAUDSTER, SESSION and SPEAKER. + public let resourceType: ResourceType? + + @inlinable + public init(message: String? = nil, resourceType: ResourceType? = nil) { + self.message = message + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceType = "ResourceType" + } + } + public struct ServerSideEncryptionConfiguration: AWSEncodableShape & AWSDecodableShape { /// The identifier of the KMS key to use to encrypt data stored by Voice ID. Voice ID doesn't support asymmetric customer managed keys. public let kmsKeyId: String @@ -2387,6 +2445,13 @@ public struct VoiceIDErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension VoiceIDErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": VoiceID.ConflictException.self, + "ResourceNotFoundException": VoiceID.ResourceNotFoundException.self + ] +} + extension VoiceIDErrorType: Equatable { public static func == (lhs: VoiceIDErrorType, rhs: VoiceIDErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WAF/WAF_api.swift b/Sources/Soto/Services/WAF/WAF_api.swift index 97b9e450a09..696fd185355 100644 --- a/Sources/Soto/Services/WAF/WAF_api.swift +++ b/Sources/Soto/Services/WAF/WAF_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WAF/WAF_shapes.swift b/Sources/Soto/Services/WAF/WAF_shapes.swift index bc033d518f6..e73e94788ab 100644 --- a/Sources/Soto/Services/WAF/WAF_shapes.swift +++ b/Sources/Soto/Services/WAF/WAF_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -324,6 +323,47 @@ extension WAF { public var description: String { return self.rawValue } } + public enum MigrationErrorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case entityNotFound = "ENTITY_NOT_FOUND" + case entityNotSupported = "ENTITY_NOT_SUPPORTED" + case s3BucketInvalidRegion = "S3_BUCKET_INVALID_REGION" + case s3BucketNoPermission = "S3_BUCKET_NO_PERMISSION" + case s3BucketNotAccessible = "S3_BUCKET_NOT_ACCESSIBLE" + case s3BucketNotFound = "S3_BUCKET_NOT_FOUND" + case s3InternalError = "S3_INTERNAL_ERROR" + public var description: String { return self.rawValue } + } + + public enum ParameterExceptionField: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case byteMatchFieldType = "BYTE_MATCH_FIELD_TYPE" + case byteMatchPositionalConstraint = "BYTE_MATCH_POSITIONAL_CONSTRAINT" + case byteMatchTextTransformation = "BYTE_MATCH_TEXT_TRANSFORMATION" + case changeAction = "CHANGE_ACTION" + case geoMatchLocationType = "GEO_MATCH_LOCATION_TYPE" + case geoMatchLocationValue = "GEO_MATCH_LOCATION_VALUE" + case ipsetType = "IPSET_TYPE" + case nextMarker = "NEXT_MARKER" + case predicateType = "PREDICATE_TYPE" + case rateKey = "RATE_KEY" + case resourceArn = "RESOURCE_ARN" + case ruleType = "RULE_TYPE" + case sizeConstraintComparisonOperator = "SIZE_CONSTRAINT_COMPARISON_OPERATOR" + case sqlInjectionMatchFieldType = "SQL_INJECTION_MATCH_FIELD_TYPE" + case tagKeys = "TAG_KEYS" + case tags = "TAGS" + case wafAction = "WAF_ACTION" + case wafOverrideAction = "WAF_OVERRIDE_ACTION" + public var description: String { return self.rawValue } + } + + public enum ParameterExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case illegalArgument = "ILLEGAL_ARGUMENT" + case illegalCombination = "ILLEGAL_COMBINATION" + case invalidOption = "INVALID_OPTION" + case invalidTagKey = "INVALID_TAG_KEY" + public var description: String { return self.rawValue } + } + public enum PositionalConstraint: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case contains = "CONTAINS" case containsWord = "CONTAINS_WORD" @@ -5169,6 +5209,44 @@ extension WAF { } } + public struct WAFEntityMigrationException: AWSErrorShape { + public let message: String? + public let migrationErrorReason: String? + public let migrationErrorType: MigrationErrorType? + + @inlinable + public init(message: String? = nil, migrationErrorReason: String? = nil, migrationErrorType: MigrationErrorType? = nil) { + self.message = message + self.migrationErrorReason = migrationErrorReason + self.migrationErrorType = migrationErrorType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case migrationErrorReason = "MigrationErrorReason" + case migrationErrorType = "MigrationErrorType" + } + } + + public struct WAFInvalidParameterException: AWSErrorShape { + public let field: ParameterExceptionField? + public let parameter: String? + public let reason: ParameterExceptionReason? + + @inlinable + public init(field: ParameterExceptionField? = nil, parameter: String? = nil, reason: ParameterExceptionReason? = nil) { + self.field = field + self.parameter = parameter + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case field = "field" + case parameter = "parameter" + case reason = "reason" + } + } + public struct WafAction: AWSEncodableShape & AWSDecodableShape { /// Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following: /// ALLOW: AWS WAF allows requests BLOCK: AWS WAF blocks requests COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. @@ -5498,6 +5576,13 @@ public struct WAFErrorType: AWSErrorType { public static var wafTagOperationInternalErrorException: Self { .init(.wafTagOperationInternalErrorException) } } +extension WAFErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "WAFEntityMigrationException": WAF.WAFEntityMigrationException.self, + "WAFInvalidParameterException": WAF.WAFInvalidParameterException.self + ] +} + extension WAFErrorType: Equatable { public static func == (lhs: WAFErrorType, rhs: WAFErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WAFRegional/WAFRegional_api.swift b/Sources/Soto/Services/WAFRegional/WAFRegional_api.swift index 788426fe14c..f894755067a 100644 --- a/Sources/Soto/Services/WAFRegional/WAFRegional_api.swift +++ b/Sources/Soto/Services/WAFRegional/WAFRegional_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WAFRegional/WAFRegional_shapes.swift b/Sources/Soto/Services/WAFRegional/WAFRegional_shapes.swift index 3be9774566d..25d7bdce393 100644 --- a/Sources/Soto/Services/WAFRegional/WAFRegional_shapes.swift +++ b/Sources/Soto/Services/WAFRegional/WAFRegional_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -324,6 +323,47 @@ extension WAFRegional { public var description: String { return self.rawValue } } + public enum MigrationErrorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case entityNotFound = "ENTITY_NOT_FOUND" + case entityNotSupported = "ENTITY_NOT_SUPPORTED" + case s3BucketInvalidRegion = "S3_BUCKET_INVALID_REGION" + case s3BucketNoPermission = "S3_BUCKET_NO_PERMISSION" + case s3BucketNotAccessible = "S3_BUCKET_NOT_ACCESSIBLE" + case s3BucketNotFound = "S3_BUCKET_NOT_FOUND" + case s3InternalError = "S3_INTERNAL_ERROR" + public var description: String { return self.rawValue } + } + + public enum ParameterExceptionField: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case byteMatchFieldType = "BYTE_MATCH_FIELD_TYPE" + case byteMatchPositionalConstraint = "BYTE_MATCH_POSITIONAL_CONSTRAINT" + case byteMatchTextTransformation = "BYTE_MATCH_TEXT_TRANSFORMATION" + case changeAction = "CHANGE_ACTION" + case geoMatchLocationType = "GEO_MATCH_LOCATION_TYPE" + case geoMatchLocationValue = "GEO_MATCH_LOCATION_VALUE" + case ipsetType = "IPSET_TYPE" + case nextMarker = "NEXT_MARKER" + case predicateType = "PREDICATE_TYPE" + case rateKey = "RATE_KEY" + case resourceArn = "RESOURCE_ARN" + case ruleType = "RULE_TYPE" + case sizeConstraintComparisonOperator = "SIZE_CONSTRAINT_COMPARISON_OPERATOR" + case sqlInjectionMatchFieldType = "SQL_INJECTION_MATCH_FIELD_TYPE" + case tagKeys = "TAG_KEYS" + case tags = "TAGS" + case wafAction = "WAF_ACTION" + case wafOverrideAction = "WAF_OVERRIDE_ACTION" + public var description: String { return self.rawValue } + } + + public enum ParameterExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case illegalArgument = "ILLEGAL_ARGUMENT" + case illegalCombination = "ILLEGAL_COMBINATION" + case invalidOption = "INVALID_OPTION" + case invalidTagKey = "INVALID_TAG_KEY" + public var description: String { return self.rawValue } + } + public enum PositionalConstraint: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case contains = "CONTAINS" case containsWord = "CONTAINS_WORD" @@ -5302,6 +5342,44 @@ extension WAFRegional { } } + public struct WAFEntityMigrationException: AWSErrorShape { + public let message: String? + public let migrationErrorReason: String? + public let migrationErrorType: MigrationErrorType? + + @inlinable + public init(message: String? = nil, migrationErrorReason: String? = nil, migrationErrorType: MigrationErrorType? = nil) { + self.message = message + self.migrationErrorReason = migrationErrorReason + self.migrationErrorType = migrationErrorType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case migrationErrorReason = "MigrationErrorReason" + case migrationErrorType = "MigrationErrorType" + } + } + + public struct WAFInvalidParameterException: AWSErrorShape { + public let field: ParameterExceptionField? + public let parameter: String? + public let reason: ParameterExceptionReason? + + @inlinable + public init(field: ParameterExceptionField? = nil, parameter: String? = nil, reason: ParameterExceptionReason? = nil) { + self.field = field + self.parameter = parameter + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case field = "field" + case parameter = "parameter" + case reason = "reason" + } + } + public struct WafAction: AWSEncodableShape & AWSDecodableShape { /// Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following: /// ALLOW: AWS WAF allows requests BLOCK: AWS WAF blocks requests COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. @@ -5634,6 +5712,13 @@ public struct WAFRegionalErrorType: AWSErrorType { public static var wafUnavailableEntityException: Self { .init(.wafUnavailableEntityException) } } +extension WAFRegionalErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "WAFEntityMigrationException": WAFRegional.WAFEntityMigrationException.self, + "WAFInvalidParameterException": WAFRegional.WAFInvalidParameterException.self + ] +} + extension WAFRegionalErrorType: Equatable { public static func == (lhs: WAFRegionalErrorType, rhs: WAFRegionalErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WAFV2/WAFV2_api.swift b/Sources/Soto/Services/WAFV2/WAFV2_api.swift index eb55d57cdf0..4f13ddb0bff 100644 --- a/Sources/Soto/Services/WAFV2/WAFV2_api.swift +++ b/Sources/Soto/Services/WAFV2/WAFV2_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WAFV2/WAFV2_shapes.swift b/Sources/Soto/Services/WAFV2/WAFV2_shapes.swift index 8a451cd4342..9e4b666bb48 100644 --- a/Sources/Soto/Services/WAFV2/WAFV2_shapes.swift +++ b/Sources/Soto/Services/WAFV2/WAFV2_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -414,6 +413,81 @@ extension WAFV2 { public var description: String { return self.rawValue } } + public enum ParameterExceptionField: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case acpRuleSetResponseInspection = "ACP_RULE_SET_RESPONSE_INSPECTION" + case andStatement = "AND_STATEMENT" + case associableResource = "ASSOCIABLE_RESOURCE" + case associatedResourceType = "ASSOCIATED_RESOURCE_TYPE" + case atpRuleSetResponseInspection = "ATP_RULE_SET_RESPONSE_INSPECTION" + case bodyParsingFallbackBehavior = "BODY_PARSING_FALLBACK_BEHAVIOR" + case byteMatchStatement = "BYTE_MATCH_STATEMENT" + case challengeConfig = "CHALLENGE_CONFIG" + case changePropagationStatus = "CHANGE_PROPAGATION_STATUS" + case cookieMatchPattern = "COOKIE_MATCH_PATTERN" + case customKeys = "CUSTOM_KEYS" + case customRequestHandling = "CUSTOM_REQUEST_HANDLING" + case customResponse = "CUSTOM_RESPONSE" + case customResponseBody = "CUSTOM_RESPONSE_BODY" + case dataProtectionConfig = "DATA_PROTECTION_CONFIG" + case defaultAction = "DEFAULT_ACTION" + case entityLimit = "ENTITY_LIMIT" + case excludedRule = "EXCLUDED_RULE" + case expireTimestamp = "EXPIRE_TIMESTAMP" + case fallbackBehavior = "FALLBACK_BEHAVIOR" + case fieldToMatch = "FIELD_TO_MATCH" + case filterCondition = "FILTER_CONDITION" + case firewallManagerStatement = "FIREWALL_MANAGER_STATEMENT" + case forwardedIpConfig = "FORWARDED_IP_CONFIG" + case geoMatchStatement = "GEO_MATCH_STATEMENT" + case headerMatchPattern = "HEADER_MATCH_PATTERN" + case headerName = "HEADER_NAME" + case ipAddress = "IP_ADDRESS" + case ipAddressVersion = "IP_ADDRESS_VERSION" + case ipSet = "IP_SET" + case ipSetForwardedIpConfig = "IP_SET_FORWARDED_IP_CONFIG" + case ipSetReferenceStatement = "IP_SET_REFERENCE_STATEMENT" + case jsonMatchPattern = "JSON_MATCH_PATTERN" + case jsonMatchScope = "JSON_MATCH_SCOPE" + case labelMatchStatement = "LABEL_MATCH_STATEMENT" + case logDestination = "LOG_DESTINATION" + case loggingFilter = "LOGGING_FILTER" + case managedRuleGroupConfig = "MANAGED_RULE_GROUP_CONFIG" + case managedRuleSet = "MANAGED_RULE_SET" + case managedRuleSetStatement = "MANAGED_RULE_SET_STATEMENT" + case mapMatchScope = "MAP_MATCH_SCOPE" + case metricName = "METRIC_NAME" + case notStatement = "NOT_STATEMENT" + case orStatement = "OR_STATEMENT" + case overrideAction = "OVERRIDE_ACTION" + case oversizeHandling = "OVERSIZE_HANDLING" + case payloadType = "PAYLOAD_TYPE" + case position = "POSITION" + case rateBasedStatement = "RATE_BASED_STATEMENT" + case regexPatternReferenceStatement = "REGEX_PATTERN_REFERENCE_STATEMENT" + case regexPatternSet = "REGEX_PATTERN_SET" + case resourceArn = "RESOURCE_ARN" + case resourceType = "RESOURCE_TYPE" + case responseContentType = "RESPONSE_CONTENT_TYPE" + case rule = "RULE" + case ruleAction = "RULE_ACTION" + case ruleGroup = "RULE_GROUP" + case ruleGroupReferenceStatement = "RULE_GROUP_REFERENCE_STATEMENT" + case scopeDown = "SCOPE_DOWN" + case scopeValue = "SCOPE_VALUE" + case singleHeader = "SINGLE_HEADER" + case singleQueryArgument = "SINGLE_QUERY_ARGUMENT" + case sizeConstraintStatement = "SIZE_CONSTRAINT_STATEMENT" + case sqliMatchStatement = "SQLI_MATCH_STATEMENT" + case statement = "STATEMENT" + case tagKeys = "TAG_KEYS" + case tags = "TAGS" + case textTransformation = "TEXT_TRANSFORMATION" + case tokenDomain = "TOKEN_DOMAIN" + case webAcl = "WEB_ACL" + case xssMatchStatement = "XSS_MATCH_STATEMENT" + public var description: String { return self.rawValue } + } + public enum PayloadType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case formEncoded = "FORM_ENCODED" case json = "JSON" @@ -6578,6 +6652,48 @@ extension WAFV2 { } } + public struct WAFInvalidParameterException: AWSErrorShape { + /// The settings where the invalid parameter was found. + public let field: ParameterExceptionField? + public let message: String? + /// The invalid parameter that resulted in the exception. + public let parameter: String? + /// Additional information about the exception. + public let reason: String? + + @inlinable + public init(field: ParameterExceptionField? = nil, message: String? = nil, parameter: String? = nil, reason: String? = nil) { + self.field = field + self.message = message + self.parameter = parameter + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case field = "Field" + case message = "message" + case parameter = "Parameter" + case reason = "Reason" + } + } + + public struct WAFLimitsExceededException: AWSErrorShape { + public let message: String? + /// Source type for the exception. + public let sourceType: String? + + @inlinable + public init(message: String? = nil, sourceType: String? = nil) { + self.message = message + self.sourceType = sourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case sourceType = "SourceType" + } + } + public struct WebACL: AWSDecodableShape { /// The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource. public let arn: String @@ -6808,6 +6924,13 @@ public struct WAFV2ErrorType: AWSErrorType { public static var wafUnsupportedAggregateKeyTypeException: Self { .init(.wafUnsupportedAggregateKeyTypeException) } } +extension WAFV2ErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "WAFInvalidParameterException": WAFV2.WAFInvalidParameterException.self, + "WAFLimitsExceededException": WAFV2.WAFLimitsExceededException.self + ] +} + extension WAFV2ErrorType: Equatable { public static func == (lhs: WAFV2ErrorType, rhs: WAFV2ErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WellArchitected/WellArchitected_api.swift b/Sources/Soto/Services/WellArchitected/WellArchitected_api.swift index 77b5e1dc9b3..13cf43a6110 100644 --- a/Sources/Soto/Services/WellArchitected/WellArchitected_api.swift +++ b/Sources/Soto/Services/WellArchitected/WellArchitected_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WellArchitected/WellArchitected_shapes.swift b/Sources/Soto/Services/WellArchitected/WellArchitected_shapes.swift index 86cab0745ff..514e0f1a1c7 100644 --- a/Sources/Soto/Services/WellArchitected/WellArchitected_shapes.swift +++ b/Sources/Soto/Services/WellArchitected/WellArchitected_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -268,6 +267,14 @@ extension WellArchitected { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "CANNOT_PARSE" + case fieldValidationFailed = "FIELD_VALIDATION_FAILED" + case other = "OTHER" + case unknownOperation = "UNKNOWN_OPERATION" + public var description: String { return self.rawValue } + } + public enum WorkloadEnvironment: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case preproduction = "PREPRODUCTION" case production = "PRODUCTION" @@ -813,6 +820,25 @@ extension WellArchitected { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + public let resourceId: String? + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ConsolidatedReportMetric: AWSDecodableShape { /// The metrics for the lenses in the workload. public let lenses: [LensMetric]? @@ -4427,6 +4453,25 @@ extension WellArchitected { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let resourceId: String? + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + } + } + public struct ReviewTemplate: AWSDecodableShape { /// The review template description. public let description: String? @@ -4704,6 +4749,31 @@ extension WellArchitected { } } + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + public let quotaCode: String? + public let resourceId: String? + public let resourceType: String? + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case resourceId = "ResourceId" + case resourceType = "ResourceType" + case serviceCode = "ServiceCode" + } + } + public struct ShareInvitation: AWSDecodableShape { public let lensAlias: String? /// The ARN for the lens. @@ -4856,6 +4926,25 @@ extension WellArchitected { } } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + public let quotaCode: String? + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case quotaCode = "QuotaCode" + case serviceCode = "ServiceCode" + } + } + public struct UntagResourceInput: AWSEncodableShape { /// A list of tag keys. Existing tags of the resource whose keys are members of this list are removed from the resource. public let tagKeys: [String]? @@ -5743,6 +5832,41 @@ extension WellArchitected { } } + public struct ValidationException: AWSErrorShape { + public let fields: [ValidationExceptionField]? + public let message: String? + public let reason: ValidationExceptionReason? + + @inlinable + public init(fields: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fields = fields + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fields = "Fields" + case message = "Message" + case reason = "Reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + public let message: String? + public let name: String? + + @inlinable + public init(message: String? = nil, name: String? = nil) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case name = "Name" + } + } + public struct VersionDifferences: AWSDecodableShape { /// The differences between the base and latest versions of the lens. public let pillarDifferences: [PillarDifference]? @@ -6095,6 +6219,16 @@ public struct WellArchitectedErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension WellArchitectedErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": WellArchitected.ConflictException.self, + "ResourceNotFoundException": WellArchitected.ResourceNotFoundException.self, + "ServiceQuotaExceededException": WellArchitected.ServiceQuotaExceededException.self, + "ThrottlingException": WellArchitected.ThrottlingException.self, + "ValidationException": WellArchitected.ValidationException.self + ] +} + extension WellArchitectedErrorType: Equatable { public static func == (lhs: WellArchitectedErrorType, rhs: WellArchitectedErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/Wisdom/Wisdom_api.swift b/Sources/Soto/Services/Wisdom/Wisdom_api.swift index cb940edbd13..9d5ce7ed72a 100644 --- a/Sources/Soto/Services/Wisdom/Wisdom_api.swift +++ b/Sources/Soto/Services/Wisdom/Wisdom_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/Wisdom/Wisdom_shapes.swift b/Sources/Soto/Services/Wisdom/Wisdom_shapes.swift index a6670a38b10..7fb774e0246 100644 --- a/Sources/Soto/Services/Wisdom/Wisdom_shapes.swift +++ b/Sources/Soto/Services/Wisdom/Wisdom_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2969,6 +2968,23 @@ extension Wisdom { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The specified resource name. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct ResultData: AWSDecodableShape { /// The document. public let document: Document @@ -3468,6 +3484,23 @@ extension Wisdom { public init() {} } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// The specified resource name. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource. public let resourceArn: String @@ -3924,6 +3957,13 @@ public struct WisdomErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension WisdomErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": Wisdom.ResourceNotFoundException.self, + "TooManyTagsException": Wisdom.TooManyTagsException.self + ] +} + extension WisdomErrorType: Equatable { public static func == (lhs: WisdomErrorType, rhs: WisdomErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WorkDocs/WorkDocs_api.swift b/Sources/Soto/Services/WorkDocs/WorkDocs_api.swift index 9e033afcf5a..a85f23cdd02 100644 --- a/Sources/Soto/Services/WorkDocs/WorkDocs_api.swift +++ b/Sources/Soto/Services/WorkDocs/WorkDocs_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkDocs/WorkDocs_shapes.swift b/Sources/Soto/Services/WorkDocs/WorkDocs_shapes.swift index 8ac5b5589f1..1528e5de561 100644 --- a/Sources/Soto/Services/WorkDocs/WorkDocs_shapes.swift +++ b/Sources/Soto/Services/WorkDocs/WorkDocs_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -1051,6 +1050,22 @@ extension WorkDocs { private enum CodingKeys: CodingKey {} } + public struct DeactivatingLastSystemUserException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct DeleteCommentRequest: AWSEncodableShape { /// Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. public let authenticationToken: String? @@ -2159,6 +2174,23 @@ extension WorkDocs { } } + public struct EntityNotExistsException: AWSErrorShape { + /// The IDs of the non-existent resources. + public let entityIds: [String]? + public let message: String? + + @inlinable + public init(entityIds: [String]? = nil, message: String? = nil) { + self.entityIds = entityIds + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case entityIds = "EntityIds" + case message = "Message" + } + } + public struct Filters: AWSEncodableShape { /// Filter based on resource’s path. public let ancestorIds: [String]? @@ -3339,6 +3371,22 @@ extension WorkDocs { } } + public struct UnauthorizedOperationException: AWSErrorShape { + public let code: String? + public let message: String? + + @inlinable + public init(code: String? = nil, message: String? = nil) { + self.code = code + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case code = "Code" + case message = "Message" + } + } + public struct UpdateDocumentRequest: AWSEncodableShape { /// Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. public let authenticationToken: String? @@ -3812,6 +3860,14 @@ public struct WorkDocsErrorType: AWSErrorType { public static var unauthorizedResourceAccessException: Self { .init(.unauthorizedResourceAccessException) } } +extension WorkDocsErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "DeactivatingLastSystemUserException": WorkDocs.DeactivatingLastSystemUserException.self, + "EntityNotExistsException": WorkDocs.EntityNotExistsException.self, + "UnauthorizedOperationException": WorkDocs.UnauthorizedOperationException.self + ] +} + extension WorkDocsErrorType: Equatable { public static func == (lhs: WorkDocsErrorType, rhs: WorkDocsErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WorkMail/WorkMail_api.swift b/Sources/Soto/Services/WorkMail/WorkMail_api.swift index 945e2daf9e5..55f083382e2 100644 --- a/Sources/Soto/Services/WorkMail/WorkMail_api.swift +++ b/Sources/Soto/Services/WorkMail/WorkMail_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkMail/WorkMail_shapes.swift b/Sources/Soto/Services/WorkMail/WorkMail_shapes.swift index 97852b1a688..e5a365da9d6 100644 --- a/Sources/Soto/Services/WorkMail/WorkMail_shapes.swift +++ b/Sources/Soto/Services/WorkMail/WorkMail_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_api.swift b/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_api.swift index 7ed10df8e2a..b25aeaf877c 100644 --- a/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_api.swift +++ b/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_shapes.swift b/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_shapes.swift index 6f1c2a233e3..a43f598320b 100644 --- a/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_shapes.swift +++ b/Sources/Soto/Services/WorkMailMessageFlow/WorkMailMessageFlow_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkSpaces/WorkSpaces_api.swift b/Sources/Soto/Services/WorkSpaces/WorkSpaces_api.swift index 011e942c9cc..ca6f4648615 100644 --- a/Sources/Soto/Services/WorkSpaces/WorkSpaces_api.swift +++ b/Sources/Soto/Services/WorkSpaces/WorkSpaces_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkSpaces/WorkSpaces_shapes.swift b/Sources/Soto/Services/WorkSpaces/WorkSpaces_shapes.swift index 46ecfc138eb..cea0c0a0693 100644 --- a/Sources/Soto/Services/WorkSpaces/WorkSpaces_shapes.swift +++ b/Sources/Soto/Services/WorkSpaces/WorkSpaces_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -4527,6 +4526,24 @@ extension WorkSpaces { } } + public struct OperationNotSupportedException: AWSErrorShape { + /// The exception error message. + public let message: String? + /// The exception error reason. + public let reason: String? + + @inlinable + public init(message: String? = nil, reason: String? = nil) { + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case reason = "reason" + } + } + public struct PendingCreateStandbyWorkspacesRequest: AWSDecodableShape { /// The identifier of the directory for the standby WorkSpace. public let directoryId: String? @@ -4824,6 +4841,59 @@ extension WorkSpaces { } } + public struct ResourceInUseException: AWSErrorShape { + public let message: String? + /// The ID of the resource that is in use. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "ResourceId" + } + } + + public struct ResourceNotFoundException: AWSErrorShape { + /// The resource could not be found. + public let message: String? + /// The ID of the resource that could not be found. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "ResourceId" + } + } + + public struct ResourceUnavailableException: AWSErrorShape { + /// The exception error message. + public let message: String? + /// The identifier of the resource that is not available. + public let resourceId: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil) { + self.message = message + self.resourceId = resourceId + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "ResourceId" + } + } + public struct RestoreWorkspaceRequest: AWSEncodableShape { /// The identifier of the WorkSpace. public let workspaceId: String @@ -6552,6 +6622,15 @@ public struct WorkSpacesErrorType: AWSErrorType { public static var workspacesDefaultRoleNotFoundException: Self { .init(.workspacesDefaultRoleNotFoundException) } } +extension WorkSpacesErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "OperationNotSupportedException": WorkSpaces.OperationNotSupportedException.self, + "ResourceInUseException": WorkSpaces.ResourceInUseException.self, + "ResourceNotFoundException": WorkSpaces.ResourceNotFoundException.self, + "ResourceUnavailableException": WorkSpaces.ResourceUnavailableException.self + ] +} + extension WorkSpacesErrorType: Equatable { public static func == (lhs: WorkSpacesErrorType, rhs: WorkSpacesErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_api.swift b/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_api.swift index 13661eb9036..02e820ca39f 100644 --- a/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_api.swift +++ b/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_shapes.swift b/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_shapes.swift index eb1c266bed0..0d2ec95d7f0 100644 --- a/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_shapes.swift +++ b/Sources/Soto/Services/WorkSpacesThinClient/WorkSpacesThinClient_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -109,8 +108,37 @@ extension WorkSpacesThinClient { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + // MARK: Shapes + public struct ConflictException: AWSErrorShape { + public let message: String? + /// The ID of the resource associated with the request. + public let resourceId: String? + /// The type of the resource associated with the request. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CreateEnvironmentRequest: AWSEncodableShape { /// Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value. If you don't provide this value, then Amazon Web Services generates a random one for you. If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. public let clientToken: String? @@ -736,6 +764,29 @@ extension WorkSpacesThinClient { } } + public struct InternalServerException: AWSErrorShape { + public let message: String? + /// The number of seconds to wait before retrying the next request. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct ListDevicesRequest: AWSEncodableShape { /// The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum. public let maxResults: Int? @@ -960,6 +1011,56 @@ extension WorkSpacesThinClient { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// The ID of the resource associated with the request. + public let resourceId: String? + /// The type of the resource associated with the request. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The code for the quota in Service Quotas. + public let quotaCode: String? + /// The ID of the resource that exceeds the service quota. + public let resourceId: String? + /// The type of the resource that exceeds the service quota. + public let resourceType: String? + /// The code for the service in Service Quotas. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct Software: AWSDecodableShape { /// The name of the software component. public let name: String? @@ -1082,6 +1183,39 @@ extension WorkSpacesThinClient { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The code for the quota in Service Quotas. + public let quotaCode: String? + /// The number of seconds to wait before retrying the next request. + public let retryAfterSeconds: Int? + /// The code for the service in Service Quotas. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + public struct UntagResourceRequest: AWSEncodableShape { /// The Amazon Resource Name (ARN) of the resource that you want to untag. public let resourceArn: String @@ -1289,6 +1423,45 @@ extension WorkSpacesThinClient { public struct UpdateSoftwareSetResponse: AWSDecodableShape { public init() {} } + + public struct ValidationException: AWSErrorShape { + /// A list of fields that didn't validate. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// The reason for the exception. + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// A message that describes the reason for the exception. + public let message: String + /// The name of the exception. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -1339,6 +1512,17 @@ public struct WorkSpacesThinClientErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension WorkSpacesThinClientErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": WorkSpacesThinClient.ConflictException.self, + "InternalServerException": WorkSpacesThinClient.InternalServerException.self, + "ResourceNotFoundException": WorkSpacesThinClient.ResourceNotFoundException.self, + "ServiceQuotaExceededException": WorkSpacesThinClient.ServiceQuotaExceededException.self, + "ThrottlingException": WorkSpacesThinClient.ThrottlingException.self, + "ValidationException": WorkSpacesThinClient.ValidationException.self + ] +} + extension WorkSpacesThinClientErrorType: Equatable { public static func == (lhs: WorkSpacesThinClientErrorType, rhs: WorkSpacesThinClientErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_api.swift b/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_api.swift index 226f055b855..42c76ad3538 100644 --- a/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_api.swift +++ b/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_shapes.swift b/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_shapes.swift index ac1eb21714e..0357a2ed03e 100644 --- a/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_shapes.swift +++ b/Sources/Soto/Services/WorkSpacesWeb/WorkSpacesWeb_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -116,6 +115,14 @@ extension WorkSpacesWeb { public var description: String { return self.rawValue } } + public enum ValidationExceptionReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { + case cannotParse = "cannotParse" + case fieldValidationFailed = "fieldValidationFailed" + case other = "other" + case unknownOperation = "unknownOperation" + public var description: String { return self.rawValue } + } + public enum VisualMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { case dark = "Dark" case light = "Light" @@ -575,6 +582,27 @@ extension WorkSpacesWeb { } } + public struct ConflictException: AWSErrorShape { + public let message: String? + /// Identifier of the resource affected. + public let resourceId: String? + /// Type of the resource affected. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + public struct CookieSpecification: AWSEncodableShape & AWSDecodableShape { /// The domain of the cookie. public let domain: String @@ -2490,6 +2518,29 @@ extension WorkSpacesWeb { } } + public struct InternalServerException: AWSErrorShape { + public let message: String? + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + + @inlinable + public init(message: String? = nil, retryAfterSeconds: Int? = nil) { + self.message = message + self.retryAfterSeconds = retryAfterSeconds + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + } + } + public struct IpAccessSettings: AWSDecodableShape { /// The additional encryption context of the IP access settings. public let additionalEncryptionContext: [String: String]? @@ -3424,6 +3475,56 @@ extension WorkSpacesWeb { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + /// Hypothetical identifier of the resource affected. + public let resourceId: String? + /// Hypothetical type of the resource affected. + public let resourceType: String? + + @inlinable + public init(message: String? = nil, resourceId: String? = nil, resourceType: String? = nil) { + self.message = message + self.resourceId = resourceId + self.resourceType = resourceType + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceId = "resourceId" + case resourceType = "resourceType" + } + } + + public struct ServiceQuotaExceededException: AWSErrorShape { + public let message: String? + /// The originating quota. + public let quotaCode: String? + /// Identifier of the resource affected. + public let resourceId: String? + /// Type of the resource affected. + public let resourceType: String? + /// The originating service. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, resourceId: String? = nil, resourceType: String? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.resourceId = resourceId + self.resourceType = resourceType + self.serviceCode = serviceCode + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case resourceId = "resourceId" + case resourceType = "resourceType" + case serviceCode = "serviceCode" + } + } + public struct Session: AWSDecodableShape { /// The IP address of the client. public let clientIpAddresses: [String]? @@ -3567,6 +3668,56 @@ extension WorkSpacesWeb { public init() {} } + public struct ThrottlingException: AWSErrorShape { + public let message: String? + /// The originating quota. + public let quotaCode: String? + /// Advice to clients on when the call can be safely retried. + public let retryAfterSeconds: Int? + /// The originating service. + public let serviceCode: String? + + @inlinable + public init(message: String? = nil, quotaCode: String? = nil, retryAfterSeconds: Int? = nil, serviceCode: String? = nil) { + self.message = message + self.quotaCode = quotaCode + self.retryAfterSeconds = retryAfterSeconds + self.serviceCode = serviceCode + } + + public init(from decoder: Decoder) throws { + let response = decoder.userInfo[.awsResponse]! as! ResponseDecodingContainer + let container = try decoder.container(keyedBy: CodingKeys.self) + self.message = try container.decodeIfPresent(String.self, forKey: .message) + self.quotaCode = try container.decodeIfPresent(String.self, forKey: .quotaCode) + self.retryAfterSeconds = try response.decodeHeaderIfPresent(Int.self, key: "Retry-After") + self.serviceCode = try container.decodeIfPresent(String.self, forKey: .serviceCode) + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case quotaCode = "quotaCode" + case serviceCode = "serviceCode" + } + } + + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + /// Name of the resource affected. + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case resourceName = "resourceName" + } + } + public struct ToolbarConfiguration: AWSEncodableShape & AWSDecodableShape { /// The list of toolbar items to be hidden. public let hiddenToolbarItems: [ToolbarItem]? @@ -4444,6 +4595,45 @@ extension WorkSpacesWeb { case userSettingsArn = "userSettingsArn" } } + + public struct ValidationException: AWSErrorShape { + /// The field that caused the error. + public let fieldList: [ValidationExceptionField]? + public let message: String? + /// Reason the request failed validation + public let reason: ValidationExceptionReason? + + @inlinable + public init(fieldList: [ValidationExceptionField]? = nil, message: String? = nil, reason: ValidationExceptionReason? = nil) { + self.fieldList = fieldList + self.message = message + self.reason = reason + } + + private enum CodingKeys: String, CodingKey { + case fieldList = "fieldList" + case message = "message" + case reason = "reason" + } + } + + public struct ValidationExceptionField: AWSDecodableShape { + /// The message describing why the field failed validation. + public let message: String + /// The name of the field that failed validation. + public let name: String + + @inlinable + public init(message: String, name: String) { + self.message = message + self.name = name + } + + private enum CodingKeys: String, CodingKey { + case message = "message" + case name = "name" + } + } } // MARK: - Errors @@ -4497,6 +4687,18 @@ public struct WorkSpacesWebErrorType: AWSErrorType { public static var validationException: Self { .init(.validationException) } } +extension WorkSpacesWebErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ConflictException": WorkSpacesWeb.ConflictException.self, + "InternalServerException": WorkSpacesWeb.InternalServerException.self, + "ResourceNotFoundException": WorkSpacesWeb.ResourceNotFoundException.self, + "ServiceQuotaExceededException": WorkSpacesWeb.ServiceQuotaExceededException.self, + "ThrottlingException": WorkSpacesWeb.ThrottlingException.self, + "TooManyTagsException": WorkSpacesWeb.TooManyTagsException.self, + "ValidationException": WorkSpacesWeb.ValidationException.self + ] +} + extension WorkSpacesWebErrorType: Equatable { public static func == (lhs: WorkSpacesWebErrorType, rhs: WorkSpacesWebErrorType) -> Bool { lhs.error == rhs.error diff --git a/Sources/Soto/Services/XRay/XRay_api.swift b/Sources/Soto/Services/XRay/XRay_api.swift index 6a6d2fdbdc1..7a169e490a1 100644 --- a/Sources/Soto/Services/XRay/XRay_api.swift +++ b/Sources/Soto/Services/XRay/XRay_api.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif diff --git a/Sources/Soto/Services/XRay/XRay_shapes.swift b/Sources/Soto/Services/XRay/XRay_shapes.swift index de006401912..fc41a21c016 100644 --- a/Sources/Soto/Services/XRay/XRay_shapes.swift +++ b/Sources/Soto/Services/XRay/XRay_shapes.swift @@ -15,9 +15,8 @@ // THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator. // DO NOT EDIT. -#if os(Linux) && compiler(<5.10) -// swift-corelibs-foundation hasn't been updated with Sendable conformances -@preconcurrency import Foundation +#if canImport(FoundationEssentials) +import FoundationEssentials #else import Foundation #endif @@ -2230,6 +2229,22 @@ extension XRay { } } + public struct ResourceNotFoundException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct ResourcePolicy: AWSDecodableShape { /// When the policy was last updated, in Unix time seconds. public let lastUpdatedTime: Date? @@ -2998,6 +3013,22 @@ extension XRay { } } + public struct TooManyTagsException: AWSErrorShape { + public let message: String? + public let resourceName: String? + + @inlinable + public init(message: String? = nil, resourceName: String? = nil) { + self.message = message + self.resourceName = resourceName + } + + private enum CodingKeys: String, CodingKey { + case message = "Message" + case resourceName = "ResourceName" + } + } + public struct Trace: AWSDecodableShape { /// The length of time in seconds between the start time of the root segment and the end time of the last segment that completed. public let duration: Double? @@ -3459,6 +3490,13 @@ public struct XRayErrorType: AWSErrorType { public static var tooManyTagsException: Self { .init(.tooManyTagsException) } } +extension XRayErrorType: AWSServiceErrorType { + public static let errorCodeMap: [String: AWSErrorShape.Type] = [ + "ResourceNotFoundException": XRay.ResourceNotFoundException.self, + "TooManyTagsException": XRay.TooManyTagsException.self + ] +} + extension XRayErrorType: Equatable { public static func == (lhs: XRayErrorType, rhs: XRayErrorType) -> Bool { lhs.error == rhs.error diff --git a/Tests/SotoTests/Services/APIGateway/APIGatewayTests.swift b/Tests/SotoTests/Services/APIGateway/APIGatewayTests.swift index 9f24737561f..02063e810c5 100644 --- a/Tests/SotoTests/Services/APIGateway/APIGatewayTests.swift +++ b/Tests/SotoTests/Services/APIGateway/APIGatewayTests.swift @@ -138,7 +138,8 @@ class APIGatewayTests: XCTestCase { } catch let error as APIGatewayErrorType where error == .notFoundException { // Localstack produces a different error message to AWS if !TestEnvironment.isUsingLocalstack { - XCTAssertEqual(error.message, "Invalid API identifier specified 931875313149:Test+%/*%25") + XCTAssert(error.message?.hasPrefix("Invalid API identifier specified") == true) + XCTAssert(error.message?.hasSuffix(":Test+%/*%25") == true) } } catch let error as AWSClientError where error == .invalidSignature { XCTFail("Invalid signature") diff --git a/Tests/SotoTests/Services/DynamoDB/DynamoDBCodableTests.swift b/Tests/SotoTests/Services/DynamoDB/DynamoDBCodableTests.swift index 619a5a29128..514fb5ef0d3 100644 --- a/Tests/SotoTests/Services/DynamoDB/DynamoDBCodableTests.swift +++ b/Tests/SotoTests/Services/DynamoDB/DynamoDBCodableTests.swift @@ -119,19 +119,22 @@ extension DynamoDBTests { do { let additionalAttributes = AdditionalAttributes(oldAge: 34) - let conditionExpression = "attribute_exists(#id) AND #age = :oldAge" let nameUpdateWithAge = NameUpdateWithAge(id: id, name: "David", surname: "Jones", age: 35) let updateRequest = try DynamoDB.UpdateItemCodableInput( additionalAttributes: additionalAttributes, - conditionExpression: conditionExpression, + conditionExpression: "attribute_exists(#id) AND #age = :oldAge", key: ["id"], + returnValuesOnConditionCheckFailure: .allOld, tableName: Self.tableName, updateItem: nameUpdateWithAge ) _ = try await Self.dynamoDB.updateItem(updateRequest, logger: TestEnvironment.logger) XCTFail("Should have thrown error because conditionExpression is not met") + } catch let error as DynamoDBErrorType where error == .conditionalCheckFailedException { + let conditionError = try XCTUnwrap(error.context?.extendedError as? DynamoDB.ConditionalCheckFailedException) + XCTAssertEqual(conditionError.item?["age"], .n("33")) } catch { - XCTAssertNotNil(error) + XCTFail("Wrong error thrown") } let getRequest = DynamoDB.GetItemInput(consistentRead: true, key: ["id": .s(id)], tableName: Self.tableName) let response = try await Self.dynamoDB.getItem(getRequest, type: TestObject.self, logger: TestEnvironment.logger) diff --git a/Tests/SotoTests/Services/EC2/EC2Tests.swift b/Tests/SotoTests/Services/EC2/EC2Tests.swift index 206d5ae07f1..0187723fd88 100644 --- a/Tests/SotoTests/Services/EC2/EC2Tests.swift +++ b/Tests/SotoTests/Services/EC2/EC2Tests.swift @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +import AsyncHTTPClient import Foundation import XCTest @@ -55,8 +56,17 @@ class EC2Tests: XCTestCase { func testDescribeInstanceTypes() async throws { // Localstack returns unknown values try XCTSkipIf(TestEnvironment.isUsingLocalstack) - let describeTypesPaginator = Self.ec2.describeInstanceTypesPaginator(.init(), logger: TestEnvironment.logger) - _ = try await describeTypesPaginator.reduce([]) { $0 + ($1.instanceTypes ?? []) } + // Have to run this with custom HTTPClient as shared HTTPClient decompression + // throws an error as response expands too much + try await AWSClient.withAWSClient { awsClient in + let ec2 = EC2( + client: awsClient, + region: .useast1, + endpoint: TestEnvironment.getEndPoint(environment: "LOCALSTACK_ENDPOINT") + ) + let describeTypesPaginator = ec2.describeInstanceTypesPaginator(logger: TestEnvironment.logger) + _ = try await describeTypesPaginator.reduce([]) { $0 + ($1.instanceTypes ?? []) } + } } func testDualStack() async throws { @@ -90,3 +100,27 @@ extension AWSResponseError: @retroactive Equatable {} #else extension AWSResponseError: Equatable {} #endif + +extension AWSClient { + static func withAWSClient( + credentialProvider: CredentialProviderFactory = .default, + middleware: some AWSMiddlewareProtocol = AWSMiddleware { request, context, next in + try await next(request, context) + }, + _ operation: (AWSClient) async throws -> Value + ) async throws -> Value { + let httpClient = HTTPClient() + let awsClient = AWSClient(credentialProvider: credentialProvider, middleware: middleware, httpClient: httpClient) + let value: Value + do { + value = try await operation(awsClient) + } catch { + try? await awsClient.shutdown() + try? await httpClient.shutdown() + throw error + } + try await awsClient.shutdown() + try await httpClient.shutdown() + return value + } +} diff --git a/Tests/SotoTests/Services/Lambda/LambdaTests.swift b/Tests/SotoTests/Services/Lambda/LambdaTests.swift index 9d177c03e28..e94df5de444 100644 --- a/Tests/SotoTests/Services/Lambda/LambdaTests.swift +++ b/Tests/SotoTests/Services/Lambda/LambdaTests.swift @@ -27,15 +27,15 @@ class LambdaTests: XCTestCase { static let functionExecutionRoleName: String = TestEnvironment.generateResourceName("UnitTestSotoLambdaRole") /* - + The testing code for the AWS Lambda function is created with the following commands: - + echo "exports.handler = async (event) => { return \"hello world\" };" > lambda.js zip lambda.zip lambda.js cat lambda.zip | base64 rm lambda.zip rm lambda.js - + */ class func createLambdaFunction(roleArn: String) async throws { // Base64 and Zipped version of "exports.handler = async (event) => { return \"hello world\" };" @@ -123,13 +123,20 @@ class LambdaTests: XCTestCase { // create an IAM role Task { await XCTAsyncAssertNoThrow { - let response = try await Self.createIAMRole() - // IAM needs some time after Role creation, - // before the role can be attached to a Lambda function - // https://stackoverflow.com/a/37438525/663360 - print("Sleeping 20 secs, waiting for IAM Role to be ready") - try await Task.sleep(nanoseconds: 20_000_000_000) - try await Self.createLambdaFunction(roleArn: response.role.arn) + let arn: String + do { + let response = try await Self.createIAMRole() + // IAM needs some time after Role creation, + // before the role can be attached to a Lambda function + // https://stackoverflow.com/a/37438525/663360 + print("Sleeping 20 secs, waiting for IAM Role to be ready") + try await Task.sleep(nanoseconds: 20_000_000_000) + arn = response.role.arn + } catch let error as IAMErrorType where error == .entityAlreadyExistsException { + let response = try await Self.iam.getRole(roleName: self.functionExecutionRoleName) + arn = response.role.arn + } + try await Self.createLambdaFunction(roleArn: arn) } }.syncAwait() }