Skip to content

Commit

Permalink
Merge pull request #133 from amzn/code_generate_2_44_114
Browse files Browse the repository at this point in the history
Code generate with Go SDK v1.44.114 models.
  • Loading branch information
tachyonics authored Oct 12, 2022
2 parents cab01f9 + d2fef06 commit dbfb284
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"state": {
"branch": null,
"revision": "1103463edf3a4ee0315f293180432495fa79fff8",
"version": "1.0.0-rc.2"
"version": "1.0.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10372,6 +10372,7 @@ public extension DescribeVpcAttributeResult {
let defaultInstance = ElasticComputeCloudModel.DescribeVpcAttributeResult(
enableDnsHostnames: nil,
enableDnsSupport: nil,
enableNetworkAddressUsageMetrics: nil,
vpcId: nil)

return defaultInstance
Expand Down Expand Up @@ -14241,6 +14242,7 @@ public extension Image {
imageLocation: nil,
imageOwnerAlias: nil,
imageType: nil,
imdsSupport: nil,
kernelId: nil,
name: nil,
ownerId: nil,
Expand Down Expand Up @@ -14273,6 +14275,7 @@ public extension ImageAttribute {
bootMode: nil,
description: nil,
imageId: nil,
imdsSupport: nil,
kernelId: nil,
lastLaunchedTime: nil,
launchPermissions: nil,
Expand Down Expand Up @@ -18216,6 +18219,7 @@ public extension ModifyVpcAttributeRequest {
let defaultInstance = ElasticComputeCloudModel.ModifyVpcAttributeRequest(
enableDnsHostnames: nil,
enableDnsSupport: nil,
enableNetworkAddressUsageMetrics: nil,
vpcId: "value")

return defaultInstance
Expand Down Expand Up @@ -20068,6 +20072,7 @@ public extension RegisterImageRequest {
dryRun: nil,
enaSupport: nil,
imageLocation: nil,
imdsSupport: nil,
kernelId: nil,
name: "value",
ramdiskId: nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -24534,6 +24542,7 @@ public struct Image: Codable, Equatable {
case imageLocation
case imageOwnerAlias
case imageType
case imdsSupport
case kernelId
case name
case ownerId = "imageOwnerId"
Expand Down Expand Up @@ -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?
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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()
Expand Down Expand Up @@ -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()
}
}

Expand Down Expand Up @@ -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?
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.")
}

Expand Down

0 comments on commit dbfb284

Please sign in to comment.