//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2021 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

import Foundation
import SotoCore

extension Outposts {
    // MARK: Enums

    public enum AddressType: String, CustomStringConvertible, Codable, _SotoSendable {
        case operatingAddress = "OPERATING_ADDRESS"
        case shippingAddress = "SHIPPING_ADDRESS"
        public var description: String { return self.rawValue }
    }

    public enum AssetType: String, CustomStringConvertible, Codable, _SotoSendable {
        case compute = "COMPUTE"
        public var description: String { return self.rawValue }
    }

    public enum CatalogItemClass: String, CustomStringConvertible, Codable, _SotoSendable {
        case rack = "RACK"
        case server = "SERVER"
        public var description: String { return self.rawValue }
    }

    public enum CatalogItemStatus: String, CustomStringConvertible, Codable, _SotoSendable {
        case available = "AVAILABLE"
        case discontinued = "DISCONTINUED"
        public var description: String { return self.rawValue }
    }

    public enum FiberOpticCableType: String, CustomStringConvertible, Codable, _SotoSendable {
        case multiMode = "MULTI_MODE"
        case singleMode = "SINGLE_MODE"
        public var description: String { return self.rawValue }
    }

    public enum LineItemStatus: String, CustomStringConvertible, Codable, _SotoSendable {
        case building = "BUILDING"
        case cancelled = "CANCELLED"
        case delivered = "DELIVERED"
        case error = "ERROR"
        case installed = "INSTALLED"
        case installing = "INSTALLING"
        case preparing = "PREPARING"
        case shipped = "SHIPPED"
        public var description: String { return self.rawValue }
    }

    public enum MaximumSupportedWeightLbs: String, CustomStringConvertible, Codable, _SotoSendable {
        case max1400Lbs = "MAX_1400_LBS"
        case max1600Lbs = "MAX_1600_LBS"
        case max1800Lbs = "MAX_1800_LBS"
        case max2000Lbs = "MAX_2000_LBS"
        case noLimit = "NO_LIMIT"
        public var description: String { return self.rawValue }
    }

    public enum OpticalStandard: String, CustomStringConvertible, Codable, _SotoSendable {
        case optic1000BaseLx = "OPTIC_1000BASE_LX"
        case optic1000BaseSx = "OPTIC_1000BASE_SX"
        case optic100GbaseCwdm4 = "OPTIC_100GBASE_CWDM4"
        case optic100GbaseLr4 = "OPTIC_100GBASE_LR4"
        case optic100GbaseSr4 = "OPTIC_100GBASE_SR4"
        case optic100GPsm4Msa = "OPTIC_100G_PSM4_MSA"
        case optic10GbaseIr = "OPTIC_10GBASE_IR"
        case optic10GbaseLr = "OPTIC_10GBASE_LR"
        case optic10GbaseSr = "OPTIC_10GBASE_SR"
        case optic40GbaseEsr = "OPTIC_40GBASE_ESR"
        case optic40GbaseIr4Lr4L = "OPTIC_40GBASE_IR4_LR4L"
        case optic40GbaseLr4 = "OPTIC_40GBASE_LR4"
        case optic40GbaseSr = "OPTIC_40GBASE_SR"
        public var description: String { return self.rawValue }
    }

    public enum OrderStatus: String, CustomStringConvertible, Codable, _SotoSendable {
        case cancelled = "CANCELLED"
        case completed = "COMPLETED"
        case error = "ERROR"
        case fulfilled = "FULFILLED"
        case installing = "INSTALLING"
        case inProgress = "IN_PROGRESS"
        case pending = "PENDING"
        case preparing = "PREPARING"
        case processing = "PROCESSING"
        case received = "RECEIVED"
        public var description: String { return self.rawValue }
    }

    public enum OrderType: String, CustomStringConvertible, Codable, _SotoSendable {
        case outpost = "OUTPOST"
        case replacement = "REPLACEMENT"
        public var description: String { return self.rawValue }
    }

    public enum PaymentOption: String, CustomStringConvertible, Codable, _SotoSendable {
        case allUpfront = "ALL_UPFRONT"
        case noUpfront = "NO_UPFRONT"
        case partialUpfront = "PARTIAL_UPFRONT"
        public var description: String { return self.rawValue }
    }

    public enum PaymentTerm: String, CustomStringConvertible, Codable, _SotoSendable {
        case threeYears = "THREE_YEARS"
        public var description: String { return self.rawValue }
    }

    public enum PowerConnector: String, CustomStringConvertible, Codable, _SotoSendable {
        case ah530p7w = "AH530P7W"
        case ah532p6w = "AH532P6W"
        case iec309 = "IEC309"
        case l630P = "L6_30P"
        public var description: String { return self.rawValue }
    }

    public enum PowerDrawKva: String, CustomStringConvertible, Codable, _SotoSendable {
        case power10Kva = "POWER_10_KVA"
        case power15Kva = "POWER_15_KVA"
        case power5Kva = "POWER_5_KVA"
        public var description: String { return self.rawValue }
    }

    public enum PowerFeedDrop: String, CustomStringConvertible, Codable, _SotoSendable {
        case aboveRack = "ABOVE_RACK"
        case belowRack = "BELOW_RACK"
        public var description: String { return self.rawValue }
    }

    public enum PowerPhase: String, CustomStringConvertible, Codable, _SotoSendable {
        case singlePhase = "SINGLE_PHASE"
        case threePhase = "THREE_PHASE"
        public var description: String { return self.rawValue }
    }

    public enum SupportedHardwareType: String, CustomStringConvertible, Codable, _SotoSendable {
        case rack = "RACK"
        case server = "SERVER"
        public var description: String { return self.rawValue }
    }

    public enum SupportedStorageEnum: String, CustomStringConvertible, Codable, _SotoSendable {
        case ebs = "EBS"
        case s3 = "S3"
        public var description: String { return self.rawValue }
    }

    public enum UplinkCount: String, CustomStringConvertible, Codable, _SotoSendable {
        case uplinkCount1 = "UPLINK_COUNT_1"
        case uplinkCount12 = "UPLINK_COUNT_12"
        case uplinkCount16 = "UPLINK_COUNT_16"
        case uplinkCount2 = "UPLINK_COUNT_2"
        case uplinkCount3 = "UPLINK_COUNT_3"
        case uplinkCount4 = "UPLINK_COUNT_4"
        case uplinkCount5 = "UPLINK_COUNT_5"
        case uplinkCount6 = "UPLINK_COUNT_6"
        case uplinkCount7 = "UPLINK_COUNT_7"
        case uplinkCount8 = "UPLINK_COUNT_8"
        public var description: String { return self.rawValue }
    }

