From d2fef06ef23e96086fdb201aacce4298b5f0fb0c Mon Sep 17 00:00:00 2001 From: Simon Pilkington Date: Thu, 13 Oct 2022 07:52:15 +1100 Subject: [PATCH] Code generate with Go SDK v1.44.114 models. --- Package.resolved | 2 +- Package.swift | 2 +- ...ticComputeCloudModelDefaultInstances.swift | 5 ++++ .../ElasticComputeCloudModelStructures.swift | 23 +++++++++++++++++++ .../ElasticComputeCloudModelTypes.swift | 18 ++++++++++++++- 5 files changed, 47 insertions(+), 3 deletions(-) diff --git a/Package.resolved b/Package.resolved index b5dc1c0..26f643a 100644 --- a/Package.resolved +++ b/Package.resolved @@ -16,7 +16,7 @@ "state": { "branch": null, "revision": "1103463edf3a4ee0315f293180432495fa79fff8", - "version": "1.0.0-rc.2" + "version": "1.0.0" } }, { diff --git a/Package.swift b/Package.swift index 224437e..ebe958b 100644 --- a/Package.swift +++ b/Package.swift @@ -138,7 +138,7 @@ let package = Package( .package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"), .package(url: "https://github.com/LiveUI/XMLCoding.git", from: "0.4.1"), .package(url: "https://github.com/amzn/smoke-http.git", from: "2.12.0"), - .package(url: "https://github.com/amzn/smoke-aws-support.git", from: "1.0.0-rc.2"), + .package(url: "https://github.com/amzn/smoke-aws-support.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0"), ], targets: [ diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift index ee2868a..cbe69cf 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift @@ -10372,6 +10372,7 @@ public extension DescribeVpcAttributeResult { let defaultInstance = ElasticComputeCloudModel.DescribeVpcAttributeResult( enableDnsHostnames: nil, enableDnsSupport: nil, + enableNetworkAddressUsageMetrics: nil, vpcId: nil) return defaultInstance @@ -14241,6 +14242,7 @@ public extension Image { imageLocation: nil, imageOwnerAlias: nil, imageType: nil, + imdsSupport: nil, kernelId: nil, name: nil, ownerId: nil, @@ -14273,6 +14275,7 @@ public extension ImageAttribute { bootMode: nil, description: nil, imageId: nil, + imdsSupport: nil, kernelId: nil, lastLaunchedTime: nil, launchPermissions: nil, @@ -18216,6 +18219,7 @@ public extension ModifyVpcAttributeRequest { let defaultInstance = ElasticComputeCloudModel.ModifyVpcAttributeRequest( enableDnsHostnames: nil, enableDnsSupport: nil, + enableNetworkAddressUsageMetrics: nil, vpcId: "value") return defaultInstance @@ -20068,6 +20072,7 @@ public extension RegisterImageRequest { dryRun: nil, enaSupport: nil, imageLocation: nil, + imdsSupport: nil, kernelId: nil, name: "value", ramdiskId: nil, diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift index 8f24e5b..1a5212d 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift @@ -17732,25 +17732,30 @@ public struct DescribeVpcAttributeRequest: Codable, Equatable { public struct DescribeVpcAttributeResult: Codable, Equatable { public var enableDnsHostnames: AttributeBooleanValue? public var enableDnsSupport: AttributeBooleanValue? + public var enableNetworkAddressUsageMetrics: AttributeBooleanValue? public var vpcId: String? public init(enableDnsHostnames: AttributeBooleanValue? = nil, enableDnsSupport: AttributeBooleanValue? = nil, + enableNetworkAddressUsageMetrics: AttributeBooleanValue? = nil, vpcId: String? = nil) { self.enableDnsHostnames = enableDnsHostnames self.enableDnsSupport = enableDnsSupport + self.enableNetworkAddressUsageMetrics = enableNetworkAddressUsageMetrics self.vpcId = vpcId } enum CodingKeys: String, CodingKey { case enableDnsHostnames case enableDnsSupport + case enableNetworkAddressUsageMetrics case vpcId } public func validate() throws { try enableDnsHostnames?.validate() try enableDnsSupport?.validate() + try enableNetworkAddressUsageMetrics?.validate() } } @@ -24443,6 +24448,7 @@ public struct Image: Codable, Equatable { public var imageLocation: String? public var imageOwnerAlias: String? public var imageType: ImageTypeValues? + public var imdsSupport: ImdsSupportValues? public var kernelId: String? public var name: String? public var ownerId: String? @@ -24473,6 +24479,7 @@ public struct Image: Codable, Equatable { imageLocation: String? = nil, imageOwnerAlias: String? = nil, imageType: ImageTypeValues? = nil, + imdsSupport: ImdsSupportValues? = nil, kernelId: String? = nil, name: String? = nil, ownerId: String? = nil, @@ -24502,6 +24509,7 @@ public struct Image: Codable, Equatable { self.imageLocation = imageLocation self.imageOwnerAlias = imageOwnerAlias self.imageType = imageType + self.imdsSupport = imdsSupport self.kernelId = kernelId self.name = name self.ownerId = ownerId @@ -24534,6 +24542,7 @@ public struct Image: Codable, Equatable { case imageLocation case imageOwnerAlias case imageType + case imdsSupport case kernelId case name case ownerId = "imageOwnerId" @@ -24563,6 +24572,7 @@ public struct ImageAttribute: Codable, Equatable { public var bootMode: AttributeValue? public var description: AttributeValue? public var imageId: String? + public var imdsSupport: AttributeValue? public var kernelId: AttributeValue? public var lastLaunchedTime: AttributeValue? public var launchPermissions: LaunchPermissionList? @@ -24576,6 +24586,7 @@ public struct ImageAttribute: Codable, Equatable { bootMode: AttributeValue? = nil, description: AttributeValue? = nil, imageId: String? = nil, + imdsSupport: AttributeValue? = nil, kernelId: AttributeValue? = nil, lastLaunchedTime: AttributeValue? = nil, launchPermissions: LaunchPermissionList? = nil, @@ -24588,6 +24599,7 @@ public struct ImageAttribute: Codable, Equatable { self.bootMode = bootMode self.description = description self.imageId = imageId + self.imdsSupport = imdsSupport self.kernelId = kernelId self.lastLaunchedTime = lastLaunchedTime self.launchPermissions = launchPermissions @@ -24603,6 +24615,7 @@ public struct ImageAttribute: Codable, Equatable { case bootMode case description case imageId + case imdsSupport case kernelId = "kernel" case lastLaunchedTime case launchPermissions = "launchPermission" @@ -24616,6 +24629,7 @@ public struct ImageAttribute: Codable, Equatable { public func validate() throws { try bootMode?.validate() try description?.validate() + try imdsSupport?.validate() try kernelId?.validate() try lastLaunchedTime?.validate() try ramdiskId?.validate() @@ -32227,25 +32241,30 @@ public struct ModifyVolumeResult: Codable, Equatable { public struct ModifyVpcAttributeRequest: Codable, Equatable { public var enableDnsHostnames: AttributeBooleanValue? public var enableDnsSupport: AttributeBooleanValue? + public var enableNetworkAddressUsageMetrics: AttributeBooleanValue? public var vpcId: VpcId public init(enableDnsHostnames: AttributeBooleanValue? = nil, enableDnsSupport: AttributeBooleanValue? = nil, + enableNetworkAddressUsageMetrics: AttributeBooleanValue? = nil, vpcId: VpcId) { self.enableDnsHostnames = enableDnsHostnames self.enableDnsSupport = enableDnsSupport + self.enableNetworkAddressUsageMetrics = enableNetworkAddressUsageMetrics self.vpcId = vpcId } enum CodingKeys: String, CodingKey { case enableDnsHostnames = "EnableDnsHostnames" case enableDnsSupport = "EnableDnsSupport" + case enableNetworkAddressUsageMetrics = "EnableNetworkAddressUsageMetrics" case vpcId } public func validate() throws { try enableDnsHostnames?.validate() try enableDnsSupport?.validate() + try enableNetworkAddressUsageMetrics?.validate() } } @@ -35580,6 +35599,7 @@ public struct RegisterImageRequest: Codable, Equatable { public var dryRun: Boolean? public var enaSupport: Boolean? public var imageLocation: String? + public var imdsSupport: ImdsSupportValues? public var kernelId: KernelId? public var name: String public var ramdiskId: RamdiskId? @@ -35597,6 +35617,7 @@ public struct RegisterImageRequest: Codable, Equatable { dryRun: Boolean? = nil, enaSupport: Boolean? = nil, imageLocation: String? = nil, + imdsSupport: ImdsSupportValues? = nil, kernelId: KernelId? = nil, name: String, ramdiskId: RamdiskId? = nil, @@ -35613,6 +35634,7 @@ public struct RegisterImageRequest: Codable, Equatable { self.dryRun = dryRun self.enaSupport = enaSupport self.imageLocation = imageLocation + self.imdsSupport = imdsSupport self.kernelId = kernelId self.name = name self.ramdiskId = ramdiskId @@ -35632,6 +35654,7 @@ public struct RegisterImageRequest: Codable, Equatable { case dryRun case enaSupport case imageLocation = "ImageLocation" + case imdsSupport = "ImdsSupport" case kernelId case name case ramdiskId diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift index 67f5d47..7e6ef38 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift @@ -3047,6 +3047,7 @@ public enum ImageAttributeName: String, Codable, CustomStringConvertible { case blockdevicemapping = "blockDeviceMapping" case bootmode = "bootMode" case description + case imdssupport = "imdsSupport" case kernel case lastlaunchedtime = "lastLaunchedTime" case launchpermission = "launchPermission" @@ -3127,6 +3128,19 @@ public enum ImageTypeValues: String, Codable, CustomStringConvertible { public static let __default: ImageTypeValues = .kernel } +/** + Enumeration restricting the values of the ImdsSupportValues field. + */ +public enum ImdsSupportValues: String, Codable, CustomStringConvertible { + case v20 = "v2.0" + + public var description: String { + return rawValue + } + + public static let __default: ImdsSupportValues = .v20 +} + /** Type definition for the ImportImageLicenseSpecificationListRequest field. */ @@ -4120,6 +4134,7 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case u12tb1Metal = "u-12tb1.metal" case u18tb1Metal = "u-18tb1.metal" case u24tb1Metal = "u-24tb1.metal" + case u3tb156xlarge = "u-3tb1.56xlarge" case u6tb1112xlarge = "u-6tb1.112xlarge" case u6tb156xlarge = "u-6tb1.56xlarge" case u6tb1Metal = "u-6tb1.metal" @@ -8656,6 +8671,7 @@ public typealias VpcAttachmentList = [VpcAttachment] public enum VpcAttributeName: String, Codable, CustomStringConvertible { case enablednshostnames = "enableDnsHostnames" case enablednssupport = "enableDnsSupport" + case enablenetworkaddressusagemetrics = "enableNetworkAddressUsageMetrics" public var description: String { return rawValue @@ -10285,7 +10301,7 @@ extension ElasticComputeCloudModel.PoolMaxResults { */ extension ElasticComputeCloudModel.Port { public func validateAsPort() throws { - if self < 1 { + if self < 0 { throw ElasticComputeCloudError.validationError(reason: "The provided value to Port violated the minimum range constraint.") }