From 8c71b4fee58951aefec59a6c4282e2883cc229fe Mon Sep 17 00:00:00 2001 From: Simon Pilkington Date: Tue, 31 Aug 2021 13:08:27 -0700 Subject: [PATCH] Code generate with Go SDK v1.40.34 models. --- .../AWSCloudformationClient.swift | 78 +++++++++++++++++++ .../CloudformationClientProtocol.swift | 31 ++++++++ .../CloudformationInvocationsReporting.swift | 3 + .../CloudformationOperationsClientInput.swift | 5 ++ ...CloudformationOperationsClientOutput.swift | 13 ++++ .../CloudformationOperationsReporting.swift | 3 + .../MockCloudformationClient.swift | 46 +++++++++++ .../ThrowingCloudformationClient.swift | 44 +++++++++++ .../CloudformationModelDefaultInstances.swift | 40 ++++++++++ .../CloudformationModelOperations.swift | 3 + .../CloudformationModelStructures.swift | 65 ++++++++++++++++ .../CloudformationModelTypes.swift | 7 ++ ...ticComputeCloudModelDefaultInstances.swift | 7 ++ .../ElasticComputeCloudModelStructures.swift | 28 +++++++ .../ElasticComputeCloudModelTypes.swift | 28 +++++++ .../SimpleQueueModelTypes.swift | 1 + 16 files changed, 402 insertions(+) diff --git a/Sources/CloudformationClient/AWSCloudformationClient.swift b/Sources/CloudformationClient/AWSCloudformationClient.swift index 11954967..9d15ed79 100644 --- a/Sources/CloudformationClient/AWSCloudformationClient.swift +++ b/Sources/CloudformationClient/AWSCloudformationClient.swift @@ -4225,6 +4225,84 @@ public struct AWSCloudformationClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.rollbackStack, + handlerDelegate: handlerDelegate) + let wrappedInput = RollbackStackOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.rollbackStack.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the RollbackStack operation waiting for the response before returning. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - Returns: The RollbackStackOutputForRollbackStack object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: tokenAlreadyExists. + */ + public func rollbackStackSync( + input: CloudformationModel.RollbackStackInput) throws -> CloudformationModel.RollbackStackOutputForRollbackStack { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.rollbackStack, + handlerDelegate: handlerDelegate) + let wrappedInput = RollbackStackOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.rollbackStack.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: CloudformationError = error.asTypedError() + throw typedError + } + } + /** Invokes the SetStackPolicy operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationClient/CloudformationClientProtocol.swift b/Sources/CloudformationClient/CloudformationClientProtocol.swift index 8d9b6ef4..4fa5125c 100644 --- a/Sources/CloudformationClient/CloudformationClientProtocol.swift +++ b/Sources/CloudformationClient/CloudformationClientProtocol.swift @@ -294,6 +294,11 @@ public protocol CloudformationClientProtocol { typealias RegisterTypeAsyncType = ( _ input: CloudformationModel.RegisterTypeInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias RollbackStackSyncType = ( + _ input: CloudformationModel.RollbackStackInput) throws -> CloudformationModel.RollbackStackOutputForRollbackStack + typealias RollbackStackAsyncType = ( + _ input: CloudformationModel.RollbackStackInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias SetStackPolicySyncType = ( _ input: CloudformationModel.SetStackPolicyInput) throws -> () typealias SetStackPolicyAsyncType = ( @@ -1688,6 +1693,32 @@ public protocol CloudformationClientProtocol { func registerTypeSync( input: CloudformationModel.RegisterTypeInput) throws -> CloudformationModel.RegisterTypeOutputForRegisterType + /** + Invokes the RollbackStack operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - completion: The RollbackStackOutputForRollbackStack object or an error will be passed to this + callback when the operation is complete. The RollbackStackOutputForRollbackStack + object will be validated before being returned to caller. + The possible errors are: tokenAlreadyExists. + */ + func rollbackStackAsync( + input: CloudformationModel.RollbackStackInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the RollbackStack operation waiting for the response before returning. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - Returns: The RollbackStackOutputForRollbackStack object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: tokenAlreadyExists. + */ + func rollbackStackSync( + input: CloudformationModel.RollbackStackInput) throws -> CloudformationModel.RollbackStackOutputForRollbackStack + /** Invokes the SetStackPolicy operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationClient/CloudformationInvocationsReporting.swift b/Sources/CloudformationClient/CloudformationInvocationsReporting.swift index b10f7573..c92bde90 100644 --- a/Sources/CloudformationClient/CloudformationInvocationsReporting.swift +++ b/Sources/CloudformationClient/CloudformationInvocationsReporting.swift @@ -82,6 +82,7 @@ public struct CloudformationInvocationsReporting public let registerPublisher: SmokeAWSHTTPClientInvocationReporting public let registerType: SmokeAWSHTTPClientInvocationReporting + public let rollbackStack: SmokeAWSHTTPClientInvocationReporting public let setStackPolicy: SmokeAWSHTTPClientInvocationReporting public let setTypeConfiguration: SmokeAWSHTTPClientInvocationReporting public let setTypeDefaultVersion: SmokeAWSHTTPClientInvocationReporting @@ -201,6 +202,8 @@ public struct CloudformationInvocationsReporting BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> RollbackStackOutputForRollbackStack { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the SetTypeConfiguration operation in a HTTP client. */ diff --git a/Sources/CloudformationClient/CloudformationOperationsReporting.swift b/Sources/CloudformationClient/CloudformationOperationsReporting.swift index cba9ed5a..b2dff3cd 100644 --- a/Sources/CloudformationClient/CloudformationOperationsReporting.swift +++ b/Sources/CloudformationClient/CloudformationOperationsReporting.swift @@ -81,6 +81,7 @@ public struct CloudformationOperationsReporting { public let recordHandlerProgress: StandardSmokeAWSOperationReporting public let registerPublisher: StandardSmokeAWSOperationReporting public let registerType: StandardSmokeAWSOperationReporting + public let rollbackStack: StandardSmokeAWSOperationReporting public let setStackPolicy: StandardSmokeAWSOperationReporting public let setTypeConfiguration: StandardSmokeAWSOperationReporting public let setTypeDefaultVersion: StandardSmokeAWSOperationReporting @@ -200,6 +201,8 @@ public struct CloudformationOperationsReporting { clientName: clientName, operation: .registerPublisher, configuration: reportingConfiguration) self.registerType = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .registerType, configuration: reportingConfiguration) + self.rollbackStack = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .rollbackStack, configuration: reportingConfiguration) self.setStackPolicy = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .setStackPolicy, configuration: reportingConfiguration) self.setTypeConfiguration = StandardSmokeAWSOperationReporting( diff --git a/Sources/CloudformationClient/MockCloudformationClient.swift b/Sources/CloudformationClient/MockCloudformationClient.swift index 0f3281a1..23c56cf3 100644 --- a/Sources/CloudformationClient/MockCloudformationClient.swift +++ b/Sources/CloudformationClient/MockCloudformationClient.swift @@ -135,6 +135,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { let registerPublisherSyncOverride: RegisterPublisherSyncType? let registerTypeAsyncOverride: RegisterTypeAsyncType? let registerTypeSyncOverride: RegisterTypeSyncType? + let rollbackStackAsyncOverride: RollbackStackAsyncType? + let rollbackStackSyncOverride: RollbackStackSyncType? let setStackPolicyAsyncOverride: SetStackPolicyAsyncType? let setStackPolicySyncOverride: SetStackPolicySyncType? let setTypeConfigurationAsyncOverride: SetTypeConfigurationAsyncType? @@ -269,6 +271,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { registerPublisherSync: RegisterPublisherSyncType? = nil, registerTypeAsync: RegisterTypeAsyncType? = nil, registerTypeSync: RegisterTypeSyncType? = nil, + rollbackStackAsync: RollbackStackAsyncType? = nil, + rollbackStackSync: RollbackStackSyncType? = nil, setStackPolicyAsync: SetStackPolicyAsyncType? = nil, setStackPolicySync: SetStackPolicySyncType? = nil, setTypeConfigurationAsync: SetTypeConfigurationAsyncType? = nil, @@ -397,6 +401,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { self.registerPublisherSyncOverride = registerPublisherSync self.registerTypeAsyncOverride = registerTypeAsync self.registerTypeSyncOverride = registerTypeSync + self.rollbackStackAsyncOverride = rollbackStackAsync + self.rollbackStackSyncOverride = rollbackStackSync self.setStackPolicyAsyncOverride = setStackPolicyAsync self.setStackPolicySyncOverride = setStackPolicySync self.setTypeConfigurationAsyncOverride = setTypeConfigurationAsync @@ -2495,6 +2501,46 @@ public struct MockCloudformationClient: CloudformationClientProtocol { return RegisterTypeOutputForRegisterType.__default } + /** + Invokes the RollbackStack operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - completion: The RollbackStackOutputForRollbackStack object or an error will be passed to this + callback when the operation is complete. The RollbackStackOutputForRollbackStack + object will be validated before being returned to caller. + The possible errors are: tokenAlreadyExists. + */ + public func rollbackStackAsync( + input: CloudformationModel.RollbackStackInput, + completion: @escaping (Result) -> ()) throws { + if let rollbackStackAsyncOverride = rollbackStackAsyncOverride { + return try rollbackStackAsyncOverride(input, completion) + } + + let result = RollbackStackOutputForRollbackStack.__default + + completion(.success(result)) + } + + /** + Invokes the RollbackStack operation waiting for the response before returning. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - Returns: The RollbackStackOutputForRollbackStack object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: tokenAlreadyExists. + */ + public func rollbackStackSync( + input: CloudformationModel.RollbackStackInput) throws -> CloudformationModel.RollbackStackOutputForRollbackStack { + if let rollbackStackSyncOverride = rollbackStackSyncOverride { + return try rollbackStackSyncOverride(input) + } + + return RollbackStackOutputForRollbackStack.__default + } + /** Invokes the SetStackPolicy operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationClient/ThrowingCloudformationClient.swift b/Sources/CloudformationClient/ThrowingCloudformationClient.swift index a2ac8318..51ccdc0a 100644 --- a/Sources/CloudformationClient/ThrowingCloudformationClient.swift +++ b/Sources/CloudformationClient/ThrowingCloudformationClient.swift @@ -136,6 +136,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { let registerPublisherSyncOverride: RegisterPublisherSyncType? let registerTypeAsyncOverride: RegisterTypeAsyncType? let registerTypeSyncOverride: RegisterTypeSyncType? + let rollbackStackAsyncOverride: RollbackStackAsyncType? + let rollbackStackSyncOverride: RollbackStackSyncType? let setStackPolicyAsyncOverride: SetStackPolicyAsyncType? let setStackPolicySyncOverride: SetStackPolicySyncType? let setTypeConfigurationAsyncOverride: SetTypeConfigurationAsyncType? @@ -270,6 +272,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { registerPublisherSync: RegisterPublisherSyncType? = nil, registerTypeAsync: RegisterTypeAsyncType? = nil, registerTypeSync: RegisterTypeSyncType? = nil, + rollbackStackAsync: RollbackStackAsyncType? = nil, + rollbackStackSync: RollbackStackSyncType? = nil, setStackPolicyAsync: SetStackPolicyAsyncType? = nil, setStackPolicySync: SetStackPolicySyncType? = nil, setTypeConfigurationAsync: SetTypeConfigurationAsyncType? = nil, @@ -399,6 +403,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { self.registerPublisherSyncOverride = registerPublisherSync self.registerTypeAsyncOverride = registerTypeAsync self.registerTypeSyncOverride = registerTypeSync + self.rollbackStackAsyncOverride = rollbackStackAsync + self.rollbackStackSyncOverride = rollbackStackSync self.setStackPolicyAsyncOverride = setStackPolicyAsync self.setStackPolicySyncOverride = setStackPolicySync self.setTypeConfigurationAsyncOverride = setTypeConfigurationAsync @@ -2397,6 +2403,44 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { throw error } + /** + Invokes the RollbackStack operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - completion: The RollbackStackOutputForRollbackStack object or an error will be passed to this + callback when the operation is complete. The RollbackStackOutputForRollbackStack + object will be validated before being returned to caller. + The possible errors are: tokenAlreadyExists. + */ + public func rollbackStackAsync( + input: CloudformationModel.RollbackStackInput, + completion: @escaping (Result) -> ()) throws { + if let rollbackStackAsyncOverride = rollbackStackAsyncOverride { + return try rollbackStackAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the RollbackStack operation waiting for the response before returning. + + - Parameters: + - input: The validated RollbackStackInput object being passed to this operation. + - Returns: The RollbackStackOutputForRollbackStack object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: tokenAlreadyExists. + */ + public func rollbackStackSync( + input: CloudformationModel.RollbackStackInput) throws -> CloudformationModel.RollbackStackOutputForRollbackStack { + if let rollbackStackSyncOverride = rollbackStackSyncOverride { + return try rollbackStackSyncOverride(input) + } + + throw error + } + /** Invokes the SetStackPolicy operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift b/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift index e662ce8c..73518ff3 100644 --- a/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift +++ b/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift @@ -1450,6 +1450,7 @@ public extension ExecuteChangeSetInput { let defaultInstance = CloudformationModel.ExecuteChangeSetInput( changeSetName: "0", clientRequestToken: nil, + disableRollback: nil, stackName: nil) return defaultInstance @@ -2623,6 +2624,44 @@ public extension RollbackConfiguration { }() } +public extension RollbackStackInput { + /** + Default instance of the RollbackStackInput structure. + */ + static let __default: CloudformationModel.RollbackStackInput = { + let defaultInstance = CloudformationModel.RollbackStackInput( + clientRequestToken: nil, + roleARN: nil, + stackName: "0") + + return defaultInstance + }() +} + +public extension RollbackStackOutput { + /** + Default instance of the RollbackStackOutput structure. + */ + static let __default: CloudformationModel.RollbackStackOutput = { + let defaultInstance = CloudformationModel.RollbackStackOutput( + stackId: nil) + + return defaultInstance + }() +} + +public extension RollbackStackOutputForRollbackStack { + /** + Default instance of the RollbackStackOutputForRollbackStack structure. + */ + static let __default: CloudformationModel.RollbackStackOutputForRollbackStack = { + let defaultInstance = CloudformationModel.RollbackStackOutputForRollbackStack( + rollbackStackResult: RollbackStackOutput.__default) + + return defaultInstance + }() +} + public extension RollbackTrigger { /** Default instance of the RollbackTrigger structure. @@ -3455,6 +3494,7 @@ public extension UpdateStackInput { let defaultInstance = CloudformationModel.UpdateStackInput( capabilities: nil, clientRequestToken: nil, + disableRollback: nil, notificationARNs: nil, parameters: nil, resourceTypes: nil, diff --git a/Sources/CloudformationModel/CloudformationModelOperations.swift b/Sources/CloudformationModel/CloudformationModelOperations.swift index 30a3a749..c2488d23 100644 --- a/Sources/CloudformationModel/CloudformationModelOperations.swift +++ b/Sources/CloudformationModel/CloudformationModelOperations.swift @@ -79,6 +79,7 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert case recordHandlerProgress = "RecordHandlerProgress" case registerPublisher = "RegisterPublisher" case registerType = "RegisterType" + case rollbackStack = "RollbackStack" case setStackPolicy = "SetStackPolicy" case setTypeConfiguration = "SetTypeConfiguration" case setTypeDefaultVersion = "SetTypeDefaultVersion" @@ -203,6 +204,8 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert return "/" case .registerType: return "/" + case .rollbackStack: + return "/" case .setStackPolicy: return "/" case .setTypeConfiguration: diff --git a/Sources/CloudformationModel/CloudformationModelStructures.swift b/Sources/CloudformationModel/CloudformationModelStructures.swift index 04c6deb1..94479227 100644 --- a/Sources/CloudformationModel/CloudformationModelStructures.swift +++ b/Sources/CloudformationModel/CloudformationModelStructures.swift @@ -2462,19 +2462,23 @@ public struct EstimateTemplateCostOutputForEstimateTemplateCost: Codable, Equata public struct ExecuteChangeSetInput: Codable, Equatable { public var changeSetName: ChangeSetNameOrId public var clientRequestToken: ClientRequestToken? + public var disableRollback: DisableRollback? public var stackName: StackNameOrId? public init(changeSetName: ChangeSetNameOrId, clientRequestToken: ClientRequestToken? = nil, + disableRollback: DisableRollback? = nil, stackName: StackNameOrId? = nil) { self.changeSetName = changeSetName self.clientRequestToken = clientRequestToken + self.disableRollback = disableRollback self.stackName = stackName } enum CodingKeys: String, CodingKey { case changeSetName = "ChangeSetName" case clientRequestToken = "ClientRequestToken" + case disableRollback = "DisableRollback" case stackName = "StackName" } @@ -4333,6 +4337,63 @@ public struct RollbackConfiguration: Codable, Equatable { } } +public struct RollbackStackInput: Codable, Equatable { + public var clientRequestToken: ClientRequestToken? + public var roleARN: RoleARN? + public var stackName: StackNameOrId + + public init(clientRequestToken: ClientRequestToken? = nil, + roleARN: RoleARN? = nil, + stackName: StackNameOrId) { + self.clientRequestToken = clientRequestToken + self.roleARN = roleARN + self.stackName = stackName + } + + enum CodingKeys: String, CodingKey { + case clientRequestToken = "ClientRequestToken" + case roleARN = "RoleARN" + case stackName = "StackName" + } + + public func validate() throws { + try clientRequestToken?.validateAsClientRequestToken() + try roleARN?.validateAsRoleARN() + try stackName.validateAsStackNameOrId() + } +} + +public struct RollbackStackOutput: Codable, Equatable { + public var stackId: StackId? + + public init(stackId: StackId? = nil) { + self.stackId = stackId + } + + enum CodingKeys: String, CodingKey { + case stackId = "StackId" + } + + public func validate() throws { + } +} + +public struct RollbackStackOutputForRollbackStack: Codable, Equatable { + public var rollbackStackResult: RollbackStackOutput + + public init(rollbackStackResult: RollbackStackOutput) { + self.rollbackStackResult = rollbackStackResult + } + + enum CodingKeys: String, CodingKey { + case rollbackStackResult = "RollbackStackResult" + } + + public func validate() throws { + try rollbackStackResult.validate() + } +} + public struct RollbackTrigger: Codable, Equatable { public var arn: Arn public var type: Type @@ -6009,6 +6070,7 @@ public struct TypeVersionSummary: Codable, Equatable { public struct UpdateStackInput: Codable, Equatable { public var capabilities: Capabilities? public var clientRequestToken: ClientRequestToken? + public var disableRollback: DisableRollback? public var notificationARNs: NotificationARNs? public var parameters: Parameters? public var resourceTypes: ResourceTypes? @@ -6026,6 +6088,7 @@ public struct UpdateStackInput: Codable, Equatable { public init(capabilities: Capabilities? = nil, clientRequestToken: ClientRequestToken? = nil, + disableRollback: DisableRollback? = nil, notificationARNs: NotificationARNs? = nil, parameters: Parameters? = nil, resourceTypes: ResourceTypes? = nil, @@ -6042,6 +6105,7 @@ public struct UpdateStackInput: Codable, Equatable { usePreviousTemplate: UsePreviousTemplate? = nil) { self.capabilities = capabilities self.clientRequestToken = clientRequestToken + self.disableRollback = disableRollback self.notificationARNs = notificationARNs self.parameters = parameters self.resourceTypes = resourceTypes @@ -6061,6 +6125,7 @@ public struct UpdateStackInput: Codable, Equatable { enum CodingKeys: String, CodingKey { case capabilities = "Capabilities" case clientRequestToken = "ClientRequestToken" + case disableRollback = "DisableRollback" case notificationARNs = "NotificationARNs" case parameters = "Parameters" case resourceTypes = "ResourceTypes" diff --git a/Sources/CloudformationModel/CloudformationModelTypes.swift b/Sources/CloudformationModel/CloudformationModelTypes.swift index 434545d3..41238286 100644 --- a/Sources/CloudformationModel/CloudformationModelTypes.swift +++ b/Sources/CloudformationModel/CloudformationModelTypes.swift @@ -998,9 +998,15 @@ public enum ResourceStatus: String, Codable, CustomStringConvertible { case importRollbackComplete = "IMPORT_ROLLBACK_COMPLETE" case importRollbackFailed = "IMPORT_ROLLBACK_FAILED" case importRollbackInProgress = "IMPORT_ROLLBACK_IN_PROGRESS" + case rollbackComplete = "ROLLBACK_COMPLETE" + case rollbackFailed = "ROLLBACK_FAILED" + case rollbackInProgress = "ROLLBACK_IN_PROGRESS" case updateComplete = "UPDATE_COMPLETE" case updateFailed = "UPDATE_FAILED" case updateInProgress = "UPDATE_IN_PROGRESS" + case updateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE" + case updateRollbackFailed = "UPDATE_ROLLBACK_FAILED" + case updateRollbackInProgress = "UPDATE_ROLLBACK_IN_PROGRESS" public var description: String { return rawValue @@ -1425,6 +1431,7 @@ public enum StackStatus: String, Codable, CustomStringConvertible { case rollbackInProgress = "ROLLBACK_IN_PROGRESS" case updateComplete = "UPDATE_COMPLETE" case updateCompleteCleanupInProgress = "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS" + case updateFailed = "UPDATE_FAILED" case updateInProgress = "UPDATE_IN_PROGRESS" case updateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE" case updateRollbackCompleteCleanupInProgress = "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS" diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift index e956baf5..c2befe20 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift @@ -12233,6 +12233,7 @@ public extension ImportImageRequest { static let __default: ElasticComputeCloudModel.ImportImageRequest = { let defaultInstance = ElasticComputeCloudModel.ImportImageRequest( architecture: nil, + bootMode: nil, clientData: nil, clientToken: nil, description: nil, @@ -12286,6 +12287,7 @@ public extension ImportImageTask { static let __default: ElasticComputeCloudModel.ImportImageTask = { let defaultInstance = ElasticComputeCloudModel.ImportImageTask( architecture: nil, + bootMode: nil, description: nil, encrypted: nil, hypervisor: nil, @@ -12904,6 +12906,7 @@ public extension InstanceMetadataOptionsRequest { static let __default: ElasticComputeCloudModel.InstanceMetadataOptionsRequest = { let defaultInstance = ElasticComputeCloudModel.InstanceMetadataOptionsRequest( httpEndpoint: nil, + httpProtocolIpv6: nil, httpPutResponseHopLimit: nil, httpTokens: nil) @@ -12918,6 +12921,7 @@ public extension InstanceMetadataOptionsResponse { static let __default: ElasticComputeCloudModel.InstanceMetadataOptionsResponse = { let defaultInstance = ElasticComputeCloudModel.InstanceMetadataOptionsResponse( httpEndpoint: nil, + httpProtocolIpv6: nil, httpPutResponseHopLimit: nil, httpTokens: nil, state: nil) @@ -14786,6 +14790,7 @@ public extension ModifyInstanceMetadataOptionsRequest { let defaultInstance = ElasticComputeCloudModel.ModifyInstanceMetadataOptionsRequest( dryRun: nil, httpEndpoint: nil, + httpProtocolIpv6: nil, httpPutResponseHopLimit: nil, httpTokens: nil, instanceId: "value") @@ -14874,6 +14879,7 @@ public extension ModifyManagedPrefixListRequest { addEntries: nil, currentVersion: nil, dryRun: nil, + maxEntries: nil, prefixListId: "value", prefixListName: nil, removeEntries: nil) @@ -15797,6 +15803,7 @@ public extension NetworkInfo { efaInfo: nil, efaSupported: nil, enaSupport: nil, + encryptionInTransitSupported: nil, ipv4AddressesPerInterface: nil, ipv6AddressesPerInterface: nil, ipv6Supported: nil, diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift index 1cd9e30f..feeabdb2 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift @@ -20984,6 +20984,7 @@ public struct ImportImageLicenseConfigurationResponse: Codable, Equatable { public struct ImportImageRequest: Codable, Equatable { public var architecture: String? + public var bootMode: BootModeValues? public var clientData: ClientData? public var clientToken: String? public var description: String? @@ -21000,6 +21001,7 @@ public struct ImportImageRequest: Codable, Equatable { public var usageOperation: String? public init(architecture: String? = nil, + bootMode: BootModeValues? = nil, clientData: ClientData? = nil, clientToken: String? = nil, description: String? = nil, @@ -21015,6 +21017,7 @@ public struct ImportImageRequest: Codable, Equatable { tagSpecifications: TagSpecificationList? = nil, usageOperation: String? = nil) { self.architecture = architecture + self.bootMode = bootMode self.clientData = clientData self.clientToken = clientToken self.description = description @@ -21033,6 +21036,7 @@ public struct ImportImageRequest: Codable, Equatable { enum CodingKeys: String, CodingKey { case architecture = "Architecture" + case bootMode = "BootMode" case clientData = "ClientData" case clientToken = "ClientToken" case description = "Description" @@ -21131,6 +21135,7 @@ public struct ImportImageResult: Codable, Equatable { public struct ImportImageTask: Codable, Equatable { public var architecture: String? + public var bootMode: BootModeValues? public var description: String? public var encrypted: Boolean? public var hypervisor: String? @@ -21148,6 +21153,7 @@ public struct ImportImageTask: Codable, Equatable { public var usageOperation: String? public init(architecture: String? = nil, + bootMode: BootModeValues? = nil, description: String? = nil, encrypted: Boolean? = nil, hypervisor: String? = nil, @@ -21164,6 +21170,7 @@ public struct ImportImageTask: Codable, Equatable { tags: TagList? = nil, usageOperation: String? = nil) { self.architecture = architecture + self.bootMode = bootMode self.description = description self.encrypted = encrypted self.hypervisor = hypervisor @@ -21183,6 +21190,7 @@ public struct ImportImageTask: Codable, Equatable { enum CodingKeys: String, CodingKey { case architecture + case bootMode case description case encrypted case hypervisor @@ -22394,19 +22402,23 @@ public struct InstanceMarketOptionsRequest: Codable, Equatable { public struct InstanceMetadataOptionsRequest: Codable, Equatable { public var httpEndpoint: InstanceMetadataEndpointState? + public var httpProtocolIpv6: InstanceMetadataProtocolState? public var httpPutResponseHopLimit: Integer? public var httpTokens: HttpTokensState? public init(httpEndpoint: InstanceMetadataEndpointState? = nil, + httpProtocolIpv6: InstanceMetadataProtocolState? = nil, httpPutResponseHopLimit: Integer? = nil, httpTokens: HttpTokensState? = nil) { self.httpEndpoint = httpEndpoint + self.httpProtocolIpv6 = httpProtocolIpv6 self.httpPutResponseHopLimit = httpPutResponseHopLimit self.httpTokens = httpTokens } enum CodingKeys: String, CodingKey { case httpEndpoint = "HttpEndpoint" + case httpProtocolIpv6 = "HttpProtocolIpv6" case httpPutResponseHopLimit = "HttpPutResponseHopLimit" case httpTokens = "HttpTokens" } @@ -22417,15 +22429,18 @@ public struct InstanceMetadataOptionsRequest: Codable, Equatable { public struct InstanceMetadataOptionsResponse: Codable, Equatable { public var httpEndpoint: InstanceMetadataEndpointState? + public var httpProtocolIpv6: InstanceMetadataProtocolState? public var httpPutResponseHopLimit: Integer? public var httpTokens: HttpTokensState? public var state: InstanceMetadataOptionsState? public init(httpEndpoint: InstanceMetadataEndpointState? = nil, + httpProtocolIpv6: InstanceMetadataProtocolState? = nil, httpPutResponseHopLimit: Integer? = nil, httpTokens: HttpTokensState? = nil, state: InstanceMetadataOptionsState? = nil) { self.httpEndpoint = httpEndpoint + self.httpProtocolIpv6 = httpProtocolIpv6 self.httpPutResponseHopLimit = httpPutResponseHopLimit self.httpTokens = httpTokens self.state = state @@ -22433,6 +22448,7 @@ public struct InstanceMetadataOptionsResponse: Codable, Equatable { enum CodingKeys: String, CodingKey { case httpEndpoint + case httpProtocolIpv6 case httpPutResponseHopLimit case httpTokens case state @@ -25895,17 +25911,20 @@ public struct ModifyInstanceEventWindowResult: Codable, Equatable { public struct ModifyInstanceMetadataOptionsRequest: Codable, Equatable { public var dryRun: Boolean? public var httpEndpoint: InstanceMetadataEndpointState? + public var httpProtocolIpv6: InstanceMetadataProtocolState? public var httpPutResponseHopLimit: Integer? public var httpTokens: HttpTokensState? public var instanceId: InstanceId public init(dryRun: Boolean? = nil, httpEndpoint: InstanceMetadataEndpointState? = nil, + httpProtocolIpv6: InstanceMetadataProtocolState? = nil, httpPutResponseHopLimit: Integer? = nil, httpTokens: HttpTokensState? = nil, instanceId: InstanceId) { self.dryRun = dryRun self.httpEndpoint = httpEndpoint + self.httpProtocolIpv6 = httpProtocolIpv6 self.httpPutResponseHopLimit = httpPutResponseHopLimit self.httpTokens = httpTokens self.instanceId = instanceId @@ -25914,6 +25933,7 @@ public struct ModifyInstanceMetadataOptionsRequest: Codable, Equatable { enum CodingKeys: String, CodingKey { case dryRun = "DryRun" case httpEndpoint = "HttpEndpoint" + case httpProtocolIpv6 = "HttpProtocolIpv6" case httpPutResponseHopLimit = "HttpPutResponseHopLimit" case httpTokens = "HttpTokens" case instanceId = "InstanceId" @@ -26049,6 +26069,7 @@ public struct ModifyManagedPrefixListRequest: Codable, Equatable { public var addEntries: AddPrefixListEntries? public var currentVersion: Long? public var dryRun: Boolean? + public var maxEntries: Integer? public var prefixListId: PrefixListResourceId public var prefixListName: String? public var removeEntries: RemovePrefixListEntries? @@ -26056,12 +26077,14 @@ public struct ModifyManagedPrefixListRequest: Codable, Equatable { public init(addEntries: AddPrefixListEntries? = nil, currentVersion: Long? = nil, dryRun: Boolean? = nil, + maxEntries: Integer? = nil, prefixListId: PrefixListResourceId, prefixListName: String? = nil, removeEntries: RemovePrefixListEntries? = nil) { self.addEntries = addEntries self.currentVersion = currentVersion self.dryRun = dryRun + self.maxEntries = maxEntries self.prefixListId = prefixListId self.prefixListName = prefixListName self.removeEntries = removeEntries @@ -26071,6 +26094,7 @@ public struct ModifyManagedPrefixListRequest: Codable, Equatable { case addEntries = "AddEntry" case currentVersion = "CurrentVersion" case dryRun = "DryRun" + case maxEntries = "MaxEntries" case prefixListId = "PrefixListId" case prefixListName = "PrefixListName" case removeEntries = "RemoveEntry" @@ -27728,6 +27752,7 @@ public struct NetworkInfo: Codable, Equatable { public var efaInfo: EfaInfo? public var efaSupported: EfaSupportedFlag? public var enaSupport: EnaSupport? + public var encryptionInTransitSupported: EncryptionInTransitSupported? public var ipv4AddressesPerInterface: MaxIpv4AddrPerInterface? public var ipv6AddressesPerInterface: MaxIpv6AddrPerInterface? public var ipv6Supported: Ipv6Flag? @@ -27740,6 +27765,7 @@ public struct NetworkInfo: Codable, Equatable { efaInfo: EfaInfo? = nil, efaSupported: EfaSupportedFlag? = nil, enaSupport: EnaSupport? = nil, + encryptionInTransitSupported: EncryptionInTransitSupported? = nil, ipv4AddressesPerInterface: MaxIpv4AddrPerInterface? = nil, ipv6AddressesPerInterface: MaxIpv6AddrPerInterface? = nil, ipv6Supported: Ipv6Flag? = nil, @@ -27751,6 +27777,7 @@ public struct NetworkInfo: Codable, Equatable { self.efaInfo = efaInfo self.efaSupported = efaSupported self.enaSupport = enaSupport + self.encryptionInTransitSupported = encryptionInTransitSupported self.ipv4AddressesPerInterface = ipv4AddressesPerInterface self.ipv6AddressesPerInterface = ipv6AddressesPerInterface self.ipv6Supported = ipv6Supported @@ -27765,6 +27792,7 @@ public struct NetworkInfo: Codable, Equatable { case efaInfo case efaSupported case enaSupport + case encryptionInTransitSupported case ipv4AddressesPerInterface case ipv6AddressesPerInterface case ipv6Supported diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift index fb0b2b45..0c11a7be 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift @@ -1849,6 +1849,11 @@ public typealias EnableFastSnapshotRestoreStateErrorSet = [EnableFastSnapshotRes */ public typealias EnableFastSnapshotRestoreSuccessSet = [EnableFastSnapshotRestoreSuccessItem] +/** + Type definition for the EncryptionInTransitSupported field. + */ +public typealias EncryptionInTransitSupported = Bool + /** Enumeration restricting the values of the EndDateType field. */ @@ -2959,6 +2964,20 @@ public enum InstanceMetadataOptionsState: String, Codable, CustomStringConvertib public static let __default: InstanceMetadataOptionsState = .applied } +/** + Enumeration restricting the values of the InstanceMetadataProtocolState field. + */ +public enum InstanceMetadataProtocolState: String, Codable, CustomStringConvertible { + case disabled + case enabled + + public var description: String { + return rawValue + } + + public static let __default: InstanceMetadataProtocolState = .disabled +} + /** Type definition for the InstanceMonitoringList field. */ @@ -3278,6 +3297,15 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case m6gdMedium = "m6gd.medium" case m6gdMetal = "m6gd.metal" case m6gdXlarge = "m6gd.xlarge" + case m6i12xlarge = "m6i.12xlarge" + case m6i16xlarge = "m6i.16xlarge" + case m6i24xlarge = "m6i.24xlarge" + case m6i2xlarge = "m6i.2xlarge" + case m6i32xlarge = "m6i.32xlarge" + case m6i4xlarge = "m6i.4xlarge" + case m6i8xlarge = "m6i.8xlarge" + case m6iLarge = "m6i.large" + case m6iXlarge = "m6i.xlarge" case mac1Metal = "mac1.metal" case p216xlarge = "p2.16xlarge" case p28xlarge = "p2.8xlarge" diff --git a/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift b/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift index f811933f..f9f10c5c 100644 --- a/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift +++ b/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift @@ -177,6 +177,7 @@ public enum QueueAttributeName: String, Codable, CustomStringConvertible { case policy = "Policy" case queuearn = "QueueArn" case receivemessagewaittimeseconds = "ReceiveMessageWaitTimeSeconds" + case redriveallowpolicy = "RedriveAllowPolicy" case redrivepolicy = "RedrivePolicy" case visibilitytimeout = "VisibilityTimeout"