    public enum UplinkGbps: String, CustomStringConvertible, Codable, _SotoSendable {
        case uplink100G = "UPLINK_100G"
        case uplink10G = "UPLINK_10G"
        case uplink1G = "UPLINK_1G"
        case uplink40G = "UPLINK_40G"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct Address: AWSEncodableShape & AWSDecodableShape {
        /// The first line of the address.
        public let addressLine1: String
        /// The second line of the address.
        public let addressLine2: String?
        /// The third line of the address.
        public let addressLine3: String?
        /// The city for the address.
        public let city: String
        /// The name of the contact.
        public let contactName: String?
        /// The phone number of the contact.
        public let contactPhoneNumber: String?
        /// The ISO-3166 two-letter country code for the address.
        public let countryCode: String
        /// The district or county for the address.
        public let districtOrCounty: String?
        /// The municipality for the address.
        public let municipality: String?
        /// The postal code for the address.
        public let postalCode: String
        /// The state for the address.
        public let stateOrRegion: String

        public init(addressLine1: String, addressLine2: String? = nil, addressLine3: String? = nil, city: String, contactName: String? = nil, contactPhoneNumber: String? = nil, countryCode: String, districtOrCounty: String? = nil, municipality: String? = nil, postalCode: String, stateOrRegion: String) {
            self.addressLine1 = addressLine1
            self.addressLine2 = addressLine2
            self.addressLine3 = addressLine3
            self.city = city
            self.contactName = contactName
            self.contactPhoneNumber = contactPhoneNumber
            self.countryCode = countryCode
            self.districtOrCounty = districtOrCounty
            self.municipality = municipality
            self.postalCode = postalCode
            self.stateOrRegion = stateOrRegion
        }

        public func validate(name: String) throws {
            try self.validate(self.addressLine1, name: "addressLine1", parent: name, max: 180)
            try self.validate(self.addressLine1, name: "addressLine1", parent: name, min: 1)
            try self.validate(self.addressLine1, name: "addressLine1", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.addressLine2, name: "addressLine2", parent: name, max: 60)
            try self.validate(self.addressLine2, name: "addressLine2", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.addressLine3, name: "addressLine3", parent: name, max: 60)
            try self.validate(self.addressLine3, name: "addressLine3", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.city, name: "city", parent: name, max: 50)
            try self.validate(self.city, name: "city", parent: name, min: 1)
            try self.validate(self.city, name: "city", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.contactName, name: "contactName", parent: name, max: 255)
            try self.validate(self.contactName, name: "contactName", parent: name, min: 1)
            try self.validate(self.contactName, name: "contactName", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.contactPhoneNumber, name: "contactPhoneNumber", parent: name, max: 20)
            try self.validate(self.contactPhoneNumber, name: "contactPhoneNumber", parent: name, min: 1)
            try self.validate(self.contactPhoneNumber, name: "contactPhoneNumber", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.countryCode, name: "countryCode", parent: name, max: 2)
            try self.validate(self.countryCode, name: "countryCode", parent: name, min: 2)
            try self.validate(self.countryCode, name: "countryCode", parent: name, pattern: "^[A-Z]{2}$")
            try self.validate(self.districtOrCounty, name: "districtOrCounty", parent: name, max: 60)
            try self.validate(self.districtOrCounty, name: "districtOrCounty", parent: name, min: 1)
            try self.validate(self.districtOrCounty, name: "districtOrCounty", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.municipality, name: "municipality", parent: name, max: 180)
            try self.validate(self.municipality, name: "municipality", parent: name, pattern: "^\\S[\\S ]*$")
            try self.validate(self.postalCode, name: "postalCode", parent: name, max: 20)
            try self.validate(self.postalCode, name: "postalCode", parent: name, min: 1)
            try self.validate(self.postalCode, name: "postalCode", parent: name, pattern: "^[a-zA-Z0-9 -]+$")
            try self.validate(self.stateOrRegion, name: "stateOrRegion", parent: name, max: 50)
            try self.validate(self.stateOrRegion, name: "stateOrRegion", parent: name, min: 1)
            try self.validate(self.stateOrRegion, name: "stateOrRegion", parent: name, pattern: "^\\S[\\S ]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case addressLine1 = "AddressLine1"
            case addressLine2 = "AddressLine2"
            case addressLine3 = "AddressLine3"
            case city = "City"
            case contactName = "ContactName"
            case contactPhoneNumber = "ContactPhoneNumber"
            case countryCode = "CountryCode"
            case districtOrCounty = "DistrictOrCounty"
            case municipality = "Municipality"
            case postalCode = "PostalCode"
            case stateOrRegion = "StateOrRegion"
        }
    }

    public struct AssetInfo: AWSDecodableShape {
        ///  The ID of the asset.
        public let assetId: String?
        ///  The type of the asset.
        public let assetType: AssetType?
        ///  Information about compute hardware assets.
        public let computeAttributes: ComputeAttributes?
        ///  The rack ID of the asset.
        public let rackId: String?

        public init(assetId: String? = nil, assetType: AssetType? = nil, computeAttributes: ComputeAttributes? = nil, rackId: String? = nil) {
            self.assetId = assetId
            self.assetType = assetType
            self.computeAttributes = computeAttributes
            self.rackId = rackId
        }

        private enum CodingKeys: String, CodingKey {
            case assetId = "AssetId"
            case assetType = "AssetType"
            case computeAttributes = "ComputeAttributes"
            case rackId = "RackId"
        }
    }

    public struct CancelOrderInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "orderId", location: .uri("OrderId"))
        ]

        ///  The ID of the order to cancel.
        public let orderId: String

        public init(orderId: String) {
            self.orderId = orderId
        }

        public func validate(name: String) throws {
            try self.validate(self.orderId, name: "orderId", parent: name, max: 20)
            try self.validate(self.orderId, name: "orderId", parent: name, min: 1)
            try self.validate(self.orderId, name: "orderId", parent: name, pattern: "^oo-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct CancelOrderOutput: AWSDecodableShape {
        public init() {}
    }

    public struct CatalogItem: AWSDecodableShape {
        ///  The ID of the catalog item.
        public let catalogItemId: String?
        ///  Information about the EC2 capacity of an item.
        public let ec2Capacities: [EC2Capacity]?
        ///  The status of a catalog item.
        public let itemStatus: CatalogItemStatus?
        ///  Information about the power draw of an item.
        public let powerKva: Float?
        ///  The supported storage options for the catalog item.
        public let supportedStorage: [SupportedStorageEnum]?
        ///  The uplink speed this catalog item requires for the  connection to the Region.
        public let supportedUplinkGbps: [Int]?
        ///  The weight of the item in pounds.
        public let weightLbs: Int?

        public init(catalogItemId: String? = nil, ec2Capacities: [EC2Capacity]? = nil, itemStatus: CatalogItemStatus? = nil, powerKva: Float? = nil, supportedStorage: [SupportedStorageEnum]? = nil, supportedUplinkGbps: [Int]? = nil, weightLbs: Int? = nil) {
            self.catalogItemId = catalogItemId
            self.ec2Capacities = ec2Capacities
            self.itemStatus = itemStatus
            self.powerKva = powerKva
            self.supportedStorage = supportedStorage
            self.supportedUplinkGbps = supportedUplinkGbps
            self.weightLbs = weightLbs
        }

        private enum CodingKeys: String, CodingKey {
            case catalogItemId = "CatalogItemId"
            case ec2Capacities = "EC2Capacities"
            case itemStatus = "ItemStatus"
            case powerKva = "PowerKva"
            case supportedStorage = "SupportedStorage"
            case supportedUplinkGbps = "SupportedUplinkGbps"
            case weightLbs = "WeightLbs"
        }
    }

    public struct ComputeAttributes: AWSDecodableShape {
        ///  The host ID of any Dedicated Hosts on the asset.
        public let hostId: String?

        public init(hostId: String? = nil) {
            self.hostId = hostId
        }

        private enum CodingKeys: String, CodingKey {
            case hostId = "HostId"
        }
    }

    public struct CreateOrderInput: AWSEncodableShape {
        /// The line items that make up the order.
        public let lineItems: [LineItemRequest]
        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.
        public let outpostIdentifier: String
        /// The payment option for the order.
        public let paymentOption: PaymentOption
        /// The payment terms for the order.
        public let paymentTerm: PaymentTerm?

        public init(lineItems: [LineItemRequest], outpostIdentifier: String, paymentOption: PaymentOption, paymentTerm: PaymentTerm? = nil) {
            self.lineItems = lineItems
            self.outpostIdentifier = outpostIdentifier
            self.paymentOption = paymentOption
            self.paymentTerm = paymentTerm
        }

        public func validate(name: String) throws {
            try self.lineItems.forEach {
                try $0.validate(name: "\(name).lineItems[]")
            }
            try self.validate(self.lineItems, name: "lineItems", parent: name, max: 20)
            try self.validate(self.lineItems, name: "lineItems", parent: name, min: 1)
            try self.validate(self.outpostIdentifier, name: "outpostIdentifier", parent: name, max: 180)
            try self.validate(self.outpostIdentifier, name: "outpostIdentifier", parent: name, min: 1)
            try self.validate(self.outpostIdentifier, name: "outpostIdentifier", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: String, CodingKey {
            case lineItems = "LineItems"
            case outpostIdentifier = "OutpostIdentifier"
            case paymentOption = "PaymentOption"
            case paymentTerm = "PaymentTerm"
        }
    }

    public struct CreateOrderOutput: AWSDecodableShape {
        /// Information about this order.
        public let order: Order?

        public init(order: Order? = nil) {
            self.order = order
        }

        private enum CodingKeys: String, CodingKey {
            case order = "Order"
        }
    }

    public struct CreateOutpostInput: AWSEncodableShape {
        public let availabilityZone: String?
        public let availabilityZoneId: String?
        public let description: String?
        public let name: String
        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String
        ///  The type of hardware for this Outpost.
        public let supportedHardwareType: SupportedHardwareType?
        /// The tags to apply to the Outpost.
        public let tags: [String: String]?

        public init(availabilityZone: String? = nil, availabilityZoneId: String? = nil, description: String? = nil, name: String, siteId: String, supportedHardwareType: SupportedHardwareType? = nil, tags: [String: String]? = nil) {
            self.availabilityZone = availabilityZone
            self.availabilityZoneId = availabilityZoneId
            self.description = description
            self.name = name
            self.siteId = siteId
            self.supportedHardwareType = supportedHardwareType
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, max: 1000)
            try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, min: 1)
            try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, pattern: "^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\\d+[a-zA-Z]?)?$")
            try self.validate(self.availabilityZoneId, name: "availabilityZoneId", parent: name, max: 255)
            try self.validate(self.availabilityZoneId, name: "availabilityZoneId", parent: name, min: 1)
            try self.validate(self.availabilityZoneId, name: "availabilityZoneId", parent: name, pattern: "^[a-zA-Z]+\\d-[a-zA-Z]+\\d$")
            try self.validate(self.description, name: "description", parent: name, max: 1000)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\S ]*$")
            try self.validate(self.name, name: "name", parent: name, max: 255)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
            try self.tags?.forEach {
                try validate($0.key, name: "tags.key", parent: name, max: 128)
                try validate($0.key, name: "tags.key", parent: name, min: 1)
                try validate($0.key, name: "tags.key", parent: name, pattern: "^(?!aws:)[a-zA-Z+-=._:/]+$")
                try validate($0.value, name: "tags[\"\($0.key)\"]", parent: name, max: 256)
                try validate($0.value, name: "tags[\"\($0.key)\"]", parent: name, pattern: "^[\\S \\n]+$")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case availabilityZone = "AvailabilityZone"
            case availabilityZoneId = "AvailabilityZoneId"
            case description = "Description"
            case name = "Name"
            case siteId = "SiteId"
            case supportedHardwareType = "SupportedHardwareType"
            case tags = "Tags"
        }
    }

    public struct CreateOutpostOutput: AWSDecodableShape {
        public let outpost: Outpost?

        public init(outpost: Outpost? = nil) {
            self.outpost = outpost
        }

        private enum CodingKeys: String, CodingKey {
            case outpost = "Outpost"
        }
    }

    public struct CreateSiteInput: AWSEncodableShape {
        public let description: String?
        public let name: String
        /// Additional information that you provide about site access requirements, electrician scheduling, personal protective equipment, or regulation of equipment materials that could affect your installation process.
        public let notes: String?
        ///  The location to install and power on the hardware. This address might be  different from the shipping address.
        public let operatingAddress: Address?
        ///  Information about the physical and logistical details for the rack at this site. For more information about hardware requirements for racks, see Network  readiness checklist in the Amazon Web Services Outposts User Guide.
        public let rackPhysicalProperties: RackPhysicalProperties?
        ///  The location to ship the hardware. This address might be different  from the operating address.
        public let shippingAddress: Address?
        ///  The tags to apply to a site.
        public let tags: [String: String]?

        public init(description: String? = nil, name: String, notes: String? = nil, operatingAddress: Address? = nil, rackPhysicalProperties: RackPhysicalProperties? = nil, shippingAddress: Address? = nil, tags: [String: String]? = nil) {
            self.description = description
            self.name = name
            self.notes = notes
            self.operatingAddress = operatingAddress
            self.rackPhysicalProperties = rackPhysicalProperties
            self.shippingAddress = shippingAddress
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.validate(self.description, name: "description", parent: name, max: 1001)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.name, name: "name", parent: name, max: 1000)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.notes, name: "notes", parent: name, max: 2000)
            try self.validate(self.notes, name: "notes", parent: name, min: 1)
            try self.validate(self.notes, name: "notes", parent: name, pattern: "^[\\S \\n]+$")
            try self.operatingAddress?.validate(name: "\(name).operatingAddress")
            try self.shippingAddress?.validate(name: "\(name).shippingAddress")
            try self.tags?.forEach {
                try validate($0.key, name: "tags.key", parent: name, max: 128)
                try validate($0.key, name: "tags.key", parent: name, min: 1)
                try validate($0.key, name: "tags.key", parent: name, pattern: "^(?!aws:)[a-zA-Z+-=._:/]+$")
                try validate($0.value, name: "tags[\"\($0.key)\"]", parent: name, max: 256)
                try validate($0.value, name: "tags[\"\($0.key)\"]", parent: name, pattern: "^[\\S \\n]+$")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case name = "Name"
            case notes = "Notes"
            case operatingAddress = "OperatingAddress"
            case rackPhysicalProperties = "RackPhysicalProperties"
            case shippingAddress = "ShippingAddress"
            case tags = "Tags"
        }
    }

    public struct CreateSiteOutput: AWSDecodableShape {
        public let site: Site?

        public init(site: Site? = nil) {
            self.site = site
        }

        private enum CodingKeys: String, CodingKey {
            case site = "Site"
        }
    }

    public struct DeleteOutpostInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "outpostId", location: .uri("OutpostId"))
        ]

        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let outpostId: String

        public init(outpostId: String) {
            self.outpostId = outpostId
        }

        public func validate(name: String) throws {
            try self.validate(self.outpostId, name: "outpostId", parent: name, max: 180)
            try self.validate(self.outpostId, name: "outpostId", parent: name, min: 1)
            try self.validate(self.outpostId, name: "outpostId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteOutpostOutput: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteSiteInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "siteId", location: .uri("SiteId"))
        ]

        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String

        public init(siteId: String) {
            self.siteId = siteId
        }

        public func validate(name: String) throws {
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteSiteOutput: AWSDecodableShape {
        public init() {}
    }

    public struct EC2Capacity: AWSDecodableShape {
        ///  The family of the EC2 capacity.
        public let family: String?
        ///  The maximum size of the EC2 capacity.
        public let maxSize: String?
        ///  The quantity of the EC2 capacity.
        public let quantity: String?

        public init(family: String? = nil, maxSize: String? = nil, quantity: String? = nil) {
            self.family = family
            self.maxSize = maxSize
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case family = "Family"
            case maxSize = "MaxSize"
            case quantity = "Quantity"
        }
    }

    public struct GetCatalogItemInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "catalogItemId", location: .uri("CatalogItemId"))
        ]

        /// The ID of the catalog item.
        public let catalogItemId: String

        public init(catalogItemId: String) {
            self.catalogItemId = catalogItemId
        }

        public func validate(name: String) throws {
            try self.validate(self.catalogItemId, name: "catalogItemId", parent: name, max: 10)
            try self.validate(self.catalogItemId, name: "catalogItemId", parent: name, min: 1)
            try self.validate(self.catalogItemId, name: "catalogItemId", parent: name, pattern: "^OR-[A-Z0-9]{7}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetCatalogItemOutput: AWSDecodableShape {
        /// Information about this catalog item.
        public let catalogItem: CatalogItem?

        public init(catalogItem: CatalogItem? = nil) {
            self.catalogItem = catalogItem
        }

        private enum CodingKeys: String, CodingKey {
            case catalogItem = "CatalogItem"
        }
    }

    public struct GetOrderInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "orderId", location: .uri("OrderId"))
        ]

        /// The ID of the order.
        public let orderId: String

        public init(orderId: String) {
            self.orderId = orderId
        }

        public func validate(name: String) throws {
            try self.validate(self.orderId, name: "orderId", parent: name, max: 20)
            try self.validate(self.orderId, name: "orderId", parent: name, min: 1)
            try self.validate(self.orderId, name: "orderId", parent: name, pattern: "^oo-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetOrderOutput: AWSDecodableShape {
        public let order: Order?

        public init(order: Order? = nil) {
            self.order = order
        }

        private enum CodingKeys: String, CodingKey {
            case order = "Order"
        }
    }

    public struct GetOutpostInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "outpostId", location: .uri("OutpostId"))
        ]

        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let outpostId: String

        public init(outpostId: String) {
            self.outpostId = outpostId
        }

        public func validate(name: String) throws {
            try self.validate(self.outpostId, name: "outpostId", parent: name, max: 180)
            try self.validate(self.outpostId, name: "outpostId", parent: name, min: 1)
            try self.validate(self.outpostId, name: "outpostId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetOutpostInstanceTypesInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "maxResults", location: .querystring("MaxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring("NextToken")),
            AWSMemberEncoding(label: "outpostId", location: .uri("OutpostId"))
        ]

        public let maxResults: Int?
        public let nextToken: String?
        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let outpostId: String

        public init(maxResults: Int? = nil, nextToken: String? = nil, outpostId: String) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.outpostId = outpostId
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 1000)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1005)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, pattern: "^(\\d+)##(\\S+)$")
            try self.validate(self.outpostId, name: "outpostId", parent: name, max: 180)
            try self.validate(self.outpostId, name: "outpostId", parent: name, min: 1)
            try self.validate(self.outpostId, name: "outpostId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetOutpostInstanceTypesOutput: AWSDecodableShape {
        public let instanceTypes: [InstanceTypeItem]?
        public let nextToken: String?
        public let outpostArn: String?
        ///  The ID of the Outpost.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let outpostId: String?

        public init(instanceTypes: [InstanceTypeItem]? = nil, nextToken: String? = nil, outpostArn: String? = nil, outpostId: String? = nil) {
            self.instanceTypes = instanceTypes
            self.nextToken = nextToken
            self.outpostArn = outpostArn
            self.outpostId = outpostId
        }

        private enum CodingKeys: String, CodingKey {
            case instanceTypes = "InstanceTypes"
            case nextToken = "NextToken"
            case outpostArn = "OutpostArn"
            case outpostId = "OutpostId"
        }
    }

    public struct GetOutpostOutput: AWSDecodableShape {
        public let outpost: Outpost?

        public init(outpost: Outpost? = nil) {
            self.outpost = outpost
        }

        private enum CodingKeys: String, CodingKey {
            case outpost = "Outpost"
        }
    }

    public struct GetSiteAddressInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "addressType", location: .querystring("AddressType")),
            AWSMemberEncoding(label: "siteId", location: .uri("SiteId"))
        ]

        ///  The type of the address you request.
        public let addressType: AddressType
        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String

        public init(addressType: AddressType, siteId: String) {
            self.addressType = addressType
            self.siteId = siteId
        }

        public func validate(name: String) throws {
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetSiteAddressOutput: AWSDecodableShape {
        ///  Information about the address.
        public let address: Address?
        ///  The type of the address you receive.
        public let addressType: AddressType?
        public let siteId: String?

        public init(address: Address? = nil, addressType: AddressType? = nil, siteId: String? = nil) {
            self.address = address
            self.addressType = addressType
            self.siteId = siteId
        }

        private enum CodingKeys: String, CodingKey {
            case address = "Address"
            case addressType = "AddressType"
            case siteId = "SiteId"
        }
    }

    public struct GetSiteInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "siteId", location: .uri("SiteId"))
        ]

        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String

        public init(siteId: String) {
            self.siteId = siteId
        }

        public func validate(name: String) throws {
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetSiteOutput: AWSDecodableShape {
        public let site: Site?

        public init(site: Site? = nil) {
            self.site = site
        }

        private enum CodingKeys: String, CodingKey {
            case site = "Site"
        }
    }

    public struct InstanceTypeItem: AWSDecodableShape {
        public let instanceType: String?

        public init(instanceType: String? = nil) {
            self.instanceType = instanceType
        }

        private enum CodingKeys: String, CodingKey {
            case instanceType = "InstanceType"
        }
    }

    public struct LineItem: AWSDecodableShape {
        ///  The ID of the catalog item.
        public let catalogItemId: String?
        /// The ID of the line item.
        public let lineItemId: String?
        /// The quantity of the line item.
        public let quantity: Int?
        /// The status of the line item.
        public let status: LineItemStatus?

        public init(catalogItemId: String? = nil, lineItemId: String? = nil, quantity: Int? = nil, status: LineItemStatus? = nil) {
            self.catalogItemId = catalogItemId
            self.lineItemId = lineItemId
            self.quantity = quantity
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case catalogItemId = "CatalogItemId"
            case lineItemId = "LineItemId"
            case quantity = "Quantity"
            case status = "Status"
        }
    }

    public struct LineItemRequest: AWSEncodableShape {
        /// The ID of the catalog item.
        public let catalogItemId: String?
        /// The quantity of a line item request.
        public let quantity: Int?

        public init(catalogItemId: String? = nil, quantity: Int? = nil) {
            self.catalogItemId = catalogItemId
            self.quantity = quantity
        }

        public func validate(name: String) throws {
            try self.validate(self.catalogItemId, name: "catalogItemId", parent: name, max: 10)
            try self.validate(self.catalogItemId, name: "catalogItemId", parent: name, min: 1)
            try self.validate(self.catalogItemId, name: "catalogItemId", parent: name, pattern: "^OR-[A-Z0-9]{7}$")
            try self.validate(self.quantity, name: "quantity", parent: name, max: 20)
            try self.validate(self.quantity, name: "quantity", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case catalogItemId = "CatalogItemId"
            case quantity = "Quantity"
        }
    }

    public struct ListAssetsInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "hostIdFilter", location: .querystring("HostIdFilter")),
            AWSMemberEncoding(label: "maxResults", location: .querystring("MaxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring("NextToken")),
            AWSMemberEncoding(label: "outpostIdentifier", location: .uri("OutpostIdentifier"))
        ]

        ///  A filter for the host ID of Dedicated Hosts on the Outpost.  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 hostIdFilter: [String]?
        public let maxResults: Int?
        public let nextToken: String?
        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.
        public let outpostIdentifier: String

        public init(hostIdFilter: [String]? = nil, maxResults: Int? = nil, nextToken: String? = nil, outpostIdentifier: String) {
            self.hostIdFilter = hostIdFilter
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.outpostIdentifier = outpostIdentifier
        }

        public func validate(name: String) throws {
            try self.hostIdFilter?.forEach {
                try validate($0, name: "hostIdFilter[]", parent: name, max: 50)
                try validate($0, name: "hostIdFilter[]", parent: name, min: 1)
                try validate($0, name: "hostIdFilter[]", parent: name, pattern: "^[A-Za-z0-9-]*$")
            }
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 1000)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1005)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, pattern: "^(\\d+)##(\\S+)$")
            try self.validate(self.outpostIdentifier, name: "outpostIdentifier", parent: name, max: 180)
            try self.validate(self.outpostIdentifier, name: "outpostIdentifier", parent: name, min: 1)
            try self.validate(self.outpostIdentifier, name: "outpostIdentifier", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListAssetsOutput: AWSDecodableShape {
        ///  Information about hardware assets.
        public let assets: [AssetInfo]?
        public let nextToken: String?

        public init(assets: [AssetInfo]? = nil, nextToken: String? = nil) {
            self.assets = assets
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case assets = "Assets"
            case nextToken = "NextToken"
        }
    }

    public struct ListCatalogItemsInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "ec2FamilyFilter", location: .querystring("EC2FamilyFilter")),
            AWSMemberEncoding(label: "itemClassFilter", location: .querystring("ItemClassFilter")),
            AWSMemberEncoding(label: "maxResults", location: .querystring("MaxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring("NextToken")),
            AWSMemberEncoding(label: "supportedStorageFilter", location: .querystring("SupportedStorageFilter"))
        ]

        ///  A filter for EC2 family options for items in the catalog.  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 ec2FamilyFilter: [String]?
        ///  A filter for the class of items in the catalog.  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 itemClassFilter: [CatalogItemClass]?
        public let maxResults: Int?
        public let nextToken: String?
        ///  A filter for the storage options of items in the catalog.  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 supportedStorageFilter: [SupportedStorageEnum]?

        public init(ec2FamilyFilter: [String]? = nil, itemClassFilter: [CatalogItemClass]? = nil, maxResults: Int? = nil, nextToken: String? = nil, supportedStorageFilter: [SupportedStorageEnum]? = nil) {
            self.ec2FamilyFilter = ec2FamilyFilter
            self.itemClassFilter = itemClassFilter
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.supportedStorageFilter = supportedStorageFilter
        }

        public func validate(name: String) throws {
            try self.ec2FamilyFilter?.forEach {
                try validate($0, name: "ec2FamilyFilter[]", parent: name, max: 10)
                try validate($0, name: "ec2FamilyFilter[]", parent: name, min: 1)
                try validate($0, name: "ec2FamilyFilter[]", parent: name, pattern: "^[a-z0-9]+$")
            }
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 1000)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1005)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, pattern: "^(\\d+)##(\\S+)$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListCatalogItemsOutput: AWSDecodableShape {
        /// Information about the catalog items.
        public let catalogItems: [CatalogItem]?
        public let nextToken: String?

        public init(catalogItems: [CatalogItem]? = nil, nextToken: String? = nil) {
            self.catalogItems = catalogItems
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case catalogItems = "CatalogItems"
            case nextToken = "NextToken"
        }
    }

    public struct ListOrdersInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "maxResults", location: .querystring("MaxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring("NextToken")),
            AWSMemberEncoding(label: "outpostIdentifierFilter", location: .querystring("OutpostIdentifierFilter"))
        ]

        public let maxResults: Int?
        public let nextToken: String?
        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.
        public let outpostIdentifierFilter: String?

        public init(maxResults: Int? = nil, nextToken: String? = nil, outpostIdentifierFilter: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.outpostIdentifierFilter = outpostIdentifierFilter
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 1000)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1005)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, pattern: "^(\\d+)##(\\S+)$")
            try self.validate(self.outpostIdentifierFilter, name: "outpostIdentifierFilter", parent: name, max: 180)
            try self.validate(self.outpostIdentifierFilter, name: "outpostIdentifierFilter", parent: name, min: 1)
            try self.validate(self.outpostIdentifierFilter, name: "outpostIdentifierFilter", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListOrdersOutput: AWSDecodableShape {
        public let nextToken: String?
        ///  Information about the orders.
        public let orders: [OrderSummary]?

        public init(nextToken: String? = nil, orders: [OrderSummary]? = nil) {
            self.nextToken = nextToken
            self.orders = orders
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case orders = "Orders"
        }
    }

    public struct ListOutpostsInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "availabilityZoneFilter", location: .querystring("AvailabilityZoneFilter")),
            AWSMemberEncoding(label: "availabilityZoneIdFilter", location: .querystring("AvailabilityZoneIdFilter")),
            AWSMemberEncoding(label: "lifeCycleStatusFilter", location: .querystring("LifeCycleStatusFilter")),
            AWSMemberEncoding(label: "maxResults", location: .querystring("MaxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring("NextToken"))
        ]

        ///  A filter for the Availability Zone (us-east-1a) of the Outpost.   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 availabilityZoneFilter: [String]?
        ///  A filter for the AZ IDs (use1-az1) of the Outpost.   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 availabilityZoneIdFilter: [String]?
        ///  A filter for the lifecycle status of the Outpost.   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 lifeCycleStatusFilter: [String]?
        public let maxResults: Int?
        public let nextToken: String?

        public init(availabilityZoneFilter: [String]? = nil, availabilityZoneIdFilter: [String]? = nil, lifeCycleStatusFilter: [String]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.availabilityZoneFilter = availabilityZoneFilter
            self.availabilityZoneIdFilter = availabilityZoneIdFilter
            self.lifeCycleStatusFilter = lifeCycleStatusFilter
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.availabilityZoneFilter?.forEach {
                try validate($0, name: "availabilityZoneFilter[]", parent: name, max: 1000)
                try validate($0, name: "availabilityZoneFilter[]", parent: name, min: 1)
                try validate($0, name: "availabilityZoneFilter[]", parent: name, pattern: "^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\\d+[a-zA-Z]?)?$")
            }
            try self.validate(self.availabilityZoneFilter, name: "availabilityZoneFilter", parent: name, max: 5)
            try self.validate(self.availabilityZoneFilter, name: "availabilityZoneFilter", parent: name, min: 1)
            try self.availabilityZoneIdFilter?.forEach {
                try validate($0, name: "availabilityZoneIdFilter[]", parent: name, max: 255)
                try validate($0, name: "availabilityZoneIdFilter[]", parent: name, min: 1)
                try validate($0, name: "availabilityZoneIdFilter[]", parent: name, pattern: "^[a-zA-Z]+\\d-[a-zA-Z]+\\d$")
            }
            try self.validate(self.availabilityZoneIdFilter, name: "availabilityZoneIdFilter", parent: name, max: 5)
            try self.validate(self.availabilityZoneIdFilter, name: "availabilityZoneIdFilter", parent: name, min: 1)
            try self.lifeCycleStatusFilter?.forEach {
                try validate($0, name: "lifeCycleStatusFilter[]", parent: name, max: 20)
                try validate($0, name: "lifeCycleStatusFilter[]", parent: name, min: 1)
                try validate($0, name: "lifeCycleStatusFilter[]", parent: name, pattern: "^[ A-Za-z]+$")
            }
            try self.validate(self.lifeCycleStatusFilter, name: "lifeCycleStatusFilter", parent: name, max: 5)
            try self.validate(self.lifeCycleStatusFilter, name: "lifeCycleStatusFilter", parent: name, min: 1)
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 1000)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1005)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, pattern: "^(\\d+)##(\\S+)$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListOutpostsOutput: AWSDecodableShape {
        public let nextToken: String?
        public let outposts: [Outpost]?

        public init(nextToken: String? = nil, outposts: [Outpost]? = nil) {
            self.nextToken = nextToken
            self.outposts = outposts
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case outposts = "Outposts"
        }
    }

    public struct ListSitesInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "maxResults", location: .querystring("MaxResults")),
            AWSMemberEncoding(label: "nextToken", location: .querystring("NextToken")),
            AWSMemberEncoding(label: "operatingAddressCityFilter", location: .querystring("OperatingAddressCityFilter")),
            AWSMemberEncoding(label: "operatingAddressCountryCodeFilter", location: .querystring("OperatingAddressCountryCodeFilter")),
            AWSMemberEncoding(label: "operatingAddressStateOrRegionFilter", location: .querystring("OperatingAddressStateOrRegionFilter"))
        ]

        public let maxResults: Int?
        public let nextToken: String?
        ///  A filter for the city of the Outpost site.   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 operatingAddressCityFilter: [String]?
        ///  A filter for the country code of the Outpost site.  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 operatingAddressCountryCodeFilter: [String]?
        ///  A filter for the state/region of the Outpost site.  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 operatingAddressStateOrRegionFilter: [String]?

        public init(maxResults: Int? = nil, nextToken: String? = nil, operatingAddressCityFilter: [String]? = nil, operatingAddressCountryCodeFilter: [String]? = nil, operatingAddressStateOrRegionFilter: [String]? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.operatingAddressCityFilter = operatingAddressCityFilter
            self.operatingAddressCountryCodeFilter = operatingAddressCountryCodeFilter
            self.operatingAddressStateOrRegionFilter = operatingAddressStateOrRegionFilter
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 1000)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1005)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, pattern: "^(\\d+)##(\\S+)$")
            try self.operatingAddressCityFilter?.forEach {
                try validate($0, name: "operatingAddressCityFilter[]", parent: name, max: 50)
                try validate($0, name: "operatingAddressCityFilter[]", parent: name, min: 1)
                try validate($0, name: "operatingAddressCityFilter[]", parent: name, pattern: "^\\S[\\S ]*$")
            }
            try self.operatingAddressCountryCodeFilter?.forEach {
                try validate($0, name: "operatingAddressCountryCodeFilter[]", parent: name, max: 2)
                try validate($0, name: "operatingAddressCountryCodeFilter[]", parent: name, min: 2)
                try validate($0, name: "operatingAddressCountryCodeFilter[]", parent: name, pattern: "^[A-Z]{2}$")
            }
            try self.operatingAddressStateOrRegionFilter?.forEach {
                try validate($0, name: "operatingAddressStateOrRegionFilter[]", parent: name, max: 50)
                try validate($0, name: "operatingAddressStateOrRegionFilter[]", parent: name, min: 1)
                try validate($0, name: "operatingAddressStateOrRegionFilter[]", parent: name, pattern: "^\\S[\\S ]*$")
            }
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListSitesOutput: AWSDecodableShape {
        public let nextToken: String?
        public let sites: [Site]?

        public init(nextToken: String? = nil, sites: [Site]? = nil) {
            self.nextToken = nextToken
            self.sites = sites
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case sites = "Sites"
        }
    }

    public struct ListTagsForResourceRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "resourceArn", location: .uri("ResourceArn"))
        ]

        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceArn: String

        public init(resourceArn: String) {
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 1011)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:([a-z\\d-]+)/)[a-z]{2,8}-[a-f0-9]{17}$")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListTagsForResourceResponse: AWSDecodableShape {
        /// The resource tags.
        public let tags: [String: String]?

        public init(tags: [String: String]? = nil) {
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case tags = "Tags"
        }
    }

    public struct Order: AWSDecodableShape {
        /// The line items for the order
        public let lineItems: [LineItem]?
        /// The fulfillment date of the order.
        public let orderFulfilledDate: Date?
        /// The ID of the order.
        public let orderId: String?
        /// The submission date for the order.
        public let orderSubmissionDate: Date?
        ///  The ID of the Outpost in the order.
        public let outpostId: String?
        /// The payment option for the order.
        public let paymentOption: PaymentOption?
        /// The status of the order.    PREPARING - Order is received and being prepared.    IN_PROGRESS - Order is either being built, shipped, or installed. To get more details, see the LineItem status.    COMPLETED - Order is complete.    CANCELLED - Order is cancelled.    ERROR - Customer should contact support.     The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.
        public let status: OrderStatus?

        public init(lineItems: [LineItem]? = nil, orderFulfilledDate: Date? = nil, orderId: String? = nil, orderSubmissionDate: Date? = nil, outpostId: String? = nil, paymentOption: PaymentOption? = nil, status: OrderStatus? = nil) {
            self.lineItems = lineItems
            self.orderFulfilledDate = orderFulfilledDate
            self.orderId = orderId
            self.orderSubmissionDate = orderSubmissionDate
            self.outpostId = outpostId
            self.paymentOption = paymentOption
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case lineItems = "LineItems"
            case orderFulfilledDate = "OrderFulfilledDate"
            case orderId = "OrderId"
            case orderSubmissionDate = "OrderSubmissionDate"
            case outpostId = "OutpostId"
            case paymentOption = "PaymentOption"
            case status = "Status"
        }
    }

    public struct OrderSummary: AWSDecodableShape {
        ///  The status of all line items in the order.
        public let lineItemCountsByStatus: [LineItemStatus: Int]?
        ///  Fulfilment date for the order.
        public let orderFulfilledDate: Date?
        ///  The ID of the order.
        public let orderId: String?
        ///  Submission date for the order.
        public let orderSubmissionDate: Date?
        ///  The type of order.
        public let orderType: OrderType?
        ///  The ID of the Outpost.
        public let outpostId: String?
        /// The status of the order.    PREPARING - Order is received and is being prepared.    IN_PROGRESS - Order is either being built, shipped, or installed. For more information, see the LineItem status.    COMPLETED - Order is complete.    CANCELLED - Order is cancelled.    ERROR - Customer should contact support.     The following statuses are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.
        public let status: OrderStatus?

        public init(lineItemCountsByStatus: [LineItemStatus: Int]? = nil, orderFulfilledDate: Date? = nil, orderId: String? = nil, orderSubmissionDate: Date? = nil, orderType: OrderType? = nil, outpostId: String? = nil, status: OrderStatus? = nil) {
            self.lineItemCountsByStatus = lineItemCountsByStatus
            self.orderFulfilledDate = orderFulfilledDate
            self.orderId = orderId
            self.orderSubmissionDate = orderSubmissionDate
            self.orderType = orderType
            self.outpostId = outpostId
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case lineItemCountsByStatus = "LineItemCountsByStatus"
            case orderFulfilledDate = "OrderFulfilledDate"
            case orderId = "OrderId"
            case orderSubmissionDate = "OrderSubmissionDate"
            case orderType = "OrderType"
            case outpostId = "OutpostId"
            case status = "Status"
        }
    }

    public struct Outpost: AWSDecodableShape {
        public let availabilityZone: String?
        public let availabilityZoneId: String?
        public let description: String?
        public let lifeCycleStatus: String?
        public let name: String?
        public let outpostArn: String?
        ///  The ID of the Outpost.
        public let outpostId: String?
        public let ownerId: String?
        public let siteArn: String?
        public let siteId: String?
        ///  The hardware type.
        public let supportedHardwareType: SupportedHardwareType?
        /// The Outpost tags.
        public let tags: [String: String]?

        public init(availabilityZone: String? = nil, availabilityZoneId: String? = nil, description: String? = nil, lifeCycleStatus: String? = nil, name: String? = nil, outpostArn: String? = nil, outpostId: String? = nil, ownerId: String? = nil, siteArn: String? = nil, siteId: String? = nil, supportedHardwareType: SupportedHardwareType? = nil, tags: [String: String]? = nil) {
            self.availabilityZone = availabilityZone
            self.availabilityZoneId = availabilityZoneId
            self.description = description
            self.lifeCycleStatus = lifeCycleStatus
            self.name = name
            self.outpostArn = outpostArn
            self.outpostId = outpostId
            self.ownerId = ownerId
            self.siteArn = siteArn
            self.siteId = siteId
            self.supportedHardwareType = supportedHardwareType
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case availabilityZone = "AvailabilityZone"
            case availabilityZoneId = "AvailabilityZoneId"
            case description = "Description"
            case lifeCycleStatus = "LifeCycleStatus"
            case name = "Name"
            case outpostArn = "OutpostArn"
            case outpostId = "OutpostId"
            case ownerId = "OwnerId"
            case siteArn = "SiteArn"
            case siteId = "SiteId"
            case supportedHardwareType = "SupportedHardwareType"
            case tags = "Tags"
        }
    }

    public struct RackPhysicalProperties: AWSEncodableShape & AWSDecodableShape {
        /// The type of fiber used to attach the Outpost to the network.
        public let fiberOpticCableType: FiberOpticCableType?
        /// The maximum rack weight that this site can support. NO_LIMIT is over 2000 lbs (907 kg).
        public let maximumSupportedWeightLbs: MaximumSupportedWeightLbs?
        /// The type of optical standard used to attach the Outpost to the network. This field is dependent on uplink speed, fiber type, and distance to the upstream device. For more information about networking requirements for racks, see Network  in the Amazon Web Services Outposts User Guide.
        public let opticalStandard: OpticalStandard?
        /// The power connector for the hardware.
        public let powerConnector: PowerConnector?
        /// The power draw available at the hardware placement position for the rack.
        public let powerDrawKva: PowerDrawKva?
        /// The position of the power feed.
        public let powerFeedDrop: PowerFeedDrop?
        /// The power option that you can provide for hardware.
        public let powerPhase: PowerPhase?
        /// The number of uplinks each Outpost network device.
        public let uplinkCount: UplinkCount?
        /// The uplink speed the rack supports for the connection to the Region.
        public let uplinkGbps: UplinkGbps?

        public init(fiberOpticCableType: FiberOpticCableType? = nil, maximumSupportedWeightLbs: MaximumSupportedWeightLbs? = nil, opticalStandard: OpticalStandard? = nil, powerConnector: PowerConnector? = nil, powerDrawKva: PowerDrawKva? = nil, powerFeedDrop: PowerFeedDrop? = nil, powerPhase: PowerPhase? = nil, uplinkCount: UplinkCount? = nil, uplinkGbps: UplinkGbps? = nil) {
            self.fiberOpticCableType = fiberOpticCableType
            self.maximumSupportedWeightLbs = maximumSupportedWeightLbs
            self.opticalStandard = opticalStandard
            self.powerConnector = powerConnector
            self.powerDrawKva = powerDrawKva
            self.powerFeedDrop = powerFeedDrop
            self.powerPhase = powerPhase
            self.uplinkCount = uplinkCount
            self.uplinkGbps = uplinkGbps
        }

        private enum CodingKeys: String, CodingKey {
            case fiberOpticCableType = "FiberOpticCableType"
            case maximumSupportedWeightLbs = "MaximumSupportedWeightLbs"
            case opticalStandard = "OpticalStandard"
            case powerConnector = "PowerConnector"
            case powerDrawKva = "PowerDrawKva"
            case powerFeedDrop = "PowerFeedDrop"
            case powerPhase = "PowerPhase"
            case uplinkCount = "UplinkCount"
            case uplinkGbps = "UplinkGbps"
        }
    }

    public struct Site: AWSDecodableShape {
        public let accountId: String?
        public let description: String?
        public let name: String?
        ///  Notes about a site.
        public let notes: String?
        ///  City where the hardware is installed and powered on.
        public let operatingAddressCity: String?
        ///  The ISO-3166 two-letter country code where the hardware is installed and powered on.
        public let operatingAddressCountryCode: String?
        ///  State or region where the hardware is installed and powered on.
        public let operatingAddressStateOrRegion: String?
        ///  Information about the physical and logistical details for a rack at the site.
        public let rackPhysicalProperties: RackPhysicalProperties?
        public let siteArn: String?
        public let siteId: String?
        /// The site tags.
        public let tags: [String: String]?

        public init(accountId: String? = nil, description: String? = nil, name: String? = nil, notes: String? = nil, operatingAddressCity: String? = nil, operatingAddressCountryCode: String? = nil, operatingAddressStateOrRegion: String? = nil, rackPhysicalProperties: RackPhysicalProperties? = nil, siteArn: String? = nil, siteId: String? = nil, tags: [String: String]? = nil) {
            self.accountId = accountId
            self.description = description
            self.name = name
            self.notes = notes
            self.operatingAddressCity = operatingAddressCity
            self.operatingAddressCountryCode = operatingAddressCountryCode
            self.operatingAddressStateOrRegion = operatingAddressStateOrRegion
            self.rackPhysicalProperties = rackPhysicalProperties
            self.siteArn = siteArn
            self.siteId = siteId
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case accountId = "AccountId"
            case description = "Description"
            case name = "Name"
            case notes = "Notes"
            case operatingAddressCity = "OperatingAddressCity"
            case operatingAddressCountryCode = "OperatingAddressCountryCode"
            case operatingAddressStateOrRegion = "OperatingAddressStateOrRegion"
            case rackPhysicalProperties = "RackPhysicalProperties"
            case siteArn = "SiteArn"
            case siteId = "SiteId"
            case tags = "Tags"
        }
    }

    public struct TagResourceRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "resourceArn", location: .uri("ResourceArn"))
        ]

        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceArn: String
        /// The tags to add to the resource.
        public let tags: [String: String]

        public init(resourceArn: String, tags: [String: String]) {
            self.resourceArn = resourceArn
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 1011)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:([a-z\\d-]+)/)[a-z]{2,8}-[a-f0-9]{17}$")
            try self.tags.forEach {
                try validate($0.key, name: "tags.key", parent: name, max: 128)
                try validate($0.key, name: "tags.key", parent: name, min: 1)
                try validate($0.key, name: "tags.key", parent: name, pattern: "^(?!aws:)[a-zA-Z+-=._:/]+$")
                try validate($0.value, name: "tags[\"\($0.key)\"]", parent: name, max: 256)
                try validate($0.value, name: "tags[\"\($0.key)\"]", parent: name, pattern: "^[\\S \\n]+$")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case tags = "Tags"
        }
    }

    public struct TagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UntagResourceRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "resourceArn", location: .uri("ResourceArn")),
            AWSMemberEncoding(label: "tagKeys", location: .querystring("tagKeys"))
        ]

        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceArn: String
        /// The tag keys.
        public let tagKeys: [String]

        public init(resourceArn: String, tagKeys: [String]) {
            self.resourceArn = resourceArn
            self.tagKeys = tagKeys
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 1011)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:([a-z\\d-]+)/)[a-z]{2,8}-[a-f0-9]{17}$")
            try self.tagKeys.forEach {
                try validate($0, name: "tagKeys[]", parent: name, max: 128)
                try validate($0, name: "tagKeys[]", parent: name, min: 1)
                try validate($0, name: "tagKeys[]", parent: name, pattern: "^(?!aws:)[a-zA-Z+-=._:/]+$")
            }
            try self.validate(self.tagKeys, name: "tagKeys", parent: name, max: 50)
            try self.validate(self.tagKeys, name: "tagKeys", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct UntagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateOutpostInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "outpostId", location: .uri("OutpostId"))
        ]

        public let description: String?
        public let name: String?
        ///  The ID or the Amazon Resource Name (ARN) of the Outpost.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let outpostId: String
        ///  The type of hardware for this Outpost.
        public let supportedHardwareType: SupportedHardwareType?

        public init(description: String? = nil, name: String? = nil, outpostId: String, supportedHardwareType: SupportedHardwareType? = nil) {
            self.description = description
            self.name = name
            self.outpostId = outpostId
            self.supportedHardwareType = supportedHardwareType
        }

        public func validate(name: String) throws {
            try self.validate(self.description, name: "description", parent: name, max: 1000)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\S ]*$")
            try self.validate(self.name, name: "name", parent: name, max: 255)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.outpostId, name: "outpostId", parent: name, max: 180)
            try self.validate(self.outpostId, name: "outpostId", parent: name, min: 1)
            try self.validate(self.outpostId, name: "outpostId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$")
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case name = "Name"
            case supportedHardwareType = "SupportedHardwareType"
        }
    }

    public struct UpdateOutpostOutput: AWSDecodableShape {
        public let outpost: Outpost?

        public init(outpost: Outpost? = nil) {
            self.outpost = outpost
        }

        private enum CodingKeys: String, CodingKey {
            case outpost = "Outpost"
        }
    }

    public struct UpdateSiteAddressInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "siteId", location: .uri("SiteId"))
        ]

        ///  The address for the site.
        public let address: Address
        ///  The type of the address.
        public let addressType: AddressType
        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String

        public init(address: Address, addressType: AddressType, siteId: String) {
            self.address = address
            self.addressType = addressType
            self.siteId = siteId
        }

        public func validate(name: String) throws {
            try self.address.validate(name: "\(name).address")
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
        }

        private enum CodingKeys: String, CodingKey {
            case address = "Address"
            case addressType = "AddressType"
        }
    }

    public struct UpdateSiteAddressOutput: AWSDecodableShape {
        ///  Information about an address.
        public let address: Address?
        ///  The type of the address.
        public let addressType: AddressType?

        public init(address: Address? = nil, addressType: AddressType? = nil) {
            self.address = address
            self.addressType = addressType
        }

        private enum CodingKeys: String, CodingKey {
            case address = "Address"
            case addressType = "AddressType"
        }
    }

    public struct UpdateSiteInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "siteId", location: .uri("SiteId"))
        ]

        public let description: String?
        public let name: String?
        ///  Notes about a site.
        public let notes: String?
        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String

        public init(description: String? = nil, name: String? = nil, notes: String? = nil, siteId: String) {
            self.description = description
            self.name = name
            self.notes = notes
            self.siteId = siteId
        }

        public func validate(name: String) throws {
            try self.validate(self.description, name: "description", parent: name, max: 1001)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.name, name: "name", parent: name, max: 1000)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\S ]+$")
            try self.validate(self.notes, name: "notes", parent: name, max: 2000)
            try self.validate(self.notes, name: "notes", parent: name, min: 1)
            try self.validate(self.notes, name: "notes", parent: name, pattern: "^[\\S \\n]+$")
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case name = "Name"
            case notes = "Notes"
        }
    }

    public struct UpdateSiteOutput: AWSDecodableShape {
        public let site: Site?

        public init(site: Site? = nil) {
            self.site = site
        }

        private enum CodingKeys: String, CodingKey {
            case site = "Site"
        }
    }

    public struct UpdateSiteRackPhysicalPropertiesInput: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "siteId", location: .uri("SiteId"))
        ]

        ///  Specify the type of fiber that you will use to attach the Outpost to your network.
        public let fiberOpticCableType: FiberOpticCableType?
        ///  Specify the maximum rack weight that this site can support. NO_LIMIT is over 2000lbs.
        public let maximumSupportedWeightLbs: MaximumSupportedWeightLbs?
        /// Specify the type of optical standard that you will use to attach the Outpost to your network. This field is dependent on uplink speed, fiber type, and distance to the upstream device. For more information about networking requirements for racks, see Network  in the Amazon Web Services Outposts User Guide.     OPTIC_10GBASE_SR: 10GBASE-SR    OPTIC_10GBASE_IR: 10GBASE-IR    OPTIC_10GBASE_LR: 10GBASE-LR    OPTIC_40GBASE_SR: 40GBASE-SR    OPTIC_40GBASE_ESR: 40GBASE-ESR    OPTIC_40GBASE_IR4_LR4L: 40GBASE-IR (LR4L)    OPTIC_40GBASE_LR4: 40GBASE-LR4    OPTIC_100GBASE_SR4: 100GBASE-SR4    OPTIC_100GBASE_CWDM4: 100GBASE-CWDM4    OPTIC_100GBASE_LR4: 100GBASE-LR4    OPTIC_100G_PSM4_MSA: 100G PSM4 MSA    OPTIC_1000BASE_LX: 1000Base-LX    OPTIC_1000BASE_SX : 1000Base-SX
        public let opticalStandard: OpticalStandard?
        ///  Specify the power connector that Amazon Web Services should plan to provide for connections to the hardware. Note the correlation between PowerPhase and PowerConnector.    Single-phase AC feed    L6-30P – (common in US); 30A; single phase    IEC309 (blue) – P+N+E, 6hr; 32 A; single phase     Three-phase AC feed    AH530P7W (red) – 3P+N+E, 7hr; 30A; three phase    AH532P6W (red) – 3P+N+E, 6hr; 32A; three phase
        public let powerConnector: PowerConnector?
        /// Specify in kVA the power draw available at the hardware placement position for the rack.
        public let powerDrawKva: PowerDrawKva?
        ///  Specify whether the power feed comes above or below the rack.
        public let powerFeedDrop: PowerFeedDrop?
        ///  Specify the power option that you can provide for hardware.    Single-phase AC feed: 200 V to 277 V, 50 Hz or 60 Hz   Three-phase AC feed: 346 V to 480 V, 50 Hz or 60 Hz
        public let powerPhase: PowerPhase?
        ///  The ID or the Amazon Resource Name (ARN) of the site.   In requests, Amazon Web Services Outposts accepts the Amazon Resource Name (ARN) or an ID for Outposts and sites throughout the Outposts Query API. To address backwards compatibility, the parameter names OutpostID or SiteID remain in use. Despite the parameter name,  you can make the request with an ARN.
        public let siteId: String
        /// Racks come with two Outpost network devices. Depending on the supported uplink speed at the site, the Outpost network devices provide a variable number of uplinks. Specify the number of uplinks for each Outpost network device that you intend to use to connect the rack to your network. Note the correlation between UplinkGbps and UplinkCount.    1Gbps - Uplinks available: 1, 2, 4, 6, 8   10Gbps - Uplinks available: 1, 2, 4, 8, 12, 16   40 and 100 Gbps- Uplinks available: 1, 2, 4
        public let uplinkCount: UplinkCount?
        ///  Specify the uplink speed the rack should support for the connection to the Region.
        public let uplinkGbps: UplinkGbps?

        public init(fiberOpticCableType: FiberOpticCableType? = nil, maximumSupportedWeightLbs: MaximumSupportedWeightLbs? = nil, opticalStandard: OpticalStandard? = nil, powerConnector: PowerConnector? = nil, powerDrawKva: PowerDrawKva? = nil, powerFeedDrop: PowerFeedDrop? = nil, powerPhase: PowerPhase? = nil, siteId: String, uplinkCount: UplinkCount? = nil, uplinkGbps: UplinkGbps? = nil) {
            self.fiberOpticCableType = fiberOpticCableType
            self.maximumSupportedWeightLbs = maximumSupportedWeightLbs
            self.opticalStandard = opticalStandard
            self.powerConnector = powerConnector
            self.powerDrawKva = powerDrawKva
            self.powerFeedDrop = powerFeedDrop
            self.powerPhase = powerPhase
            self.siteId = siteId
            self.uplinkCount = uplinkCount
            self.uplinkGbps = uplinkGbps
        }

        public func validate(name: String) throws {
            try self.validate(self.siteId, name: "siteId", parent: name, max: 255)
            try self.validate(self.siteId, name: "siteId", parent: name, min: 1)
            try self.validate(self.siteId, name: "siteId", parent: name, pattern: "^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:site/)?(os-[a-f0-9]{17})$")
        }

        private enum CodingKeys: String, CodingKey {
            case fiberOpticCableType = "FiberOpticCableType"
            case maximumSupportedWeightLbs = "MaximumSupportedWeightLbs"
            case opticalStandard = "OpticalStandard"
            case powerConnector = "PowerConnector"
            case powerDrawKva = "PowerDrawKva"
            case powerFeedDrop = "PowerFeedDrop"
            case powerPhase = "PowerPhase"
            case uplinkCount = "UplinkCount"
            case uplinkGbps = "UplinkGbps"
        }
    }

    public struct UpdateSiteRackPhysicalPropertiesOutput: AWSDecodableShape {
        public let site: Site?

        public init(site: Site? = nil) {
            self.site = site
        }

        private enum CodingKeys: String, CodingKey {
            case site = "Site"
        }
    }
}
