diff --git a/Sources/AppConfigClient/AppConfigOperationsClientOutput.swift b/Sources/AppConfigClient/AppConfigOperationsClientOutput.swift index ee7edde..17ab5f8 100644 --- a/Sources/AppConfigClient/AppConfigOperationsClientOutput.swift +++ b/Sources/AppConfigClient/AppConfigOperationsClientOutput.swift @@ -120,6 +120,7 @@ extension HostedConfigurationVersion: HTTPResponseOutputProtocol { content: body, contentType: headers.contentType, description: headers.description, + versionLabel: headers.versionLabel, versionNumber: headers.versionNumber) } } diff --git a/Sources/AppConfigModel/AppConfigModelDefaultInstances.swift b/Sources/AppConfigModel/AppConfigModelDefaultInstances.swift index 3d35285..dc496ca 100644 --- a/Sources/AppConfigModel/AppConfigModelDefaultInstances.swift +++ b/Sources/AppConfigModel/AppConfigModelDefaultInstances.swift @@ -314,7 +314,8 @@ public extension CreateHostedConfigurationVersionRequest { content: Data(), contentType: "0", description: nil, - latestVersionNumber: nil) + latestVersionNumber: nil, + versionLabel: nil) return defaultInstance }() @@ -431,6 +432,8 @@ public extension Deployment { finalBakeTimeInMinutes: nil, growthFactor: nil, growthType: nil, + kmsKeyArn: nil, + kmsKeyIdentifier: nil, percentageComplete: nil, startedAt: nil, state: nil) @@ -773,6 +776,7 @@ public extension HostedConfigurationVersion { content: nil, contentType: nil, description: nil, + versionLabel: nil, versionNumber: nil) return defaultInstance @@ -789,6 +793,7 @@ public extension HostedConfigurationVersionSummary { configurationProfileId: nil, contentType: nil, description: nil, + versionLabel: nil, versionNumber: nil) return defaultInstance @@ -945,7 +950,8 @@ public extension ListHostedConfigurationVersionsRequest { applicationId: "", configurationProfileId: "", maxResults: nil, - nextToken: nil) + nextToken: nil, + versionLabel: nil) return defaultInstance }() @@ -1053,6 +1059,7 @@ public extension StartDeploymentRequest { deploymentStrategyId: "", description: nil, environmentId: "", + kmsKeyIdentifier: nil, tags: nil) return defaultInstance diff --git a/Sources/AppConfigModel/AppConfigModelOperations.swift b/Sources/AppConfigModel/AppConfigModelOperations.swift index a7b2432..d6ba4c0 100644 --- a/Sources/AppConfigModel/AppConfigModelOperations.swift +++ b/Sources/AppConfigModel/AppConfigModelOperations.swift @@ -441,24 +441,29 @@ public struct CreateHostedConfigurationVersionOperationInputAdditionalHeaders: C public var contentType: StringWithLengthBetween1And255 public var description: Description? public var latestVersionNumber: Integer? + public var versionLabel: VersionLabel? public init(contentType: StringWithLengthBetween1And255, description: Description? = nil, - latestVersionNumber: Integer? = nil) { + latestVersionNumber: Integer? = nil, + versionLabel: VersionLabel? = nil) { self.contentType = contentType self.description = description self.latestVersionNumber = latestVersionNumber + self.versionLabel = versionLabel } enum CodingKeys: String, CodingKey { case contentType = "Content-Type" case description = "Description" case latestVersionNumber = "Latest-Version-Number" + case versionLabel = "VersionLabel" } public func validate() throws { try contentType.validateAsStringWithLengthBetween1And255() try description?.validateAsDescription() + try versionLabel?.validateAsVersionLabel() } } @@ -467,7 +472,8 @@ public extension CreateHostedConfigurationVersionRequest { return CreateHostedConfigurationVersionOperationInputAdditionalHeaders( contentType: contentType, description: description, - latestVersionNumber: latestVersionNumber) + latestVersionNumber: latestVersionNumber, + versionLabel: versionLabel) } } @@ -480,17 +486,20 @@ public struct CreateHostedConfigurationVersionOperationOutputHeaders: Codable, E public var configurationProfileId: Id? public var contentType: StringWithLengthBetween1And255? public var description: Description? + public var versionLabel: VersionLabel? public var versionNumber: Integer? public init(applicationId: Id? = nil, configurationProfileId: Id? = nil, contentType: StringWithLengthBetween1And255? = nil, description: Description? = nil, + versionLabel: VersionLabel? = nil, versionNumber: Integer? = nil) { self.applicationId = applicationId self.configurationProfileId = configurationProfileId self.contentType = contentType self.description = description + self.versionLabel = versionLabel self.versionNumber = versionNumber } @@ -499,6 +508,7 @@ public struct CreateHostedConfigurationVersionOperationOutputHeaders: Codable, E case configurationProfileId = "Configuration-Profile-Id" case contentType = "Content-Type" case description = "Description" + case versionLabel = "VersionLabel" case versionNumber = "Version-Number" } @@ -507,6 +517,7 @@ public struct CreateHostedConfigurationVersionOperationOutputHeaders: Codable, E try configurationProfileId?.validateAsId() try contentType?.validateAsStringWithLengthBetween1And255() try description?.validateAsDescription() + try versionLabel?.validateAsVersionLabel() } } @@ -517,6 +528,7 @@ public extension HostedConfigurationVersion { configurationProfileId: configurationProfileId, contentType: contentType, description: description, + versionLabel: versionLabel, versionNumber: versionNumber) } } @@ -1526,21 +1538,26 @@ public extension ListHostedConfigurationVersionsRequest { public struct ListHostedConfigurationVersionsOperationInputQuery: Codable, Equatable { public var maxResults: MaxResults? public var nextToken: NextToken? + public var versionLabel: QueryName? public init(maxResults: MaxResults? = nil, - nextToken: NextToken? = nil) { + nextToken: NextToken? = nil, + versionLabel: QueryName? = nil) { self.maxResults = maxResults self.nextToken = nextToken + self.versionLabel = versionLabel } enum CodingKeys: String, CodingKey { case maxResults = "max_results" case nextToken = "next_token" + case versionLabel = "version_label" } public func validate() throws { try maxResults?.validateAsMaxResults() try nextToken?.validateAsNextToken() + try versionLabel?.validateAsQueryName() } } @@ -1548,7 +1565,8 @@ public extension ListHostedConfigurationVersionsRequest { func asAppConfigModelListHostedConfigurationVersionsOperationInputQuery() -> ListHostedConfigurationVersionsOperationInputQuery { return ListHostedConfigurationVersionsOperationInputQuery( maxResults: maxResults, - nextToken: nextToken) + nextToken: nextToken, + versionLabel: versionLabel) } } @@ -1621,17 +1639,20 @@ public struct StartDeploymentOperationInputBody: Codable, Equatable { public var configurationVersion: Version public var deploymentStrategyId: DeploymentStrategyId public var description: Description? + public var kmsKeyIdentifier: Identifier? public var tags: TagMap? public init(configurationProfileId: Id, configurationVersion: Version, deploymentStrategyId: DeploymentStrategyId, description: Description? = nil, + kmsKeyIdentifier: Identifier? = nil, tags: TagMap? = nil) { self.configurationProfileId = configurationProfileId self.configurationVersion = configurationVersion self.deploymentStrategyId = deploymentStrategyId self.description = description + self.kmsKeyIdentifier = kmsKeyIdentifier self.tags = tags } @@ -1640,6 +1661,7 @@ public struct StartDeploymentOperationInputBody: Codable, Equatable { case configurationVersion = "ConfigurationVersion" case deploymentStrategyId = "DeploymentStrategyId" case description = "Description" + case kmsKeyIdentifier = "KmsKeyIdentifier" case tags = "Tags" } @@ -1648,6 +1670,7 @@ public struct StartDeploymentOperationInputBody: Codable, Equatable { try configurationVersion.validateAsVersion() try deploymentStrategyId.validateAsDeploymentStrategyId() try description?.validateAsDescription() + try kmsKeyIdentifier?.validateAsIdentifier() } } @@ -1658,6 +1681,7 @@ public extension StartDeploymentRequest { configurationVersion: configurationVersion, deploymentStrategyId: deploymentStrategyId, description: description, + kmsKeyIdentifier: kmsKeyIdentifier, tags: tags) } } diff --git a/Sources/AppConfigModel/AppConfigModelStructures.swift b/Sources/AppConfigModel/AppConfigModelStructures.swift index 0ab1665..2a8b241 100644 --- a/Sources/AppConfigModel/AppConfigModelStructures.swift +++ b/Sources/AppConfigModel/AppConfigModelStructures.swift @@ -597,19 +597,22 @@ public struct CreateHostedConfigurationVersionRequest: Codable, Equatable { public var contentType: StringWithLengthBetween1And255 public var description: Description? public var latestVersionNumber: Integer? + public var versionLabel: VersionLabel? public init(applicationId: Id, configurationProfileId: Id, content: Blob, contentType: StringWithLengthBetween1And255, description: Description? = nil, - latestVersionNumber: Integer? = nil) { + latestVersionNumber: Integer? = nil, + versionLabel: VersionLabel? = nil) { self.applicationId = applicationId self.configurationProfileId = configurationProfileId self.content = content self.contentType = contentType self.description = description self.latestVersionNumber = latestVersionNumber + self.versionLabel = versionLabel } enum CodingKeys: String, CodingKey { @@ -619,6 +622,7 @@ public struct CreateHostedConfigurationVersionRequest: Codable, Equatable { case contentType = "Content-Type" case description = "Description" case latestVersionNumber = "Latest-Version-Number" + case versionLabel = "VersionLabel" } public func validate() throws { @@ -626,6 +630,7 @@ public struct CreateHostedConfigurationVersionRequest: Codable, Equatable { try configurationProfileId.validateAsId() try contentType.validateAsStringWithLengthBetween1And255() try description?.validateAsDescription() + try versionLabel?.validateAsVersionLabel() } } @@ -781,6 +786,8 @@ public struct Deployment: Codable, Equatable { public var finalBakeTimeInMinutes: MinutesBetween0And24Hours? public var growthFactor: Percentage? public var growthType: GrowthType? + public var kmsKeyArn: Arn? + public var kmsKeyIdentifier: Identifier? public var percentageComplete: Percentage? public var startedAt: Iso8601DateTime? public var state: DeploymentState? @@ -801,6 +808,8 @@ public struct Deployment: Codable, Equatable { finalBakeTimeInMinutes: MinutesBetween0And24Hours? = nil, growthFactor: Percentage? = nil, growthType: GrowthType? = nil, + kmsKeyArn: Arn? = nil, + kmsKeyIdentifier: Identifier? = nil, percentageComplete: Percentage? = nil, startedAt: Iso8601DateTime? = nil, state: DeploymentState? = nil) { @@ -820,6 +829,8 @@ public struct Deployment: Codable, Equatable { self.finalBakeTimeInMinutes = finalBakeTimeInMinutes self.growthFactor = growthFactor self.growthType = growthType + self.kmsKeyArn = kmsKeyArn + self.kmsKeyIdentifier = kmsKeyIdentifier self.percentageComplete = percentageComplete self.startedAt = startedAt self.state = state @@ -842,6 +853,8 @@ public struct Deployment: Codable, Equatable { case finalBakeTimeInMinutes = "FinalBakeTimeInMinutes" case growthFactor = "GrowthFactor" case growthType = "GrowthType" + case kmsKeyArn = "KmsKeyArn" + case kmsKeyIdentifier = "KmsKeyIdentifier" case percentageComplete = "PercentageComplete" case startedAt = "StartedAt" case state = "State" @@ -859,6 +872,8 @@ public struct Deployment: Codable, Equatable { try environmentId?.validateAsId() try finalBakeTimeInMinutes?.validateAsMinutesBetween0And24Hours() try growthFactor?.validateAsPercentage() + try kmsKeyArn?.validateAsArn() + try kmsKeyIdentifier?.validateAsIdentifier() try percentageComplete?.validateAsPercentage() } } @@ -1490,6 +1505,7 @@ public struct HostedConfigurationVersion: Codable, Equatable { public var content: Blob? public var contentType: StringWithLengthBetween1And255? public var description: Description? + public var versionLabel: VersionLabel? public var versionNumber: Integer? public init(applicationId: Id? = nil, @@ -1497,12 +1513,14 @@ public struct HostedConfigurationVersion: Codable, Equatable { content: Blob? = nil, contentType: StringWithLengthBetween1And255? = nil, description: Description? = nil, + versionLabel: VersionLabel? = nil, versionNumber: Integer? = nil) { self.applicationId = applicationId self.configurationProfileId = configurationProfileId self.content = content self.contentType = contentType self.description = description + self.versionLabel = versionLabel self.versionNumber = versionNumber } @@ -1512,6 +1530,7 @@ public struct HostedConfigurationVersion: Codable, Equatable { case content = "Content" case contentType = "Content-Type" case description = "Description" + case versionLabel = "VersionLabel" case versionNumber = "Version-Number" } @@ -1520,6 +1539,7 @@ public struct HostedConfigurationVersion: Codable, Equatable { try configurationProfileId?.validateAsId() try contentType?.validateAsStringWithLengthBetween1And255() try description?.validateAsDescription() + try versionLabel?.validateAsVersionLabel() } } @@ -1528,17 +1548,20 @@ public struct HostedConfigurationVersionSummary: Codable, Equatable { public var configurationProfileId: Id? public var contentType: StringWithLengthBetween1And255? public var description: Description? + public var versionLabel: VersionLabel? public var versionNumber: Integer? public init(applicationId: Id? = nil, configurationProfileId: Id? = nil, contentType: StringWithLengthBetween1And255? = nil, description: Description? = nil, + versionLabel: VersionLabel? = nil, versionNumber: Integer? = nil) { self.applicationId = applicationId self.configurationProfileId = configurationProfileId self.contentType = contentType self.description = description + self.versionLabel = versionLabel self.versionNumber = versionNumber } @@ -1547,6 +1570,7 @@ public struct HostedConfigurationVersionSummary: Codable, Equatable { case configurationProfileId = "ConfigurationProfileId" case contentType = "ContentType" case description = "Description" + case versionLabel = "VersionLabel" case versionNumber = "VersionNumber" } @@ -1555,6 +1579,7 @@ public struct HostedConfigurationVersionSummary: Codable, Equatable { try configurationProfileId?.validateAsId() try contentType?.validateAsStringWithLengthBetween1And255() try description?.validateAsDescription() + try versionLabel?.validateAsVersionLabel() } } @@ -1820,15 +1845,18 @@ public struct ListHostedConfigurationVersionsRequest: Codable, Equatable { public var configurationProfileId: Id public var maxResults: MaxResults? public var nextToken: NextToken? + public var versionLabel: QueryName? public init(applicationId: Id, configurationProfileId: Id, maxResults: MaxResults? = nil, - nextToken: NextToken? = nil) { + nextToken: NextToken? = nil, + versionLabel: QueryName? = nil) { self.applicationId = applicationId self.configurationProfileId = configurationProfileId self.maxResults = maxResults self.nextToken = nextToken + self.versionLabel = versionLabel } enum CodingKeys: String, CodingKey { @@ -1836,6 +1864,7 @@ public struct ListHostedConfigurationVersionsRequest: Codable, Equatable { case configurationProfileId = "ConfigurationProfileId" case maxResults = "max_results" case nextToken = "next_token" + case versionLabel = "version_label" } public func validate() throws { @@ -1843,6 +1872,7 @@ public struct ListHostedConfigurationVersionsRequest: Codable, Equatable { try configurationProfileId.validateAsId() try maxResults?.validateAsMaxResults() try nextToken?.validateAsNextToken() + try versionLabel?.validateAsQueryName() } } @@ -1986,6 +2016,7 @@ public struct StartDeploymentRequest: Codable, Equatable { public var deploymentStrategyId: DeploymentStrategyId public var description: Description? public var environmentId: Id + public var kmsKeyIdentifier: Identifier? public var tags: TagMap? public init(applicationId: Id, @@ -1994,6 +2025,7 @@ public struct StartDeploymentRequest: Codable, Equatable { deploymentStrategyId: DeploymentStrategyId, description: Description? = nil, environmentId: Id, + kmsKeyIdentifier: Identifier? = nil, tags: TagMap? = nil) { self.applicationId = applicationId self.configurationProfileId = configurationProfileId @@ -2001,6 +2033,7 @@ public struct StartDeploymentRequest: Codable, Equatable { self.deploymentStrategyId = deploymentStrategyId self.description = description self.environmentId = environmentId + self.kmsKeyIdentifier = kmsKeyIdentifier self.tags = tags } @@ -2011,6 +2044,7 @@ public struct StartDeploymentRequest: Codable, Equatable { case deploymentStrategyId = "DeploymentStrategyId" case description = "Description" case environmentId = "EnvironmentId" + case kmsKeyIdentifier = "KmsKeyIdentifier" case tags = "Tags" } @@ -2021,6 +2055,7 @@ public struct StartDeploymentRequest: Codable, Equatable { try deploymentStrategyId.validateAsDeploymentStrategyId() try description?.validateAsDescription() try environmentId.validateAsId() + try kmsKeyIdentifier?.validateAsIdentifier() } } diff --git a/Sources/AppConfigModel/AppConfigModelTypes.swift b/Sources/AppConfigModel/AppConfigModelTypes.swift index 12bf9c9..6bbc7b2 100644 --- a/Sources/AppConfigModel/AppConfigModelTypes.swift +++ b/Sources/AppConfigModel/AppConfigModelTypes.swift @@ -422,6 +422,11 @@ public typealias ValidatorTypeList = [ValidatorType] */ public typealias Version = String +/** + Type definition for the VersionLabel field. + */ +public typealias VersionLabel = String + /** Validation for the ActionList field. */ @@ -844,3 +849,24 @@ extension AppConfigModel.Version { } } } + +/** + Validation for the VersionLabel field. +*/ +extension AppConfigModel.VersionLabel { + public func validateAsVersionLabel() throws { + if self.count < 1 { + throw AppConfigError.validationError(reason: "The provided value to VersionLabel violated the minimum length constraint.") + } + + if self.count > 64 { + throw AppConfigError.validationError(reason: "The provided value to VersionLabel violated the maximum length constraint.") + } + + guard let matchingRange = self.range(of: ".*[^0-9].*", options: .regularExpression), + matchingRange == startIndex..) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.activateOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = ActivateOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.activateOrganizationsAccess.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the ActivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccessSync( + input: CloudformationModel.ActivateOrganizationsAccessInput) throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.activateOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = ActivateOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.activateOrganizationsAccess.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 ActivateType operation returning immediately and passing the response to a callback. @@ -793,6 +871,84 @@ public struct AWSCloudformationClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deactivateOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = DeactivateOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.deactivateOrganizationsAccess.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DeactivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccessSync( + input: CloudformationModel.DeactivateOrganizationsAccessInput) throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deactivateOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = DeactivateOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.deactivateOrganizationsAccess.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 DeactivateType operation returning immediately and passing the response to a callback. @@ -1490,6 +1646,84 @@ public struct AWSCloudformationClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.describeOrganizationsAccess.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DescribeOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccessSync( + input: CloudformationModel.DescribeOrganizationsAccessInput) throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.describeOrganizationsAccess.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 DescribePublisher operation returning immediately and passing the response to a callback. @@ -5268,6 +5502,46 @@ public struct AWSCloudformationClient=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) + /** + Invokes the ActivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccess( + input: CloudformationModel.ActivateOrganizationsAccessInput) async throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.activateOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = ActivateOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.activateOrganizationsAccess.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: CloudformationError = error.asTypedError() + throw typedError + } + } + /** Invokes the ActivateType operation suspending until the response is available before returning. @@ -5586,6 +5860,46 @@ public struct AWSCloudformationClient CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deactivateOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = DeactivateOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.deactivateOrganizationsAccess.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: CloudformationError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeactivateType operation suspending until the response is available before returning. @@ -5943,6 +6257,46 @@ public struct AWSCloudformationClient CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeOrganizationsAccess, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeOrganizationsAccessOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: CloudformationModelOperations.describeOrganizationsAccess.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: CloudformationError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribePublisher operation suspending until the response is available before returning. diff --git a/Sources/CloudformationClient/CloudformationClientProtocol+async.swift b/Sources/CloudformationClient/CloudformationClientProtocol+async.swift index 038402b..c9febcf 100644 --- a/Sources/CloudformationClient/CloudformationClientProtocol+async.swift +++ b/Sources/CloudformationClient/CloudformationClientProtocol+async.swift @@ -30,6 +30,33 @@ import CloudformationModel */ public extension CloudformationClientProtocol { + /** + Invokes the ActivateOrganizationsAccess operation and asynchronously returning the response. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func activateOrganizationsAccess(input: CloudformationModel.ActivateOrganizationsAccessInput) async throws + -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + return try await withCheckedThrowingContinuation { cont in + do { + try activateOrganizationsAccessAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ActivateType operation and asynchronously returning the response. @@ -242,6 +269,33 @@ public extension CloudformationClientProtocol { } } + /** + Invokes the DeactivateOrganizationsAccess operation and asynchronously returning the response. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func deactivateOrganizationsAccess(input: CloudformationModel.DeactivateOrganizationsAccessInput) async throws + -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + return try await withCheckedThrowingContinuation { cont in + do { + try deactivateOrganizationsAccessAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DeactivateType operation and asynchronously returning the response. @@ -480,6 +534,33 @@ public extension CloudformationClientProtocol { } } + /** + Invokes the DescribeOrganizationsAccess operation and asynchronously returning the response. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func describeOrganizationsAccess(input: CloudformationModel.DescribeOrganizationsAccessInput) async throws + -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + return try await withCheckedThrowingContinuation { cont in + do { + try describeOrganizationsAccessAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DescribePublisher operation and asynchronously returning the response. diff --git a/Sources/CloudformationClient/CloudformationClientProtocol.swift b/Sources/CloudformationClient/CloudformationClientProtocol.swift index 60cb9ad..7878889 100644 --- a/Sources/CloudformationClient/CloudformationClientProtocol.swift +++ b/Sources/CloudformationClient/CloudformationClientProtocol.swift @@ -29,6 +29,11 @@ import SmokeHTTPClient Client Protocol for the Cloudformation service. */ public protocol CloudformationClientProtocol: CloudformationClientProtocolV2 { + typealias ActivateOrganizationsAccessSyncType = ( + _ input: CloudformationModel.ActivateOrganizationsAccessInput) throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess + typealias ActivateOrganizationsAccessAsyncType = ( + _ input: CloudformationModel.ActivateOrganizationsAccessInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias ActivateTypeSyncType = ( _ input: CloudformationModel.ActivateTypeInput) throws -> CloudformationModel.ActivateTypeOutputForActivateType typealias ActivateTypeAsyncType = ( @@ -69,6 +74,11 @@ public protocol CloudformationClientProtocol: CloudformationClientProtocolV2 { typealias CreateStackSetAsyncType = ( _ input: CloudformationModel.CreateStackSetInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias DeactivateOrganizationsAccessSyncType = ( + _ input: CloudformationModel.DeactivateOrganizationsAccessInput) throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + typealias DeactivateOrganizationsAccessAsyncType = ( + _ input: CloudformationModel.DeactivateOrganizationsAccessInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias DeactivateTypeSyncType = ( _ input: CloudformationModel.DeactivateTypeInput) throws -> CloudformationModel.DeactivateTypeOutputForDeactivateType typealias DeactivateTypeAsyncType = ( @@ -114,6 +124,11 @@ public protocol CloudformationClientProtocol: CloudformationClientProtocolV2 { typealias DescribeChangeSetHooksAsyncType = ( _ input: CloudformationModel.DescribeChangeSetHooksInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias DescribeOrganizationsAccessSyncType = ( + _ input: CloudformationModel.DescribeOrganizationsAccessInput) throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + typealias DescribeOrganizationsAccessAsyncType = ( + _ input: CloudformationModel.DescribeOrganizationsAccessInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias DescribePublisherSyncType = ( _ input: CloudformationModel.DescribePublisherInput) throws -> CloudformationModel.DescribePublisherOutputForDescribePublisher typealias DescribePublisherAsyncType = ( @@ -360,6 +375,32 @@ public protocol CloudformationClientProtocol: CloudformationClientProtocolV2 { _ input: CloudformationModel.ValidateTemplateInput, _ completion: @escaping (Result) -> ()) throws -> () + /** + Invokes the ActivateOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - completion: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + func activateOrganizationsAccessAsync( + input: CloudformationModel.ActivateOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the ActivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func activateOrganizationsAccessSync( + input: CloudformationModel.ActivateOrganizationsAccessInput) throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess + /** Invokes the ActivateType operation returning immediately and passing the response to a callback. @@ -565,6 +606,32 @@ public protocol CloudformationClientProtocol: CloudformationClientProtocolV2 { func createStackSetSync( input: CloudformationModel.CreateStackSetInput) throws -> CloudformationModel.CreateStackSetOutputForCreateStackSet + /** + Invokes the DeactivateOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - completion: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + func deactivateOrganizationsAccessAsync( + input: CloudformationModel.DeactivateOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DeactivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func deactivateOrganizationsAccessSync( + input: CloudformationModel.DeactivateOrganizationsAccessInput) throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + /** Invokes the DeactivateType operation returning immediately and passing the response to a callback. @@ -794,6 +861,32 @@ public protocol CloudformationClientProtocol: CloudformationClientProtocolV2 { func describeChangeSetHooksSync( input: CloudformationModel.DescribeChangeSetHooksInput) throws -> CloudformationModel.DescribeChangeSetHooksOutputForDescribeChangeSetHooks + /** + Invokes the DescribeOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - completion: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + func describeOrganizationsAccessAsync( + input: CloudformationModel.DescribeOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DescribeOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func describeOrganizationsAccessSync( + input: CloudformationModel.DescribeOrganizationsAccessInput) throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + /** Invokes the DescribePublisher operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationClient/CloudformationClientProtocolV2.swift b/Sources/CloudformationClient/CloudformationClientProtocolV2.swift index bd544fc..ae3fede 100644 --- a/Sources/CloudformationClient/CloudformationClientProtocolV2.swift +++ b/Sources/CloudformationClient/CloudformationClientProtocolV2.swift @@ -30,6 +30,8 @@ import SmokeHTTPClient */ public protocol CloudformationClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) + typealias ActivateOrganizationsAccessFunctionType = ( + _ input: CloudformationModel.ActivateOrganizationsAccessInput) async throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess typealias ActivateTypeFunctionType = ( _ input: CloudformationModel.ActivateTypeInput) async throws -> CloudformationModel.ActivateTypeOutputForActivateType typealias BatchDescribeTypeConfigurationsFunctionType = ( @@ -46,6 +48,8 @@ public protocol CloudformationClientProtocolV2 { _ input: CloudformationModel.CreateStackInstancesInput) async throws -> CloudformationModel.CreateStackInstancesOutputForCreateStackInstances typealias CreateStackSetFunctionType = ( _ input: CloudformationModel.CreateStackSetInput) async throws -> CloudformationModel.CreateStackSetOutputForCreateStackSet + typealias DeactivateOrganizationsAccessFunctionType = ( + _ input: CloudformationModel.DeactivateOrganizationsAccessInput) async throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess typealias DeactivateTypeFunctionType = ( _ input: CloudformationModel.DeactivateTypeInput) async throws -> CloudformationModel.DeactivateTypeOutputForDeactivateType typealias DeleteChangeSetFunctionType = ( @@ -64,6 +68,8 @@ public protocol CloudformationClientProtocolV2 { _ input: CloudformationModel.DescribeChangeSetInput) async throws -> CloudformationModel.DescribeChangeSetOutputForDescribeChangeSet typealias DescribeChangeSetHooksFunctionType = ( _ input: CloudformationModel.DescribeChangeSetHooksInput) async throws -> CloudformationModel.DescribeChangeSetHooksOutputForDescribeChangeSetHooks + typealias DescribeOrganizationsAccessFunctionType = ( + _ input: CloudformationModel.DescribeOrganizationsAccessInput) async throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess typealias DescribePublisherFunctionType = ( _ input: CloudformationModel.DescribePublisherInput) async throws -> CloudformationModel.DescribePublisherOutputForDescribePublisher typealias DescribeStackDriftDetectionStatusFunctionType = ( @@ -163,6 +169,18 @@ public protocol CloudformationClientProtocolV2 { typealias ValidateTemplateFunctionType = ( _ input: CloudformationModel.ValidateTemplateInput) async throws -> CloudformationModel.ValidateTemplateOutputForValidateTemplate + /** + Invokes the ActivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func activateOrganizationsAccess( + input: CloudformationModel.ActivateOrganizationsAccessInput) async throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess + /** Invokes the ActivateType operation suspending until the response is available before returning. @@ -257,6 +275,18 @@ public protocol CloudformationClientProtocolV2 { func createStackSet( input: CloudformationModel.CreateStackSetInput) async throws -> CloudformationModel.CreateStackSetOutputForCreateStackSet + /** + Invokes the DeactivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func deactivateOrganizationsAccess( + input: CloudformationModel.DeactivateOrganizationsAccessInput) async throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + /** Invokes the DeactivateType operation suspending until the response is available before returning. @@ -362,6 +392,18 @@ public protocol CloudformationClientProtocolV2 { func describeChangeSetHooks( input: CloudformationModel.DescribeChangeSetHooksInput) async throws -> CloudformationModel.DescribeChangeSetHooksOutputForDescribeChangeSetHooks + /** + Invokes the DescribeOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + func describeOrganizationsAccess( + input: CloudformationModel.DescribeOrganizationsAccessInput) async throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + /** Invokes the DescribePublisher operation suspending until the response is available before returning. diff --git a/Sources/CloudformationClient/CloudformationInvocationsReporting.swift b/Sources/CloudformationClient/CloudformationInvocationsReporting.swift index 53dd5da..507756f 100644 --- a/Sources/CloudformationClient/CloudformationInvocationsReporting.swift +++ b/Sources/CloudformationClient/CloudformationInvocationsReporting.swift @@ -29,6 +29,7 @@ import CloudformationModel Invocations reporting for the CloudformationModel. */ public struct CloudformationInvocationsReporting { + public let activateOrganizationsAccess: SmokeAWSHTTPClientInvocationReporting public let activateType: SmokeAWSHTTPClientInvocationReporting public let batchDescribeTypeConfigurations: SmokeAWSHTTPClientInvocationReporting public let cancelUpdateStack: SmokeAWSHTTPClientInvocationReporting @@ -37,6 +38,7 @@ public struct CloudformationInvocationsReporting public let createStackInstances: SmokeAWSHTTPClientInvocationReporting public let createStackSet: SmokeAWSHTTPClientInvocationReporting + public let deactivateOrganizationsAccess: SmokeAWSHTTPClientInvocationReporting public let deactivateType: SmokeAWSHTTPClientInvocationReporting public let deleteChangeSet: SmokeAWSHTTPClientInvocationReporting public let deleteStack: SmokeAWSHTTPClientInvocationReporting @@ -46,6 +48,7 @@ public struct CloudformationInvocationsReporting public let describeChangeSet: SmokeAWSHTTPClientInvocationReporting public let describeChangeSetHooks: SmokeAWSHTTPClientInvocationReporting + public let describeOrganizationsAccess: SmokeAWSHTTPClientInvocationReporting public let describePublisher: SmokeAWSHTTPClientInvocationReporting public let describeStackDriftDetectionStatus: SmokeAWSHTTPClientInvocationReporting public let describeStackEvents: SmokeAWSHTTPClientInvocationReporting @@ -97,6 +100,8 @@ public struct CloudformationInvocationsReporting public init(reporting: InvocationReportingType, operationsReporting: CloudformationOperationsReporting) { + self.activateOrganizationsAccess = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, + smokeAWSOperationReporting: operationsReporting.activateOrganizationsAccess) self.activateType = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.activateType) self.batchDescribeTypeConfigurations = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, @@ -113,6 +118,8 @@ public struct CloudformationInvocationsReporting BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the ActivateType operation in a HTTP client. */ @@ -115,6 +128,19 @@ extension CreateStackSetOutputForCreateStackSet: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DeactivateOrganizationsAccess operation in a HTTP client. + */ +extension DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess: HTTPResponseOutputProtocol { + public typealias BodyType = DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + public typealias HeadersType = DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DeactivateType operation in a HTTP client. */ @@ -219,6 +245,19 @@ extension DescribeChangeSetHooksOutputForDescribeChangeSetHooks: HTTPResponseOut } } +/** + Type to handle the output from the DescribeOrganizationsAccess operation in a HTTP client. + */ +extension DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess: HTTPResponseOutputProtocol { + public typealias BodyType = DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + public typealias HeadersType = DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DescribePublisher operation in a HTTP client. */ diff --git a/Sources/CloudformationClient/CloudformationOperationsReporting.swift b/Sources/CloudformationClient/CloudformationOperationsReporting.swift index 038c5f5..90b2fa0 100644 --- a/Sources/CloudformationClient/CloudformationOperationsReporting.swift +++ b/Sources/CloudformationClient/CloudformationOperationsReporting.swift @@ -28,6 +28,7 @@ import CloudformationModel Operation reporting for the CloudformationModel. */ public struct CloudformationOperationsReporting { + public let activateOrganizationsAccess: StandardSmokeAWSOperationReporting public let activateType: StandardSmokeAWSOperationReporting public let batchDescribeTypeConfigurations: StandardSmokeAWSOperationReporting public let cancelUpdateStack: StandardSmokeAWSOperationReporting @@ -36,6 +37,7 @@ public struct CloudformationOperationsReporting { public let createStack: StandardSmokeAWSOperationReporting public let createStackInstances: StandardSmokeAWSOperationReporting public let createStackSet: StandardSmokeAWSOperationReporting + public let deactivateOrganizationsAccess: StandardSmokeAWSOperationReporting public let deactivateType: StandardSmokeAWSOperationReporting public let deleteChangeSet: StandardSmokeAWSOperationReporting public let deleteStack: StandardSmokeAWSOperationReporting @@ -45,6 +47,7 @@ public struct CloudformationOperationsReporting { public let describeAccountLimits: StandardSmokeAWSOperationReporting public let describeChangeSet: StandardSmokeAWSOperationReporting public let describeChangeSetHooks: StandardSmokeAWSOperationReporting + public let describeOrganizationsAccess: StandardSmokeAWSOperationReporting public let describePublisher: StandardSmokeAWSOperationReporting public let describeStackDriftDetectionStatus: StandardSmokeAWSOperationReporting public let describeStackEvents: StandardSmokeAWSOperationReporting @@ -96,6 +99,8 @@ public struct CloudformationOperationsReporting { public let validateTemplate: StandardSmokeAWSOperationReporting public init(clientName: String, reportingConfiguration: SmokeAWSClientReportingConfiguration) { + self.activateOrganizationsAccess = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .activateOrganizationsAccess, configuration: reportingConfiguration) self.activateType = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .activateType, configuration: reportingConfiguration) self.batchDescribeTypeConfigurations = StandardSmokeAWSOperationReporting( @@ -112,6 +117,8 @@ public struct CloudformationOperationsReporting { clientName: clientName, operation: .createStackInstances, configuration: reportingConfiguration) self.createStackSet = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createStackSet, configuration: reportingConfiguration) + self.deactivateOrganizationsAccess = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .deactivateOrganizationsAccess, configuration: reportingConfiguration) self.deactivateType = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deactivateType, configuration: reportingConfiguration) self.deleteChangeSet = StandardSmokeAWSOperationReporting( @@ -130,6 +137,8 @@ public struct CloudformationOperationsReporting { clientName: clientName, operation: .describeChangeSet, configuration: reportingConfiguration) self.describeChangeSetHooks = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeChangeSetHooks, configuration: reportingConfiguration) + self.describeOrganizationsAccess = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .describeOrganizationsAccess, configuration: reportingConfiguration) self.describePublisher = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describePublisher, configuration: reportingConfiguration) self.describeStackDriftDetectionStatus = StandardSmokeAWSOperationReporting( diff --git a/Sources/CloudformationClient/MockCloudformationClient.swift b/Sources/CloudformationClient/MockCloudformationClient.swift index fcd122c..f6b5010 100644 --- a/Sources/CloudformationClient/MockCloudformationClient.swift +++ b/Sources/CloudformationClient/MockCloudformationClient.swift @@ -29,6 +29,8 @@ import SmokeHTTPClient Mock Client for the Cloudformation service by default returns the `__default` property of its return type. */ public struct MockCloudformationClient: CloudformationClientProtocol { + let activateOrganizationsAccessAsyncOverride: ActivateOrganizationsAccessAsyncType? + let activateOrganizationsAccessSyncOverride: ActivateOrganizationsAccessSyncType? let activateTypeAsyncOverride: ActivateTypeAsyncType? let activateTypeSyncOverride: ActivateTypeSyncType? let batchDescribeTypeConfigurationsAsyncOverride: BatchDescribeTypeConfigurationsAsyncType? @@ -45,6 +47,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { let createStackInstancesSyncOverride: CreateStackInstancesSyncType? let createStackSetAsyncOverride: CreateStackSetAsyncType? let createStackSetSyncOverride: CreateStackSetSyncType? + let deactivateOrganizationsAccessAsyncOverride: DeactivateOrganizationsAccessAsyncType? + let deactivateOrganizationsAccessSyncOverride: DeactivateOrganizationsAccessSyncType? let deactivateTypeAsyncOverride: DeactivateTypeAsyncType? let deactivateTypeSyncOverride: DeactivateTypeSyncType? let deleteChangeSetAsyncOverride: DeleteChangeSetAsyncType? @@ -63,6 +67,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { let describeChangeSetSyncOverride: DescribeChangeSetSyncType? let describeChangeSetHooksAsyncOverride: DescribeChangeSetHooksAsyncType? let describeChangeSetHooksSyncOverride: DescribeChangeSetHooksSyncType? + let describeOrganizationsAccessAsyncOverride: DescribeOrganizationsAccessAsyncType? + let describeOrganizationsAccessSyncOverride: DescribeOrganizationsAccessSyncType? let describePublisherAsyncOverride: DescribePublisherAsyncType? let describePublisherSyncOverride: DescribePublisherSyncType? let describeStackDriftDetectionStatusAsyncOverride: DescribeStackDriftDetectionStatusAsyncType? @@ -167,6 +173,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { functions can be overridden by passing them to this initializer. */ public init( + activateOrganizationsAccessAsync: ActivateOrganizationsAccessAsyncType? = nil, + activateOrganizationsAccessSync: ActivateOrganizationsAccessSyncType? = nil, activateTypeAsync: ActivateTypeAsyncType? = nil, activateTypeSync: ActivateTypeSyncType? = nil, batchDescribeTypeConfigurationsAsync: BatchDescribeTypeConfigurationsAsyncType? = nil, @@ -183,6 +191,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { createStackInstancesSync: CreateStackInstancesSyncType? = nil, createStackSetAsync: CreateStackSetAsyncType? = nil, createStackSetSync: CreateStackSetSyncType? = nil, + deactivateOrganizationsAccessAsync: DeactivateOrganizationsAccessAsyncType? = nil, + deactivateOrganizationsAccessSync: DeactivateOrganizationsAccessSyncType? = nil, deactivateTypeAsync: DeactivateTypeAsyncType? = nil, deactivateTypeSync: DeactivateTypeSyncType? = nil, deleteChangeSetAsync: DeleteChangeSetAsyncType? = nil, @@ -201,6 +211,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { describeChangeSetSync: DescribeChangeSetSyncType? = nil, describeChangeSetHooksAsync: DescribeChangeSetHooksAsyncType? = nil, describeChangeSetHooksSync: DescribeChangeSetHooksSyncType? = nil, + describeOrganizationsAccessAsync: DescribeOrganizationsAccessAsyncType? = nil, + describeOrganizationsAccessSync: DescribeOrganizationsAccessSyncType? = nil, describePublisherAsync: DescribePublisherAsyncType? = nil, describePublisherSync: DescribePublisherSyncType? = nil, describeStackDriftDetectionStatusAsync: DescribeStackDriftDetectionStatusAsyncType? = nil, @@ -299,6 +311,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { updateTerminationProtectionSync: UpdateTerminationProtectionSyncType? = nil, validateTemplateAsync: ValidateTemplateAsyncType? = nil, validateTemplateSync: ValidateTemplateSyncType? = nil) { + self.activateOrganizationsAccessAsyncOverride = activateOrganizationsAccessAsync + self.activateOrganizationsAccessSyncOverride = activateOrganizationsAccessSync self.activateTypeAsyncOverride = activateTypeAsync self.activateTypeSyncOverride = activateTypeSync self.batchDescribeTypeConfigurationsAsyncOverride = batchDescribeTypeConfigurationsAsync @@ -315,6 +329,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { self.createStackInstancesSyncOverride = createStackInstancesSync self.createStackSetAsyncOverride = createStackSetAsync self.createStackSetSyncOverride = createStackSetSync + self.deactivateOrganizationsAccessAsyncOverride = deactivateOrganizationsAccessAsync + self.deactivateOrganizationsAccessSyncOverride = deactivateOrganizationsAccessSync self.deactivateTypeAsyncOverride = deactivateTypeAsync self.deactivateTypeSyncOverride = deactivateTypeSync self.deleteChangeSetAsyncOverride = deleteChangeSetAsync @@ -333,6 +349,8 @@ public struct MockCloudformationClient: CloudformationClientProtocol { self.describeChangeSetSyncOverride = describeChangeSetSync self.describeChangeSetHooksAsyncOverride = describeChangeSetHooksAsync self.describeChangeSetHooksSyncOverride = describeChangeSetHooksSync + self.describeOrganizationsAccessAsyncOverride = describeOrganizationsAccessAsync + self.describeOrganizationsAccessSyncOverride = describeOrganizationsAccessSync self.describePublisherAsyncOverride = describePublisherAsync self.describePublisherSyncOverride = describePublisherSync self.describeStackDriftDetectionStatusAsyncOverride = describeStackDriftDetectionStatusAsync @@ -433,6 +451,46 @@ public struct MockCloudformationClient: CloudformationClientProtocol { self.validateTemplateSyncOverride = validateTemplateSync } + /** + Invokes the ActivateOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - completion: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccessAsync( + input: CloudformationModel.ActivateOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws { + if let activateOrganizationsAccessAsyncOverride = activateOrganizationsAccessAsyncOverride { + return try activateOrganizationsAccessAsyncOverride(input, completion) + } + + let result = ActivateOrganizationsAccessOutputForActivateOrganizationsAccess.__default + + completion(.success(result)) + } + + /** + Invokes the ActivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccessSync( + input: CloudformationModel.ActivateOrganizationsAccessInput) throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + if let activateOrganizationsAccessSyncOverride = activateOrganizationsAccessSyncOverride { + return try activateOrganizationsAccessSyncOverride(input) + } + + return ActivateOrganizationsAccessOutputForActivateOrganizationsAccess.__default + } + /** Invokes the ActivateType operation returning immediately and passing the response to a callback. @@ -747,6 +805,46 @@ public struct MockCloudformationClient: CloudformationClientProtocol { return CreateStackSetOutputForCreateStackSet.__default } + /** + Invokes the DeactivateOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - completion: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccessAsync( + input: CloudformationModel.DeactivateOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws { + if let deactivateOrganizationsAccessAsyncOverride = deactivateOrganizationsAccessAsyncOverride { + return try deactivateOrganizationsAccessAsyncOverride(input, completion) + } + + let result = DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess.__default + + completion(.success(result)) + } + + /** + Invokes the DeactivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccessSync( + input: CloudformationModel.DeactivateOrganizationsAccessInput) throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + if let deactivateOrganizationsAccessSyncOverride = deactivateOrganizationsAccessSyncOverride { + return try deactivateOrganizationsAccessSyncOverride(input) + } + + return DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess.__default + } + /** Invokes the DeactivateType operation returning immediately and passing the response to a callback. @@ -1099,6 +1197,46 @@ public struct MockCloudformationClient: CloudformationClientProtocol { return DescribeChangeSetHooksOutputForDescribeChangeSetHooks.__default } + /** + Invokes the DescribeOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - completion: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccessAsync( + input: CloudformationModel.DescribeOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws { + if let describeOrganizationsAccessAsyncOverride = describeOrganizationsAccessAsyncOverride { + return try describeOrganizationsAccessAsyncOverride(input, completion) + } + + let result = DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess.__default + + completion(.success(result)) + } + + /** + Invokes the DescribeOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccessSync( + input: CloudformationModel.DescribeOrganizationsAccessInput) throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + if let describeOrganizationsAccessSyncOverride = describeOrganizationsAccessSyncOverride { + return try describeOrganizationsAccessSyncOverride(input) + } + + return DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess.__default + } + /** Invokes the DescribePublisher operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationClient/MockCloudformationClientV2.swift b/Sources/CloudformationClient/MockCloudformationClientV2.swift index 246ecd4..026e116 100644 --- a/Sources/CloudformationClient/MockCloudformationClientV2.swift +++ b/Sources/CloudformationClient/MockCloudformationClientV2.swift @@ -30,6 +30,7 @@ import SmokeHTTPClient */ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) + let activateOrganizationsAccessOverride: ActivateOrganizationsAccessFunctionType? let activateTypeOverride: ActivateTypeFunctionType? let batchDescribeTypeConfigurationsOverride: BatchDescribeTypeConfigurationsFunctionType? let cancelUpdateStackOverride: CancelUpdateStackFunctionType? @@ -38,6 +39,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { let createStackOverride: CreateStackFunctionType? let createStackInstancesOverride: CreateStackInstancesFunctionType? let createStackSetOverride: CreateStackSetFunctionType? + let deactivateOrganizationsAccessOverride: DeactivateOrganizationsAccessFunctionType? let deactivateTypeOverride: DeactivateTypeFunctionType? let deleteChangeSetOverride: DeleteChangeSetFunctionType? let deleteStackOverride: DeleteStackFunctionType? @@ -47,6 +49,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { let describeAccountLimitsOverride: DescribeAccountLimitsFunctionType? let describeChangeSetOverride: DescribeChangeSetFunctionType? let describeChangeSetHooksOverride: DescribeChangeSetHooksFunctionType? + let describeOrganizationsAccessOverride: DescribeOrganizationsAccessFunctionType? let describePublisherOverride: DescribePublisherFunctionType? let describeStackDriftDetectionStatusOverride: DescribeStackDriftDetectionStatusFunctionType? let describeStackEventsOverride: DescribeStackEventsFunctionType? @@ -102,6 +105,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { functions can be overridden by passing them to this initializer. */ public init( + activateOrganizationsAccess: ActivateOrganizationsAccessFunctionType? = nil, activateType: ActivateTypeFunctionType? = nil, batchDescribeTypeConfigurations: BatchDescribeTypeConfigurationsFunctionType? = nil, cancelUpdateStack: CancelUpdateStackFunctionType? = nil, @@ -110,6 +114,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { createStack: CreateStackFunctionType? = nil, createStackInstances: CreateStackInstancesFunctionType? = nil, createStackSet: CreateStackSetFunctionType? = nil, + deactivateOrganizationsAccess: DeactivateOrganizationsAccessFunctionType? = nil, deactivateType: DeactivateTypeFunctionType? = nil, deleteChangeSet: DeleteChangeSetFunctionType? = nil, deleteStack: DeleteStackFunctionType? = nil, @@ -119,6 +124,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { describeAccountLimits: DescribeAccountLimitsFunctionType? = nil, describeChangeSet: DescribeChangeSetFunctionType? = nil, describeChangeSetHooks: DescribeChangeSetHooksFunctionType? = nil, + describeOrganizationsAccess: DescribeOrganizationsAccessFunctionType? = nil, describePublisher: DescribePublisherFunctionType? = nil, describeStackDriftDetectionStatus: DescribeStackDriftDetectionStatusFunctionType? = nil, describeStackEvents: DescribeStackEventsFunctionType? = nil, @@ -168,6 +174,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { updateStackSet: UpdateStackSetFunctionType? = nil, updateTerminationProtection: UpdateTerminationProtectionFunctionType? = nil, validateTemplate: ValidateTemplateFunctionType? = nil) { + self.activateOrganizationsAccessOverride = activateOrganizationsAccess self.activateTypeOverride = activateType self.batchDescribeTypeConfigurationsOverride = batchDescribeTypeConfigurations self.cancelUpdateStackOverride = cancelUpdateStack @@ -176,6 +183,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { self.createStackOverride = createStack self.createStackInstancesOverride = createStackInstances self.createStackSetOverride = createStackSet + self.deactivateOrganizationsAccessOverride = deactivateOrganizationsAccess self.deactivateTypeOverride = deactivateType self.deleteChangeSetOverride = deleteChangeSet self.deleteStackOverride = deleteStack @@ -185,6 +193,7 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { self.describeAccountLimitsOverride = describeAccountLimits self.describeChangeSetOverride = describeChangeSet self.describeChangeSetHooksOverride = describeChangeSetHooks + self.describeOrganizationsAccessOverride = describeOrganizationsAccess self.describePublisherOverride = describePublisher self.describeStackDriftDetectionStatusOverride = describeStackDriftDetectionStatus self.describeStackEventsOverride = describeStackEvents @@ -236,6 +245,24 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { self.validateTemplateOverride = validateTemplate } + /** + Invokes the ActivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccess( + input: CloudformationModel.ActivateOrganizationsAccessInput) async throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + if let activateOrganizationsAccessOverride = activateOrganizationsAccessOverride { + return try await activateOrganizationsAccessOverride(input) + } + + return ActivateOrganizationsAccessOutputForActivateOrganizationsAccess.__default + } + /** Invokes the ActivateType operation suspending until the response is available before returning. @@ -377,6 +404,24 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { return CreateStackSetOutputForCreateStackSet.__default } + /** + Invokes the DeactivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccess( + input: CloudformationModel.DeactivateOrganizationsAccessInput) async throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + if let deactivateOrganizationsAccessOverride = deactivateOrganizationsAccessOverride { + return try await deactivateOrganizationsAccessOverride(input) + } + + return DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess.__default + } + /** Invokes the DeactivateType operation suspending until the response is available before returning. @@ -535,6 +580,24 @@ public struct MockCloudformationClientV2: CloudformationClientProtocolV2 { return DescribeChangeSetHooksOutputForDescribeChangeSetHooks.__default } + /** + Invokes the DescribeOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccess( + input: CloudformationModel.DescribeOrganizationsAccessInput) async throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + if let describeOrganizationsAccessOverride = describeOrganizationsAccessOverride { + return try await describeOrganizationsAccessOverride(input) + } + + return DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess.__default + } + /** Invokes the DescribePublisher operation suspending until the response is available before returning. diff --git a/Sources/CloudformationClient/ThrowingCloudformationClient.swift b/Sources/CloudformationClient/ThrowingCloudformationClient.swift index ff0ea83..d25d51c 100644 --- a/Sources/CloudformationClient/ThrowingCloudformationClient.swift +++ b/Sources/CloudformationClient/ThrowingCloudformationClient.swift @@ -30,6 +30,8 @@ import SmokeHTTPClient */ public struct ThrowingCloudformationClient: CloudformationClientProtocol { let error: CloudformationError + let activateOrganizationsAccessAsyncOverride: ActivateOrganizationsAccessAsyncType? + let activateOrganizationsAccessSyncOverride: ActivateOrganizationsAccessSyncType? let activateTypeAsyncOverride: ActivateTypeAsyncType? let activateTypeSyncOverride: ActivateTypeSyncType? let batchDescribeTypeConfigurationsAsyncOverride: BatchDescribeTypeConfigurationsAsyncType? @@ -46,6 +48,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { let createStackInstancesSyncOverride: CreateStackInstancesSyncType? let createStackSetAsyncOverride: CreateStackSetAsyncType? let createStackSetSyncOverride: CreateStackSetSyncType? + let deactivateOrganizationsAccessAsyncOverride: DeactivateOrganizationsAccessAsyncType? + let deactivateOrganizationsAccessSyncOverride: DeactivateOrganizationsAccessSyncType? let deactivateTypeAsyncOverride: DeactivateTypeAsyncType? let deactivateTypeSyncOverride: DeactivateTypeSyncType? let deleteChangeSetAsyncOverride: DeleteChangeSetAsyncType? @@ -64,6 +68,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { let describeChangeSetSyncOverride: DescribeChangeSetSyncType? let describeChangeSetHooksAsyncOverride: DescribeChangeSetHooksAsyncType? let describeChangeSetHooksSyncOverride: DescribeChangeSetHooksSyncType? + let describeOrganizationsAccessAsyncOverride: DescribeOrganizationsAccessAsyncType? + let describeOrganizationsAccessSyncOverride: DescribeOrganizationsAccessSyncType? let describePublisherAsyncOverride: DescribePublisherAsyncType? let describePublisherSyncOverride: DescribePublisherSyncType? let describeStackDriftDetectionStatusAsyncOverride: DescribeStackDriftDetectionStatusAsyncType? @@ -168,6 +174,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { functions can be overridden by passing them to this initializer. */ public init(error: CloudformationError, + activateOrganizationsAccessAsync: ActivateOrganizationsAccessAsyncType? = nil, + activateOrganizationsAccessSync: ActivateOrganizationsAccessSyncType? = nil, activateTypeAsync: ActivateTypeAsyncType? = nil, activateTypeSync: ActivateTypeSyncType? = nil, batchDescribeTypeConfigurationsAsync: BatchDescribeTypeConfigurationsAsyncType? = nil, @@ -184,6 +192,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { createStackInstancesSync: CreateStackInstancesSyncType? = nil, createStackSetAsync: CreateStackSetAsyncType? = nil, createStackSetSync: CreateStackSetSyncType? = nil, + deactivateOrganizationsAccessAsync: DeactivateOrganizationsAccessAsyncType? = nil, + deactivateOrganizationsAccessSync: DeactivateOrganizationsAccessSyncType? = nil, deactivateTypeAsync: DeactivateTypeAsyncType? = nil, deactivateTypeSync: DeactivateTypeSyncType? = nil, deleteChangeSetAsync: DeleteChangeSetAsyncType? = nil, @@ -202,6 +212,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { describeChangeSetSync: DescribeChangeSetSyncType? = nil, describeChangeSetHooksAsync: DescribeChangeSetHooksAsyncType? = nil, describeChangeSetHooksSync: DescribeChangeSetHooksSyncType? = nil, + describeOrganizationsAccessAsync: DescribeOrganizationsAccessAsyncType? = nil, + describeOrganizationsAccessSync: DescribeOrganizationsAccessSyncType? = nil, describePublisherAsync: DescribePublisherAsyncType? = nil, describePublisherSync: DescribePublisherSyncType? = nil, describeStackDriftDetectionStatusAsync: DescribeStackDriftDetectionStatusAsyncType? = nil, @@ -301,6 +313,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { validateTemplateAsync: ValidateTemplateAsyncType? = nil, validateTemplateSync: ValidateTemplateSyncType? = nil) { self.error = error + self.activateOrganizationsAccessAsyncOverride = activateOrganizationsAccessAsync + self.activateOrganizationsAccessSyncOverride = activateOrganizationsAccessSync self.activateTypeAsyncOverride = activateTypeAsync self.activateTypeSyncOverride = activateTypeSync self.batchDescribeTypeConfigurationsAsyncOverride = batchDescribeTypeConfigurationsAsync @@ -317,6 +331,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { self.createStackInstancesSyncOverride = createStackInstancesSync self.createStackSetAsyncOverride = createStackSetAsync self.createStackSetSyncOverride = createStackSetSync + self.deactivateOrganizationsAccessAsyncOverride = deactivateOrganizationsAccessAsync + self.deactivateOrganizationsAccessSyncOverride = deactivateOrganizationsAccessSync self.deactivateTypeAsyncOverride = deactivateTypeAsync self.deactivateTypeSyncOverride = deactivateTypeSync self.deleteChangeSetAsyncOverride = deleteChangeSetAsync @@ -335,6 +351,8 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { self.describeChangeSetSyncOverride = describeChangeSetSync self.describeChangeSetHooksAsyncOverride = describeChangeSetHooksAsync self.describeChangeSetHooksSyncOverride = describeChangeSetHooksSync + self.describeOrganizationsAccessAsyncOverride = describeOrganizationsAccessAsync + self.describeOrganizationsAccessSyncOverride = describeOrganizationsAccessSync self.describePublisherAsyncOverride = describePublisherAsync self.describePublisherSyncOverride = describePublisherSync self.describeStackDriftDetectionStatusAsyncOverride = describeStackDriftDetectionStatusAsync @@ -435,6 +453,44 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { self.validateTemplateSyncOverride = validateTemplateSync } + /** + Invokes the ActivateOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - completion: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccessAsync( + input: CloudformationModel.ActivateOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws { + if let activateOrganizationsAccessAsyncOverride = activateOrganizationsAccessAsyncOverride { + return try activateOrganizationsAccessAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the ActivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccessSync( + input: CloudformationModel.ActivateOrganizationsAccessInput) throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + if let activateOrganizationsAccessSyncOverride = activateOrganizationsAccessSyncOverride { + return try activateOrganizationsAccessSyncOverride(input) + } + + throw error + } + /** Invokes the ActivateType operation returning immediately and passing the response to a callback. @@ -736,6 +792,44 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { throw error } + /** + Invokes the DeactivateOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - completion: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccessAsync( + input: CloudformationModel.DeactivateOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws { + if let deactivateOrganizationsAccessAsyncOverride = deactivateOrganizationsAccessAsyncOverride { + return try deactivateOrganizationsAccessAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DeactivateOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccessSync( + input: CloudformationModel.DeactivateOrganizationsAccessInput) throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + if let deactivateOrganizationsAccessSyncOverride = deactivateOrganizationsAccessSyncOverride { + return try deactivateOrganizationsAccessSyncOverride(input) + } + + throw error + } + /** Invokes the DeactivateType operation returning immediately and passing the response to a callback. @@ -1073,6 +1167,44 @@ public struct ThrowingCloudformationClient: CloudformationClientProtocol { throw error } + /** + Invokes the DescribeOrganizationsAccess operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - completion: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object or an error will be passed to this + callback when the operation is complete. The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess + object will be validated before being returned to caller. + The possible errors are: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccessAsync( + input: CloudformationModel.DescribeOrganizationsAccessInput, + completion: @escaping (Result) -> ()) throws { + if let describeOrganizationsAccessAsyncOverride = describeOrganizationsAccessAsyncOverride { + return try describeOrganizationsAccessAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DescribeOrganizationsAccess operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccessSync( + input: CloudformationModel.DescribeOrganizationsAccessInput) throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + if let describeOrganizationsAccessSyncOverride = describeOrganizationsAccessSyncOverride { + return try describeOrganizationsAccessSyncOverride(input) + } + + throw error + } + /** Invokes the DescribePublisher operation returning immediately and passing the response to a callback. diff --git a/Sources/CloudformationClient/ThrowingCloudformationClientV2.swift b/Sources/CloudformationClient/ThrowingCloudformationClientV2.swift index 31d816f..2515831 100644 --- a/Sources/CloudformationClient/ThrowingCloudformationClientV2.swift +++ b/Sources/CloudformationClient/ThrowingCloudformationClientV2.swift @@ -31,6 +31,7 @@ import SmokeHTTPClient public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) let error: CloudformationError + let activateOrganizationsAccessOverride: ActivateOrganizationsAccessFunctionType? let activateTypeOverride: ActivateTypeFunctionType? let batchDescribeTypeConfigurationsOverride: BatchDescribeTypeConfigurationsFunctionType? let cancelUpdateStackOverride: CancelUpdateStackFunctionType? @@ -39,6 +40,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { let createStackOverride: CreateStackFunctionType? let createStackInstancesOverride: CreateStackInstancesFunctionType? let createStackSetOverride: CreateStackSetFunctionType? + let deactivateOrganizationsAccessOverride: DeactivateOrganizationsAccessFunctionType? let deactivateTypeOverride: DeactivateTypeFunctionType? let deleteChangeSetOverride: DeleteChangeSetFunctionType? let deleteStackOverride: DeleteStackFunctionType? @@ -48,6 +50,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { let describeAccountLimitsOverride: DescribeAccountLimitsFunctionType? let describeChangeSetOverride: DescribeChangeSetFunctionType? let describeChangeSetHooksOverride: DescribeChangeSetHooksFunctionType? + let describeOrganizationsAccessOverride: DescribeOrganizationsAccessFunctionType? let describePublisherOverride: DescribePublisherFunctionType? let describeStackDriftDetectionStatusOverride: DescribeStackDriftDetectionStatusFunctionType? let describeStackEventsOverride: DescribeStackEventsFunctionType? @@ -103,6 +106,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { functions can be overridden by passing them to this initializer. */ public init(error: CloudformationError, + activateOrganizationsAccess: ActivateOrganizationsAccessFunctionType? = nil, activateType: ActivateTypeFunctionType? = nil, batchDescribeTypeConfigurations: BatchDescribeTypeConfigurationsFunctionType? = nil, cancelUpdateStack: CancelUpdateStackFunctionType? = nil, @@ -111,6 +115,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { createStack: CreateStackFunctionType? = nil, createStackInstances: CreateStackInstancesFunctionType? = nil, createStackSet: CreateStackSetFunctionType? = nil, + deactivateOrganizationsAccess: DeactivateOrganizationsAccessFunctionType? = nil, deactivateType: DeactivateTypeFunctionType? = nil, deleteChangeSet: DeleteChangeSetFunctionType? = nil, deleteStack: DeleteStackFunctionType? = nil, @@ -120,6 +125,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { describeAccountLimits: DescribeAccountLimitsFunctionType? = nil, describeChangeSet: DescribeChangeSetFunctionType? = nil, describeChangeSetHooks: DescribeChangeSetHooksFunctionType? = nil, + describeOrganizationsAccess: DescribeOrganizationsAccessFunctionType? = nil, describePublisher: DescribePublisherFunctionType? = nil, describeStackDriftDetectionStatus: DescribeStackDriftDetectionStatusFunctionType? = nil, describeStackEvents: DescribeStackEventsFunctionType? = nil, @@ -170,6 +176,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { updateTerminationProtection: UpdateTerminationProtectionFunctionType? = nil, validateTemplate: ValidateTemplateFunctionType? = nil) { self.error = error + self.activateOrganizationsAccessOverride = activateOrganizationsAccess self.activateTypeOverride = activateType self.batchDescribeTypeConfigurationsOverride = batchDescribeTypeConfigurations self.cancelUpdateStackOverride = cancelUpdateStack @@ -178,6 +185,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { self.createStackOverride = createStack self.createStackInstancesOverride = createStackInstances self.createStackSetOverride = createStackSet + self.deactivateOrganizationsAccessOverride = deactivateOrganizationsAccess self.deactivateTypeOverride = deactivateType self.deleteChangeSetOverride = deleteChangeSet self.deleteStackOverride = deleteStack @@ -187,6 +195,7 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { self.describeAccountLimitsOverride = describeAccountLimits self.describeChangeSetOverride = describeChangeSet self.describeChangeSetHooksOverride = describeChangeSetHooks + self.describeOrganizationsAccessOverride = describeOrganizationsAccess self.describePublisherOverride = describePublisher self.describeStackDriftDetectionStatusOverride = describeStackDriftDetectionStatus self.describeStackEventsOverride = describeStackEvents @@ -238,6 +247,24 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { self.validateTemplateOverride = validateTemplate } + /** + Invokes the ActivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ActivateOrganizationsAccessInput object being passed to this operation. + - Returns: The ActivateOrganizationsAccessOutputForActivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func activateOrganizationsAccess( + input: CloudformationModel.ActivateOrganizationsAccessInput) async throws -> CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + if let activateOrganizationsAccessOverride = activateOrganizationsAccessOverride { + return try await activateOrganizationsAccessOverride(input) + } + + throw error + } + /** Invokes the ActivateType operation suspending until the response is available before returning. @@ -380,6 +407,24 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { throw error } + /** + Invokes the DeactivateOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeactivateOrganizationsAccessInput object being passed to this operation. + - Returns: The DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func deactivateOrganizationsAccess( + input: CloudformationModel.DeactivateOrganizationsAccessInput) async throws -> CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + if let deactivateOrganizationsAccessOverride = deactivateOrganizationsAccessOverride { + return try await deactivateOrganizationsAccessOverride(input) + } + + throw error + } + /** Invokes the DeactivateType operation suspending until the response is available before returning. @@ -539,6 +584,24 @@ public struct ThrowingCloudformationClientV2: CloudformationClientProtocolV2 { throw error } + /** + Invokes the DescribeOrganizationsAccess operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeOrganizationsAccessInput object being passed to this operation. + - Returns: The DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidOperation, operationNotFound. + */ + public func describeOrganizationsAccess( + input: CloudformationModel.DescribeOrganizationsAccessInput) async throws -> CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + if let describeOrganizationsAccessOverride = describeOrganizationsAccessOverride { + return try await describeOrganizationsAccessOverride(input) + } + + throw error + } + /** Invokes the DescribePublisher operation suspending until the response is available before returning. diff --git a/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift b/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift index 7939229..3deb8b9 100644 --- a/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift +++ b/Sources/CloudformationModel/CloudformationModelDefaultInstances.swift @@ -48,6 +48,40 @@ public extension AccountLimit { }() } +public extension ActivateOrganizationsAccessInput { + /** + Default instance of the ActivateOrganizationsAccessInput structure. + */ + static let __default: CloudformationModel.ActivateOrganizationsAccessInput = { + let defaultInstance = CloudformationModel.ActivateOrganizationsAccessInput() + + return defaultInstance + }() +} + +public extension ActivateOrganizationsAccessOutput { + /** + Default instance of the ActivateOrganizationsAccessOutput structure. + */ + static let __default: CloudformationModel.ActivateOrganizationsAccessOutput = { + let defaultInstance = CloudformationModel.ActivateOrganizationsAccessOutput() + + return defaultInstance + }() +} + +public extension ActivateOrganizationsAccessOutputForActivateOrganizationsAccess { + /** + Default instance of the ActivateOrganizationsAccessOutputForActivateOrganizationsAccess structure. + */ + static let __default: CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess = { + let defaultInstance = CloudformationModel.ActivateOrganizationsAccessOutputForActivateOrganizationsAccess( + activateOrganizationsAccessResult: ActivateOrganizationsAccessOutput.__default) + + return defaultInstance + }() +} + public extension ActivateTypeInput { /** Default instance of the ActivateTypeInput structure. @@ -337,6 +371,7 @@ public extension CreateChangeSetInput { description: nil, includeNestedStacks: nil, notificationARNs: nil, + onStackFailure: nil, parameters: nil, resourceTypes: nil, resourcesToImport: nil, @@ -533,6 +568,40 @@ public extension CreatedButModifiedException { }() } +public extension DeactivateOrganizationsAccessInput { + /** + Default instance of the DeactivateOrganizationsAccessInput structure. + */ + static let __default: CloudformationModel.DeactivateOrganizationsAccessInput = { + let defaultInstance = CloudformationModel.DeactivateOrganizationsAccessInput() + + return defaultInstance + }() +} + +public extension DeactivateOrganizationsAccessOutput { + /** + Default instance of the DeactivateOrganizationsAccessOutput structure. + */ + static let __default: CloudformationModel.DeactivateOrganizationsAccessOutput = { + let defaultInstance = CloudformationModel.DeactivateOrganizationsAccessOutput() + + return defaultInstance + }() +} + +public extension DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess { + /** + Default instance of the DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess structure. + */ + static let __default: CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess = { + let defaultInstance = CloudformationModel.DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess( + deactivateOrganizationsAccessResult: DeactivateOrganizationsAccessOutput.__default) + + return defaultInstance + }() +} + public extension DeactivateTypeInput { /** Default instance of the DeactivateTypeInput structure. @@ -865,6 +934,7 @@ public extension DescribeChangeSetOutput { includeNestedStacks: nil, nextToken: nil, notificationARNs: nil, + onStackFailure: nil, parameters: nil, parentChangeSetId: nil, rollbackConfiguration: nil, @@ -891,6 +961,42 @@ public extension DescribeChangeSetOutputForDescribeChangeSet { }() } +public extension DescribeOrganizationsAccessInput { + /** + Default instance of the DescribeOrganizationsAccessInput structure. + */ + static let __default: CloudformationModel.DescribeOrganizationsAccessInput = { + let defaultInstance = CloudformationModel.DescribeOrganizationsAccessInput( + callAs: nil) + + return defaultInstance + }() +} + +public extension DescribeOrganizationsAccessOutput { + /** + Default instance of the DescribeOrganizationsAccessOutput structure. + */ + static let __default: CloudformationModel.DescribeOrganizationsAccessOutput = { + let defaultInstance = CloudformationModel.DescribeOrganizationsAccessOutput( + status: nil) + + return defaultInstance + }() +} + +public extension DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess { + /** + Default instance of the DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess structure. + */ + static let __default: CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess = { + let defaultInstance = CloudformationModel.DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess( + describeOrganizationsAccessResult: DescribeOrganizationsAccessOutput.__default) + + return defaultInstance + }() +} + public extension DescribePublisherInput { /** Default instance of the DescribePublisherInput structure. @@ -3207,6 +3313,7 @@ public extension StackSet { organizationalUnitIds: nil, parameters: nil, permissionModel: nil, + regions: nil, stackSetARN: nil, stackSetDriftDetectionDetails: nil, stackSetId: nil, diff --git a/Sources/CloudformationModel/CloudformationModelOperations.swift b/Sources/CloudformationModel/CloudformationModelOperations.swift index 3bfc0b4..5beb553 100644 --- a/Sources/CloudformationModel/CloudformationModelOperations.swift +++ b/Sources/CloudformationModel/CloudformationModelOperations.swift @@ -26,6 +26,7 @@ import Foundation Operation enumeration for the CloudformationModel. */ public enum CloudformationModelOperations: String, Hashable, CustomStringConvertible { + case activateOrganizationsAccess = "ActivateOrganizationsAccess" case activateType = "ActivateType" case batchDescribeTypeConfigurations = "BatchDescribeTypeConfigurations" case cancelUpdateStack = "CancelUpdateStack" @@ -34,6 +35,7 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert case createStack = "CreateStack" case createStackInstances = "CreateStackInstances" case createStackSet = "CreateStackSet" + case deactivateOrganizationsAccess = "DeactivateOrganizationsAccess" case deactivateType = "DeactivateType" case deleteChangeSet = "DeleteChangeSet" case deleteStack = "DeleteStack" @@ -43,6 +45,7 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert case describeAccountLimits = "DescribeAccountLimits" case describeChangeSet = "DescribeChangeSet" case describeChangeSetHooks = "DescribeChangeSetHooks" + case describeOrganizationsAccess = "DescribeOrganizationsAccess" case describePublisher = "DescribePublisher" case describeStackDriftDetectionStatus = "DescribeStackDriftDetectionStatus" case describeStackEvents = "DescribeStackEvents" @@ -99,6 +102,8 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert public var operationPath: String { switch self { + case .activateOrganizationsAccess: + return "/" case .activateType: return "/" case .batchDescribeTypeConfigurations: @@ -115,6 +120,8 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert return "/" case .createStackSet: return "/" + case .deactivateOrganizationsAccess: + return "/" case .deactivateType: return "/" case .deleteChangeSet: @@ -133,6 +140,8 @@ public enum CloudformationModelOperations: String, Hashable, CustomStringConvert return "/" case .describeChangeSetHooks: return "/" + case .describeOrganizationsAccess: + return "/" case .describePublisher: return "/" case .describeStackDriftDetectionStatus: diff --git a/Sources/CloudformationModel/CloudformationModelStructures.swift b/Sources/CloudformationModel/CloudformationModelStructures.swift index 9e939a5..200cd9a 100644 --- a/Sources/CloudformationModel/CloudformationModelStructures.swift +++ b/Sources/CloudformationModel/CloudformationModelStructures.swift @@ -60,6 +60,40 @@ public struct AccountLimit: Codable, Equatable { } } +public struct ActivateOrganizationsAccessInput: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + +public struct ActivateOrganizationsAccessOutput: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + +public struct ActivateOrganizationsAccessOutputForActivateOrganizationsAccess: Codable, Equatable { + public var activateOrganizationsAccessResult: ActivateOrganizationsAccessOutput + + public init(activateOrganizationsAccessResult: ActivateOrganizationsAccessOutput) { + self.activateOrganizationsAccessResult = activateOrganizationsAccessResult + } + + enum CodingKeys: String, CodingKey { + case activateOrganizationsAccessResult = "ActivateOrganizationsAccessResult" + } + + public func validate() throws { + try activateOrganizationsAccessResult.validate() + } +} + public struct ActivateTypeInput: Codable, Equatable { public var autoUpdate: AutoUpdate? public var executionRoleArn: RoleArn? @@ -539,6 +573,7 @@ public struct CreateChangeSetInput: Codable, Equatable { public var description: Description? public var includeNestedStacks: IncludeNestedStacks? public var notificationARNs: NotificationARNs? + public var onStackFailure: OnStackFailure? public var parameters: Parameters? public var resourceTypes: ResourceTypes? public var resourcesToImport: ResourcesToImport? @@ -557,6 +592,7 @@ public struct CreateChangeSetInput: Codable, Equatable { description: Description? = nil, includeNestedStacks: IncludeNestedStacks? = nil, notificationARNs: NotificationARNs? = nil, + onStackFailure: OnStackFailure? = nil, parameters: Parameters? = nil, resourceTypes: ResourceTypes? = nil, resourcesToImport: ResourcesToImport? = nil, @@ -574,6 +610,7 @@ public struct CreateChangeSetInput: Codable, Equatable { self.description = description self.includeNestedStacks = includeNestedStacks self.notificationARNs = notificationARNs + self.onStackFailure = onStackFailure self.parameters = parameters self.resourceTypes = resourceTypes self.resourcesToImport = resourcesToImport @@ -594,6 +631,7 @@ public struct CreateChangeSetInput: Codable, Equatable { case description = "Description" case includeNestedStacks = "IncludeNestedStacks" case notificationARNs = "NotificationARNs" + case onStackFailure = "OnStackFailure" case parameters = "Parameters" case resourceTypes = "ResourceTypes" case resourcesToImport = "ResourcesToImport" @@ -975,6 +1013,40 @@ public struct CreatedButModifiedException: Codable, Equatable { } } +public struct DeactivateOrganizationsAccessInput: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + +public struct DeactivateOrganizationsAccessOutput: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + +public struct DeactivateOrganizationsAccessOutputForDeactivateOrganizationsAccess: Codable, Equatable { + public var deactivateOrganizationsAccessResult: DeactivateOrganizationsAccessOutput + + public init(deactivateOrganizationsAccessResult: DeactivateOrganizationsAccessOutput) { + self.deactivateOrganizationsAccessResult = deactivateOrganizationsAccessResult + } + + enum CodingKeys: String, CodingKey { + case deactivateOrganizationsAccessResult = "DeactivateOrganizationsAccessResult" + } + + public func validate() throws { + try deactivateOrganizationsAccessResult.validate() + } +} + public struct DeactivateTypeInput: Codable, Equatable { public var arn: PrivateTypeArn? public var type: ThirdPartyType? @@ -1482,6 +1554,7 @@ public struct DescribeChangeSetOutput: Codable, Equatable { public var includeNestedStacks: IncludeNestedStacks? public var nextToken: NextToken? public var notificationARNs: NotificationARNs? + public var onStackFailure: OnStackFailure? public var parameters: Parameters? public var parentChangeSetId: ChangeSetId? public var rollbackConfiguration: RollbackConfiguration? @@ -1502,6 +1575,7 @@ public struct DescribeChangeSetOutput: Codable, Equatable { includeNestedStacks: IncludeNestedStacks? = nil, nextToken: NextToken? = nil, notificationARNs: NotificationARNs? = nil, + onStackFailure: OnStackFailure? = nil, parameters: Parameters? = nil, parentChangeSetId: ChangeSetId? = nil, rollbackConfiguration: RollbackConfiguration? = nil, @@ -1521,6 +1595,7 @@ public struct DescribeChangeSetOutput: Codable, Equatable { self.includeNestedStacks = includeNestedStacks self.nextToken = nextToken self.notificationARNs = notificationARNs + self.onStackFailure = onStackFailure self.parameters = parameters self.parentChangeSetId = parentChangeSetId self.rollbackConfiguration = rollbackConfiguration @@ -1543,6 +1618,7 @@ public struct DescribeChangeSetOutput: Codable, Equatable { case includeNestedStacks = "IncludeNestedStacks" case nextToken = "NextToken" case notificationARNs = "NotificationARNs" + case onStackFailure = "OnStackFailure" case parameters = "Parameters" case parentChangeSetId = "ParentChangeSetId" case rollbackConfiguration = "RollbackConfiguration" @@ -1583,6 +1659,52 @@ public struct DescribeChangeSetOutputForDescribeChangeSet: Codable, Equatable { } } +public struct DescribeOrganizationsAccessInput: Codable, Equatable { + public var callAs: CallAs? + + public init(callAs: CallAs? = nil) { + self.callAs = callAs + } + + enum CodingKeys: String, CodingKey { + case callAs = "CallAs" + } + + public func validate() throws { + } +} + +public struct DescribeOrganizationsAccessOutput: Codable, Equatable { + public var status: OrganizationStatus? + + public init(status: OrganizationStatus? = nil) { + self.status = status + } + + enum CodingKeys: String, CodingKey { + case status = "Status" + } + + public func validate() throws { + } +} + +public struct DescribeOrganizationsAccessOutputForDescribeOrganizationsAccess: Codable, Equatable { + public var describeOrganizationsAccessResult: DescribeOrganizationsAccessOutput + + public init(describeOrganizationsAccessResult: DescribeOrganizationsAccessOutput) { + self.describeOrganizationsAccessResult = describeOrganizationsAccessResult + } + + enum CodingKeys: String, CodingKey { + case describeOrganizationsAccessResult = "DescribeOrganizationsAccessResult" + } + + public func validate() throws { + try describeOrganizationsAccessResult.validate() + } +} + public struct DescribePublisherInput: Codable, Equatable { public var publisherId: PublisherId? @@ -5498,6 +5620,7 @@ public struct StackSet: Codable, Equatable { public var organizationalUnitIds: OrganizationalUnitIdList? public var parameters: Parameters? public var permissionModel: PermissionModels? + public var regions: RegionList? public var stackSetARN: StackSetARN? public var stackSetDriftDetectionDetails: StackSetDriftDetectionDetails? public var stackSetId: StackSetId? @@ -5515,6 +5638,7 @@ public struct StackSet: Codable, Equatable { organizationalUnitIds: OrganizationalUnitIdList? = nil, parameters: Parameters? = nil, permissionModel: PermissionModels? = nil, + regions: RegionList? = nil, stackSetARN: StackSetARN? = nil, stackSetDriftDetectionDetails: StackSetDriftDetectionDetails? = nil, stackSetId: StackSetId? = nil, @@ -5531,6 +5655,7 @@ public struct StackSet: Codable, Equatable { self.organizationalUnitIds = organizationalUnitIds self.parameters = parameters self.permissionModel = permissionModel + self.regions = regions self.stackSetARN = stackSetARN self.stackSetDriftDetectionDetails = stackSetDriftDetectionDetails self.stackSetId = stackSetId @@ -5550,6 +5675,7 @@ public struct StackSet: Codable, Equatable { case organizationalUnitIds = "OrganizationalUnitIds" case parameters = "Parameters" case permissionModel = "PermissionModel" + case regions = "Regions" case stackSetARN = "StackSetARN" case stackSetDriftDetectionDetails = "StackSetDriftDetectionDetails" case stackSetId = "StackSetId" diff --git a/Sources/CloudformationModel/CloudformationModelTypes.swift b/Sources/CloudformationModel/CloudformationModelTypes.swift index 2bcdaef..ee5b37a 100644 --- a/Sources/CloudformationModel/CloudformationModelTypes.swift +++ b/Sources/CloudformationModel/CloudformationModelTypes.swift @@ -758,6 +758,21 @@ public enum OnFailure: String, Codable, CustomStringConvertible { public static let __default: OnFailure = .delete } +/** + Enumeration restricting the values of the OnStackFailure field. + */ +public enum OnStackFailure: String, Codable, CustomStringConvertible { + case delete = "DELETE" + case doNothing = "DO_NOTHING" + case rollback = "ROLLBACK" + + public var description: String { + return rawValue + } + + public static let __default: OnStackFailure = .delete +} + /** Enumeration restricting the values of the OperationResultFilterName field. */ @@ -802,6 +817,21 @@ public enum OperationStatus: String, Codable, CustomStringConvertible { */ public typealias OptionalSecureUrl = String +/** + Enumeration restricting the values of the OrganizationStatus field. + */ +public enum OrganizationStatus: String, Codable, CustomStringConvertible { + case disabled = "DISABLED" + case disabledPermanently = "DISABLED_PERMANENTLY" + case enabled = "ENABLED" + + public var description: String { + return rawValue + } + + public static let __default: OrganizationStatus = .disabled +} + /** Type definition for the OrganizationalUnitId field. */ @@ -1325,6 +1355,7 @@ public enum StackInstanceDetailedStatus: String, Codable, CustomStringConvertibl case inoperable = "INOPERABLE" case pending = "PENDING" case running = "RUNNING" + case skippedSuspendedAccount = "SKIPPED_SUSPENDED_ACCOUNT" case succeeded = "SUCCEEDED" public var description: String { diff --git a/Sources/CodePipelineModel/CodePipelineModelDefaultInstances.swift b/Sources/CodePipelineModel/CodePipelineModelDefaultInstances.swift index 4ce9502..b3b51ad 100644 --- a/Sources/CodePipelineModel/CodePipelineModelDefaultInstances.swift +++ b/Sources/CodePipelineModel/CodePipelineModelDefaultInstances.swift @@ -1607,6 +1607,7 @@ public extension PipelineMetadata { let defaultInstance = CodePipelineModel.PipelineMetadata( created: nil, pipelineArn: nil, + pollingDisabledAt: nil, updated: nil) return defaultInstance diff --git a/Sources/CodePipelineModel/CodePipelineModelStructures.swift b/Sources/CodePipelineModel/CodePipelineModelStructures.swift index 74b07e6..a246764 100644 --- a/Sources/CodePipelineModel/CodePipelineModelStructures.swift +++ b/Sources/CodePipelineModel/CodePipelineModelStructures.swift @@ -2633,19 +2633,23 @@ public struct PipelineExecutionSummary: Codable, Equatable { public struct PipelineMetadata: Codable, Equatable { public var created: Timestamp? public var pipelineArn: PipelineArn? + public var pollingDisabledAt: Timestamp? public var updated: Timestamp? public init(created: Timestamp? = nil, pipelineArn: PipelineArn? = nil, + pollingDisabledAt: Timestamp? = nil, updated: Timestamp? = nil) { self.created = created self.pipelineArn = pipelineArn + self.pollingDisabledAt = pollingDisabledAt self.updated = updated } enum CodingKeys: String, CodingKey { case created case pipelineArn + case pollingDisabledAt case updated } diff --git a/Sources/DynamoDBModel/DynamoDBModelDefaultInstances.swift b/Sources/DynamoDBModel/DynamoDBModelDefaultInstances.swift index 3e2ecbb..31cfced 100644 --- a/Sources/DynamoDBModel/DynamoDBModelDefaultInstances.swift +++ b/Sources/DynamoDBModel/DynamoDBModelDefaultInstances.swift @@ -308,6 +308,7 @@ public extension BatchStatementError { static let __default: DynamoDBModel.BatchStatementError = { let defaultInstance = DynamoDBModel.BatchStatementError( code: nil, + item: nil, message: nil) return defaultInstance @@ -322,6 +323,7 @@ public extension BatchStatementRequest { let defaultInstance = DynamoDBModel.BatchStatementRequest( consistentRead: nil, parameters: nil, + returnValuesOnConditionCheckFailure: nil, statement: "0") return defaultInstance @@ -447,6 +449,7 @@ public extension ConditionalCheckFailedException { */ static let __default: DynamoDBModel.ConditionalCheckFailedException = { let defaultInstance = DynamoDBModel.ConditionalCheckFailedException( + item: nil, message: nil) return defaultInstance @@ -611,6 +614,7 @@ public extension CreateTableInput { let defaultInstance = DynamoDBModel.CreateTableInput( attributeDefinitions: [], billingMode: nil, + deletionProtectionEnabled: nil, globalSecondaryIndexes: nil, keySchema: [KeySchemaElement.__default], localSecondaryIndexes: nil, @@ -718,6 +722,7 @@ public extension DeleteItemInput { returnConsumedCapacity: nil, returnItemCollectionMetrics: nil, returnValues: nil, + returnValuesOnConditionCheckFailure: nil, tableName: "012") return defaultInstance @@ -1155,6 +1160,7 @@ public extension ExecuteStatementInput { nextToken: nil, parameters: nil, returnConsumedCapacity: nil, + returnValuesOnConditionCheckFailure: nil, statement: "0") return defaultInstance @@ -2055,6 +2061,7 @@ public extension ParameterizedStatement { static let __default: DynamoDBModel.ParameterizedStatement = { let defaultInstance = DynamoDBModel.ParameterizedStatement( parameters: nil, + returnValuesOnConditionCheckFailure: nil, statement: "0") return defaultInstance @@ -2197,6 +2204,7 @@ public extension PutItemInput { returnConsumedCapacity: nil, returnItemCollectionMetrics: nil, returnValues: nil, + returnValuesOnConditionCheckFailure: nil, tableName: "012") return defaultInstance @@ -2823,6 +2831,7 @@ public extension TableDescription { attributeDefinitions: nil, billingModeSummary: nil, creationDateTime: nil, + deletionProtectionEnabled: nil, globalSecondaryIndexes: nil, globalTableVersion: nil, itemCount: nil, @@ -3208,6 +3217,7 @@ public extension UpdateItemInput { returnConsumedCapacity: nil, returnItemCollectionMetrics: nil, returnValues: nil, + returnValuesOnConditionCheckFailure: nil, tableName: "012", updateExpression: nil) @@ -3253,6 +3263,7 @@ public extension UpdateTableInput { let defaultInstance = DynamoDBModel.UpdateTableInput( attributeDefinitions: nil, billingMode: nil, + deletionProtectionEnabled: nil, globalSecondaryIndexUpdates: nil, provisionedThroughput: nil, replicaUpdates: nil, diff --git a/Sources/DynamoDBModel/DynamoDBModelStructures.swift b/Sources/DynamoDBModel/DynamoDBModelStructures.swift index ea66e95..f7715c8 100644 --- a/Sources/DynamoDBModel/DynamoDBModelStructures.swift +++ b/Sources/DynamoDBModel/DynamoDBModelStructures.swift @@ -251,12 +251,12 @@ public struct AutoScalingTargetTrackingScalingPolicyConfigurationDescription: Co public var disableScaleIn: BooleanObject? public var scaleInCooldown: IntegerObject? public var scaleOutCooldown: IntegerObject? - public var targetValue: Double + public var targetValue: DoubleObject public init(disableScaleIn: BooleanObject? = nil, scaleInCooldown: IntegerObject? = nil, scaleOutCooldown: IntegerObject? = nil, - targetValue: Double) { + targetValue: DoubleObject) { self.disableScaleIn = disableScaleIn self.scaleInCooldown = scaleInCooldown self.scaleOutCooldown = scaleOutCooldown @@ -278,12 +278,12 @@ public struct AutoScalingTargetTrackingScalingPolicyConfigurationUpdate: Codable public var disableScaleIn: BooleanObject? public var scaleInCooldown: IntegerObject? public var scaleOutCooldown: IntegerObject? - public var targetValue: Double + public var targetValue: DoubleObject public init(disableScaleIn: BooleanObject? = nil, scaleInCooldown: IntegerObject? = nil, scaleOutCooldown: IntegerObject? = nil, - targetValue: Double) { + targetValue: DoubleObject) { self.disableScaleIn = disableScaleIn self.scaleInCooldown = scaleInCooldown self.scaleOutCooldown = scaleOutCooldown @@ -538,16 +538,20 @@ public struct BatchGetItemOutput: Codable, Equatable { public struct BatchStatementError: Codable, Equatable { public var code: BatchStatementErrorCodeEnum? + public var item: AttributeMap? public var message: String? public init(code: BatchStatementErrorCodeEnum? = nil, + item: AttributeMap? = nil, message: String? = nil) { self.code = code + self.item = item self.message = message } enum CodingKeys: String, CodingKey { case code = "Code" + case item = "Item" case message = "Message" } @@ -558,19 +562,23 @@ public struct BatchStatementError: Codable, Equatable { public struct BatchStatementRequest: Codable, Equatable { public var consistentRead: ConsistentRead? public var parameters: PreparedStatementParameters? + public var returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? public var statement: PartiQLStatement public init(consistentRead: ConsistentRead? = nil, parameters: PreparedStatementParameters? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, statement: PartiQLStatement) { self.consistentRead = consistentRead self.parameters = parameters + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.statement = statement } enum CodingKeys: String, CodingKey { case consistentRead = "ConsistentRead" case parameters = "Parameters" + case returnValuesOnConditionCheckFailure = "ReturnValuesOnConditionCheckFailure" case statement = "Statement" } @@ -772,13 +780,17 @@ public struct ConditionCheck: Codable, Equatable { } public struct ConditionalCheckFailedException: Codable, Equatable { + public var item: AttributeMap? public var message: ErrorMessage? - public init(message: ErrorMessage? = nil) { + public init(item: AttributeMap? = nil, + message: ErrorMessage? = nil) { + self.item = item self.message = message } enum CodingKeys: String, CodingKey { + case item = "Item" case message } @@ -1042,6 +1054,7 @@ public struct CreateReplicationGroupMemberAction: Codable, Equatable { public struct CreateTableInput: Codable, Equatable { public var attributeDefinitions: AttributeDefinitions public var billingMode: BillingMode? + public var deletionProtectionEnabled: DeletionProtectionEnabled? public var globalSecondaryIndexes: GlobalSecondaryIndexList? public var keySchema: KeySchema public var localSecondaryIndexes: LocalSecondaryIndexList? @@ -1054,6 +1067,7 @@ public struct CreateTableInput: Codable, Equatable { public init(attributeDefinitions: AttributeDefinitions, billingMode: BillingMode? = nil, + deletionProtectionEnabled: DeletionProtectionEnabled? = nil, globalSecondaryIndexes: GlobalSecondaryIndexList? = nil, keySchema: KeySchema, localSecondaryIndexes: LocalSecondaryIndexList? = nil, @@ -1065,6 +1079,7 @@ public struct CreateTableInput: Codable, Equatable { tags: TagList? = nil) { self.attributeDefinitions = attributeDefinitions self.billingMode = billingMode + self.deletionProtectionEnabled = deletionProtectionEnabled self.globalSecondaryIndexes = globalSecondaryIndexes self.keySchema = keySchema self.localSecondaryIndexes = localSecondaryIndexes @@ -1079,6 +1094,7 @@ public struct CreateTableInput: Codable, Equatable { enum CodingKeys: String, CodingKey { case attributeDefinitions = "AttributeDefinitions" case billingMode = "BillingMode" + case deletionProtectionEnabled = "DeletionProtectionEnabled" case globalSecondaryIndexes = "GlobalSecondaryIndexes" case keySchema = "KeySchema" case localSecondaryIndexes = "LocalSecondaryIndexes" @@ -1230,6 +1246,7 @@ public struct DeleteItemInput: Codable, Equatable { public var returnConsumedCapacity: ReturnConsumedCapacity? public var returnItemCollectionMetrics: ReturnItemCollectionMetrics? public var returnValues: ReturnValue? + public var returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? public var tableName: TableName public init(conditionExpression: ConditionExpression? = nil, @@ -1241,6 +1258,7 @@ public struct DeleteItemInput: Codable, Equatable { returnConsumedCapacity: ReturnConsumedCapacity? = nil, returnItemCollectionMetrics: ReturnItemCollectionMetrics? = nil, returnValues: ReturnValue? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: TableName) { self.conditionExpression = conditionExpression self.conditionalOperator = conditionalOperator @@ -1251,6 +1269,7 @@ public struct DeleteItemInput: Codable, Equatable { self.returnConsumedCapacity = returnConsumedCapacity self.returnItemCollectionMetrics = returnItemCollectionMetrics self.returnValues = returnValues + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.tableName = tableName } @@ -1264,6 +1283,7 @@ public struct DeleteItemInput: Codable, Equatable { case returnConsumedCapacity = "ReturnConsumedCapacity" case returnItemCollectionMetrics = "ReturnItemCollectionMetrics" case returnValues = "ReturnValues" + case returnValuesOnConditionCheckFailure = "ReturnValuesOnConditionCheckFailure" case tableName = "TableName" } @@ -1865,6 +1885,7 @@ public struct ExecuteStatementInput: Codable, Equatable { public var nextToken: PartiQLNextToken? public var parameters: PreparedStatementParameters? public var returnConsumedCapacity: ReturnConsumedCapacity? + public var returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? public var statement: PartiQLStatement public init(consistentRead: ConsistentRead? = nil, @@ -1872,12 +1893,14 @@ public struct ExecuteStatementInput: Codable, Equatable { nextToken: PartiQLNextToken? = nil, parameters: PreparedStatementParameters? = nil, returnConsumedCapacity: ReturnConsumedCapacity? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, statement: PartiQLStatement) { self.consistentRead = consistentRead self.limit = limit self.nextToken = nextToken self.parameters = parameters self.returnConsumedCapacity = returnConsumedCapacity + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.statement = statement } @@ -1887,6 +1910,7 @@ public struct ExecuteStatementInput: Codable, Equatable { case nextToken = "NextToken" case parameters = "Parameters" case returnConsumedCapacity = "ReturnConsumedCapacity" + case returnValuesOnConditionCheckFailure = "ReturnValuesOnConditionCheckFailure" case statement = "Statement" } @@ -2378,9 +2402,9 @@ public struct GlobalSecondaryIndexDescription: Codable, Equatable { public var backfilling: Backfilling? public var indexArn: String? public var indexName: IndexName? - public var indexSizeBytes: Long? + public var indexSizeBytes: LongObject? public var indexStatus: IndexStatus? - public var itemCount: Long? + public var itemCount: LongObject? public var keySchema: KeySchema? public var projection: Projection? public var provisionedThroughput: ProvisionedThroughputDescription? @@ -2388,9 +2412,9 @@ public struct GlobalSecondaryIndexDescription: Codable, Equatable { public init(backfilling: Backfilling? = nil, indexArn: String? = nil, indexName: IndexName? = nil, - indexSizeBytes: Long? = nil, + indexSizeBytes: LongObject? = nil, indexStatus: IndexStatus? = nil, - itemCount: Long? = nil, + itemCount: LongObject? = nil, keySchema: KeySchema? = nil, projection: Projection? = nil, provisionedThroughput: ProvisionedThroughputDescription? = nil) { @@ -2695,7 +2719,7 @@ public struct ImportTableDescription: Codable, Equatable { public var inputFormat: InputFormat? public var inputFormatOptions: InputFormatOptions? public var processedItemCount: ProcessedItemCount? - public var processedSizeBytes: Long? + public var processedSizeBytes: LongObject? public var s3BucketSource: S3BucketSource? public var startTime: ImportStartTime? public var tableArn: TableArn? @@ -2715,7 +2739,7 @@ public struct ImportTableDescription: Codable, Equatable { inputFormat: InputFormat? = nil, inputFormatOptions: InputFormatOptions? = nil, processedItemCount: ProcessedItemCount? = nil, - processedSizeBytes: Long? = nil, + processedSizeBytes: LongObject? = nil, s3BucketSource: S3BucketSource? = nil, startTime: ImportStartTime? = nil, tableArn: TableArn? = nil, @@ -3440,15 +3464,15 @@ public struct LocalSecondaryIndex: Codable, Equatable { public struct LocalSecondaryIndexDescription: Codable, Equatable { public var indexArn: String? public var indexName: IndexName? - public var indexSizeBytes: Long? - public var itemCount: Long? + public var indexSizeBytes: LongObject? + public var itemCount: LongObject? public var keySchema: KeySchema? public var projection: Projection? public init(indexArn: String? = nil, indexName: IndexName? = nil, - indexSizeBytes: Long? = nil, - itemCount: Long? = nil, + indexSizeBytes: LongObject? = nil, + itemCount: LongObject? = nil, keySchema: KeySchema? = nil, projection: Projection? = nil) { self.indexArn = indexArn @@ -3503,16 +3527,20 @@ public struct LocalSecondaryIndexInfo: Codable, Equatable { public struct ParameterizedStatement: Codable, Equatable { public var parameters: PreparedStatementParameters? + public var returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? public var statement: PartiQLStatement public init(parameters: PreparedStatementParameters? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, statement: PartiQLStatement) { self.parameters = parameters + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.statement = statement } enum CodingKeys: String, CodingKey { case parameters = "Parameters" + case returnValuesOnConditionCheckFailure = "ReturnValuesOnConditionCheckFailure" case statement = "Statement" } @@ -3727,6 +3755,7 @@ public struct PutItemInput: Codable, Equatable { public var returnConsumedCapacity: ReturnConsumedCapacity? public var returnItemCollectionMetrics: ReturnItemCollectionMetrics? public var returnValues: ReturnValue? + public var returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? public var tableName: TableName public init(conditionExpression: ConditionExpression? = nil, @@ -3738,6 +3767,7 @@ public struct PutItemInput: Codable, Equatable { returnConsumedCapacity: ReturnConsumedCapacity? = nil, returnItemCollectionMetrics: ReturnItemCollectionMetrics? = nil, returnValues: ReturnValue? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: TableName) { self.conditionExpression = conditionExpression self.conditionalOperator = conditionalOperator @@ -3748,6 +3778,7 @@ public struct PutItemInput: Codable, Equatable { self.returnConsumedCapacity = returnConsumedCapacity self.returnItemCollectionMetrics = returnItemCollectionMetrics self.returnValues = returnValues + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.tableName = tableName } @@ -3761,6 +3792,7 @@ public struct PutItemInput: Codable, Equatable { case returnConsumedCapacity = "ReturnConsumedCapacity" case returnItemCollectionMetrics = "ReturnItemCollectionMetrics" case returnValues = "ReturnValues" + case returnValuesOnConditionCheckFailure = "ReturnValuesOnConditionCheckFailure" case tableName = "TableName" } @@ -4769,7 +4801,7 @@ public struct SourceTableDetails: Codable, Equatable { public var tableCreationDateTime: TableCreationDateTime public var tableId: TableId public var tableName: TableName - public var tableSizeBytes: Long? + public var tableSizeBytes: LongObject? public init(billingMode: BillingMode? = nil, itemCount: ItemCount? = nil, @@ -4779,7 +4811,7 @@ public struct SourceTableDetails: Codable, Equatable { tableCreationDateTime: TableCreationDateTime, tableId: TableId, tableName: TableName, - tableSizeBytes: Long? = nil) { + tableSizeBytes: LongObject? = nil) { self.billingMode = billingMode self.itemCount = itemCount self.keySchema = keySchema @@ -4971,9 +5003,10 @@ public struct TableDescription: Codable, Equatable { public var attributeDefinitions: AttributeDefinitions? public var billingModeSummary: BillingModeSummary? public var creationDateTime: Date? + public var deletionProtectionEnabled: DeletionProtectionEnabled? public var globalSecondaryIndexes: GlobalSecondaryIndexDescriptionList? public var globalTableVersion: String? - public var itemCount: Long? + public var itemCount: LongObject? public var keySchema: KeySchema? public var latestStreamArn: StreamArn? public var latestStreamLabel: String? @@ -4987,16 +5020,17 @@ public struct TableDescription: Codable, Equatable { public var tableClassSummary: TableClassSummary? public var tableId: TableId? public var tableName: TableName? - public var tableSizeBytes: Long? + public var tableSizeBytes: LongObject? public var tableStatus: TableStatus? public init(archivalSummary: ArchivalSummary? = nil, attributeDefinitions: AttributeDefinitions? = nil, billingModeSummary: BillingModeSummary? = nil, creationDateTime: Date? = nil, + deletionProtectionEnabled: DeletionProtectionEnabled? = nil, globalSecondaryIndexes: GlobalSecondaryIndexDescriptionList? = nil, globalTableVersion: String? = nil, - itemCount: Long? = nil, + itemCount: LongObject? = nil, keySchema: KeySchema? = nil, latestStreamArn: StreamArn? = nil, latestStreamLabel: String? = nil, @@ -5010,12 +5044,13 @@ public struct TableDescription: Codable, Equatable { tableClassSummary: TableClassSummary? = nil, tableId: TableId? = nil, tableName: TableName? = nil, - tableSizeBytes: Long? = nil, + tableSizeBytes: LongObject? = nil, tableStatus: TableStatus? = nil) { self.archivalSummary = archivalSummary self.attributeDefinitions = attributeDefinitions self.billingModeSummary = billingModeSummary self.creationDateTime = creationDateTime + self.deletionProtectionEnabled = deletionProtectionEnabled self.globalSecondaryIndexes = globalSecondaryIndexes self.globalTableVersion = globalTableVersion self.itemCount = itemCount @@ -5041,6 +5076,7 @@ public struct TableDescription: Codable, Equatable { case attributeDefinitions = "AttributeDefinitions" case billingModeSummary = "BillingModeSummary" case creationDateTime = "CreationDateTime" + case deletionProtectionEnabled = "DeletionProtectionEnabled" case globalSecondaryIndexes = "GlobalSecondaryIndexes" case globalTableVersion = "GlobalTableVersion" case itemCount = "ItemCount" @@ -5647,6 +5683,7 @@ public struct UpdateItemInput: Codable, Equatable { public var returnConsumedCapacity: ReturnConsumedCapacity? public var returnItemCollectionMetrics: ReturnItemCollectionMetrics? public var returnValues: ReturnValue? + public var returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? public var tableName: TableName public var updateExpression: UpdateExpression? @@ -5660,6 +5697,7 @@ public struct UpdateItemInput: Codable, Equatable { returnConsumedCapacity: ReturnConsumedCapacity? = nil, returnItemCollectionMetrics: ReturnItemCollectionMetrics? = nil, returnValues: ReturnValue? = nil, + returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: TableName, updateExpression: UpdateExpression? = nil) { self.attributeUpdates = attributeUpdates @@ -5672,6 +5710,7 @@ public struct UpdateItemInput: Codable, Equatable { self.returnConsumedCapacity = returnConsumedCapacity self.returnItemCollectionMetrics = returnItemCollectionMetrics self.returnValues = returnValues + self.returnValuesOnConditionCheckFailure = returnValuesOnConditionCheckFailure self.tableName = tableName self.updateExpression = updateExpression } @@ -5687,6 +5726,7 @@ public struct UpdateItemInput: Codable, Equatable { case returnConsumedCapacity = "ReturnConsumedCapacity" case returnItemCollectionMetrics = "ReturnItemCollectionMetrics" case returnValues = "ReturnValues" + case returnValuesOnConditionCheckFailure = "ReturnValuesOnConditionCheckFailure" case tableName = "TableName" case updateExpression = "UpdateExpression" } @@ -5757,6 +5797,7 @@ public struct UpdateReplicationGroupMemberAction: Codable, Equatable { public struct UpdateTableInput: Codable, Equatable { public var attributeDefinitions: AttributeDefinitions? public var billingMode: BillingMode? + public var deletionProtectionEnabled: DeletionProtectionEnabled? public var globalSecondaryIndexUpdates: GlobalSecondaryIndexUpdateList? public var provisionedThroughput: ProvisionedThroughput? public var replicaUpdates: ReplicationGroupUpdateList? @@ -5767,6 +5808,7 @@ public struct UpdateTableInput: Codable, Equatable { public init(attributeDefinitions: AttributeDefinitions? = nil, billingMode: BillingMode? = nil, + deletionProtectionEnabled: DeletionProtectionEnabled? = nil, globalSecondaryIndexUpdates: GlobalSecondaryIndexUpdateList? = nil, provisionedThroughput: ProvisionedThroughput? = nil, replicaUpdates: ReplicationGroupUpdateList? = nil, @@ -5776,6 +5818,7 @@ public struct UpdateTableInput: Codable, Equatable { tableName: TableName) { self.attributeDefinitions = attributeDefinitions self.billingMode = billingMode + self.deletionProtectionEnabled = deletionProtectionEnabled self.globalSecondaryIndexUpdates = globalSecondaryIndexUpdates self.provisionedThroughput = provisionedThroughput self.replicaUpdates = replicaUpdates @@ -5788,6 +5831,7 @@ public struct UpdateTableInput: Codable, Equatable { enum CodingKeys: String, CodingKey { case attributeDefinitions = "AttributeDefinitions" case billingMode = "BillingMode" + case deletionProtectionEnabled = "DeletionProtectionEnabled" case globalSecondaryIndexUpdates = "GlobalSecondaryIndexUpdates" case provisionedThroughput = "ProvisionedThroughput" case replicaUpdates = "ReplicaUpdates" diff --git a/Sources/DynamoDBModel/DynamoDBModelTypes.swift b/Sources/DynamoDBModel/DynamoDBModelTypes.swift index f71346d..35979c4 100644 --- a/Sources/DynamoDBModel/DynamoDBModelTypes.swift +++ b/Sources/DynamoDBModel/DynamoDBModelTypes.swift @@ -409,6 +409,11 @@ public typealias CsvHeaderList = [CsvHeader] */ public typealias Date = String +/** + Type definition for the DeletionProtectionEnabled field. + */ +public typealias DeletionProtectionEnabled = Bool + /** Enumeration restricting the values of the DestinationStatus field. */ @@ -426,6 +431,11 @@ public enum DestinationStatus: String, Codable, CustomStringConvertible { public static let __default: DestinationStatus = .active } +/** + Type definition for the DoubleObject field. + */ +public typealias DoubleObject = Double + /** Type definition for the Endpoints field. */ @@ -868,6 +878,11 @@ public typealias LocalSecondaryIndexes = [LocalSecondaryIndexInfo] */ public typealias Long = Int +/** + Type definition for the LongObject field. + */ +public typealias LongObject = Int + /** Type definition for the MapAttributeValue field. */ diff --git a/Sources/ElasticComputeCloudClient/AWSElasticComputeCloudClient.swift b/Sources/ElasticComputeCloudClient/AWSElasticComputeCloudClient.swift index d558def..084a5da 100644 --- a/Sources/ElasticComputeCloudClient/AWSElasticComputeCloudClient.swift +++ b/Sources/ElasticComputeCloudClient/AWSElasticComputeCloudClient.swift @@ -1217,6 +1217,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.assignPrivateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = AssignPrivateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.assignPrivateNatGatewayAddress.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the AssignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.assignPrivateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = AssignPrivateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.assignPrivateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the AssociateAddress operation returning immediately and passing the response to a callback. @@ -1670,6 +1746,158 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.associateIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = AssociateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.associateIpamResourceDiscovery.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the AssociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.associateIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = AssociateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.associateIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the AssociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func associateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.associateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = AssociateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.associateNatGatewayAddress.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the AssociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.associateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = AssociateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.associateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the AssociateRouteTable operation returning immediately and passing the response to a callback. @@ -5233,6 +5461,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createInstanceConnectEndpoint, + handlerDelegate: handlerDelegate) + let wrappedInput = CreateInstanceConnectEndpointOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.createInstanceConnectEndpoint.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the CreateInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createInstanceConnectEndpoint, + handlerDelegate: handlerDelegate) + let wrappedInput = CreateInstanceConnectEndpointOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.createInstanceConnectEndpoint.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the CreateInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -5613,6 +5917,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = CreateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.createIpamResourceDiscovery.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the CreateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = CreateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.createIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the CreateIpamScope operation returning immediately and passing the response to a callback. @@ -10918,6 +11298,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteInstanceConnectEndpoint, + handlerDelegate: handlerDelegate) + let wrappedInput = DeleteInstanceConnectEndpointOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.deleteInstanceConnectEndpoint.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DeleteInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteInstanceConnectEndpoint, + handlerDelegate: handlerDelegate) + let wrappedInput = DeleteInstanceConnectEndpointOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.deleteInstanceConnectEndpoint.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -11219,6 +11675,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = DeleteIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.deleteIpamResourceDiscovery.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DeleteIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = DeleteIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.deleteIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteIpamScope operation returning immediately and passing the response to a callback. @@ -19449,6 +19981,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeInstanceConnectEndpoints, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeInstanceConnectEndpointsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeInstanceConnectEndpoints.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DescribeInstanceConnectEndpoints operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpointsSync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeInstanceConnectEndpoints, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeInstanceConnectEndpointsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeInstanceConnectEndpoints.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeInstanceCreditSpecifications operation returning immediately and passing the response to a callback. @@ -20133,6 +20741,158 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeIpamResourceDiscoveries, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeIpamResourceDiscoveriesOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeIpamResourceDiscoveries.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DescribeIpamResourceDiscoveries operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveriesSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeIpamResourceDiscoveries, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeIpamResourceDiscoveriesOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeIpamResourceDiscoveries.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveryAssociationsResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveryAssociationsResult + object will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociationsAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeIpamResourceDiscoveryAssociations, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeIpamResourceDiscoveryAssociationsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeIpamResourceDiscoveryAssociations.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociationsSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeIpamResourceDiscoveryAssociations, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeIpamResourceDiscoveryAssociationsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeIpamResourceDiscoveryAssociations.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeIpamScopes operation returning immediately and passing the response to a callback. @@ -28554,6 +29314,158 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.disassociateIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = DisassociateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.disassociateIpamResourceDiscovery.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DisassociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.disassociateIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = DisassociateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.disassociateIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the DisassociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - completion: The DisassociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The DisassociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.disassociateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = DisassociateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.disassociateNatGatewayAddress.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DisassociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddressSync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.disassociateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = DisassociateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.disassociateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DisassociateRouteTable operation returning immediately and passing the response to a callback. @@ -31661,6 +32573,158 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getIpamDiscoveredAccounts, + handlerDelegate: handlerDelegate) + let wrappedInput = GetIpamDiscoveredAccountsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getIpamDiscoveredAccounts.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the GetIpamDiscoveredAccounts operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccountsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getIpamDiscoveredAccounts, + handlerDelegate: handlerDelegate) + let wrappedInput = GetIpamDiscoveredAccountsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getIpamDiscoveredAccounts.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredResourceCidrsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredResourceCidrsResult + object will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getIpamDiscoveredResourceCidrs, + handlerDelegate: handlerDelegate) + let wrappedInput = GetIpamDiscoveredResourceCidrsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getIpamDiscoveredResourceCidrs.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getIpamDiscoveredResourceCidrs, + handlerDelegate: handlerDelegate) + let wrappedInput = GetIpamDiscoveredResourceCidrsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getIpamDiscoveredResourceCidrs.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the GetIpamPoolAllocations operation returning immediately and passing the response to a callback. @@ -33485,6 +34549,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getVpnTunnelReplacementStatus, + handlerDelegate: handlerDelegate) + let wrappedInput = GetVpnTunnelReplacementStatusOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getVpnTunnelReplacementStatus.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the GetVpnTunnelReplacementStatus operation waiting for the response before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatusSync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getVpnTunnelReplacementStatus, + handlerDelegate: handlerDelegate) + let wrappedInput = GetVpnTunnelReplacementStatusOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getVpnTunnelReplacementStatus.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation returning immediately and passing the response to a callback. @@ -35905,6 +37045,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.modifyIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = ModifyIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.modifyIpamResourceDiscovery.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the ModifyIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.modifyIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = ModifyIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.modifyIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the ModifyIpamScope operation returning immediately and passing the response to a callback. @@ -40970,6 +42186,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.replaceVpnTunnel, + handlerDelegate: handlerDelegate) + let wrappedInput = ReplaceVpnTunnelOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.replaceVpnTunnel.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the ReplaceVpnTunnel operation waiting for the response before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func replaceVpnTunnelSync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.replaceVpnTunnel, + handlerDelegate: handlerDelegate) + let wrappedInput = ReplaceVpnTunnelOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.replaceVpnTunnel.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the ReportInstanceStatus operation returning immediately and passing the response to a callback. @@ -43457,6 +44749,82 @@ public struct AWSElasticComputeCloudClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.unassignPrivateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = UnassignPrivateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.unassignPrivateNatGatewayAddress.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the UnassignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.unassignPrivateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = UnassignPrivateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.unassignPrivateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the UnmonitorInstances operation returning immediately and passing the response to a callback. @@ -44309,6 +45677,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.assignPrivateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = AssignPrivateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.assignPrivateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the AssociateAddress operation suspending until the response is available before returning. @@ -44541,6 +45948,84 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.associateIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = AssociateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.associateIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the AssociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateNatGatewayAddress( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.associateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = AssociateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.associateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the AssociateRouteTable operation suspending until the response is available before returning. @@ -46368,6 +47853,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createInstanceConnectEndpoint, + handlerDelegate: handlerDelegate) + let wrappedInput = CreateInstanceConnectEndpointOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.createInstanceConnectEndpoint.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the CreateInstanceEventWindow operation suspending until the response is available before returning. @@ -46563,6 +48087,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = CreateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.createIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the CreateIpamScope operation suspending until the response is available before returning. @@ -49283,6 +50846,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteInstanceConnectEndpoint, + handlerDelegate: handlerDelegate) + let wrappedInput = DeleteInstanceConnectEndpointOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.deleteInstanceConnectEndpoint.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteInstanceEventWindow operation suspending until the response is available before returning. @@ -49437,6 +51039,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = DeleteIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.deleteIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteIpamScope operation suspending until the response is available before returning. @@ -53652,6 +55293,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeInstanceConnectEndpoints, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeInstanceConnectEndpointsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeInstanceConnectEndpoints.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeInstanceCreditSpecifications operation suspending until the response is available before returning. @@ -54003,6 +55683,84 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeIpamResourceDiscoveries, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeIpamResourceDiscoveriesOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeIpamResourceDiscoveries.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociations( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeIpamResourceDiscoveryAssociations, + handlerDelegate: handlerDelegate) + let wrappedInput = DescribeIpamResourceDiscoveryAssociationsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.describeIpamResourceDiscoveryAssociations.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeIpamScopes operation suspending until the response is available before returning. @@ -58322,6 +60080,84 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.disassociateIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = DisassociateIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.disassociateIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the DisassociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddress( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.disassociateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = DisassociateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.disassociateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the DisassociateRouteTable operation suspending until the response is available before returning. @@ -59915,6 +61751,84 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getIpamDiscoveredAccounts, + handlerDelegate: handlerDelegate) + let wrappedInput = GetIpamDiscoveredAccountsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getIpamDiscoveredAccounts.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrs( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getIpamDiscoveredResourceCidrs, + handlerDelegate: handlerDelegate) + let wrappedInput = GetIpamDiscoveredResourceCidrsOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getIpamDiscoveredResourceCidrs.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the GetIpamPoolAllocations operation suspending until the response is available before returning. @@ -60851,6 +62765,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.getVpnTunnelReplacementStatus, + handlerDelegate: handlerDelegate) + let wrappedInput = GetVpnTunnelReplacementStatusOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.getVpnTunnelReplacementStatus.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation suspending until the response is available before returning. @@ -62091,6 +64044,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.modifyIpamResourceDiscovery, + handlerDelegate: handlerDelegate) + let wrappedInput = ModifyIpamResourceDiscoveryOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.modifyIpamResourceDiscovery.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the ModifyIpamScope operation suspending until the response is available before returning. @@ -64686,6 +66678,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.ReplaceVpnTunnelResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.replaceVpnTunnel, + handlerDelegate: handlerDelegate) + let wrappedInput = ReplaceVpnTunnelOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.replaceVpnTunnel.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the ReportInstanceStatus operation suspending until the response is available before returning. @@ -65959,6 +67990,45 @@ public struct AWSElasticComputeCloudClient ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.unassignPrivateNatGatewayAddress, + handlerDelegate: handlerDelegate) + let wrappedInput = UnassignPrivateNatGatewayAddressOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: ElasticComputeCloudModelOperations.unassignPrivateNatGatewayAddress.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticComputeCloudError = error.asTypedError() + throw typedError + } + } + /** Invokes the UnmonitorInstances operation suspending until the response is available before returning. diff --git a/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol+async.swift b/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol+async.swift index 66740c6..a2576a1 100644 --- a/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol+async.swift +++ b/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol+async.swift @@ -394,6 +394,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the AssignPrivateNatGatewayAddress operation and asynchronously returning the response. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func assignPrivateNatGatewayAddress(input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) async throws + -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + return try await withCheckedThrowingContinuation { cont in + do { + try assignPrivateNatGatewayAddressAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the AssociateAddress operation and asynchronously returning the response. @@ -546,6 +572,58 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the AssociateIpamResourceDiscovery operation and asynchronously returning the response. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func associateIpamResourceDiscovery(input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) async throws + -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + return try await withCheckedThrowingContinuation { cont in + do { + try associateIpamResourceDiscoveryAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + + /** + Invokes the AssociateNatGatewayAddress operation and asynchronously returning the response. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func associateNatGatewayAddress(input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) async throws + -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + return try await withCheckedThrowingContinuation { cont in + do { + try associateNatGatewayAddressAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the AssociateRouteTable operation and asynchronously returning the response. @@ -1756,6 +1834,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the CreateInstanceConnectEndpoint operation and asynchronously returning the response. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func createInstanceConnectEndpoint(input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) async throws + -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + return try await withCheckedThrowingContinuation { cont in + do { + try createInstanceConnectEndpointAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the CreateInstanceEventWindow operation and asynchronously returning the response. @@ -1886,6 +1990,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the CreateIpamResourceDiscovery operation and asynchronously returning the response. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func createIpamResourceDiscovery(input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) async throws + -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + return try await withCheckedThrowingContinuation { cont in + do { + try createIpamResourceDiscoveryAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the CreateIpamScope operation and asynchronously returning the response. @@ -3686,6 +3816,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the DeleteInstanceConnectEndpoint operation and asynchronously returning the response. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func deleteInstanceConnectEndpoint(input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) async throws + -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + return try await withCheckedThrowingContinuation { cont in + do { + try deleteInstanceConnectEndpointAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DeleteInstanceEventWindow operation and asynchronously returning the response. @@ -3786,6 +3942,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the DeleteIpamResourceDiscovery operation and asynchronously returning the response. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func deleteIpamResourceDiscovery(input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) async throws + -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + return try await withCheckedThrowingContinuation { cont in + do { + try deleteIpamResourceDiscoveryAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DeleteIpamScope operation and asynchronously returning the response. @@ -6548,6 +6730,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the DescribeInstanceConnectEndpoints operation and asynchronously returning the response. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeInstanceConnectEndpoints(input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) async throws + -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + return try await withCheckedThrowingContinuation { cont in + do { + try describeInstanceConnectEndpointsAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DescribeInstanceCreditSpecifications operation and asynchronously returning the response. @@ -6782,6 +6990,58 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the DescribeIpamResourceDiscoveries operation and asynchronously returning the response. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveries(input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) async throws + -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + return try await withCheckedThrowingContinuation { cont in + do { + try describeIpamResourceDiscoveriesAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation and asynchronously returning the response. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveryAssociations(input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) async throws + -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + return try await withCheckedThrowingContinuation { cont in + do { + try describeIpamResourceDiscoveryAssociationsAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DescribeIpamScopes operation and asynchronously returning the response. @@ -9648,6 +9908,58 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the DisassociateIpamResourceDiscovery operation and asynchronously returning the response. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func disassociateIpamResourceDiscovery(input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) async throws + -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + return try await withCheckedThrowingContinuation { cont in + do { + try disassociateIpamResourceDiscoveryAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + + /** + Invokes the DisassociateNatGatewayAddress operation and asynchronously returning the response. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func disassociateNatGatewayAddress(input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) async throws + -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + return try await withCheckedThrowingContinuation { cont in + do { + try disassociateNatGatewayAddressAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DisassociateRouteTable operation and asynchronously returning the response. @@ -10702,6 +11014,58 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the GetIpamDiscoveredAccounts operation and asynchronously returning the response. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getIpamDiscoveredAccounts(input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) async throws + -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + return try await withCheckedThrowingContinuation { cont in + do { + try getIpamDiscoveredAccountsAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation and asynchronously returning the response. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getIpamDiscoveredResourceCidrs(input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) async throws + -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + return try await withCheckedThrowingContinuation { cont in + do { + try getIpamDiscoveredResourceCidrsAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the GetIpamPoolAllocations operation and asynchronously returning the response. @@ -11326,6 +11690,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the GetVpnTunnelReplacementStatus operation and asynchronously returning the response. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getVpnTunnelReplacementStatus(input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) async throws + -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + return try await withCheckedThrowingContinuation { cont in + do { + try getVpnTunnelReplacementStatusAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation and asynchronously returning the response. @@ -12142,6 +12532,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the ModifyIpamResourceDiscovery operation and asynchronously returning the response. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func modifyIpamResourceDiscovery(input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) async throws + -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + return try await withCheckedThrowingContinuation { cont in + do { + try modifyIpamResourceDiscoveryAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ModifyIpamScope operation and asynchronously returning the response. @@ -13848,6 +14264,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the ReplaceVpnTunnel operation and asynchronously returning the response. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func replaceVpnTunnel(input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) async throws + -> ElasticComputeCloudModel.ReplaceVpnTunnelResult { + return try await withCheckedThrowingContinuation { cont in + do { + try replaceVpnTunnelAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ReportInstanceStatus operation and asynchronously returning the response. @@ -14678,6 +15120,32 @@ public extension ElasticComputeCloudClientProtocol { } } + /** + Invokes the UnassignPrivateNatGatewayAddress operation and asynchronously returning the response. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func unassignPrivateNatGatewayAddress(input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) async throws + -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + return try await withCheckedThrowingContinuation { cont in + do { + try unassignPrivateNatGatewayAddressAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the UnmonitorInstances operation and asynchronously returning the response. diff --git a/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol.swift b/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol.swift index 8cc62fe..c70c859 100644 --- a/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol.swift +++ b/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocol.swift @@ -99,6 +99,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias AssignPrivateIpAddressesAsyncType = ( _ input: ElasticComputeCloudModel.AssignPrivateIpAddressesRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias AssignPrivateNatGatewayAddressSyncType = ( + _ input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult + typealias AssignPrivateNatGatewayAddressAsyncType = ( + _ input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias AssociateAddressSyncType = ( _ input: ElasticComputeCloudModel.AssociateAddressRequest) throws -> ElasticComputeCloudModel.AssociateAddressResult typealias AssociateAddressAsyncType = ( @@ -129,6 +134,16 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias AssociateInstanceEventWindowAsyncType = ( _ input: ElasticComputeCloudModel.AssociateInstanceEventWindowRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias AssociateIpamResourceDiscoverySyncType = ( + _ input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult + typealias AssociateIpamResourceDiscoveryAsyncType = ( + _ input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest, + _ completion: @escaping (Result) -> ()) throws -> () + typealias AssociateNatGatewayAddressSyncType = ( + _ input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult + typealias AssociateNatGatewayAddressAsyncType = ( + _ input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias AssociateRouteTableSyncType = ( _ input: ElasticComputeCloudModel.AssociateRouteTableRequest) throws -> ElasticComputeCloudModel.AssociateRouteTableResult typealias AssociateRouteTableAsyncType = ( @@ -364,6 +379,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias CreateImageAsyncType = ( _ input: ElasticComputeCloudModel.CreateImageRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias CreateInstanceConnectEndpointSyncType = ( + _ input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult + typealias CreateInstanceConnectEndpointAsyncType = ( + _ input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias CreateInstanceEventWindowSyncType = ( _ input: ElasticComputeCloudModel.CreateInstanceEventWindowRequest) throws -> ElasticComputeCloudModel.CreateInstanceEventWindowResult typealias CreateInstanceEventWindowAsyncType = ( @@ -389,6 +409,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias CreateIpamPoolAsyncType = ( _ input: ElasticComputeCloudModel.CreateIpamPoolRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias CreateIpamResourceDiscoverySyncType = ( + _ input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult + typealias CreateIpamResourceDiscoveryAsyncType = ( + _ input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias CreateIpamScopeSyncType = ( _ input: ElasticComputeCloudModel.CreateIpamScopeRequest) throws -> ElasticComputeCloudModel.CreateIpamScopeResult typealias CreateIpamScopeAsyncType = ( @@ -739,6 +764,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias DeleteFpgaImageAsyncType = ( _ input: ElasticComputeCloudModel.DeleteFpgaImageRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias DeleteInstanceConnectEndpointSyncType = ( + _ input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult + typealias DeleteInstanceConnectEndpointAsyncType = ( + _ input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias DeleteInstanceEventWindowSyncType = ( _ input: ElasticComputeCloudModel.DeleteInstanceEventWindowRequest) throws -> ElasticComputeCloudModel.DeleteInstanceEventWindowResult typealias DeleteInstanceEventWindowAsyncType = ( @@ -759,6 +789,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias DeleteIpamPoolAsyncType = ( _ input: ElasticComputeCloudModel.DeleteIpamPoolRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias DeleteIpamResourceDiscoverySyncType = ( + _ input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult + typealias DeleteIpamResourceDiscoveryAsyncType = ( + _ input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias DeleteIpamScopeSyncType = ( _ input: ElasticComputeCloudModel.DeleteIpamScopeRequest) throws -> ElasticComputeCloudModel.DeleteIpamScopeResult typealias DeleteIpamScopeAsyncType = ( @@ -1304,6 +1339,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias DescribeInstanceAttributeAsyncType = ( _ input: ElasticComputeCloudModel.DescribeInstanceAttributeRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias DescribeInstanceConnectEndpointsSyncType = ( + _ input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult + typealias DescribeInstanceConnectEndpointsAsyncType = ( + _ input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias DescribeInstanceCreditSpecificationsSyncType = ( _ input: ElasticComputeCloudModel.DescribeInstanceCreditSpecificationsRequest) throws -> ElasticComputeCloudModel.DescribeInstanceCreditSpecificationsResult typealias DescribeInstanceCreditSpecificationsAsyncType = ( @@ -1349,6 +1389,16 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias DescribeIpamPoolsAsyncType = ( _ input: ElasticComputeCloudModel.DescribeIpamPoolsRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias DescribeIpamResourceDiscoveriesSyncType = ( + _ input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult + typealias DescribeIpamResourceDiscoveriesAsyncType = ( + _ input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest, + _ completion: @escaping (Result) -> ()) throws -> () + typealias DescribeIpamResourceDiscoveryAssociationsSyncType = ( + _ input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult + typealias DescribeIpamResourceDiscoveryAssociationsAsyncType = ( + _ input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias DescribeIpamScopesSyncType = ( _ input: ElasticComputeCloudModel.DescribeIpamScopesRequest) throws -> ElasticComputeCloudModel.DescribeIpamScopesResult typealias DescribeIpamScopesAsyncType = ( @@ -1904,6 +1954,16 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias DisassociateInstanceEventWindowAsyncType = ( _ input: ElasticComputeCloudModel.DisassociateInstanceEventWindowRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias DisassociateIpamResourceDiscoverySyncType = ( + _ input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult + typealias DisassociateIpamResourceDiscoveryAsyncType = ( + _ input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest, + _ completion: @escaping (Result) -> ()) throws -> () + typealias DisassociateNatGatewayAddressSyncType = ( + _ input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult + typealias DisassociateNatGatewayAddressAsyncType = ( + _ input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias DisassociateRouteTableSyncType = ( _ input: ElasticComputeCloudModel.DisassociateRouteTableRequest) throws -> () typealias DisassociateRouteTableAsyncType = ( @@ -2109,6 +2169,16 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias GetIpamAddressHistoryAsyncType = ( _ input: ElasticComputeCloudModel.GetIpamAddressHistoryRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias GetIpamDiscoveredAccountsSyncType = ( + _ input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult + typealias GetIpamDiscoveredAccountsAsyncType = ( + _ input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest, + _ completion: @escaping (Result) -> ()) throws -> () + typealias GetIpamDiscoveredResourceCidrsSyncType = ( + _ input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult + typealias GetIpamDiscoveredResourceCidrsAsyncType = ( + _ input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias GetIpamPoolAllocationsSyncType = ( _ input: ElasticComputeCloudModel.GetIpamPoolAllocationsRequest) throws -> ElasticComputeCloudModel.GetIpamPoolAllocationsResult typealias GetIpamPoolAllocationsAsyncType = ( @@ -2229,6 +2299,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias GetVpnConnectionDeviceTypesAsyncType = ( _ input: ElasticComputeCloudModel.GetVpnConnectionDeviceTypesRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias GetVpnTunnelReplacementStatusSyncType = ( + _ input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult + typealias GetVpnTunnelReplacementStatusAsyncType = ( + _ input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias ImportClientVpnClientCertificateRevocationListSyncType = ( _ input: ElasticComputeCloudModel.ImportClientVpnClientCertificateRevocationListRequest) throws -> ElasticComputeCloudModel.ImportClientVpnClientCertificateRevocationListResult typealias ImportClientVpnClientCertificateRevocationListAsyncType = ( @@ -2389,6 +2464,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias ModifyIpamResourceCidrAsyncType = ( _ input: ElasticComputeCloudModel.ModifyIpamResourceCidrRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias ModifyIpamResourceDiscoverySyncType = ( + _ input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult + typealias ModifyIpamResourceDiscoveryAsyncType = ( + _ input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias ModifyIpamScopeSyncType = ( _ input: ElasticComputeCloudModel.ModifyIpamScopeRequest) throws -> ElasticComputeCloudModel.ModifyIpamScopeResult typealias ModifyIpamScopeAsyncType = ( @@ -2724,6 +2804,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias ReplaceTransitGatewayRouteAsyncType = ( _ input: ElasticComputeCloudModel.ReplaceTransitGatewayRouteRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias ReplaceVpnTunnelSyncType = ( + _ input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult + typealias ReplaceVpnTunnelAsyncType = ( + _ input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias ReportInstanceStatusSyncType = ( _ input: ElasticComputeCloudModel.ReportInstanceStatusRequest) throws -> () typealias ReportInstanceStatusAsyncType = ( @@ -2889,6 +2974,11 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt typealias UnassignPrivateIpAddressesAsyncType = ( _ input: ElasticComputeCloudModel.UnassignPrivateIpAddressesRequest, _ completion: @escaping (ElasticComputeCloudError?) -> ()) throws -> () + typealias UnassignPrivateNatGatewayAddressSyncType = ( + _ input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult + typealias UnassignPrivateNatGatewayAddressAsyncType = ( + _ input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias UnmonitorInstancesSyncType = ( _ input: ElasticComputeCloudModel.UnmonitorInstancesRequest) throws -> ElasticComputeCloudModel.UnmonitorInstancesResult typealias UnmonitorInstancesAsyncType = ( @@ -3246,6 +3336,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func assignPrivateIpAddressesSync( input: ElasticComputeCloudModel.AssignPrivateIpAddressesRequest) throws -> ElasticComputeCloudModel.AssignPrivateIpAddressesResult + /** + Invokes the AssignPrivateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssignPrivateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssignPrivateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + func assignPrivateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the AssignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func assignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult + /** Invokes the AssociateAddress operation returning immediately and passing the response to a callback. @@ -3387,6 +3501,54 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func associateInstanceEventWindowSync( input: ElasticComputeCloudModel.AssociateInstanceEventWindowRequest) throws -> ElasticComputeCloudModel.AssociateInstanceEventWindowResult + /** + Invokes the AssociateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The AssociateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The AssociateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + func associateIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the AssociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func associateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult + + /** + Invokes the AssociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + func associateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the AssociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func associateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult + /** Invokes the AssociateRouteTable operation returning immediately and passing the response to a callback. @@ -4506,6 +4668,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func createImageSync( input: ElasticComputeCloudModel.CreateImageRequest) throws -> ElasticComputeCloudModel.CreateImageResult + /** + Invokes the CreateInstanceConnectEndpoint operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - completion: The CreateInstanceConnectEndpointResult object or an error will be passed to this + callback when the operation is complete. The CreateInstanceConnectEndpointResult + object will be validated before being returned to caller. + */ + func createInstanceConnectEndpointAsync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the CreateInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func createInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult + /** Invokes the CreateInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -4626,6 +4812,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func createIpamPoolSync( input: ElasticComputeCloudModel.CreateIpamPoolRequest) throws -> ElasticComputeCloudModel.CreateIpamPoolResult + /** + Invokes the CreateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The CreateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The CreateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + func createIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the CreateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func createIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult + /** Invokes the CreateIpamScope operation returning immediately and passing the response to a callback. @@ -6291,6 +6501,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func deleteFpgaImageSync( input: ElasticComputeCloudModel.DeleteFpgaImageRequest) throws -> ElasticComputeCloudModel.DeleteFpgaImageResult + /** + Invokes the DeleteInstanceConnectEndpoint operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - completion: The DeleteInstanceConnectEndpointResult object or an error will be passed to this + callback when the operation is complete. The DeleteInstanceConnectEndpointResult + object will be validated before being returned to caller. + */ + func deleteInstanceConnectEndpointAsync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DeleteInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func deleteInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult + /** Invokes the DeleteInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -6384,6 +6618,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func deleteIpamPoolSync( input: ElasticComputeCloudModel.DeleteIpamPoolRequest) throws -> ElasticComputeCloudModel.DeleteIpamPoolResult + /** + Invokes the DeleteIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The DeleteIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The DeleteIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + func deleteIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DeleteIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func deleteIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult + /** Invokes the DeleteIpamScope operation returning immediately and passing the response to a callback. @@ -8946,6 +9204,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func describeInstanceAttributeSync( input: ElasticComputeCloudModel.DescribeInstanceAttributeRequest) throws -> ElasticComputeCloudModel.InstanceAttribute + /** + Invokes the DescribeInstanceConnectEndpoints operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - completion: The DescribeInstanceConnectEndpointsResult object or an error will be passed to this + callback when the operation is complete. The DescribeInstanceConnectEndpointsResult + object will be validated before being returned to caller. + */ + func describeInstanceConnectEndpointsAsync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DescribeInstanceConnectEndpoints operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeInstanceConnectEndpointsSync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult + /** Invokes the DescribeInstanceCreditSpecifications operation returning immediately and passing the response to a callback. @@ -9162,6 +9444,54 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func describeIpamPoolsSync( input: ElasticComputeCloudModel.DescribeIpamPoolsRequest) throws -> ElasticComputeCloudModel.DescribeIpamPoolsResult + /** + Invokes the DescribeIpamResourceDiscoveries operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveriesResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveriesResult + object will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveriesAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DescribeIpamResourceDiscoveries operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveriesSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveryAssociationsResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveryAssociationsResult + object will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveryAssociationsAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveryAssociationsSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult + /** Invokes the DescribeIpamScopes operation returning immediately and passing the response to a callback. @@ -11811,6 +12141,54 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func disassociateInstanceEventWindowSync( input: ElasticComputeCloudModel.DisassociateInstanceEventWindowRequest) throws -> ElasticComputeCloudModel.DisassociateInstanceEventWindowResult + /** + Invokes the DisassociateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The DisassociateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The DisassociateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + func disassociateIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DisassociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func disassociateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult + + /** + Invokes the DisassociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - completion: The DisassociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The DisassociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + func disassociateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DisassociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func disassociateNatGatewayAddressSync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult + /** Invokes the DisassociateRouteTable operation returning immediately and passing the response to a callback. @@ -12786,6 +13164,54 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func getIpamAddressHistorySync( input: ElasticComputeCloudModel.GetIpamAddressHistoryRequest) throws -> ElasticComputeCloudModel.GetIpamAddressHistoryResult + /** + Invokes the GetIpamDiscoveredAccounts operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredAccountsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredAccountsResult + object will be validated before being returned to caller. + */ + func getIpamDiscoveredAccountsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the GetIpamDiscoveredAccounts operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getIpamDiscoveredAccountsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredResourceCidrsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredResourceCidrsResult + object will be validated before being returned to caller. + */ + func getIpamDiscoveredResourceCidrsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getIpamDiscoveredResourceCidrsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult + /** Invokes the GetIpamPoolAllocations operation returning immediately and passing the response to a callback. @@ -13362,6 +13788,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func getVpnConnectionDeviceTypesSync( input: ElasticComputeCloudModel.GetVpnConnectionDeviceTypesRequest) throws -> ElasticComputeCloudModel.GetVpnConnectionDeviceTypesResult + /** + Invokes the GetVpnTunnelReplacementStatus operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - completion: The GetVpnTunnelReplacementStatusResult object or an error will be passed to this + callback when the operation is complete. The GetVpnTunnelReplacementStatusResult + object will be validated before being returned to caller. + */ + func getVpnTunnelReplacementStatusAsync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the GetVpnTunnelReplacementStatus operation waiting for the response before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getVpnTunnelReplacementStatusSync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult + /** Invokes the ImportClientVpnClientCertificateRevocationList operation returning immediately and passing the response to a callback. @@ -14118,6 +14568,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func modifyIpamResourceCidrSync( input: ElasticComputeCloudModel.ModifyIpamResourceCidrRequest) throws -> ElasticComputeCloudModel.ModifyIpamResourceCidrResult + /** + Invokes the ModifyIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The ModifyIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The ModifyIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + func modifyIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the ModifyIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func modifyIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult + /** Invokes the ModifyIpamScope operation returning immediately and passing the response to a callback. @@ -15699,6 +16173,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func replaceTransitGatewayRouteSync( input: ElasticComputeCloudModel.ReplaceTransitGatewayRouteRequest) throws -> ElasticComputeCloudModel.ReplaceTransitGatewayRouteResult + /** + Invokes the ReplaceVpnTunnel operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - completion: The ReplaceVpnTunnelResult object or an error will be passed to this + callback when the operation is complete. The ReplaceVpnTunnelResult + object will be validated before being returned to caller. + */ + func replaceVpnTunnelAsync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the ReplaceVpnTunnel operation waiting for the response before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func replaceVpnTunnelSync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult + /** Invokes the ReportInstanceStatus operation returning immediately and passing the response to a callback. @@ -16470,6 +16968,30 @@ public protocol ElasticComputeCloudClientProtocol: ElasticComputeCloudClientProt func unassignPrivateIpAddressesSync( input: ElasticComputeCloudModel.UnassignPrivateIpAddressesRequest) throws + /** + Invokes the UnassignPrivateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - completion: The UnassignPrivateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The UnassignPrivateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + func unassignPrivateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the UnassignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func unassignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult + /** Invokes the UnmonitorInstances operation returning immediately and passing the response to a callback. diff --git a/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocolV2.swift b/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocolV2.swift index 493968a..0aff2d2 100644 --- a/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocolV2.swift +++ b/Sources/ElasticComputeCloudClient/ElasticComputeCloudClientProtocolV2.swift @@ -58,6 +58,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.AssignIpv6AddressesRequest) async throws -> ElasticComputeCloudModel.AssignIpv6AddressesResult typealias AssignPrivateIpAddressesFunctionType = ( _ input: ElasticComputeCloudModel.AssignPrivateIpAddressesRequest) async throws -> ElasticComputeCloudModel.AssignPrivateIpAddressesResult + typealias AssignPrivateNatGatewayAddressFunctionType = ( + _ input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult typealias AssociateAddressFunctionType = ( _ input: ElasticComputeCloudModel.AssociateAddressRequest) async throws -> ElasticComputeCloudModel.AssociateAddressResult typealias AssociateClientVpnTargetNetworkFunctionType = ( @@ -70,6 +72,10 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.AssociateIamInstanceProfileRequest) async throws -> ElasticComputeCloudModel.AssociateIamInstanceProfileResult typealias AssociateInstanceEventWindowFunctionType = ( _ input: ElasticComputeCloudModel.AssociateInstanceEventWindowRequest) async throws -> ElasticComputeCloudModel.AssociateInstanceEventWindowResult + typealias AssociateIpamResourceDiscoveryFunctionType = ( + _ input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult + typealias AssociateNatGatewayAddressFunctionType = ( + _ input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult typealias AssociateRouteTableFunctionType = ( _ input: ElasticComputeCloudModel.AssociateRouteTableRequest) async throws -> ElasticComputeCloudModel.AssociateRouteTableResult typealias AssociateSubnetCidrBlockFunctionType = ( @@ -164,6 +170,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.CreateFpgaImageRequest) async throws -> ElasticComputeCloudModel.CreateFpgaImageResult typealias CreateImageFunctionType = ( _ input: ElasticComputeCloudModel.CreateImageRequest) async throws -> ElasticComputeCloudModel.CreateImageResult + typealias CreateInstanceConnectEndpointFunctionType = ( + _ input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult typealias CreateInstanceEventWindowFunctionType = ( _ input: ElasticComputeCloudModel.CreateInstanceEventWindowRequest) async throws -> ElasticComputeCloudModel.CreateInstanceEventWindowResult typealias CreateInstanceExportTaskFunctionType = ( @@ -174,6 +182,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.CreateIpamRequest) async throws -> ElasticComputeCloudModel.CreateIpamResult typealias CreateIpamPoolFunctionType = ( _ input: ElasticComputeCloudModel.CreateIpamPoolRequest) async throws -> ElasticComputeCloudModel.CreateIpamPoolResult + typealias CreateIpamResourceDiscoveryFunctionType = ( + _ input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult typealias CreateIpamScopeFunctionType = ( _ input: ElasticComputeCloudModel.CreateIpamScopeRequest) async throws -> ElasticComputeCloudModel.CreateIpamScopeResult typealias CreateKeyPairFunctionType = ( @@ -314,6 +324,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.DeleteFlowLogsRequest) async throws -> ElasticComputeCloudModel.DeleteFlowLogsResult typealias DeleteFpgaImageFunctionType = ( _ input: ElasticComputeCloudModel.DeleteFpgaImageRequest) async throws -> ElasticComputeCloudModel.DeleteFpgaImageResult + typealias DeleteInstanceConnectEndpointFunctionType = ( + _ input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult typealias DeleteInstanceEventWindowFunctionType = ( _ input: ElasticComputeCloudModel.DeleteInstanceEventWindowRequest) async throws -> ElasticComputeCloudModel.DeleteInstanceEventWindowResult typealias DeleteInternetGatewayFunctionType = ( @@ -322,6 +334,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.DeleteIpamRequest) async throws -> ElasticComputeCloudModel.DeleteIpamResult typealias DeleteIpamPoolFunctionType = ( _ input: ElasticComputeCloudModel.DeleteIpamPoolRequest) async throws -> ElasticComputeCloudModel.DeleteIpamPoolResult + typealias DeleteIpamResourceDiscoveryFunctionType = ( + _ input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult typealias DeleteIpamScopeFunctionType = ( _ input: ElasticComputeCloudModel.DeleteIpamScopeRequest) async throws -> ElasticComputeCloudModel.DeleteIpamScopeResult typealias DeleteKeyPairFunctionType = ( @@ -540,6 +554,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.DescribeImportSnapshotTasksRequest) async throws -> ElasticComputeCloudModel.DescribeImportSnapshotTasksResult typealias DescribeInstanceAttributeFunctionType = ( _ input: ElasticComputeCloudModel.DescribeInstanceAttributeRequest) async throws -> ElasticComputeCloudModel.InstanceAttribute + typealias DescribeInstanceConnectEndpointsFunctionType = ( + _ input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) async throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult typealias DescribeInstanceCreditSpecificationsFunctionType = ( _ input: ElasticComputeCloudModel.DescribeInstanceCreditSpecificationsRequest) async throws -> ElasticComputeCloudModel.DescribeInstanceCreditSpecificationsResult typealias DescribeInstanceEventNotificationAttributesFunctionType = ( @@ -558,6 +574,10 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.DescribeInternetGatewaysRequest) async throws -> ElasticComputeCloudModel.DescribeInternetGatewaysResult typealias DescribeIpamPoolsFunctionType = ( _ input: ElasticComputeCloudModel.DescribeIpamPoolsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamPoolsResult + typealias DescribeIpamResourceDiscoveriesFunctionType = ( + _ input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult + typealias DescribeIpamResourceDiscoveryAssociationsFunctionType = ( + _ input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult typealias DescribeIpamScopesFunctionType = ( _ input: ElasticComputeCloudModel.DescribeIpamScopesRequest) async throws -> ElasticComputeCloudModel.DescribeIpamScopesResult typealias DescribeIpamsFunctionType = ( @@ -780,6 +800,10 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.DisassociateIamInstanceProfileRequest) async throws -> ElasticComputeCloudModel.DisassociateIamInstanceProfileResult typealias DisassociateInstanceEventWindowFunctionType = ( _ input: ElasticComputeCloudModel.DisassociateInstanceEventWindowRequest) async throws -> ElasticComputeCloudModel.DisassociateInstanceEventWindowResult + typealias DisassociateIpamResourceDiscoveryFunctionType = ( + _ input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult + typealias DisassociateNatGatewayAddressFunctionType = ( + _ input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult typealias DisassociateRouteTableFunctionType = ( _ input: ElasticComputeCloudModel.DisassociateRouteTableRequest) async throws -> () typealias DisassociateSubnetCidrBlockFunctionType = ( @@ -862,6 +886,10 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.GetInstanceUefiDataRequest) async throws -> ElasticComputeCloudModel.GetInstanceUefiDataResult typealias GetIpamAddressHistoryFunctionType = ( _ input: ElasticComputeCloudModel.GetIpamAddressHistoryRequest) async throws -> ElasticComputeCloudModel.GetIpamAddressHistoryResult + typealias GetIpamDiscoveredAccountsFunctionType = ( + _ input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult + typealias GetIpamDiscoveredResourceCidrsFunctionType = ( + _ input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult typealias GetIpamPoolAllocationsFunctionType = ( _ input: ElasticComputeCloudModel.GetIpamPoolAllocationsRequest) async throws -> ElasticComputeCloudModel.GetIpamPoolAllocationsResult typealias GetIpamPoolCidrsFunctionType = ( @@ -910,6 +938,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.GetVpnConnectionDeviceSampleConfigurationRequest) async throws -> ElasticComputeCloudModel.GetVpnConnectionDeviceSampleConfigurationResult typealias GetVpnConnectionDeviceTypesFunctionType = ( _ input: ElasticComputeCloudModel.GetVpnConnectionDeviceTypesRequest) async throws -> ElasticComputeCloudModel.GetVpnConnectionDeviceTypesResult + typealias GetVpnTunnelReplacementStatusFunctionType = ( + _ input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) async throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult typealias ImportClientVpnClientCertificateRevocationListFunctionType = ( _ input: ElasticComputeCloudModel.ImportClientVpnClientCertificateRevocationListRequest) async throws -> ElasticComputeCloudModel.ImportClientVpnClientCertificateRevocationListResult typealias ImportImageFunctionType = ( @@ -974,6 +1004,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.ModifyIpamPoolRequest) async throws -> ElasticComputeCloudModel.ModifyIpamPoolResult typealias ModifyIpamResourceCidrFunctionType = ( _ input: ElasticComputeCloudModel.ModifyIpamResourceCidrRequest) async throws -> ElasticComputeCloudModel.ModifyIpamResourceCidrResult + typealias ModifyIpamResourceDiscoveryFunctionType = ( + _ input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult typealias ModifyIpamScopeFunctionType = ( _ input: ElasticComputeCloudModel.ModifyIpamScopeRequest) async throws -> ElasticComputeCloudModel.ModifyIpamScopeResult typealias ModifyLaunchTemplateFunctionType = ( @@ -1108,6 +1140,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.ReplaceRouteTableAssociationRequest) async throws -> ElasticComputeCloudModel.ReplaceRouteTableAssociationResult typealias ReplaceTransitGatewayRouteFunctionType = ( _ input: ElasticComputeCloudModel.ReplaceTransitGatewayRouteRequest) async throws -> ElasticComputeCloudModel.ReplaceTransitGatewayRouteResult + typealias ReplaceVpnTunnelFunctionType = ( + _ input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) async throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult typealias ReportInstanceStatusFunctionType = ( _ input: ElasticComputeCloudModel.ReportInstanceStatusRequest) async throws -> () typealias RequestSpotFleetFunctionType = ( @@ -1174,6 +1208,8 @@ public protocol ElasticComputeCloudClientProtocolV2 { _ input: ElasticComputeCloudModel.UnassignIpv6AddressesRequest) async throws -> ElasticComputeCloudModel.UnassignIpv6AddressesResult typealias UnassignPrivateIpAddressesFunctionType = ( _ input: ElasticComputeCloudModel.UnassignPrivateIpAddressesRequest) async throws -> () + typealias UnassignPrivateNatGatewayAddressFunctionType = ( + _ input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult typealias UnmonitorInstancesFunctionType = ( _ input: ElasticComputeCloudModel.UnmonitorInstancesRequest) async throws -> ElasticComputeCloudModel.UnmonitorInstancesResult typealias UpdateSecurityGroupRuleDescriptionsEgressFunctionType = ( @@ -1337,6 +1373,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func assignPrivateIpAddresses( input: ElasticComputeCloudModel.AssignPrivateIpAddressesRequest) async throws -> ElasticComputeCloudModel.AssignPrivateIpAddressesResult + /** + Invokes the AssignPrivateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func assignPrivateNatGatewayAddress( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult + /** Invokes the AssociateAddress operation suspending until the response is available before returning. @@ -1401,6 +1448,28 @@ public protocol ElasticComputeCloudClientProtocolV2 { func associateInstanceEventWindow( input: ElasticComputeCloudModel.AssociateInstanceEventWindowRequest) async throws -> ElasticComputeCloudModel.AssociateInstanceEventWindowResult + /** + Invokes the AssociateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func associateIpamResourceDiscovery( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult + + /** + Invokes the AssociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func associateNatGatewayAddress( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult + /** Invokes the AssociateRouteTable operation suspending until the response is available before returning. @@ -1912,6 +1981,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func createImage( input: ElasticComputeCloudModel.CreateImageRequest) async throws -> ElasticComputeCloudModel.CreateImageResult + /** + Invokes the CreateInstanceConnectEndpoint operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func createInstanceConnectEndpoint( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult + /** Invokes the CreateInstanceEventWindow operation suspending until the response is available before returning. @@ -1967,6 +2047,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func createIpamPool( input: ElasticComputeCloudModel.CreateIpamPoolRequest) async throws -> ElasticComputeCloudModel.CreateIpamPoolResult + /** + Invokes the CreateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func createIpamResourceDiscovery( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult + /** Invokes the CreateIpamScope operation suspending until the response is available before returning. @@ -2727,6 +2818,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func deleteFpgaImage( input: ElasticComputeCloudModel.DeleteFpgaImageRequest) async throws -> ElasticComputeCloudModel.DeleteFpgaImageResult + /** + Invokes the DeleteInstanceConnectEndpoint operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func deleteInstanceConnectEndpoint( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult + /** Invokes the DeleteInstanceEventWindow operation suspending until the response is available before returning. @@ -2769,6 +2871,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func deleteIpamPool( input: ElasticComputeCloudModel.DeleteIpamPoolRequest) async throws -> ElasticComputeCloudModel.DeleteIpamPoolResult + /** + Invokes the DeleteIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func deleteIpamResourceDiscovery( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult + /** Invokes the DeleteIpamScope operation suspending until the response is available before returning. @@ -3932,6 +4045,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func describeInstanceAttribute( input: ElasticComputeCloudModel.DescribeInstanceAttributeRequest) async throws -> ElasticComputeCloudModel.InstanceAttribute + /** + Invokes the DescribeInstanceConnectEndpoints operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeInstanceConnectEndpoints( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) async throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult + /** Invokes the DescribeInstanceCreditSpecifications operation suspending until the response is available before returning. @@ -4031,6 +4155,28 @@ public protocol ElasticComputeCloudClientProtocolV2 { func describeIpamPools( input: ElasticComputeCloudModel.DescribeIpamPoolsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamPoolsResult + /** + Invokes the DescribeIpamResourceDiscoveries operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveries( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func describeIpamResourceDiscoveryAssociations( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult + /** Invokes the DescribeIpamScopes operation suspending until the response is available before returning. @@ -5242,6 +5388,28 @@ public protocol ElasticComputeCloudClientProtocolV2 { func disassociateInstanceEventWindow( input: ElasticComputeCloudModel.DisassociateInstanceEventWindowRequest) async throws -> ElasticComputeCloudModel.DisassociateInstanceEventWindowResult + /** + Invokes the DisassociateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func disassociateIpamResourceDiscovery( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult + + /** + Invokes the DisassociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func disassociateNatGatewayAddress( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult + /** Invokes the DisassociateRouteTable operation suspending until the response is available before returning. @@ -5687,6 +5855,28 @@ public protocol ElasticComputeCloudClientProtocolV2 { func getIpamAddressHistory( input: ElasticComputeCloudModel.GetIpamAddressHistoryRequest) async throws -> ElasticComputeCloudModel.GetIpamAddressHistoryResult + /** + Invokes the GetIpamDiscoveredAccounts operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getIpamDiscoveredAccounts( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getIpamDiscoveredResourceCidrs( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult + /** Invokes the GetIpamPoolAllocations operation suspending until the response is available before returning. @@ -5951,6 +6141,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func getVpnConnectionDeviceTypes( input: ElasticComputeCloudModel.GetVpnConnectionDeviceTypesRequest) async throws -> ElasticComputeCloudModel.GetVpnConnectionDeviceTypesResult + /** + Invokes the GetVpnTunnelReplacementStatus operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func getVpnTunnelReplacementStatus( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) async throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult + /** Invokes the ImportClientVpnClientCertificateRevocationList operation suspending until the response is available before returning. @@ -6295,6 +6496,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func modifyIpamResourceCidr( input: ElasticComputeCloudModel.ModifyIpamResourceCidrRequest) async throws -> ElasticComputeCloudModel.ModifyIpamResourceCidrResult + /** + Invokes the ModifyIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func modifyIpamResourceDiscovery( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult + /** Invokes the ModifyIpamScope operation suspending until the response is available before returning. @@ -7014,6 +7226,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func replaceTransitGatewayRoute( input: ElasticComputeCloudModel.ReplaceTransitGatewayRouteRequest) async throws -> ElasticComputeCloudModel.ReplaceTransitGatewayRouteResult + /** + Invokes the ReplaceVpnTunnel operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func replaceVpnTunnel( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) async throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult + /** Invokes the ReportInstanceStatus operation suspending until the response is available before returning. @@ -7363,6 +7586,17 @@ public protocol ElasticComputeCloudClientProtocolV2 { func unassignPrivateIpAddresses( input: ElasticComputeCloudModel.UnassignPrivateIpAddressesRequest) async throws + /** + Invokes the UnassignPrivateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + func unassignPrivateNatGatewayAddress( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult + /** Invokes the UnmonitorInstances operation suspending until the response is available before returning. diff --git a/Sources/ElasticComputeCloudClient/ElasticComputeCloudInvocationsReporting.swift b/Sources/ElasticComputeCloudClient/ElasticComputeCloudInvocationsReporting.swift index b1001c5..4156216 100644 --- a/Sources/ElasticComputeCloudClient/ElasticComputeCloudInvocationsReporting.swift +++ b/Sources/ElasticComputeCloudClient/ElasticComputeCloudInvocationsReporting.swift @@ -43,12 +43,15 @@ public struct ElasticComputeCloudInvocationsReporting public let assignIpv6Addresses: SmokeAWSHTTPClientInvocationReporting public let assignPrivateIpAddresses: SmokeAWSHTTPClientInvocationReporting + public let assignPrivateNatGatewayAddress: SmokeAWSHTTPClientInvocationReporting public let associateAddress: SmokeAWSHTTPClientInvocationReporting public let associateClientVpnTargetNetwork: SmokeAWSHTTPClientInvocationReporting public let associateDhcpOptions: SmokeAWSHTTPClientInvocationReporting public let associateEnclaveCertificateIamRole: SmokeAWSHTTPClientInvocationReporting public let associateIamInstanceProfile: SmokeAWSHTTPClientInvocationReporting public let associateInstanceEventWindow: SmokeAWSHTTPClientInvocationReporting + public let associateIpamResourceDiscovery: SmokeAWSHTTPClientInvocationReporting + public let associateNatGatewayAddress: SmokeAWSHTTPClientInvocationReporting public let associateRouteTable: SmokeAWSHTTPClientInvocationReporting public let associateSubnetCidrBlock: SmokeAWSHTTPClientInvocationReporting public let associateTransitGatewayMulticastDomain: SmokeAWSHTTPClientInvocationReporting @@ -96,11 +99,13 @@ public struct ElasticComputeCloudInvocationsReporting public let createFpgaImage: SmokeAWSHTTPClientInvocationReporting public let createImage: SmokeAWSHTTPClientInvocationReporting + public let createInstanceConnectEndpoint: SmokeAWSHTTPClientInvocationReporting public let createInstanceEventWindow: SmokeAWSHTTPClientInvocationReporting public let createInstanceExportTask: SmokeAWSHTTPClientInvocationReporting public let createInternetGateway: SmokeAWSHTTPClientInvocationReporting public let createIpam: SmokeAWSHTTPClientInvocationReporting public let createIpamPool: SmokeAWSHTTPClientInvocationReporting + public let createIpamResourceDiscovery: SmokeAWSHTTPClientInvocationReporting public let createIpamScope: SmokeAWSHTTPClientInvocationReporting public let createKeyPair: SmokeAWSHTTPClientInvocationReporting public let createLaunchTemplate: SmokeAWSHTTPClientInvocationReporting @@ -171,10 +176,12 @@ public struct ElasticComputeCloudInvocationsReporting public let deleteFlowLogs: SmokeAWSHTTPClientInvocationReporting public let deleteFpgaImage: SmokeAWSHTTPClientInvocationReporting + public let deleteInstanceConnectEndpoint: SmokeAWSHTTPClientInvocationReporting public let deleteInstanceEventWindow: SmokeAWSHTTPClientInvocationReporting public let deleteInternetGateway: SmokeAWSHTTPClientInvocationReporting public let deleteIpam: SmokeAWSHTTPClientInvocationReporting public let deleteIpamPool: SmokeAWSHTTPClientInvocationReporting + public let deleteIpamResourceDiscovery: SmokeAWSHTTPClientInvocationReporting public let deleteIpamScope: SmokeAWSHTTPClientInvocationReporting public let deleteKeyPair: SmokeAWSHTTPClientInvocationReporting public let deleteLaunchTemplate: SmokeAWSHTTPClientInvocationReporting @@ -284,6 +291,7 @@ public struct ElasticComputeCloudInvocationsReporting public let describeImportSnapshotTasks: SmokeAWSHTTPClientInvocationReporting public let describeInstanceAttribute: SmokeAWSHTTPClientInvocationReporting + public let describeInstanceConnectEndpoints: SmokeAWSHTTPClientInvocationReporting public let describeInstanceCreditSpecifications: SmokeAWSHTTPClientInvocationReporting public let describeInstanceEventNotificationAttributes: SmokeAWSHTTPClientInvocationReporting public let describeInstanceEventWindows: SmokeAWSHTTPClientInvocationReporting @@ -293,6 +301,8 @@ public struct ElasticComputeCloudInvocationsReporting public let describeInternetGateways: SmokeAWSHTTPClientInvocationReporting public let describeIpamPools: SmokeAWSHTTPClientInvocationReporting + public let describeIpamResourceDiscoveries: SmokeAWSHTTPClientInvocationReporting + public let describeIpamResourceDiscoveryAssociations: SmokeAWSHTTPClientInvocationReporting public let describeIpamScopes: SmokeAWSHTTPClientInvocationReporting public let describeIpams: SmokeAWSHTTPClientInvocationReporting public let describeIpv6Pools: SmokeAWSHTTPClientInvocationReporting @@ -404,6 +414,8 @@ public struct ElasticComputeCloudInvocationsReporting public let disassociateIamInstanceProfile: SmokeAWSHTTPClientInvocationReporting public let disassociateInstanceEventWindow: SmokeAWSHTTPClientInvocationReporting + public let disassociateIpamResourceDiscovery: SmokeAWSHTTPClientInvocationReporting + public let disassociateNatGatewayAddress: SmokeAWSHTTPClientInvocationReporting public let disassociateRouteTable: SmokeAWSHTTPClientInvocationReporting public let disassociateSubnetCidrBlock: SmokeAWSHTTPClientInvocationReporting public let disassociateTransitGatewayMulticastDomain: SmokeAWSHTTPClientInvocationReporting @@ -445,6 +457,8 @@ public struct ElasticComputeCloudInvocationsReporting public let getInstanceUefiData: SmokeAWSHTTPClientInvocationReporting public let getIpamAddressHistory: SmokeAWSHTTPClientInvocationReporting + public let getIpamDiscoveredAccounts: SmokeAWSHTTPClientInvocationReporting + public let getIpamDiscoveredResourceCidrs: SmokeAWSHTTPClientInvocationReporting public let getIpamPoolAllocations: SmokeAWSHTTPClientInvocationReporting public let getIpamPoolCidrs: SmokeAWSHTTPClientInvocationReporting public let getIpamResourceCidrs: SmokeAWSHTTPClientInvocationReporting @@ -469,6 +483,7 @@ public struct ElasticComputeCloudInvocationsReporting public let getVpnConnectionDeviceSampleConfiguration: SmokeAWSHTTPClientInvocationReporting public let getVpnConnectionDeviceTypes: SmokeAWSHTTPClientInvocationReporting + public let getVpnTunnelReplacementStatus: SmokeAWSHTTPClientInvocationReporting public let importClientVpnClientCertificateRevocationList: SmokeAWSHTTPClientInvocationReporting public let importImage: SmokeAWSHTTPClientInvocationReporting public let importInstance: SmokeAWSHTTPClientInvocationReporting @@ -501,6 +516,7 @@ public struct ElasticComputeCloudInvocationsReporting public let modifyIpamPool: SmokeAWSHTTPClientInvocationReporting public let modifyIpamResourceCidr: SmokeAWSHTTPClientInvocationReporting + public let modifyIpamResourceDiscovery: SmokeAWSHTTPClientInvocationReporting public let modifyIpamScope: SmokeAWSHTTPClientInvocationReporting public let modifyLaunchTemplate: SmokeAWSHTTPClientInvocationReporting public let modifyLocalGatewayRoute: SmokeAWSHTTPClientInvocationReporting @@ -568,6 +584,7 @@ public struct ElasticComputeCloudInvocationsReporting public let replaceRouteTableAssociation: SmokeAWSHTTPClientInvocationReporting public let replaceTransitGatewayRoute: SmokeAWSHTTPClientInvocationReporting + public let replaceVpnTunnel: SmokeAWSHTTPClientInvocationReporting public let reportInstanceStatus: SmokeAWSHTTPClientInvocationReporting public let requestSpotFleet: SmokeAWSHTTPClientInvocationReporting public let requestSpotInstances: SmokeAWSHTTPClientInvocationReporting @@ -601,6 +618,7 @@ public struct ElasticComputeCloudInvocationsReporting public let unassignIpv6Addresses: SmokeAWSHTTPClientInvocationReporting public let unassignPrivateIpAddresses: SmokeAWSHTTPClientInvocationReporting + public let unassignPrivateNatGatewayAddress: SmokeAWSHTTPClientInvocationReporting public let unmonitorInstances: SmokeAWSHTTPClientInvocationReporting public let updateSecurityGroupRuleDescriptionsEgress: SmokeAWSHTTPClientInvocationReporting public let updateSecurityGroupRuleDescriptionsIngress: SmokeAWSHTTPClientInvocationReporting @@ -635,6 +653,8 @@ public struct ElasticComputeCloudInvocationsReporting BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> AssignPrivateNatGatewayAddressResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the AssociateAddress operation in a HTTP client. */ @@ -271,6 +284,32 @@ extension AssociateInstanceEventWindowResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the AssociateIpamResourceDiscovery operation in a HTTP client. + */ +extension AssociateIpamResourceDiscoveryResult: HTTPResponseOutputProtocol { + public typealias BodyType = AssociateIpamResourceDiscoveryResult + public typealias HeadersType = AssociateIpamResourceDiscoveryResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> AssociateIpamResourceDiscoveryResult { + return try bodyDecodableProvider() + } +} + +/** + Type to handle the output from the AssociateNatGatewayAddress operation in a HTTP client. + */ +extension AssociateNatGatewayAddressResult: HTTPResponseOutputProtocol { + public typealias BodyType = AssociateNatGatewayAddressResult + public typealias HeadersType = AssociateNatGatewayAddressResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> AssociateNatGatewayAddressResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the AssociateRouteTable operation in a HTTP client. */ @@ -843,6 +882,19 @@ extension CreateImageResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the CreateInstanceConnectEndpoint operation in a HTTP client. + */ +extension CreateInstanceConnectEndpointResult: HTTPResponseOutputProtocol { + public typealias BodyType = CreateInstanceConnectEndpointResult + public typealias HeadersType = CreateInstanceConnectEndpointResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> CreateInstanceConnectEndpointResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the CreateInstanceEventWindow operation in a HTTP client. */ @@ -908,6 +960,19 @@ extension CreateIpamPoolResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the CreateIpamResourceDiscovery operation in a HTTP client. + */ +extension CreateIpamResourceDiscoveryResult: HTTPResponseOutputProtocol { + public typealias BodyType = CreateIpamResourceDiscoveryResult + public typealias HeadersType = CreateIpamResourceDiscoveryResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> CreateIpamResourceDiscoveryResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the CreateIpamScope operation in a HTTP client. */ @@ -1753,6 +1818,19 @@ extension DeleteFpgaImageResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DeleteInstanceConnectEndpoint operation in a HTTP client. + */ +extension DeleteInstanceConnectEndpointResult: HTTPResponseOutputProtocol { + public typealias BodyType = DeleteInstanceConnectEndpointResult + public typealias HeadersType = DeleteInstanceConnectEndpointResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DeleteInstanceConnectEndpointResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DeleteInstanceEventWindow operation in a HTTP client. */ @@ -1792,6 +1870,19 @@ extension DeleteIpamPoolResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DeleteIpamResourceDiscovery operation in a HTTP client. + */ +extension DeleteIpamResourceDiscoveryResult: HTTPResponseOutputProtocol { + public typealias BodyType = DeleteIpamResourceDiscoveryResult + public typealias HeadersType = DeleteIpamResourceDiscoveryResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DeleteIpamResourceDiscoveryResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DeleteIpamScope operation in a HTTP client. */ @@ -2975,6 +3066,19 @@ extension InstanceAttribute: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DescribeInstanceConnectEndpoints operation in a HTTP client. + */ +extension DescribeInstanceConnectEndpointsResult: HTTPResponseOutputProtocol { + public typealias BodyType = DescribeInstanceConnectEndpointsResult + public typealias HeadersType = DescribeInstanceConnectEndpointsResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DescribeInstanceConnectEndpointsResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DescribeInstanceCreditSpecifications operation in a HTTP client. */ @@ -3092,6 +3196,32 @@ extension DescribeIpamPoolsResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DescribeIpamResourceDiscoveries operation in a HTTP client. + */ +extension DescribeIpamResourceDiscoveriesResult: HTTPResponseOutputProtocol { + public typealias BodyType = DescribeIpamResourceDiscoveriesResult + public typealias HeadersType = DescribeIpamResourceDiscoveriesResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DescribeIpamResourceDiscoveriesResult { + return try bodyDecodableProvider() + } +} + +/** + Type to handle the output from the DescribeIpamResourceDiscoveryAssociations operation in a HTTP client. + */ +extension DescribeIpamResourceDiscoveryAssociationsResult: HTTPResponseOutputProtocol { + public typealias BodyType = DescribeIpamResourceDiscoveryAssociationsResult + public typealias HeadersType = DescribeIpamResourceDiscoveryAssociationsResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DescribeIpamResourceDiscoveryAssociationsResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DescribeIpamScopes operation in a HTTP client. */ @@ -4457,6 +4587,32 @@ extension DisassociateInstanceEventWindowResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DisassociateIpamResourceDiscovery operation in a HTTP client. + */ +extension DisassociateIpamResourceDiscoveryResult: HTTPResponseOutputProtocol { + public typealias BodyType = DisassociateIpamResourceDiscoveryResult + public typealias HeadersType = DisassociateIpamResourceDiscoveryResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DisassociateIpamResourceDiscoveryResult { + return try bodyDecodableProvider() + } +} + +/** + Type to handle the output from the DisassociateNatGatewayAddress operation in a HTTP client. + */ +extension DisassociateNatGatewayAddressResult: HTTPResponseOutputProtocol { + public typealias BodyType = DisassociateNatGatewayAddressResult + public typealias HeadersType = DisassociateNatGatewayAddressResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DisassociateNatGatewayAddressResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DisassociateSubnetCidrBlock operation in a HTTP client. */ @@ -4951,6 +5107,32 @@ extension GetIpamAddressHistoryResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the GetIpamDiscoveredAccounts operation in a HTTP client. + */ +extension GetIpamDiscoveredAccountsResult: HTTPResponseOutputProtocol { + public typealias BodyType = GetIpamDiscoveredAccountsResult + public typealias HeadersType = GetIpamDiscoveredAccountsResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> GetIpamDiscoveredAccountsResult { + return try bodyDecodableProvider() + } +} + +/** + Type to handle the output from the GetIpamDiscoveredResourceCidrs operation in a HTTP client. + */ +extension GetIpamDiscoveredResourceCidrsResult: HTTPResponseOutputProtocol { + public typealias BodyType = GetIpamDiscoveredResourceCidrsResult + public typealias HeadersType = GetIpamDiscoveredResourceCidrsResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> GetIpamDiscoveredResourceCidrsResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the GetIpamPoolAllocations operation in a HTTP client. */ @@ -5263,6 +5445,19 @@ extension GetVpnConnectionDeviceTypesResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the GetVpnTunnelReplacementStatus operation in a HTTP client. + */ +extension GetVpnTunnelReplacementStatusResult: HTTPResponseOutputProtocol { + public typealias BodyType = GetVpnTunnelReplacementStatusResult + public typealias HeadersType = GetVpnTunnelReplacementStatusResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> GetVpnTunnelReplacementStatusResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the ImportClientVpnClientCertificateRevocationList operation in a HTTP client. */ @@ -5627,6 +5822,19 @@ extension ModifyIpamResourceCidrResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the ModifyIpamResourceDiscovery operation in a HTTP client. + */ +extension ModifyIpamResourceDiscoveryResult: HTTPResponseOutputProtocol { + public typealias BodyType = ModifyIpamResourceDiscoveryResult + public typealias HeadersType = ModifyIpamResourceDiscoveryResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> ModifyIpamResourceDiscoveryResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the ModifyIpamScope operation in a HTTP client. */ @@ -6381,6 +6589,19 @@ extension ReplaceTransitGatewayRouteResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the ReplaceVpnTunnel operation in a HTTP client. + */ +extension ReplaceVpnTunnelResult: HTTPResponseOutputProtocol { + public typealias BodyType = ReplaceVpnTunnelResult + public typealias HeadersType = ReplaceVpnTunnelResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> ReplaceVpnTunnelResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the RequestSpotFleet operation in a HTTP client. */ @@ -6719,6 +6940,19 @@ extension UnassignIpv6AddressesResult: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the UnassignPrivateNatGatewayAddress operation in a HTTP client. + */ +extension UnassignPrivateNatGatewayAddressResult: HTTPResponseOutputProtocol { + public typealias BodyType = UnassignPrivateNatGatewayAddressResult + public typealias HeadersType = UnassignPrivateNatGatewayAddressResult + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> UnassignPrivateNatGatewayAddressResult { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the UnmonitorInstances operation in a HTTP client. */ diff --git a/Sources/ElasticComputeCloudClient/ElasticComputeCloudOperationsReporting.swift b/Sources/ElasticComputeCloudClient/ElasticComputeCloudOperationsReporting.swift index cace5e9..0d7d8c3 100644 --- a/Sources/ElasticComputeCloudClient/ElasticComputeCloudOperationsReporting.swift +++ b/Sources/ElasticComputeCloudClient/ElasticComputeCloudOperationsReporting.swift @@ -42,12 +42,15 @@ public struct ElasticComputeCloudOperationsReporting { public let applySecurityGroupsToClientVpnTargetNetwork: StandardSmokeAWSOperationReporting public let assignIpv6Addresses: StandardSmokeAWSOperationReporting public let assignPrivateIpAddresses: StandardSmokeAWSOperationReporting + public let assignPrivateNatGatewayAddress: StandardSmokeAWSOperationReporting public let associateAddress: StandardSmokeAWSOperationReporting public let associateClientVpnTargetNetwork: StandardSmokeAWSOperationReporting public let associateDhcpOptions: StandardSmokeAWSOperationReporting public let associateEnclaveCertificateIamRole: StandardSmokeAWSOperationReporting public let associateIamInstanceProfile: StandardSmokeAWSOperationReporting public let associateInstanceEventWindow: StandardSmokeAWSOperationReporting + public let associateIpamResourceDiscovery: StandardSmokeAWSOperationReporting + public let associateNatGatewayAddress: StandardSmokeAWSOperationReporting public let associateRouteTable: StandardSmokeAWSOperationReporting public let associateSubnetCidrBlock: StandardSmokeAWSOperationReporting public let associateTransitGatewayMulticastDomain: StandardSmokeAWSOperationReporting @@ -95,11 +98,13 @@ public struct ElasticComputeCloudOperationsReporting { public let createFlowLogs: StandardSmokeAWSOperationReporting public let createFpgaImage: StandardSmokeAWSOperationReporting public let createImage: StandardSmokeAWSOperationReporting + public let createInstanceConnectEndpoint: StandardSmokeAWSOperationReporting public let createInstanceEventWindow: StandardSmokeAWSOperationReporting public let createInstanceExportTask: StandardSmokeAWSOperationReporting public let createInternetGateway: StandardSmokeAWSOperationReporting public let createIpam: StandardSmokeAWSOperationReporting public let createIpamPool: StandardSmokeAWSOperationReporting + public let createIpamResourceDiscovery: StandardSmokeAWSOperationReporting public let createIpamScope: StandardSmokeAWSOperationReporting public let createKeyPair: StandardSmokeAWSOperationReporting public let createLaunchTemplate: StandardSmokeAWSOperationReporting @@ -170,10 +175,12 @@ public struct ElasticComputeCloudOperationsReporting { public let deleteFleets: StandardSmokeAWSOperationReporting public let deleteFlowLogs: StandardSmokeAWSOperationReporting public let deleteFpgaImage: StandardSmokeAWSOperationReporting + public let deleteInstanceConnectEndpoint: StandardSmokeAWSOperationReporting public let deleteInstanceEventWindow: StandardSmokeAWSOperationReporting public let deleteInternetGateway: StandardSmokeAWSOperationReporting public let deleteIpam: StandardSmokeAWSOperationReporting public let deleteIpamPool: StandardSmokeAWSOperationReporting + public let deleteIpamResourceDiscovery: StandardSmokeAWSOperationReporting public let deleteIpamScope: StandardSmokeAWSOperationReporting public let deleteKeyPair: StandardSmokeAWSOperationReporting public let deleteLaunchTemplate: StandardSmokeAWSOperationReporting @@ -283,6 +290,7 @@ public struct ElasticComputeCloudOperationsReporting { public let describeImportImageTasks: StandardSmokeAWSOperationReporting public let describeImportSnapshotTasks: StandardSmokeAWSOperationReporting public let describeInstanceAttribute: StandardSmokeAWSOperationReporting + public let describeInstanceConnectEndpoints: StandardSmokeAWSOperationReporting public let describeInstanceCreditSpecifications: StandardSmokeAWSOperationReporting public let describeInstanceEventNotificationAttributes: StandardSmokeAWSOperationReporting public let describeInstanceEventWindows: StandardSmokeAWSOperationReporting @@ -292,6 +300,8 @@ public struct ElasticComputeCloudOperationsReporting { public let describeInstances: StandardSmokeAWSOperationReporting public let describeInternetGateways: StandardSmokeAWSOperationReporting public let describeIpamPools: StandardSmokeAWSOperationReporting + public let describeIpamResourceDiscoveries: StandardSmokeAWSOperationReporting + public let describeIpamResourceDiscoveryAssociations: StandardSmokeAWSOperationReporting public let describeIpamScopes: StandardSmokeAWSOperationReporting public let describeIpams: StandardSmokeAWSOperationReporting public let describeIpv6Pools: StandardSmokeAWSOperationReporting @@ -403,6 +413,8 @@ public struct ElasticComputeCloudOperationsReporting { public let disassociateEnclaveCertificateIamRole: StandardSmokeAWSOperationReporting public let disassociateIamInstanceProfile: StandardSmokeAWSOperationReporting public let disassociateInstanceEventWindow: StandardSmokeAWSOperationReporting + public let disassociateIpamResourceDiscovery: StandardSmokeAWSOperationReporting + public let disassociateNatGatewayAddress: StandardSmokeAWSOperationReporting public let disassociateRouteTable: StandardSmokeAWSOperationReporting public let disassociateSubnetCidrBlock: StandardSmokeAWSOperationReporting public let disassociateTransitGatewayMulticastDomain: StandardSmokeAWSOperationReporting @@ -444,6 +456,8 @@ public struct ElasticComputeCloudOperationsReporting { public let getInstanceTypesFromInstanceRequirements: StandardSmokeAWSOperationReporting public let getInstanceUefiData: StandardSmokeAWSOperationReporting public let getIpamAddressHistory: StandardSmokeAWSOperationReporting + public let getIpamDiscoveredAccounts: StandardSmokeAWSOperationReporting + public let getIpamDiscoveredResourceCidrs: StandardSmokeAWSOperationReporting public let getIpamPoolAllocations: StandardSmokeAWSOperationReporting public let getIpamPoolCidrs: StandardSmokeAWSOperationReporting public let getIpamResourceCidrs: StandardSmokeAWSOperationReporting @@ -468,6 +482,7 @@ public struct ElasticComputeCloudOperationsReporting { public let getVerifiedAccessGroupPolicy: StandardSmokeAWSOperationReporting public let getVpnConnectionDeviceSampleConfiguration: StandardSmokeAWSOperationReporting public let getVpnConnectionDeviceTypes: StandardSmokeAWSOperationReporting + public let getVpnTunnelReplacementStatus: StandardSmokeAWSOperationReporting public let importClientVpnClientCertificateRevocationList: StandardSmokeAWSOperationReporting public let importImage: StandardSmokeAWSOperationReporting public let importInstance: StandardSmokeAWSOperationReporting @@ -500,6 +515,7 @@ public struct ElasticComputeCloudOperationsReporting { public let modifyIpam: StandardSmokeAWSOperationReporting public let modifyIpamPool: StandardSmokeAWSOperationReporting public let modifyIpamResourceCidr: StandardSmokeAWSOperationReporting + public let modifyIpamResourceDiscovery: StandardSmokeAWSOperationReporting public let modifyIpamScope: StandardSmokeAWSOperationReporting public let modifyLaunchTemplate: StandardSmokeAWSOperationReporting public let modifyLocalGatewayRoute: StandardSmokeAWSOperationReporting @@ -567,6 +583,7 @@ public struct ElasticComputeCloudOperationsReporting { public let replaceRoute: StandardSmokeAWSOperationReporting public let replaceRouteTableAssociation: StandardSmokeAWSOperationReporting public let replaceTransitGatewayRoute: StandardSmokeAWSOperationReporting + public let replaceVpnTunnel: StandardSmokeAWSOperationReporting public let reportInstanceStatus: StandardSmokeAWSOperationReporting public let requestSpotFleet: StandardSmokeAWSOperationReporting public let requestSpotInstances: StandardSmokeAWSOperationReporting @@ -600,6 +617,7 @@ public struct ElasticComputeCloudOperationsReporting { public let terminateInstances: StandardSmokeAWSOperationReporting public let unassignIpv6Addresses: StandardSmokeAWSOperationReporting public let unassignPrivateIpAddresses: StandardSmokeAWSOperationReporting + public let unassignPrivateNatGatewayAddress: StandardSmokeAWSOperationReporting public let unmonitorInstances: StandardSmokeAWSOperationReporting public let updateSecurityGroupRuleDescriptionsEgress: StandardSmokeAWSOperationReporting public let updateSecurityGroupRuleDescriptionsIngress: StandardSmokeAWSOperationReporting @@ -634,6 +652,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .assignIpv6Addresses, configuration: reportingConfiguration) self.assignPrivateIpAddresses = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .assignPrivateIpAddresses, configuration: reportingConfiguration) + self.assignPrivateNatGatewayAddress = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .assignPrivateNatGatewayAddress, configuration: reportingConfiguration) self.associateAddress = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .associateAddress, configuration: reportingConfiguration) self.associateClientVpnTargetNetwork = StandardSmokeAWSOperationReporting( @@ -646,6 +666,10 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .associateIamInstanceProfile, configuration: reportingConfiguration) self.associateInstanceEventWindow = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .associateInstanceEventWindow, configuration: reportingConfiguration) + self.associateIpamResourceDiscovery = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .associateIpamResourceDiscovery, configuration: reportingConfiguration) + self.associateNatGatewayAddress = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .associateNatGatewayAddress, configuration: reportingConfiguration) self.associateRouteTable = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .associateRouteTable, configuration: reportingConfiguration) self.associateSubnetCidrBlock = StandardSmokeAWSOperationReporting( @@ -740,6 +764,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .createFpgaImage, configuration: reportingConfiguration) self.createImage = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createImage, configuration: reportingConfiguration) + self.createInstanceConnectEndpoint = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .createInstanceConnectEndpoint, configuration: reportingConfiguration) self.createInstanceEventWindow = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createInstanceEventWindow, configuration: reportingConfiguration) self.createInstanceExportTask = StandardSmokeAWSOperationReporting( @@ -750,6 +776,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .createIpam, configuration: reportingConfiguration) self.createIpamPool = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createIpamPool, configuration: reportingConfiguration) + self.createIpamResourceDiscovery = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .createIpamResourceDiscovery, configuration: reportingConfiguration) self.createIpamScope = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createIpamScope, configuration: reportingConfiguration) self.createKeyPair = StandardSmokeAWSOperationReporting( @@ -890,6 +918,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .deleteFlowLogs, configuration: reportingConfiguration) self.deleteFpgaImage = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteFpgaImage, configuration: reportingConfiguration) + self.deleteInstanceConnectEndpoint = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .deleteInstanceConnectEndpoint, configuration: reportingConfiguration) self.deleteInstanceEventWindow = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteInstanceEventWindow, configuration: reportingConfiguration) self.deleteInternetGateway = StandardSmokeAWSOperationReporting( @@ -898,6 +928,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .deleteIpam, configuration: reportingConfiguration) self.deleteIpamPool = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteIpamPool, configuration: reportingConfiguration) + self.deleteIpamResourceDiscovery = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .deleteIpamResourceDiscovery, configuration: reportingConfiguration) self.deleteIpamScope = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteIpamScope, configuration: reportingConfiguration) self.deleteKeyPair = StandardSmokeAWSOperationReporting( @@ -1116,6 +1148,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .describeImportSnapshotTasks, configuration: reportingConfiguration) self.describeInstanceAttribute = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeInstanceAttribute, configuration: reportingConfiguration) + self.describeInstanceConnectEndpoints = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .describeInstanceConnectEndpoints, configuration: reportingConfiguration) self.describeInstanceCreditSpecifications = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeInstanceCreditSpecifications, configuration: reportingConfiguration) self.describeInstanceEventNotificationAttributes = StandardSmokeAWSOperationReporting( @@ -1134,6 +1168,10 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .describeInternetGateways, configuration: reportingConfiguration) self.describeIpamPools = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeIpamPools, configuration: reportingConfiguration) + self.describeIpamResourceDiscoveries = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .describeIpamResourceDiscoveries, configuration: reportingConfiguration) + self.describeIpamResourceDiscoveryAssociations = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .describeIpamResourceDiscoveryAssociations, configuration: reportingConfiguration) self.describeIpamScopes = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeIpamScopes, configuration: reportingConfiguration) self.describeIpams = StandardSmokeAWSOperationReporting( @@ -1356,6 +1394,10 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .disassociateIamInstanceProfile, configuration: reportingConfiguration) self.disassociateInstanceEventWindow = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .disassociateInstanceEventWindow, configuration: reportingConfiguration) + self.disassociateIpamResourceDiscovery = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .disassociateIpamResourceDiscovery, configuration: reportingConfiguration) + self.disassociateNatGatewayAddress = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .disassociateNatGatewayAddress, configuration: reportingConfiguration) self.disassociateRouteTable = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .disassociateRouteTable, configuration: reportingConfiguration) self.disassociateSubnetCidrBlock = StandardSmokeAWSOperationReporting( @@ -1438,6 +1480,10 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .getInstanceUefiData, configuration: reportingConfiguration) self.getIpamAddressHistory = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .getIpamAddressHistory, configuration: reportingConfiguration) + self.getIpamDiscoveredAccounts = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .getIpamDiscoveredAccounts, configuration: reportingConfiguration) + self.getIpamDiscoveredResourceCidrs = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .getIpamDiscoveredResourceCidrs, configuration: reportingConfiguration) self.getIpamPoolAllocations = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .getIpamPoolAllocations, configuration: reportingConfiguration) self.getIpamPoolCidrs = StandardSmokeAWSOperationReporting( @@ -1486,6 +1532,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .getVpnConnectionDeviceSampleConfiguration, configuration: reportingConfiguration) self.getVpnConnectionDeviceTypes = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .getVpnConnectionDeviceTypes, configuration: reportingConfiguration) + self.getVpnTunnelReplacementStatus = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .getVpnTunnelReplacementStatus, configuration: reportingConfiguration) self.importClientVpnClientCertificateRevocationList = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .importClientVpnClientCertificateRevocationList, configuration: reportingConfiguration) self.importImage = StandardSmokeAWSOperationReporting( @@ -1550,6 +1598,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .modifyIpamPool, configuration: reportingConfiguration) self.modifyIpamResourceCidr = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .modifyIpamResourceCidr, configuration: reportingConfiguration) + self.modifyIpamResourceDiscovery = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .modifyIpamResourceDiscovery, configuration: reportingConfiguration) self.modifyIpamScope = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .modifyIpamScope, configuration: reportingConfiguration) self.modifyLaunchTemplate = StandardSmokeAWSOperationReporting( @@ -1684,6 +1734,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .replaceRouteTableAssociation, configuration: reportingConfiguration) self.replaceTransitGatewayRoute = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .replaceTransitGatewayRoute, configuration: reportingConfiguration) + self.replaceVpnTunnel = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .replaceVpnTunnel, configuration: reportingConfiguration) self.reportInstanceStatus = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .reportInstanceStatus, configuration: reportingConfiguration) self.requestSpotFleet = StandardSmokeAWSOperationReporting( @@ -1750,6 +1802,8 @@ public struct ElasticComputeCloudOperationsReporting { clientName: clientName, operation: .unassignIpv6Addresses, configuration: reportingConfiguration) self.unassignPrivateIpAddresses = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .unassignPrivateIpAddresses, configuration: reportingConfiguration) + self.unassignPrivateNatGatewayAddress = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .unassignPrivateNatGatewayAddress, configuration: reportingConfiguration) self.unmonitorInstances = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .unmonitorInstances, configuration: reportingConfiguration) self.updateSecurityGroupRuleDescriptionsEgress = StandardSmokeAWSOperationReporting( diff --git a/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClient.swift b/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClient.swift index f2422ef..f0bff22 100644 --- a/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClient.swift +++ b/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClient.swift @@ -57,6 +57,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let assignIpv6AddressesSyncOverride: AssignIpv6AddressesSyncType? let assignPrivateIpAddressesAsyncOverride: AssignPrivateIpAddressesAsyncType? let assignPrivateIpAddressesSyncOverride: AssignPrivateIpAddressesSyncType? + let assignPrivateNatGatewayAddressAsyncOverride: AssignPrivateNatGatewayAddressAsyncType? + let assignPrivateNatGatewayAddressSyncOverride: AssignPrivateNatGatewayAddressSyncType? let associateAddressAsyncOverride: AssociateAddressAsyncType? let associateAddressSyncOverride: AssociateAddressSyncType? let associateClientVpnTargetNetworkAsyncOverride: AssociateClientVpnTargetNetworkAsyncType? @@ -69,6 +71,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let associateIamInstanceProfileSyncOverride: AssociateIamInstanceProfileSyncType? let associateInstanceEventWindowAsyncOverride: AssociateInstanceEventWindowAsyncType? let associateInstanceEventWindowSyncOverride: AssociateInstanceEventWindowSyncType? + let associateIpamResourceDiscoveryAsyncOverride: AssociateIpamResourceDiscoveryAsyncType? + let associateIpamResourceDiscoverySyncOverride: AssociateIpamResourceDiscoverySyncType? + let associateNatGatewayAddressAsyncOverride: AssociateNatGatewayAddressAsyncType? + let associateNatGatewayAddressSyncOverride: AssociateNatGatewayAddressSyncType? let associateRouteTableAsyncOverride: AssociateRouteTableAsyncType? let associateRouteTableSyncOverride: AssociateRouteTableSyncType? let associateSubnetCidrBlockAsyncOverride: AssociateSubnetCidrBlockAsyncType? @@ -163,6 +169,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let createFpgaImageSyncOverride: CreateFpgaImageSyncType? let createImageAsyncOverride: CreateImageAsyncType? let createImageSyncOverride: CreateImageSyncType? + let createInstanceConnectEndpointAsyncOverride: CreateInstanceConnectEndpointAsyncType? + let createInstanceConnectEndpointSyncOverride: CreateInstanceConnectEndpointSyncType? let createInstanceEventWindowAsyncOverride: CreateInstanceEventWindowAsyncType? let createInstanceEventWindowSyncOverride: CreateInstanceEventWindowSyncType? let createInstanceExportTaskAsyncOverride: CreateInstanceExportTaskAsyncType? @@ -173,6 +181,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let createIpamSyncOverride: CreateIpamSyncType? let createIpamPoolAsyncOverride: CreateIpamPoolAsyncType? let createIpamPoolSyncOverride: CreateIpamPoolSyncType? + let createIpamResourceDiscoveryAsyncOverride: CreateIpamResourceDiscoveryAsyncType? + let createIpamResourceDiscoverySyncOverride: CreateIpamResourceDiscoverySyncType? let createIpamScopeAsyncOverride: CreateIpamScopeAsyncType? let createIpamScopeSyncOverride: CreateIpamScopeSyncType? let createKeyPairAsyncOverride: CreateKeyPairAsyncType? @@ -313,6 +323,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let deleteFlowLogsSyncOverride: DeleteFlowLogsSyncType? let deleteFpgaImageAsyncOverride: DeleteFpgaImageAsyncType? let deleteFpgaImageSyncOverride: DeleteFpgaImageSyncType? + let deleteInstanceConnectEndpointAsyncOverride: DeleteInstanceConnectEndpointAsyncType? + let deleteInstanceConnectEndpointSyncOverride: DeleteInstanceConnectEndpointSyncType? let deleteInstanceEventWindowAsyncOverride: DeleteInstanceEventWindowAsyncType? let deleteInstanceEventWindowSyncOverride: DeleteInstanceEventWindowSyncType? let deleteInternetGatewayAsyncOverride: DeleteInternetGatewayAsyncType? @@ -321,6 +333,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let deleteIpamSyncOverride: DeleteIpamSyncType? let deleteIpamPoolAsyncOverride: DeleteIpamPoolAsyncType? let deleteIpamPoolSyncOverride: DeleteIpamPoolSyncType? + let deleteIpamResourceDiscoveryAsyncOverride: DeleteIpamResourceDiscoveryAsyncType? + let deleteIpamResourceDiscoverySyncOverride: DeleteIpamResourceDiscoverySyncType? let deleteIpamScopeAsyncOverride: DeleteIpamScopeAsyncType? let deleteIpamScopeSyncOverride: DeleteIpamScopeSyncType? let deleteKeyPairAsyncOverride: DeleteKeyPairAsyncType? @@ -539,6 +553,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let describeImportSnapshotTasksSyncOverride: DescribeImportSnapshotTasksSyncType? let describeInstanceAttributeAsyncOverride: DescribeInstanceAttributeAsyncType? let describeInstanceAttributeSyncOverride: DescribeInstanceAttributeSyncType? + let describeInstanceConnectEndpointsAsyncOverride: DescribeInstanceConnectEndpointsAsyncType? + let describeInstanceConnectEndpointsSyncOverride: DescribeInstanceConnectEndpointsSyncType? let describeInstanceCreditSpecificationsAsyncOverride: DescribeInstanceCreditSpecificationsAsyncType? let describeInstanceCreditSpecificationsSyncOverride: DescribeInstanceCreditSpecificationsSyncType? let describeInstanceEventNotificationAttributesAsyncOverride: DescribeInstanceEventNotificationAttributesAsyncType? @@ -557,6 +573,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let describeInternetGatewaysSyncOverride: DescribeInternetGatewaysSyncType? let describeIpamPoolsAsyncOverride: DescribeIpamPoolsAsyncType? let describeIpamPoolsSyncOverride: DescribeIpamPoolsSyncType? + let describeIpamResourceDiscoveriesAsyncOverride: DescribeIpamResourceDiscoveriesAsyncType? + let describeIpamResourceDiscoveriesSyncOverride: DescribeIpamResourceDiscoveriesSyncType? + let describeIpamResourceDiscoveryAssociationsAsyncOverride: DescribeIpamResourceDiscoveryAssociationsAsyncType? + let describeIpamResourceDiscoveryAssociationsSyncOverride: DescribeIpamResourceDiscoveryAssociationsSyncType? let describeIpamScopesAsyncOverride: DescribeIpamScopesAsyncType? let describeIpamScopesSyncOverride: DescribeIpamScopesSyncType? let describeIpamsAsyncOverride: DescribeIpamsAsyncType? @@ -779,6 +799,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let disassociateIamInstanceProfileSyncOverride: DisassociateIamInstanceProfileSyncType? let disassociateInstanceEventWindowAsyncOverride: DisassociateInstanceEventWindowAsyncType? let disassociateInstanceEventWindowSyncOverride: DisassociateInstanceEventWindowSyncType? + let disassociateIpamResourceDiscoveryAsyncOverride: DisassociateIpamResourceDiscoveryAsyncType? + let disassociateIpamResourceDiscoverySyncOverride: DisassociateIpamResourceDiscoverySyncType? + let disassociateNatGatewayAddressAsyncOverride: DisassociateNatGatewayAddressAsyncType? + let disassociateNatGatewayAddressSyncOverride: DisassociateNatGatewayAddressSyncType? let disassociateRouteTableAsyncOverride: DisassociateRouteTableAsyncType? let disassociateRouteTableSyncOverride: DisassociateRouteTableSyncType? let disassociateSubnetCidrBlockAsyncOverride: DisassociateSubnetCidrBlockAsyncType? @@ -861,6 +885,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let getInstanceUefiDataSyncOverride: GetInstanceUefiDataSyncType? let getIpamAddressHistoryAsyncOverride: GetIpamAddressHistoryAsyncType? let getIpamAddressHistorySyncOverride: GetIpamAddressHistorySyncType? + let getIpamDiscoveredAccountsAsyncOverride: GetIpamDiscoveredAccountsAsyncType? + let getIpamDiscoveredAccountsSyncOverride: GetIpamDiscoveredAccountsSyncType? + let getIpamDiscoveredResourceCidrsAsyncOverride: GetIpamDiscoveredResourceCidrsAsyncType? + let getIpamDiscoveredResourceCidrsSyncOverride: GetIpamDiscoveredResourceCidrsSyncType? let getIpamPoolAllocationsAsyncOverride: GetIpamPoolAllocationsAsyncType? let getIpamPoolAllocationsSyncOverride: GetIpamPoolAllocationsSyncType? let getIpamPoolCidrsAsyncOverride: GetIpamPoolCidrsAsyncType? @@ -909,6 +937,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let getVpnConnectionDeviceSampleConfigurationSyncOverride: GetVpnConnectionDeviceSampleConfigurationSyncType? let getVpnConnectionDeviceTypesAsyncOverride: GetVpnConnectionDeviceTypesAsyncType? let getVpnConnectionDeviceTypesSyncOverride: GetVpnConnectionDeviceTypesSyncType? + let getVpnTunnelReplacementStatusAsyncOverride: GetVpnTunnelReplacementStatusAsyncType? + let getVpnTunnelReplacementStatusSyncOverride: GetVpnTunnelReplacementStatusSyncType? let importClientVpnClientCertificateRevocationListAsyncOverride: ImportClientVpnClientCertificateRevocationListAsyncType? let importClientVpnClientCertificateRevocationListSyncOverride: ImportClientVpnClientCertificateRevocationListSyncType? let importImageAsyncOverride: ImportImageAsyncType? @@ -973,6 +1003,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let modifyIpamPoolSyncOverride: ModifyIpamPoolSyncType? let modifyIpamResourceCidrAsyncOverride: ModifyIpamResourceCidrAsyncType? let modifyIpamResourceCidrSyncOverride: ModifyIpamResourceCidrSyncType? + let modifyIpamResourceDiscoveryAsyncOverride: ModifyIpamResourceDiscoveryAsyncType? + let modifyIpamResourceDiscoverySyncOverride: ModifyIpamResourceDiscoverySyncType? let modifyIpamScopeAsyncOverride: ModifyIpamScopeAsyncType? let modifyIpamScopeSyncOverride: ModifyIpamScopeSyncType? let modifyLaunchTemplateAsyncOverride: ModifyLaunchTemplateAsyncType? @@ -1107,6 +1139,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let replaceRouteTableAssociationSyncOverride: ReplaceRouteTableAssociationSyncType? let replaceTransitGatewayRouteAsyncOverride: ReplaceTransitGatewayRouteAsyncType? let replaceTransitGatewayRouteSyncOverride: ReplaceTransitGatewayRouteSyncType? + let replaceVpnTunnelAsyncOverride: ReplaceVpnTunnelAsyncType? + let replaceVpnTunnelSyncOverride: ReplaceVpnTunnelSyncType? let reportInstanceStatusAsyncOverride: ReportInstanceStatusAsyncType? let reportInstanceStatusSyncOverride: ReportInstanceStatusSyncType? let requestSpotFleetAsyncOverride: RequestSpotFleetAsyncType? @@ -1173,6 +1207,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { let unassignIpv6AddressesSyncOverride: UnassignIpv6AddressesSyncType? let unassignPrivateIpAddressesAsyncOverride: UnassignPrivateIpAddressesAsyncType? let unassignPrivateIpAddressesSyncOverride: UnassignPrivateIpAddressesSyncType? + let unassignPrivateNatGatewayAddressAsyncOverride: UnassignPrivateNatGatewayAddressAsyncType? + let unassignPrivateNatGatewayAddressSyncOverride: UnassignPrivateNatGatewayAddressSyncType? let unmonitorInstancesAsyncOverride: UnmonitorInstancesAsyncType? let unmonitorInstancesSyncOverride: UnmonitorInstancesSyncType? let updateSecurityGroupRuleDescriptionsEgressAsyncOverride: UpdateSecurityGroupRuleDescriptionsEgressAsyncType? @@ -1215,6 +1251,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { assignIpv6AddressesSync: AssignIpv6AddressesSyncType? = nil, assignPrivateIpAddressesAsync: AssignPrivateIpAddressesAsyncType? = nil, assignPrivateIpAddressesSync: AssignPrivateIpAddressesSyncType? = nil, + assignPrivateNatGatewayAddressAsync: AssignPrivateNatGatewayAddressAsyncType? = nil, + assignPrivateNatGatewayAddressSync: AssignPrivateNatGatewayAddressSyncType? = nil, associateAddressAsync: AssociateAddressAsyncType? = nil, associateAddressSync: AssociateAddressSyncType? = nil, associateClientVpnTargetNetworkAsync: AssociateClientVpnTargetNetworkAsyncType? = nil, @@ -1227,6 +1265,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { associateIamInstanceProfileSync: AssociateIamInstanceProfileSyncType? = nil, associateInstanceEventWindowAsync: AssociateInstanceEventWindowAsyncType? = nil, associateInstanceEventWindowSync: AssociateInstanceEventWindowSyncType? = nil, + associateIpamResourceDiscoveryAsync: AssociateIpamResourceDiscoveryAsyncType? = nil, + associateIpamResourceDiscoverySync: AssociateIpamResourceDiscoverySyncType? = nil, + associateNatGatewayAddressAsync: AssociateNatGatewayAddressAsyncType? = nil, + associateNatGatewayAddressSync: AssociateNatGatewayAddressSyncType? = nil, associateRouteTableAsync: AssociateRouteTableAsyncType? = nil, associateRouteTableSync: AssociateRouteTableSyncType? = nil, associateSubnetCidrBlockAsync: AssociateSubnetCidrBlockAsyncType? = nil, @@ -1321,6 +1363,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { createFpgaImageSync: CreateFpgaImageSyncType? = nil, createImageAsync: CreateImageAsyncType? = nil, createImageSync: CreateImageSyncType? = nil, + createInstanceConnectEndpointAsync: CreateInstanceConnectEndpointAsyncType? = nil, + createInstanceConnectEndpointSync: CreateInstanceConnectEndpointSyncType? = nil, createInstanceEventWindowAsync: CreateInstanceEventWindowAsyncType? = nil, createInstanceEventWindowSync: CreateInstanceEventWindowSyncType? = nil, createInstanceExportTaskAsync: CreateInstanceExportTaskAsyncType? = nil, @@ -1331,6 +1375,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { createIpamSync: CreateIpamSyncType? = nil, createIpamPoolAsync: CreateIpamPoolAsyncType? = nil, createIpamPoolSync: CreateIpamPoolSyncType? = nil, + createIpamResourceDiscoveryAsync: CreateIpamResourceDiscoveryAsyncType? = nil, + createIpamResourceDiscoverySync: CreateIpamResourceDiscoverySyncType? = nil, createIpamScopeAsync: CreateIpamScopeAsyncType? = nil, createIpamScopeSync: CreateIpamScopeSyncType? = nil, createKeyPairAsync: CreateKeyPairAsyncType? = nil, @@ -1471,6 +1517,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { deleteFlowLogsSync: DeleteFlowLogsSyncType? = nil, deleteFpgaImageAsync: DeleteFpgaImageAsyncType? = nil, deleteFpgaImageSync: DeleteFpgaImageSyncType? = nil, + deleteInstanceConnectEndpointAsync: DeleteInstanceConnectEndpointAsyncType? = nil, + deleteInstanceConnectEndpointSync: DeleteInstanceConnectEndpointSyncType? = nil, deleteInstanceEventWindowAsync: DeleteInstanceEventWindowAsyncType? = nil, deleteInstanceEventWindowSync: DeleteInstanceEventWindowSyncType? = nil, deleteInternetGatewayAsync: DeleteInternetGatewayAsyncType? = nil, @@ -1479,6 +1527,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { deleteIpamSync: DeleteIpamSyncType? = nil, deleteIpamPoolAsync: DeleteIpamPoolAsyncType? = nil, deleteIpamPoolSync: DeleteIpamPoolSyncType? = nil, + deleteIpamResourceDiscoveryAsync: DeleteIpamResourceDiscoveryAsyncType? = nil, + deleteIpamResourceDiscoverySync: DeleteIpamResourceDiscoverySyncType? = nil, deleteIpamScopeAsync: DeleteIpamScopeAsyncType? = nil, deleteIpamScopeSync: DeleteIpamScopeSyncType? = nil, deleteKeyPairAsync: DeleteKeyPairAsyncType? = nil, @@ -1697,6 +1747,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { describeImportSnapshotTasksSync: DescribeImportSnapshotTasksSyncType? = nil, describeInstanceAttributeAsync: DescribeInstanceAttributeAsyncType? = nil, describeInstanceAttributeSync: DescribeInstanceAttributeSyncType? = nil, + describeInstanceConnectEndpointsAsync: DescribeInstanceConnectEndpointsAsyncType? = nil, + describeInstanceConnectEndpointsSync: DescribeInstanceConnectEndpointsSyncType? = nil, describeInstanceCreditSpecificationsAsync: DescribeInstanceCreditSpecificationsAsyncType? = nil, describeInstanceCreditSpecificationsSync: DescribeInstanceCreditSpecificationsSyncType? = nil, describeInstanceEventNotificationAttributesAsync: DescribeInstanceEventNotificationAttributesAsyncType? = nil, @@ -1715,6 +1767,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { describeInternetGatewaysSync: DescribeInternetGatewaysSyncType? = nil, describeIpamPoolsAsync: DescribeIpamPoolsAsyncType? = nil, describeIpamPoolsSync: DescribeIpamPoolsSyncType? = nil, + describeIpamResourceDiscoveriesAsync: DescribeIpamResourceDiscoveriesAsyncType? = nil, + describeIpamResourceDiscoveriesSync: DescribeIpamResourceDiscoveriesSyncType? = nil, + describeIpamResourceDiscoveryAssociationsAsync: DescribeIpamResourceDiscoveryAssociationsAsyncType? = nil, + describeIpamResourceDiscoveryAssociationsSync: DescribeIpamResourceDiscoveryAssociationsSyncType? = nil, describeIpamScopesAsync: DescribeIpamScopesAsyncType? = nil, describeIpamScopesSync: DescribeIpamScopesSyncType? = nil, describeIpamsAsync: DescribeIpamsAsyncType? = nil, @@ -1937,6 +1993,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { disassociateIamInstanceProfileSync: DisassociateIamInstanceProfileSyncType? = nil, disassociateInstanceEventWindowAsync: DisassociateInstanceEventWindowAsyncType? = nil, disassociateInstanceEventWindowSync: DisassociateInstanceEventWindowSyncType? = nil, + disassociateIpamResourceDiscoveryAsync: DisassociateIpamResourceDiscoveryAsyncType? = nil, + disassociateIpamResourceDiscoverySync: DisassociateIpamResourceDiscoverySyncType? = nil, + disassociateNatGatewayAddressAsync: DisassociateNatGatewayAddressAsyncType? = nil, + disassociateNatGatewayAddressSync: DisassociateNatGatewayAddressSyncType? = nil, disassociateRouteTableAsync: DisassociateRouteTableAsyncType? = nil, disassociateRouteTableSync: DisassociateRouteTableSyncType? = nil, disassociateSubnetCidrBlockAsync: DisassociateSubnetCidrBlockAsyncType? = nil, @@ -2019,6 +2079,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { getInstanceUefiDataSync: GetInstanceUefiDataSyncType? = nil, getIpamAddressHistoryAsync: GetIpamAddressHistoryAsyncType? = nil, getIpamAddressHistorySync: GetIpamAddressHistorySyncType? = nil, + getIpamDiscoveredAccountsAsync: GetIpamDiscoveredAccountsAsyncType? = nil, + getIpamDiscoveredAccountsSync: GetIpamDiscoveredAccountsSyncType? = nil, + getIpamDiscoveredResourceCidrsAsync: GetIpamDiscoveredResourceCidrsAsyncType? = nil, + getIpamDiscoveredResourceCidrsSync: GetIpamDiscoveredResourceCidrsSyncType? = nil, getIpamPoolAllocationsAsync: GetIpamPoolAllocationsAsyncType? = nil, getIpamPoolAllocationsSync: GetIpamPoolAllocationsSyncType? = nil, getIpamPoolCidrsAsync: GetIpamPoolCidrsAsyncType? = nil, @@ -2067,6 +2131,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { getVpnConnectionDeviceSampleConfigurationSync: GetVpnConnectionDeviceSampleConfigurationSyncType? = nil, getVpnConnectionDeviceTypesAsync: GetVpnConnectionDeviceTypesAsyncType? = nil, getVpnConnectionDeviceTypesSync: GetVpnConnectionDeviceTypesSyncType? = nil, + getVpnTunnelReplacementStatusAsync: GetVpnTunnelReplacementStatusAsyncType? = nil, + getVpnTunnelReplacementStatusSync: GetVpnTunnelReplacementStatusSyncType? = nil, importClientVpnClientCertificateRevocationListAsync: ImportClientVpnClientCertificateRevocationListAsyncType? = nil, importClientVpnClientCertificateRevocationListSync: ImportClientVpnClientCertificateRevocationListSyncType? = nil, importImageAsync: ImportImageAsyncType? = nil, @@ -2131,6 +2197,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { modifyIpamPoolSync: ModifyIpamPoolSyncType? = nil, modifyIpamResourceCidrAsync: ModifyIpamResourceCidrAsyncType? = nil, modifyIpamResourceCidrSync: ModifyIpamResourceCidrSyncType? = nil, + modifyIpamResourceDiscoveryAsync: ModifyIpamResourceDiscoveryAsyncType? = nil, + modifyIpamResourceDiscoverySync: ModifyIpamResourceDiscoverySyncType? = nil, modifyIpamScopeAsync: ModifyIpamScopeAsyncType? = nil, modifyIpamScopeSync: ModifyIpamScopeSyncType? = nil, modifyLaunchTemplateAsync: ModifyLaunchTemplateAsyncType? = nil, @@ -2265,6 +2333,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { replaceRouteTableAssociationSync: ReplaceRouteTableAssociationSyncType? = nil, replaceTransitGatewayRouteAsync: ReplaceTransitGatewayRouteAsyncType? = nil, replaceTransitGatewayRouteSync: ReplaceTransitGatewayRouteSyncType? = nil, + replaceVpnTunnelAsync: ReplaceVpnTunnelAsyncType? = nil, + replaceVpnTunnelSync: ReplaceVpnTunnelSyncType? = nil, reportInstanceStatusAsync: ReportInstanceStatusAsyncType? = nil, reportInstanceStatusSync: ReportInstanceStatusSyncType? = nil, requestSpotFleetAsync: RequestSpotFleetAsyncType? = nil, @@ -2331,6 +2401,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { unassignIpv6AddressesSync: UnassignIpv6AddressesSyncType? = nil, unassignPrivateIpAddressesAsync: UnassignPrivateIpAddressesAsyncType? = nil, unassignPrivateIpAddressesSync: UnassignPrivateIpAddressesSyncType? = nil, + unassignPrivateNatGatewayAddressAsync: UnassignPrivateNatGatewayAddressAsyncType? = nil, + unassignPrivateNatGatewayAddressSync: UnassignPrivateNatGatewayAddressSyncType? = nil, unmonitorInstancesAsync: UnmonitorInstancesAsyncType? = nil, unmonitorInstancesSync: UnmonitorInstancesSyncType? = nil, updateSecurityGroupRuleDescriptionsEgressAsync: UpdateSecurityGroupRuleDescriptionsEgressAsyncType? = nil, @@ -2367,6 +2439,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.assignIpv6AddressesSyncOverride = assignIpv6AddressesSync self.assignPrivateIpAddressesAsyncOverride = assignPrivateIpAddressesAsync self.assignPrivateIpAddressesSyncOverride = assignPrivateIpAddressesSync + self.assignPrivateNatGatewayAddressAsyncOverride = assignPrivateNatGatewayAddressAsync + self.assignPrivateNatGatewayAddressSyncOverride = assignPrivateNatGatewayAddressSync self.associateAddressAsyncOverride = associateAddressAsync self.associateAddressSyncOverride = associateAddressSync self.associateClientVpnTargetNetworkAsyncOverride = associateClientVpnTargetNetworkAsync @@ -2379,6 +2453,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.associateIamInstanceProfileSyncOverride = associateIamInstanceProfileSync self.associateInstanceEventWindowAsyncOverride = associateInstanceEventWindowAsync self.associateInstanceEventWindowSyncOverride = associateInstanceEventWindowSync + self.associateIpamResourceDiscoveryAsyncOverride = associateIpamResourceDiscoveryAsync + self.associateIpamResourceDiscoverySyncOverride = associateIpamResourceDiscoverySync + self.associateNatGatewayAddressAsyncOverride = associateNatGatewayAddressAsync + self.associateNatGatewayAddressSyncOverride = associateNatGatewayAddressSync self.associateRouteTableAsyncOverride = associateRouteTableAsync self.associateRouteTableSyncOverride = associateRouteTableSync self.associateSubnetCidrBlockAsyncOverride = associateSubnetCidrBlockAsync @@ -2473,6 +2551,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.createFpgaImageSyncOverride = createFpgaImageSync self.createImageAsyncOverride = createImageAsync self.createImageSyncOverride = createImageSync + self.createInstanceConnectEndpointAsyncOverride = createInstanceConnectEndpointAsync + self.createInstanceConnectEndpointSyncOverride = createInstanceConnectEndpointSync self.createInstanceEventWindowAsyncOverride = createInstanceEventWindowAsync self.createInstanceEventWindowSyncOverride = createInstanceEventWindowSync self.createInstanceExportTaskAsyncOverride = createInstanceExportTaskAsync @@ -2483,6 +2563,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.createIpamSyncOverride = createIpamSync self.createIpamPoolAsyncOverride = createIpamPoolAsync self.createIpamPoolSyncOverride = createIpamPoolSync + self.createIpamResourceDiscoveryAsyncOverride = createIpamResourceDiscoveryAsync + self.createIpamResourceDiscoverySyncOverride = createIpamResourceDiscoverySync self.createIpamScopeAsyncOverride = createIpamScopeAsync self.createIpamScopeSyncOverride = createIpamScopeSync self.createKeyPairAsyncOverride = createKeyPairAsync @@ -2623,6 +2705,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.deleteFlowLogsSyncOverride = deleteFlowLogsSync self.deleteFpgaImageAsyncOverride = deleteFpgaImageAsync self.deleteFpgaImageSyncOverride = deleteFpgaImageSync + self.deleteInstanceConnectEndpointAsyncOverride = deleteInstanceConnectEndpointAsync + self.deleteInstanceConnectEndpointSyncOverride = deleteInstanceConnectEndpointSync self.deleteInstanceEventWindowAsyncOverride = deleteInstanceEventWindowAsync self.deleteInstanceEventWindowSyncOverride = deleteInstanceEventWindowSync self.deleteInternetGatewayAsyncOverride = deleteInternetGatewayAsync @@ -2631,6 +2715,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.deleteIpamSyncOverride = deleteIpamSync self.deleteIpamPoolAsyncOverride = deleteIpamPoolAsync self.deleteIpamPoolSyncOverride = deleteIpamPoolSync + self.deleteIpamResourceDiscoveryAsyncOverride = deleteIpamResourceDiscoveryAsync + self.deleteIpamResourceDiscoverySyncOverride = deleteIpamResourceDiscoverySync self.deleteIpamScopeAsyncOverride = deleteIpamScopeAsync self.deleteIpamScopeSyncOverride = deleteIpamScopeSync self.deleteKeyPairAsyncOverride = deleteKeyPairAsync @@ -2849,6 +2935,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.describeImportSnapshotTasksSyncOverride = describeImportSnapshotTasksSync self.describeInstanceAttributeAsyncOverride = describeInstanceAttributeAsync self.describeInstanceAttributeSyncOverride = describeInstanceAttributeSync + self.describeInstanceConnectEndpointsAsyncOverride = describeInstanceConnectEndpointsAsync + self.describeInstanceConnectEndpointsSyncOverride = describeInstanceConnectEndpointsSync self.describeInstanceCreditSpecificationsAsyncOverride = describeInstanceCreditSpecificationsAsync self.describeInstanceCreditSpecificationsSyncOverride = describeInstanceCreditSpecificationsSync self.describeInstanceEventNotificationAttributesAsyncOverride = describeInstanceEventNotificationAttributesAsync @@ -2867,6 +2955,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.describeInternetGatewaysSyncOverride = describeInternetGatewaysSync self.describeIpamPoolsAsyncOverride = describeIpamPoolsAsync self.describeIpamPoolsSyncOverride = describeIpamPoolsSync + self.describeIpamResourceDiscoveriesAsyncOverride = describeIpamResourceDiscoveriesAsync + self.describeIpamResourceDiscoveriesSyncOverride = describeIpamResourceDiscoveriesSync + self.describeIpamResourceDiscoveryAssociationsAsyncOverride = describeIpamResourceDiscoveryAssociationsAsync + self.describeIpamResourceDiscoveryAssociationsSyncOverride = describeIpamResourceDiscoveryAssociationsSync self.describeIpamScopesAsyncOverride = describeIpamScopesAsync self.describeIpamScopesSyncOverride = describeIpamScopesSync self.describeIpamsAsyncOverride = describeIpamsAsync @@ -3089,6 +3181,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.disassociateIamInstanceProfileSyncOverride = disassociateIamInstanceProfileSync self.disassociateInstanceEventWindowAsyncOverride = disassociateInstanceEventWindowAsync self.disassociateInstanceEventWindowSyncOverride = disassociateInstanceEventWindowSync + self.disassociateIpamResourceDiscoveryAsyncOverride = disassociateIpamResourceDiscoveryAsync + self.disassociateIpamResourceDiscoverySyncOverride = disassociateIpamResourceDiscoverySync + self.disassociateNatGatewayAddressAsyncOverride = disassociateNatGatewayAddressAsync + self.disassociateNatGatewayAddressSyncOverride = disassociateNatGatewayAddressSync self.disassociateRouteTableAsyncOverride = disassociateRouteTableAsync self.disassociateRouteTableSyncOverride = disassociateRouteTableSync self.disassociateSubnetCidrBlockAsyncOverride = disassociateSubnetCidrBlockAsync @@ -3171,6 +3267,10 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.getInstanceUefiDataSyncOverride = getInstanceUefiDataSync self.getIpamAddressHistoryAsyncOverride = getIpamAddressHistoryAsync self.getIpamAddressHistorySyncOverride = getIpamAddressHistorySync + self.getIpamDiscoveredAccountsAsyncOverride = getIpamDiscoveredAccountsAsync + self.getIpamDiscoveredAccountsSyncOverride = getIpamDiscoveredAccountsSync + self.getIpamDiscoveredResourceCidrsAsyncOverride = getIpamDiscoveredResourceCidrsAsync + self.getIpamDiscoveredResourceCidrsSyncOverride = getIpamDiscoveredResourceCidrsSync self.getIpamPoolAllocationsAsyncOverride = getIpamPoolAllocationsAsync self.getIpamPoolAllocationsSyncOverride = getIpamPoolAllocationsSync self.getIpamPoolCidrsAsyncOverride = getIpamPoolCidrsAsync @@ -3219,6 +3319,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.getVpnConnectionDeviceSampleConfigurationSyncOverride = getVpnConnectionDeviceSampleConfigurationSync self.getVpnConnectionDeviceTypesAsyncOverride = getVpnConnectionDeviceTypesAsync self.getVpnConnectionDeviceTypesSyncOverride = getVpnConnectionDeviceTypesSync + self.getVpnTunnelReplacementStatusAsyncOverride = getVpnTunnelReplacementStatusAsync + self.getVpnTunnelReplacementStatusSyncOverride = getVpnTunnelReplacementStatusSync self.importClientVpnClientCertificateRevocationListAsyncOverride = importClientVpnClientCertificateRevocationListAsync self.importClientVpnClientCertificateRevocationListSyncOverride = importClientVpnClientCertificateRevocationListSync self.importImageAsyncOverride = importImageAsync @@ -3283,6 +3385,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.modifyIpamPoolSyncOverride = modifyIpamPoolSync self.modifyIpamResourceCidrAsyncOverride = modifyIpamResourceCidrAsync self.modifyIpamResourceCidrSyncOverride = modifyIpamResourceCidrSync + self.modifyIpamResourceDiscoveryAsyncOverride = modifyIpamResourceDiscoveryAsync + self.modifyIpamResourceDiscoverySyncOverride = modifyIpamResourceDiscoverySync self.modifyIpamScopeAsyncOverride = modifyIpamScopeAsync self.modifyIpamScopeSyncOverride = modifyIpamScopeSync self.modifyLaunchTemplateAsyncOverride = modifyLaunchTemplateAsync @@ -3417,6 +3521,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.replaceRouteTableAssociationSyncOverride = replaceRouteTableAssociationSync self.replaceTransitGatewayRouteAsyncOverride = replaceTransitGatewayRouteAsync self.replaceTransitGatewayRouteSyncOverride = replaceTransitGatewayRouteSync + self.replaceVpnTunnelAsyncOverride = replaceVpnTunnelAsync + self.replaceVpnTunnelSyncOverride = replaceVpnTunnelSync self.reportInstanceStatusAsyncOverride = reportInstanceStatusAsync self.reportInstanceStatusSyncOverride = reportInstanceStatusSync self.requestSpotFleetAsyncOverride = requestSpotFleetAsync @@ -3483,6 +3589,8 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { self.unassignIpv6AddressesSyncOverride = unassignIpv6AddressesSync self.unassignPrivateIpAddressesAsyncOverride = unassignPrivateIpAddressesAsync self.unassignPrivateIpAddressesSyncOverride = unassignPrivateIpAddressesSync + self.unassignPrivateNatGatewayAddressAsyncOverride = unassignPrivateNatGatewayAddressAsync + self.unassignPrivateNatGatewayAddressSyncOverride = unassignPrivateNatGatewayAddressSync self.unmonitorInstancesAsyncOverride = unmonitorInstancesAsync self.unmonitorInstancesSyncOverride = unmonitorInstancesSync self.updateSecurityGroupRuleDescriptionsEgressAsyncOverride = updateSecurityGroupRuleDescriptionsEgressAsync @@ -4025,6 +4133,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return AssignPrivateIpAddressesResult.__default } + /** + Invokes the AssignPrivateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssignPrivateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssignPrivateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let assignPrivateNatGatewayAddressAsyncOverride = assignPrivateNatGatewayAddressAsyncOverride { + return try assignPrivateNatGatewayAddressAsyncOverride(input, completion) + } + + let result = AssignPrivateNatGatewayAddressResult.__default + + completion(.success(result)) + } + + /** + Invokes the AssignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + if let assignPrivateNatGatewayAddressSyncOverride = assignPrivateNatGatewayAddressSyncOverride { + return try assignPrivateNatGatewayAddressSyncOverride(input) + } + + return AssignPrivateNatGatewayAddressResult.__default + } + /** Invokes the AssociateAddress operation returning immediately and passing the response to a callback. @@ -4247,6 +4393,82 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return AssociateInstanceEventWindowResult.__default } + /** + Invokes the AssociateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The AssociateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The AssociateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func associateIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let associateIpamResourceDiscoveryAsyncOverride = associateIpamResourceDiscoveryAsyncOverride { + return try associateIpamResourceDiscoveryAsyncOverride(input, completion) + } + + let result = AssociateIpamResourceDiscoveryResult.__default + + completion(.success(result)) + } + + /** + Invokes the AssociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + if let associateIpamResourceDiscoverySyncOverride = associateIpamResourceDiscoverySyncOverride { + return try associateIpamResourceDiscoverySyncOverride(input) + } + + return AssociateIpamResourceDiscoveryResult.__default + } + + /** + Invokes the AssociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func associateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let associateNatGatewayAddressAsyncOverride = associateNatGatewayAddressAsyncOverride { + return try associateNatGatewayAddressAsyncOverride(input, completion) + } + + let result = AssociateNatGatewayAddressResult.__default + + completion(.success(result)) + } + + /** + Invokes the AssociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + if let associateNatGatewayAddressSyncOverride = associateNatGatewayAddressSyncOverride { + return try associateNatGatewayAddressSyncOverride(input) + } + + return AssociateNatGatewayAddressResult.__default + } + /** Invokes the AssociateRouteTable operation returning immediately and passing the response to a callback. @@ -6015,6 +6237,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return CreateImageResult.__default } + /** + Invokes the CreateInstanceConnectEndpoint operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - completion: The CreateInstanceConnectEndpointResult object or an error will be passed to this + callback when the operation is complete. The CreateInstanceConnectEndpointResult + object will be validated before being returned to caller. + */ + public func createInstanceConnectEndpointAsync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest, + completion: @escaping (Result) -> ()) throws { + if let createInstanceConnectEndpointAsyncOverride = createInstanceConnectEndpointAsyncOverride { + return try createInstanceConnectEndpointAsyncOverride(input, completion) + } + + let result = CreateInstanceConnectEndpointResult.__default + + completion(.success(result)) + } + + /** + Invokes the CreateInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + if let createInstanceConnectEndpointSyncOverride = createInstanceConnectEndpointSyncOverride { + return try createInstanceConnectEndpointSyncOverride(input) + } + + return CreateInstanceConnectEndpointResult.__default + } + /** Invokes the CreateInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -6205,6 +6465,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return CreateIpamPoolResult.__default } + /** + Invokes the CreateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The CreateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The CreateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func createIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let createIpamResourceDiscoveryAsyncOverride = createIpamResourceDiscoveryAsyncOverride { + return try createIpamResourceDiscoveryAsyncOverride(input, completion) + } + + let result = CreateIpamResourceDiscoveryResult.__default + + completion(.success(result)) + } + + /** + Invokes the CreateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + if let createIpamResourceDiscoverySyncOverride = createIpamResourceDiscoverySyncOverride { + return try createIpamResourceDiscoverySyncOverride(input) + } + + return CreateIpamResourceDiscoveryResult.__default + } + /** Invokes the CreateIpamScope operation returning immediately and passing the response to a callback. @@ -8835,6 +9133,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return DeleteFpgaImageResult.__default } + /** + Invokes the DeleteInstanceConnectEndpoint operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - completion: The DeleteInstanceConnectEndpointResult object or an error will be passed to this + callback when the operation is complete. The DeleteInstanceConnectEndpointResult + object will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpointAsync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest, + completion: @escaping (Result) -> ()) throws { + if let deleteInstanceConnectEndpointAsyncOverride = deleteInstanceConnectEndpointAsyncOverride { + return try deleteInstanceConnectEndpointAsyncOverride(input, completion) + } + + let result = DeleteInstanceConnectEndpointResult.__default + + completion(.success(result)) + } + + /** + Invokes the DeleteInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + if let deleteInstanceConnectEndpointSyncOverride = deleteInstanceConnectEndpointSyncOverride { + return try deleteInstanceConnectEndpointSyncOverride(input) + } + + return DeleteInstanceConnectEndpointResult.__default + } + /** Invokes the DeleteInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -8981,6 +9317,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return DeleteIpamPoolResult.__default } + /** + Invokes the DeleteIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The DeleteIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The DeleteIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let deleteIpamResourceDiscoveryAsyncOverride = deleteIpamResourceDiscoveryAsyncOverride { + return try deleteIpamResourceDiscoveryAsyncOverride(input, completion) + } + + let result = DeleteIpamResourceDiscoveryResult.__default + + completion(.success(result)) + } + + /** + Invokes the DeleteIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + if let deleteIpamResourceDiscoverySyncOverride = deleteIpamResourceDiscoverySyncOverride { + return try deleteIpamResourceDiscoverySyncOverride(input) + } + + return DeleteIpamResourceDiscoveryResult.__default + } + /** Invokes the DeleteIpamScope operation returning immediately and passing the response to a callback. @@ -13015,6 +13389,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return InstanceAttribute.__default } + /** + Invokes the DescribeInstanceConnectEndpoints operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - completion: The DescribeInstanceConnectEndpointsResult object or an error will be passed to this + callback when the operation is complete. The DescribeInstanceConnectEndpointsResult + object will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpointsAsync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest, + completion: @escaping (Result) -> ()) throws { + if let describeInstanceConnectEndpointsAsyncOverride = describeInstanceConnectEndpointsAsyncOverride { + return try describeInstanceConnectEndpointsAsyncOverride(input, completion) + } + + let result = DescribeInstanceConnectEndpointsResult.__default + + completion(.success(result)) + } + + /** + Invokes the DescribeInstanceConnectEndpoints operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpointsSync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + if let describeInstanceConnectEndpointsSyncOverride = describeInstanceConnectEndpointsSyncOverride { + return try describeInstanceConnectEndpointsSyncOverride(input) + } + + return DescribeInstanceConnectEndpointsResult.__default + } + /** Invokes the DescribeInstanceCreditSpecifications operation returning immediately and passing the response to a callback. @@ -13357,6 +13769,82 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return DescribeIpamPoolsResult.__default } + /** + Invokes the DescribeIpamResourceDiscoveries operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveriesResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveriesResult + object will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveriesAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest, + completion: @escaping (Result) -> ()) throws { + if let describeIpamResourceDiscoveriesAsyncOverride = describeIpamResourceDiscoveriesAsyncOverride { + return try describeIpamResourceDiscoveriesAsyncOverride(input, completion) + } + + let result = DescribeIpamResourceDiscoveriesResult.__default + + completion(.success(result)) + } + + /** + Invokes the DescribeIpamResourceDiscoveries operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveriesSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + if let describeIpamResourceDiscoveriesSyncOverride = describeIpamResourceDiscoveriesSyncOverride { + return try describeIpamResourceDiscoveriesSyncOverride(input) + } + + return DescribeIpamResourceDiscoveriesResult.__default + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveryAssociationsResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveryAssociationsResult + object will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociationsAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest, + completion: @escaping (Result) -> ()) throws { + if let describeIpamResourceDiscoveryAssociationsAsyncOverride = describeIpamResourceDiscoveryAssociationsAsyncOverride { + return try describeIpamResourceDiscoveryAssociationsAsyncOverride(input, completion) + } + + let result = DescribeIpamResourceDiscoveryAssociationsResult.__default + + completion(.success(result)) + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociationsSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + if let describeIpamResourceDiscoveryAssociationsSyncOverride = describeIpamResourceDiscoveryAssociationsSyncOverride { + return try describeIpamResourceDiscoveryAssociationsSyncOverride(input) + } + + return DescribeIpamResourceDiscoveryAssociationsResult.__default + } + /** Invokes the DescribeIpamScopes operation returning immediately and passing the response to a callback. @@ -17545,6 +18033,82 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return DisassociateInstanceEventWindowResult.__default } + /** + Invokes the DisassociateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The DisassociateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The DisassociateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let disassociateIpamResourceDiscoveryAsyncOverride = disassociateIpamResourceDiscoveryAsyncOverride { + return try disassociateIpamResourceDiscoveryAsyncOverride(input, completion) + } + + let result = DisassociateIpamResourceDiscoveryResult.__default + + completion(.success(result)) + } + + /** + Invokes the DisassociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + if let disassociateIpamResourceDiscoverySyncOverride = disassociateIpamResourceDiscoverySyncOverride { + return try disassociateIpamResourceDiscoverySyncOverride(input) + } + + return DisassociateIpamResourceDiscoveryResult.__default + } + + /** + Invokes the DisassociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - completion: The DisassociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The DisassociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let disassociateNatGatewayAddressAsyncOverride = disassociateNatGatewayAddressAsyncOverride { + return try disassociateNatGatewayAddressAsyncOverride(input, completion) + } + + let result = DisassociateNatGatewayAddressResult.__default + + completion(.success(result)) + } + + /** + Invokes the DisassociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddressSync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + if let disassociateNatGatewayAddressSyncOverride = disassociateNatGatewayAddressSyncOverride { + return try disassociateNatGatewayAddressSyncOverride(input) + } + + return DisassociateNatGatewayAddressResult.__default + } + /** Invokes the DisassociateRouteTable operation returning immediately and passing the response to a callback. @@ -19085,6 +19649,82 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return GetIpamAddressHistoryResult.__default } + /** + Invokes the GetIpamDiscoveredAccounts operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredAccountsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredAccountsResult + object will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccountsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest, + completion: @escaping (Result) -> ()) throws { + if let getIpamDiscoveredAccountsAsyncOverride = getIpamDiscoveredAccountsAsyncOverride { + return try getIpamDiscoveredAccountsAsyncOverride(input, completion) + } + + let result = GetIpamDiscoveredAccountsResult.__default + + completion(.success(result)) + } + + /** + Invokes the GetIpamDiscoveredAccounts operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccountsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + if let getIpamDiscoveredAccountsSyncOverride = getIpamDiscoveredAccountsSyncOverride { + return try getIpamDiscoveredAccountsSyncOverride(input) + } + + return GetIpamDiscoveredAccountsResult.__default + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredResourceCidrsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredResourceCidrsResult + object will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest, + completion: @escaping (Result) -> ()) throws { + if let getIpamDiscoveredResourceCidrsAsyncOverride = getIpamDiscoveredResourceCidrsAsyncOverride { + return try getIpamDiscoveredResourceCidrsAsyncOverride(input, completion) + } + + let result = GetIpamDiscoveredResourceCidrsResult.__default + + completion(.success(result)) + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + if let getIpamDiscoveredResourceCidrsSyncOverride = getIpamDiscoveredResourceCidrsSyncOverride { + return try getIpamDiscoveredResourceCidrsSyncOverride(input) + } + + return GetIpamDiscoveredResourceCidrsResult.__default + } + /** Invokes the GetIpamPoolAllocations operation returning immediately and passing the response to a callback. @@ -19997,6 +20637,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return GetVpnConnectionDeviceTypesResult.__default } + /** + Invokes the GetVpnTunnelReplacementStatus operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - completion: The GetVpnTunnelReplacementStatusResult object or an error will be passed to this + callback when the operation is complete. The GetVpnTunnelReplacementStatusResult + object will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatusAsync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest, + completion: @escaping (Result) -> ()) throws { + if let getVpnTunnelReplacementStatusAsyncOverride = getVpnTunnelReplacementStatusAsyncOverride { + return try getVpnTunnelReplacementStatusAsyncOverride(input, completion) + } + + let result = GetVpnTunnelReplacementStatusResult.__default + + completion(.success(result)) + } + + /** + Invokes the GetVpnTunnelReplacementStatus operation waiting for the response before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatusSync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + if let getVpnTunnelReplacementStatusSyncOverride = getVpnTunnelReplacementStatusSyncOverride { + return try getVpnTunnelReplacementStatusSyncOverride(input) + } + + return GetVpnTunnelReplacementStatusResult.__default + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation returning immediately and passing the response to a callback. @@ -21189,6 +21867,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return ModifyIpamResourceCidrResult.__default } + /** + Invokes the ModifyIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The ModifyIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The ModifyIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let modifyIpamResourceDiscoveryAsyncOverride = modifyIpamResourceDiscoveryAsyncOverride { + return try modifyIpamResourceDiscoveryAsyncOverride(input, completion) + } + + let result = ModifyIpamResourceDiscoveryResult.__default + + completion(.success(result)) + } + + /** + Invokes the ModifyIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + if let modifyIpamResourceDiscoverySyncOverride = modifyIpamResourceDiscoverySyncOverride { + return try modifyIpamResourceDiscoverySyncOverride(input) + } + + return ModifyIpamResourceDiscoveryResult.__default + } + /** Invokes the ModifyIpamScope operation returning immediately and passing the response to a callback. @@ -23681,6 +24397,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { return ReplaceTransitGatewayRouteResult.__default } + /** + Invokes the ReplaceVpnTunnel operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - completion: The ReplaceVpnTunnelResult object or an error will be passed to this + callback when the operation is complete. The ReplaceVpnTunnelResult + object will be validated before being returned to caller. + */ + public func replaceVpnTunnelAsync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest, + completion: @escaping (Result) -> ()) throws { + if let replaceVpnTunnelAsyncOverride = replaceVpnTunnelAsyncOverride { + return try replaceVpnTunnelAsyncOverride(input, completion) + } + + let result = ReplaceVpnTunnelResult.__default + + completion(.success(result)) + } + + /** + Invokes the ReplaceVpnTunnel operation waiting for the response before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func replaceVpnTunnelSync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult { + if let replaceVpnTunnelSyncOverride = replaceVpnTunnelSyncOverride { + return try replaceVpnTunnelSyncOverride(input) + } + + return ReplaceVpnTunnelResult.__default + } + /** Invokes the ReportInstanceStatus operation returning immediately and passing the response to a callback. @@ -24893,6 +25647,44 @@ public struct MockElasticComputeCloudClient: ElasticComputeCloudClientProtocol { } + /** + Invokes the UnassignPrivateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - completion: The UnassignPrivateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The UnassignPrivateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let unassignPrivateNatGatewayAddressAsyncOverride = unassignPrivateNatGatewayAddressAsyncOverride { + return try unassignPrivateNatGatewayAddressAsyncOverride(input, completion) + } + + let result = UnassignPrivateNatGatewayAddressResult.__default + + completion(.success(result)) + } + + /** + Invokes the UnassignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + if let unassignPrivateNatGatewayAddressSyncOverride = unassignPrivateNatGatewayAddressSyncOverride { + return try unassignPrivateNatGatewayAddressSyncOverride(input) + } + + return UnassignPrivateNatGatewayAddressResult.__default + } + /** Invokes the UnmonitorInstances operation returning immediately and passing the response to a callback. diff --git a/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClientV2.swift b/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClientV2.swift index 0f256ab..9552e18 100644 --- a/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClientV2.swift +++ b/Sources/ElasticComputeCloudClient/MockElasticComputeCloudClientV2.swift @@ -44,12 +44,15 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let applySecurityGroupsToClientVpnTargetNetworkOverride: ApplySecurityGroupsToClientVpnTargetNetworkFunctionType? let assignIpv6AddressesOverride: AssignIpv6AddressesFunctionType? let assignPrivateIpAddressesOverride: AssignPrivateIpAddressesFunctionType? + let assignPrivateNatGatewayAddressOverride: AssignPrivateNatGatewayAddressFunctionType? let associateAddressOverride: AssociateAddressFunctionType? let associateClientVpnTargetNetworkOverride: AssociateClientVpnTargetNetworkFunctionType? let associateDhcpOptionsOverride: AssociateDhcpOptionsFunctionType? let associateEnclaveCertificateIamRoleOverride: AssociateEnclaveCertificateIamRoleFunctionType? let associateIamInstanceProfileOverride: AssociateIamInstanceProfileFunctionType? let associateInstanceEventWindowOverride: AssociateInstanceEventWindowFunctionType? + let associateIpamResourceDiscoveryOverride: AssociateIpamResourceDiscoveryFunctionType? + let associateNatGatewayAddressOverride: AssociateNatGatewayAddressFunctionType? let associateRouteTableOverride: AssociateRouteTableFunctionType? let associateSubnetCidrBlockOverride: AssociateSubnetCidrBlockFunctionType? let associateTransitGatewayMulticastDomainOverride: AssociateTransitGatewayMulticastDomainFunctionType? @@ -97,11 +100,13 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let createFlowLogsOverride: CreateFlowLogsFunctionType? let createFpgaImageOverride: CreateFpgaImageFunctionType? let createImageOverride: CreateImageFunctionType? + let createInstanceConnectEndpointOverride: CreateInstanceConnectEndpointFunctionType? let createInstanceEventWindowOverride: CreateInstanceEventWindowFunctionType? let createInstanceExportTaskOverride: CreateInstanceExportTaskFunctionType? let createInternetGatewayOverride: CreateInternetGatewayFunctionType? let createIpamOverride: CreateIpamFunctionType? let createIpamPoolOverride: CreateIpamPoolFunctionType? + let createIpamResourceDiscoveryOverride: CreateIpamResourceDiscoveryFunctionType? let createIpamScopeOverride: CreateIpamScopeFunctionType? let createKeyPairOverride: CreateKeyPairFunctionType? let createLaunchTemplateOverride: CreateLaunchTemplateFunctionType? @@ -172,10 +177,12 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let deleteFleetsOverride: DeleteFleetsFunctionType? let deleteFlowLogsOverride: DeleteFlowLogsFunctionType? let deleteFpgaImageOverride: DeleteFpgaImageFunctionType? + let deleteInstanceConnectEndpointOverride: DeleteInstanceConnectEndpointFunctionType? let deleteInstanceEventWindowOverride: DeleteInstanceEventWindowFunctionType? let deleteInternetGatewayOverride: DeleteInternetGatewayFunctionType? let deleteIpamOverride: DeleteIpamFunctionType? let deleteIpamPoolOverride: DeleteIpamPoolFunctionType? + let deleteIpamResourceDiscoveryOverride: DeleteIpamResourceDiscoveryFunctionType? let deleteIpamScopeOverride: DeleteIpamScopeFunctionType? let deleteKeyPairOverride: DeleteKeyPairFunctionType? let deleteLaunchTemplateOverride: DeleteLaunchTemplateFunctionType? @@ -285,6 +292,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let describeImportImageTasksOverride: DescribeImportImageTasksFunctionType? let describeImportSnapshotTasksOverride: DescribeImportSnapshotTasksFunctionType? let describeInstanceAttributeOverride: DescribeInstanceAttributeFunctionType? + let describeInstanceConnectEndpointsOverride: DescribeInstanceConnectEndpointsFunctionType? let describeInstanceCreditSpecificationsOverride: DescribeInstanceCreditSpecificationsFunctionType? let describeInstanceEventNotificationAttributesOverride: DescribeInstanceEventNotificationAttributesFunctionType? let describeInstanceEventWindowsOverride: DescribeInstanceEventWindowsFunctionType? @@ -294,6 +302,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let describeInstancesOverride: DescribeInstancesFunctionType? let describeInternetGatewaysOverride: DescribeInternetGatewaysFunctionType? let describeIpamPoolsOverride: DescribeIpamPoolsFunctionType? + let describeIpamResourceDiscoveriesOverride: DescribeIpamResourceDiscoveriesFunctionType? + let describeIpamResourceDiscoveryAssociationsOverride: DescribeIpamResourceDiscoveryAssociationsFunctionType? let describeIpamScopesOverride: DescribeIpamScopesFunctionType? let describeIpamsOverride: DescribeIpamsFunctionType? let describeIpv6PoolsOverride: DescribeIpv6PoolsFunctionType? @@ -405,6 +415,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let disassociateEnclaveCertificateIamRoleOverride: DisassociateEnclaveCertificateIamRoleFunctionType? let disassociateIamInstanceProfileOverride: DisassociateIamInstanceProfileFunctionType? let disassociateInstanceEventWindowOverride: DisassociateInstanceEventWindowFunctionType? + let disassociateIpamResourceDiscoveryOverride: DisassociateIpamResourceDiscoveryFunctionType? + let disassociateNatGatewayAddressOverride: DisassociateNatGatewayAddressFunctionType? let disassociateRouteTableOverride: DisassociateRouteTableFunctionType? let disassociateSubnetCidrBlockOverride: DisassociateSubnetCidrBlockFunctionType? let disassociateTransitGatewayMulticastDomainOverride: DisassociateTransitGatewayMulticastDomainFunctionType? @@ -446,6 +458,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let getInstanceTypesFromInstanceRequirementsOverride: GetInstanceTypesFromInstanceRequirementsFunctionType? let getInstanceUefiDataOverride: GetInstanceUefiDataFunctionType? let getIpamAddressHistoryOverride: GetIpamAddressHistoryFunctionType? + let getIpamDiscoveredAccountsOverride: GetIpamDiscoveredAccountsFunctionType? + let getIpamDiscoveredResourceCidrsOverride: GetIpamDiscoveredResourceCidrsFunctionType? let getIpamPoolAllocationsOverride: GetIpamPoolAllocationsFunctionType? let getIpamPoolCidrsOverride: GetIpamPoolCidrsFunctionType? let getIpamResourceCidrsOverride: GetIpamResourceCidrsFunctionType? @@ -470,6 +484,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let getVerifiedAccessGroupPolicyOverride: GetVerifiedAccessGroupPolicyFunctionType? let getVpnConnectionDeviceSampleConfigurationOverride: GetVpnConnectionDeviceSampleConfigurationFunctionType? let getVpnConnectionDeviceTypesOverride: GetVpnConnectionDeviceTypesFunctionType? + let getVpnTunnelReplacementStatusOverride: GetVpnTunnelReplacementStatusFunctionType? let importClientVpnClientCertificateRevocationListOverride: ImportClientVpnClientCertificateRevocationListFunctionType? let importImageOverride: ImportImageFunctionType? let importInstanceOverride: ImportInstanceFunctionType? @@ -502,6 +517,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let modifyIpamOverride: ModifyIpamFunctionType? let modifyIpamPoolOverride: ModifyIpamPoolFunctionType? let modifyIpamResourceCidrOverride: ModifyIpamResourceCidrFunctionType? + let modifyIpamResourceDiscoveryOverride: ModifyIpamResourceDiscoveryFunctionType? let modifyIpamScopeOverride: ModifyIpamScopeFunctionType? let modifyLaunchTemplateOverride: ModifyLaunchTemplateFunctionType? let modifyLocalGatewayRouteOverride: ModifyLocalGatewayRouteFunctionType? @@ -569,6 +585,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let replaceRouteOverride: ReplaceRouteFunctionType? let replaceRouteTableAssociationOverride: ReplaceRouteTableAssociationFunctionType? let replaceTransitGatewayRouteOverride: ReplaceTransitGatewayRouteFunctionType? + let replaceVpnTunnelOverride: ReplaceVpnTunnelFunctionType? let reportInstanceStatusOverride: ReportInstanceStatusFunctionType? let requestSpotFleetOverride: RequestSpotFleetFunctionType? let requestSpotInstancesOverride: RequestSpotInstancesFunctionType? @@ -602,6 +619,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol let terminateInstancesOverride: TerminateInstancesFunctionType? let unassignIpv6AddressesOverride: UnassignIpv6AddressesFunctionType? let unassignPrivateIpAddressesOverride: UnassignPrivateIpAddressesFunctionType? + let unassignPrivateNatGatewayAddressOverride: UnassignPrivateNatGatewayAddressFunctionType? let unmonitorInstancesOverride: UnmonitorInstancesFunctionType? let updateSecurityGroupRuleDescriptionsEgressOverride: UpdateSecurityGroupRuleDescriptionsEgressFunctionType? let updateSecurityGroupRuleDescriptionsIngressOverride: UpdateSecurityGroupRuleDescriptionsIngressFunctionType? @@ -626,12 +644,15 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol applySecurityGroupsToClientVpnTargetNetwork: ApplySecurityGroupsToClientVpnTargetNetworkFunctionType? = nil, assignIpv6Addresses: AssignIpv6AddressesFunctionType? = nil, assignPrivateIpAddresses: AssignPrivateIpAddressesFunctionType? = nil, + assignPrivateNatGatewayAddress: AssignPrivateNatGatewayAddressFunctionType? = nil, associateAddress: AssociateAddressFunctionType? = nil, associateClientVpnTargetNetwork: AssociateClientVpnTargetNetworkFunctionType? = nil, associateDhcpOptions: AssociateDhcpOptionsFunctionType? = nil, associateEnclaveCertificateIamRole: AssociateEnclaveCertificateIamRoleFunctionType? = nil, associateIamInstanceProfile: AssociateIamInstanceProfileFunctionType? = nil, associateInstanceEventWindow: AssociateInstanceEventWindowFunctionType? = nil, + associateIpamResourceDiscovery: AssociateIpamResourceDiscoveryFunctionType? = nil, + associateNatGatewayAddress: AssociateNatGatewayAddressFunctionType? = nil, associateRouteTable: AssociateRouteTableFunctionType? = nil, associateSubnetCidrBlock: AssociateSubnetCidrBlockFunctionType? = nil, associateTransitGatewayMulticastDomain: AssociateTransitGatewayMulticastDomainFunctionType? = nil, @@ -679,11 +700,13 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol createFlowLogs: CreateFlowLogsFunctionType? = nil, createFpgaImage: CreateFpgaImageFunctionType? = nil, createImage: CreateImageFunctionType? = nil, + createInstanceConnectEndpoint: CreateInstanceConnectEndpointFunctionType? = nil, createInstanceEventWindow: CreateInstanceEventWindowFunctionType? = nil, createInstanceExportTask: CreateInstanceExportTaskFunctionType? = nil, createInternetGateway: CreateInternetGatewayFunctionType? = nil, createIpam: CreateIpamFunctionType? = nil, createIpamPool: CreateIpamPoolFunctionType? = nil, + createIpamResourceDiscovery: CreateIpamResourceDiscoveryFunctionType? = nil, createIpamScope: CreateIpamScopeFunctionType? = nil, createKeyPair: CreateKeyPairFunctionType? = nil, createLaunchTemplate: CreateLaunchTemplateFunctionType? = nil, @@ -754,10 +777,12 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol deleteFleets: DeleteFleetsFunctionType? = nil, deleteFlowLogs: DeleteFlowLogsFunctionType? = nil, deleteFpgaImage: DeleteFpgaImageFunctionType? = nil, + deleteInstanceConnectEndpoint: DeleteInstanceConnectEndpointFunctionType? = nil, deleteInstanceEventWindow: DeleteInstanceEventWindowFunctionType? = nil, deleteInternetGateway: DeleteInternetGatewayFunctionType? = nil, deleteIpam: DeleteIpamFunctionType? = nil, deleteIpamPool: DeleteIpamPoolFunctionType? = nil, + deleteIpamResourceDiscovery: DeleteIpamResourceDiscoveryFunctionType? = nil, deleteIpamScope: DeleteIpamScopeFunctionType? = nil, deleteKeyPair: DeleteKeyPairFunctionType? = nil, deleteLaunchTemplate: DeleteLaunchTemplateFunctionType? = nil, @@ -867,6 +892,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol describeImportImageTasks: DescribeImportImageTasksFunctionType? = nil, describeImportSnapshotTasks: DescribeImportSnapshotTasksFunctionType? = nil, describeInstanceAttribute: DescribeInstanceAttributeFunctionType? = nil, + describeInstanceConnectEndpoints: DescribeInstanceConnectEndpointsFunctionType? = nil, describeInstanceCreditSpecifications: DescribeInstanceCreditSpecificationsFunctionType? = nil, describeInstanceEventNotificationAttributes: DescribeInstanceEventNotificationAttributesFunctionType? = nil, describeInstanceEventWindows: DescribeInstanceEventWindowsFunctionType? = nil, @@ -876,6 +902,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol describeInstances: DescribeInstancesFunctionType? = nil, describeInternetGateways: DescribeInternetGatewaysFunctionType? = nil, describeIpamPools: DescribeIpamPoolsFunctionType? = nil, + describeIpamResourceDiscoveries: DescribeIpamResourceDiscoveriesFunctionType? = nil, + describeIpamResourceDiscoveryAssociations: DescribeIpamResourceDiscoveryAssociationsFunctionType? = nil, describeIpamScopes: DescribeIpamScopesFunctionType? = nil, describeIpams: DescribeIpamsFunctionType? = nil, describeIpv6Pools: DescribeIpv6PoolsFunctionType? = nil, @@ -987,6 +1015,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol disassociateEnclaveCertificateIamRole: DisassociateEnclaveCertificateIamRoleFunctionType? = nil, disassociateIamInstanceProfile: DisassociateIamInstanceProfileFunctionType? = nil, disassociateInstanceEventWindow: DisassociateInstanceEventWindowFunctionType? = nil, + disassociateIpamResourceDiscovery: DisassociateIpamResourceDiscoveryFunctionType? = nil, + disassociateNatGatewayAddress: DisassociateNatGatewayAddressFunctionType? = nil, disassociateRouteTable: DisassociateRouteTableFunctionType? = nil, disassociateSubnetCidrBlock: DisassociateSubnetCidrBlockFunctionType? = nil, disassociateTransitGatewayMulticastDomain: DisassociateTransitGatewayMulticastDomainFunctionType? = nil, @@ -1028,6 +1058,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol getInstanceTypesFromInstanceRequirements: GetInstanceTypesFromInstanceRequirementsFunctionType? = nil, getInstanceUefiData: GetInstanceUefiDataFunctionType? = nil, getIpamAddressHistory: GetIpamAddressHistoryFunctionType? = nil, + getIpamDiscoveredAccounts: GetIpamDiscoveredAccountsFunctionType? = nil, + getIpamDiscoveredResourceCidrs: GetIpamDiscoveredResourceCidrsFunctionType? = nil, getIpamPoolAllocations: GetIpamPoolAllocationsFunctionType? = nil, getIpamPoolCidrs: GetIpamPoolCidrsFunctionType? = nil, getIpamResourceCidrs: GetIpamResourceCidrsFunctionType? = nil, @@ -1052,6 +1084,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol getVerifiedAccessGroupPolicy: GetVerifiedAccessGroupPolicyFunctionType? = nil, getVpnConnectionDeviceSampleConfiguration: GetVpnConnectionDeviceSampleConfigurationFunctionType? = nil, getVpnConnectionDeviceTypes: GetVpnConnectionDeviceTypesFunctionType? = nil, + getVpnTunnelReplacementStatus: GetVpnTunnelReplacementStatusFunctionType? = nil, importClientVpnClientCertificateRevocationList: ImportClientVpnClientCertificateRevocationListFunctionType? = nil, importImage: ImportImageFunctionType? = nil, importInstance: ImportInstanceFunctionType? = nil, @@ -1084,6 +1117,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol modifyIpam: ModifyIpamFunctionType? = nil, modifyIpamPool: ModifyIpamPoolFunctionType? = nil, modifyIpamResourceCidr: ModifyIpamResourceCidrFunctionType? = nil, + modifyIpamResourceDiscovery: ModifyIpamResourceDiscoveryFunctionType? = nil, modifyIpamScope: ModifyIpamScopeFunctionType? = nil, modifyLaunchTemplate: ModifyLaunchTemplateFunctionType? = nil, modifyLocalGatewayRoute: ModifyLocalGatewayRouteFunctionType? = nil, @@ -1151,6 +1185,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol replaceRoute: ReplaceRouteFunctionType? = nil, replaceRouteTableAssociation: ReplaceRouteTableAssociationFunctionType? = nil, replaceTransitGatewayRoute: ReplaceTransitGatewayRouteFunctionType? = nil, + replaceVpnTunnel: ReplaceVpnTunnelFunctionType? = nil, reportInstanceStatus: ReportInstanceStatusFunctionType? = nil, requestSpotFleet: RequestSpotFleetFunctionType? = nil, requestSpotInstances: RequestSpotInstancesFunctionType? = nil, @@ -1184,6 +1219,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol terminateInstances: TerminateInstancesFunctionType? = nil, unassignIpv6Addresses: UnassignIpv6AddressesFunctionType? = nil, unassignPrivateIpAddresses: UnassignPrivateIpAddressesFunctionType? = nil, + unassignPrivateNatGatewayAddress: UnassignPrivateNatGatewayAddressFunctionType? = nil, unmonitorInstances: UnmonitorInstancesFunctionType? = nil, updateSecurityGroupRuleDescriptionsEgress: UpdateSecurityGroupRuleDescriptionsEgressFunctionType? = nil, updateSecurityGroupRuleDescriptionsIngress: UpdateSecurityGroupRuleDescriptionsIngressFunctionType? = nil, @@ -1202,12 +1238,15 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.applySecurityGroupsToClientVpnTargetNetworkOverride = applySecurityGroupsToClientVpnTargetNetwork self.assignIpv6AddressesOverride = assignIpv6Addresses self.assignPrivateIpAddressesOverride = assignPrivateIpAddresses + self.assignPrivateNatGatewayAddressOverride = assignPrivateNatGatewayAddress self.associateAddressOverride = associateAddress self.associateClientVpnTargetNetworkOverride = associateClientVpnTargetNetwork self.associateDhcpOptionsOverride = associateDhcpOptions self.associateEnclaveCertificateIamRoleOverride = associateEnclaveCertificateIamRole self.associateIamInstanceProfileOverride = associateIamInstanceProfile self.associateInstanceEventWindowOverride = associateInstanceEventWindow + self.associateIpamResourceDiscoveryOverride = associateIpamResourceDiscovery + self.associateNatGatewayAddressOverride = associateNatGatewayAddress self.associateRouteTableOverride = associateRouteTable self.associateSubnetCidrBlockOverride = associateSubnetCidrBlock self.associateTransitGatewayMulticastDomainOverride = associateTransitGatewayMulticastDomain @@ -1255,11 +1294,13 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.createFlowLogsOverride = createFlowLogs self.createFpgaImageOverride = createFpgaImage self.createImageOverride = createImage + self.createInstanceConnectEndpointOverride = createInstanceConnectEndpoint self.createInstanceEventWindowOverride = createInstanceEventWindow self.createInstanceExportTaskOverride = createInstanceExportTask self.createInternetGatewayOverride = createInternetGateway self.createIpamOverride = createIpam self.createIpamPoolOverride = createIpamPool + self.createIpamResourceDiscoveryOverride = createIpamResourceDiscovery self.createIpamScopeOverride = createIpamScope self.createKeyPairOverride = createKeyPair self.createLaunchTemplateOverride = createLaunchTemplate @@ -1330,10 +1371,12 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.deleteFleetsOverride = deleteFleets self.deleteFlowLogsOverride = deleteFlowLogs self.deleteFpgaImageOverride = deleteFpgaImage + self.deleteInstanceConnectEndpointOverride = deleteInstanceConnectEndpoint self.deleteInstanceEventWindowOverride = deleteInstanceEventWindow self.deleteInternetGatewayOverride = deleteInternetGateway self.deleteIpamOverride = deleteIpam self.deleteIpamPoolOverride = deleteIpamPool + self.deleteIpamResourceDiscoveryOverride = deleteIpamResourceDiscovery self.deleteIpamScopeOverride = deleteIpamScope self.deleteKeyPairOverride = deleteKeyPair self.deleteLaunchTemplateOverride = deleteLaunchTemplate @@ -1443,6 +1486,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.describeImportImageTasksOverride = describeImportImageTasks self.describeImportSnapshotTasksOverride = describeImportSnapshotTasks self.describeInstanceAttributeOverride = describeInstanceAttribute + self.describeInstanceConnectEndpointsOverride = describeInstanceConnectEndpoints self.describeInstanceCreditSpecificationsOverride = describeInstanceCreditSpecifications self.describeInstanceEventNotificationAttributesOverride = describeInstanceEventNotificationAttributes self.describeInstanceEventWindowsOverride = describeInstanceEventWindows @@ -1452,6 +1496,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.describeInstancesOverride = describeInstances self.describeInternetGatewaysOverride = describeInternetGateways self.describeIpamPoolsOverride = describeIpamPools + self.describeIpamResourceDiscoveriesOverride = describeIpamResourceDiscoveries + self.describeIpamResourceDiscoveryAssociationsOverride = describeIpamResourceDiscoveryAssociations self.describeIpamScopesOverride = describeIpamScopes self.describeIpamsOverride = describeIpams self.describeIpv6PoolsOverride = describeIpv6Pools @@ -1563,6 +1609,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.disassociateEnclaveCertificateIamRoleOverride = disassociateEnclaveCertificateIamRole self.disassociateIamInstanceProfileOverride = disassociateIamInstanceProfile self.disassociateInstanceEventWindowOverride = disassociateInstanceEventWindow + self.disassociateIpamResourceDiscoveryOverride = disassociateIpamResourceDiscovery + self.disassociateNatGatewayAddressOverride = disassociateNatGatewayAddress self.disassociateRouteTableOverride = disassociateRouteTable self.disassociateSubnetCidrBlockOverride = disassociateSubnetCidrBlock self.disassociateTransitGatewayMulticastDomainOverride = disassociateTransitGatewayMulticastDomain @@ -1604,6 +1652,8 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.getInstanceTypesFromInstanceRequirementsOverride = getInstanceTypesFromInstanceRequirements self.getInstanceUefiDataOverride = getInstanceUefiData self.getIpamAddressHistoryOverride = getIpamAddressHistory + self.getIpamDiscoveredAccountsOverride = getIpamDiscoveredAccounts + self.getIpamDiscoveredResourceCidrsOverride = getIpamDiscoveredResourceCidrs self.getIpamPoolAllocationsOverride = getIpamPoolAllocations self.getIpamPoolCidrsOverride = getIpamPoolCidrs self.getIpamResourceCidrsOverride = getIpamResourceCidrs @@ -1628,6 +1678,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.getVerifiedAccessGroupPolicyOverride = getVerifiedAccessGroupPolicy self.getVpnConnectionDeviceSampleConfigurationOverride = getVpnConnectionDeviceSampleConfiguration self.getVpnConnectionDeviceTypesOverride = getVpnConnectionDeviceTypes + self.getVpnTunnelReplacementStatusOverride = getVpnTunnelReplacementStatus self.importClientVpnClientCertificateRevocationListOverride = importClientVpnClientCertificateRevocationList self.importImageOverride = importImage self.importInstanceOverride = importInstance @@ -1660,6 +1711,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.modifyIpamOverride = modifyIpam self.modifyIpamPoolOverride = modifyIpamPool self.modifyIpamResourceCidrOverride = modifyIpamResourceCidr + self.modifyIpamResourceDiscoveryOverride = modifyIpamResourceDiscovery self.modifyIpamScopeOverride = modifyIpamScope self.modifyLaunchTemplateOverride = modifyLaunchTemplate self.modifyLocalGatewayRouteOverride = modifyLocalGatewayRoute @@ -1727,6 +1779,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.replaceRouteOverride = replaceRoute self.replaceRouteTableAssociationOverride = replaceRouteTableAssociation self.replaceTransitGatewayRouteOverride = replaceTransitGatewayRoute + self.replaceVpnTunnelOverride = replaceVpnTunnel self.reportInstanceStatusOverride = reportInstanceStatus self.requestSpotFleetOverride = requestSpotFleet self.requestSpotInstancesOverride = requestSpotInstances @@ -1760,6 +1813,7 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol self.terminateInstancesOverride = terminateInstances self.unassignIpv6AddressesOverride = unassignIpv6Addresses self.unassignPrivateIpAddressesOverride = unassignPrivateIpAddresses + self.unassignPrivateNatGatewayAddressOverride = unassignPrivateNatGatewayAddress self.unmonitorInstancesOverride = unmonitorInstances self.updateSecurityGroupRuleDescriptionsEgressOverride = updateSecurityGroupRuleDescriptionsEgress self.updateSecurityGroupRuleDescriptionsIngressOverride = updateSecurityGroupRuleDescriptionsIngress @@ -2004,6 +2058,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return AssignPrivateIpAddressesResult.__default } + /** + Invokes the AssignPrivateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddress( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + if let assignPrivateNatGatewayAddressOverride = assignPrivateNatGatewayAddressOverride { + return try await assignPrivateNatGatewayAddressOverride(input) + } + + return AssignPrivateNatGatewayAddressResult.__default + } + /** Invokes the AssociateAddress operation suspending until the response is available before returning. @@ -2103,6 +2174,40 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return AssociateInstanceEventWindowResult.__default } + /** + Invokes the AssociateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateIpamResourceDiscovery( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + if let associateIpamResourceDiscoveryOverride = associateIpamResourceDiscoveryOverride { + return try await associateIpamResourceDiscoveryOverride(input) + } + + return AssociateIpamResourceDiscoveryResult.__default + } + + /** + Invokes the AssociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateNatGatewayAddress( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + if let associateNatGatewayAddressOverride = associateNatGatewayAddressOverride { + return try await associateNatGatewayAddressOverride(input) + } + + return AssociateNatGatewayAddressResult.__default + } + /** Invokes the AssociateRouteTable operation suspending until the response is available before returning. @@ -2893,6 +2998,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return CreateImageResult.__default } + /** + Invokes the CreateInstanceConnectEndpoint operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createInstanceConnectEndpoint( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + if let createInstanceConnectEndpointOverride = createInstanceConnectEndpointOverride { + return try await createInstanceConnectEndpointOverride(input) + } + + return CreateInstanceConnectEndpointResult.__default + } + /** Invokes the CreateInstanceEventWindow operation suspending until the response is available before returning. @@ -2978,6 +3100,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return CreateIpamPoolResult.__default } + /** + Invokes the CreateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createIpamResourceDiscovery( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + if let createIpamResourceDiscoveryOverride = createIpamResourceDiscoveryOverride { + return try await createIpamResourceDiscoveryOverride(input) + } + + return CreateIpamResourceDiscoveryResult.__default + } + /** Invokes the CreateIpamScope operation suspending until the response is available before returning. @@ -4153,6 +4292,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return DeleteFpgaImageResult.__default } + /** + Invokes the DeleteInstanceConnectEndpoint operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpoint( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + if let deleteInstanceConnectEndpointOverride = deleteInstanceConnectEndpointOverride { + return try await deleteInstanceConnectEndpointOverride(input) + } + + return DeleteInstanceConnectEndpointResult.__default + } + /** Invokes the DeleteInstanceEventWindow operation suspending until the response is available before returning. @@ -4218,6 +4374,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return DeleteIpamPoolResult.__default } + /** + Invokes the DeleteIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscovery( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + if let deleteIpamResourceDiscoveryOverride = deleteIpamResourceDiscoveryOverride { + return try await deleteIpamResourceDiscoveryOverride(input) + } + + return DeleteIpamResourceDiscoveryResult.__default + } + /** Invokes the DeleteIpamScope operation suspending until the response is available before returning. @@ -6017,6 +6190,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return InstanceAttribute.__default } + /** + Invokes the DescribeInstanceConnectEndpoints operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpoints( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) async throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + if let describeInstanceConnectEndpointsOverride = describeInstanceConnectEndpointsOverride { + return try await describeInstanceConnectEndpointsOverride(input) + } + + return DescribeInstanceConnectEndpointsResult.__default + } + /** Invokes the DescribeInstanceCreditSpecifications operation suspending until the response is available before returning. @@ -6170,6 +6360,40 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return DescribeIpamPoolsResult.__default } + /** + Invokes the DescribeIpamResourceDiscoveries operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveries( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + if let describeIpamResourceDiscoveriesOverride = describeIpamResourceDiscoveriesOverride { + return try await describeIpamResourceDiscoveriesOverride(input) + } + + return DescribeIpamResourceDiscoveriesResult.__default + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociations( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + if let describeIpamResourceDiscoveryAssociationsOverride = describeIpamResourceDiscoveryAssociationsOverride { + return try await describeIpamResourceDiscoveryAssociationsOverride(input) + } + + return DescribeIpamResourceDiscoveryAssociationsResult.__default + } + /** Invokes the DescribeIpamScopes operation suspending until the response is available before returning. @@ -8042,6 +8266,40 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return DisassociateInstanceEventWindowResult.__default } + /** + Invokes the DisassociateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscovery( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + if let disassociateIpamResourceDiscoveryOverride = disassociateIpamResourceDiscoveryOverride { + return try await disassociateIpamResourceDiscoveryOverride(input) + } + + return DisassociateIpamResourceDiscoveryResult.__default + } + + /** + Invokes the DisassociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddress( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + if let disassociateNatGatewayAddressOverride = disassociateNatGatewayAddressOverride { + return try await disassociateNatGatewayAddressOverride(input) + } + + return DisassociateNatGatewayAddressResult.__default + } + /** Invokes the DisassociateRouteTable operation suspending until the response is available before returning. @@ -8730,6 +8988,40 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return GetIpamAddressHistoryResult.__default } + /** + Invokes the GetIpamDiscoveredAccounts operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccounts( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + if let getIpamDiscoveredAccountsOverride = getIpamDiscoveredAccountsOverride { + return try await getIpamDiscoveredAccountsOverride(input) + } + + return GetIpamDiscoveredAccountsResult.__default + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrs( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + if let getIpamDiscoveredResourceCidrsOverride = getIpamDiscoveredResourceCidrsOverride { + return try await getIpamDiscoveredResourceCidrsOverride(input) + } + + return GetIpamDiscoveredResourceCidrsResult.__default + } + /** Invokes the GetIpamPoolAllocations operation suspending until the response is available before returning. @@ -9138,6 +9430,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return GetVpnConnectionDeviceTypesResult.__default } + /** + Invokes the GetVpnTunnelReplacementStatus operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatus( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) async throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + if let getVpnTunnelReplacementStatusOverride = getVpnTunnelReplacementStatusOverride { + return try await getVpnTunnelReplacementStatusOverride(input) + } + + return GetVpnTunnelReplacementStatusResult.__default + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation suspending until the response is available before returning. @@ -9670,6 +9979,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return ModifyIpamResourceCidrResult.__default } + /** + Invokes the ModifyIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscovery( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + if let modifyIpamResourceDiscoveryOverride = modifyIpamResourceDiscoveryOverride { + return try await modifyIpamResourceDiscoveryOverride(input) + } + + return ModifyIpamResourceDiscoveryResult.__default + } + /** Invokes the ModifyIpamScope operation suspending until the response is available before returning. @@ -10782,6 +11108,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol return ReplaceTransitGatewayRouteResult.__default } + /** + Invokes the ReplaceVpnTunnel operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func replaceVpnTunnel( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) async throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult { + if let replaceVpnTunnelOverride = replaceVpnTunnelOverride { + return try await replaceVpnTunnelOverride(input) + } + + return ReplaceVpnTunnelResult.__default + } + /** Invokes the ReportInstanceStatus operation suspending until the response is available before returning. @@ -11322,6 +11665,23 @@ public struct MockElasticComputeCloudClientV2: ElasticComputeCloudClientProtocol } + /** + Invokes the UnassignPrivateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddress( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + if let unassignPrivateNatGatewayAddressOverride = unassignPrivateNatGatewayAddressOverride { + return try await unassignPrivateNatGatewayAddressOverride(input) + } + + return UnassignPrivateNatGatewayAddressResult.__default + } + /** Invokes the UnmonitorInstances operation suspending until the response is available before returning. diff --git a/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClient.swift b/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClient.swift index 60c8a6b..3cc7aa3 100644 --- a/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClient.swift +++ b/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClient.swift @@ -58,6 +58,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let assignIpv6AddressesSyncOverride: AssignIpv6AddressesSyncType? let assignPrivateIpAddressesAsyncOverride: AssignPrivateIpAddressesAsyncType? let assignPrivateIpAddressesSyncOverride: AssignPrivateIpAddressesSyncType? + let assignPrivateNatGatewayAddressAsyncOverride: AssignPrivateNatGatewayAddressAsyncType? + let assignPrivateNatGatewayAddressSyncOverride: AssignPrivateNatGatewayAddressSyncType? let associateAddressAsyncOverride: AssociateAddressAsyncType? let associateAddressSyncOverride: AssociateAddressSyncType? let associateClientVpnTargetNetworkAsyncOverride: AssociateClientVpnTargetNetworkAsyncType? @@ -70,6 +72,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let associateIamInstanceProfileSyncOverride: AssociateIamInstanceProfileSyncType? let associateInstanceEventWindowAsyncOverride: AssociateInstanceEventWindowAsyncType? let associateInstanceEventWindowSyncOverride: AssociateInstanceEventWindowSyncType? + let associateIpamResourceDiscoveryAsyncOverride: AssociateIpamResourceDiscoveryAsyncType? + let associateIpamResourceDiscoverySyncOverride: AssociateIpamResourceDiscoverySyncType? + let associateNatGatewayAddressAsyncOverride: AssociateNatGatewayAddressAsyncType? + let associateNatGatewayAddressSyncOverride: AssociateNatGatewayAddressSyncType? let associateRouteTableAsyncOverride: AssociateRouteTableAsyncType? let associateRouteTableSyncOverride: AssociateRouteTableSyncType? let associateSubnetCidrBlockAsyncOverride: AssociateSubnetCidrBlockAsyncType? @@ -164,6 +170,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let createFpgaImageSyncOverride: CreateFpgaImageSyncType? let createImageAsyncOverride: CreateImageAsyncType? let createImageSyncOverride: CreateImageSyncType? + let createInstanceConnectEndpointAsyncOverride: CreateInstanceConnectEndpointAsyncType? + let createInstanceConnectEndpointSyncOverride: CreateInstanceConnectEndpointSyncType? let createInstanceEventWindowAsyncOverride: CreateInstanceEventWindowAsyncType? let createInstanceEventWindowSyncOverride: CreateInstanceEventWindowSyncType? let createInstanceExportTaskAsyncOverride: CreateInstanceExportTaskAsyncType? @@ -174,6 +182,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let createIpamSyncOverride: CreateIpamSyncType? let createIpamPoolAsyncOverride: CreateIpamPoolAsyncType? let createIpamPoolSyncOverride: CreateIpamPoolSyncType? + let createIpamResourceDiscoveryAsyncOverride: CreateIpamResourceDiscoveryAsyncType? + let createIpamResourceDiscoverySyncOverride: CreateIpamResourceDiscoverySyncType? let createIpamScopeAsyncOverride: CreateIpamScopeAsyncType? let createIpamScopeSyncOverride: CreateIpamScopeSyncType? let createKeyPairAsyncOverride: CreateKeyPairAsyncType? @@ -314,6 +324,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let deleteFlowLogsSyncOverride: DeleteFlowLogsSyncType? let deleteFpgaImageAsyncOverride: DeleteFpgaImageAsyncType? let deleteFpgaImageSyncOverride: DeleteFpgaImageSyncType? + let deleteInstanceConnectEndpointAsyncOverride: DeleteInstanceConnectEndpointAsyncType? + let deleteInstanceConnectEndpointSyncOverride: DeleteInstanceConnectEndpointSyncType? let deleteInstanceEventWindowAsyncOverride: DeleteInstanceEventWindowAsyncType? let deleteInstanceEventWindowSyncOverride: DeleteInstanceEventWindowSyncType? let deleteInternetGatewayAsyncOverride: DeleteInternetGatewayAsyncType? @@ -322,6 +334,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let deleteIpamSyncOverride: DeleteIpamSyncType? let deleteIpamPoolAsyncOverride: DeleteIpamPoolAsyncType? let deleteIpamPoolSyncOverride: DeleteIpamPoolSyncType? + let deleteIpamResourceDiscoveryAsyncOverride: DeleteIpamResourceDiscoveryAsyncType? + let deleteIpamResourceDiscoverySyncOverride: DeleteIpamResourceDiscoverySyncType? let deleteIpamScopeAsyncOverride: DeleteIpamScopeAsyncType? let deleteIpamScopeSyncOverride: DeleteIpamScopeSyncType? let deleteKeyPairAsyncOverride: DeleteKeyPairAsyncType? @@ -540,6 +554,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let describeImportSnapshotTasksSyncOverride: DescribeImportSnapshotTasksSyncType? let describeInstanceAttributeAsyncOverride: DescribeInstanceAttributeAsyncType? let describeInstanceAttributeSyncOverride: DescribeInstanceAttributeSyncType? + let describeInstanceConnectEndpointsAsyncOverride: DescribeInstanceConnectEndpointsAsyncType? + let describeInstanceConnectEndpointsSyncOverride: DescribeInstanceConnectEndpointsSyncType? let describeInstanceCreditSpecificationsAsyncOverride: DescribeInstanceCreditSpecificationsAsyncType? let describeInstanceCreditSpecificationsSyncOverride: DescribeInstanceCreditSpecificationsSyncType? let describeInstanceEventNotificationAttributesAsyncOverride: DescribeInstanceEventNotificationAttributesAsyncType? @@ -558,6 +574,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let describeInternetGatewaysSyncOverride: DescribeInternetGatewaysSyncType? let describeIpamPoolsAsyncOverride: DescribeIpamPoolsAsyncType? let describeIpamPoolsSyncOverride: DescribeIpamPoolsSyncType? + let describeIpamResourceDiscoveriesAsyncOverride: DescribeIpamResourceDiscoveriesAsyncType? + let describeIpamResourceDiscoveriesSyncOverride: DescribeIpamResourceDiscoveriesSyncType? + let describeIpamResourceDiscoveryAssociationsAsyncOverride: DescribeIpamResourceDiscoveryAssociationsAsyncType? + let describeIpamResourceDiscoveryAssociationsSyncOverride: DescribeIpamResourceDiscoveryAssociationsSyncType? let describeIpamScopesAsyncOverride: DescribeIpamScopesAsyncType? let describeIpamScopesSyncOverride: DescribeIpamScopesSyncType? let describeIpamsAsyncOverride: DescribeIpamsAsyncType? @@ -780,6 +800,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let disassociateIamInstanceProfileSyncOverride: DisassociateIamInstanceProfileSyncType? let disassociateInstanceEventWindowAsyncOverride: DisassociateInstanceEventWindowAsyncType? let disassociateInstanceEventWindowSyncOverride: DisassociateInstanceEventWindowSyncType? + let disassociateIpamResourceDiscoveryAsyncOverride: DisassociateIpamResourceDiscoveryAsyncType? + let disassociateIpamResourceDiscoverySyncOverride: DisassociateIpamResourceDiscoverySyncType? + let disassociateNatGatewayAddressAsyncOverride: DisassociateNatGatewayAddressAsyncType? + let disassociateNatGatewayAddressSyncOverride: DisassociateNatGatewayAddressSyncType? let disassociateRouteTableAsyncOverride: DisassociateRouteTableAsyncType? let disassociateRouteTableSyncOverride: DisassociateRouteTableSyncType? let disassociateSubnetCidrBlockAsyncOverride: DisassociateSubnetCidrBlockAsyncType? @@ -862,6 +886,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let getInstanceUefiDataSyncOverride: GetInstanceUefiDataSyncType? let getIpamAddressHistoryAsyncOverride: GetIpamAddressHistoryAsyncType? let getIpamAddressHistorySyncOverride: GetIpamAddressHistorySyncType? + let getIpamDiscoveredAccountsAsyncOverride: GetIpamDiscoveredAccountsAsyncType? + let getIpamDiscoveredAccountsSyncOverride: GetIpamDiscoveredAccountsSyncType? + let getIpamDiscoveredResourceCidrsAsyncOverride: GetIpamDiscoveredResourceCidrsAsyncType? + let getIpamDiscoveredResourceCidrsSyncOverride: GetIpamDiscoveredResourceCidrsSyncType? let getIpamPoolAllocationsAsyncOverride: GetIpamPoolAllocationsAsyncType? let getIpamPoolAllocationsSyncOverride: GetIpamPoolAllocationsSyncType? let getIpamPoolCidrsAsyncOverride: GetIpamPoolCidrsAsyncType? @@ -910,6 +938,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let getVpnConnectionDeviceSampleConfigurationSyncOverride: GetVpnConnectionDeviceSampleConfigurationSyncType? let getVpnConnectionDeviceTypesAsyncOverride: GetVpnConnectionDeviceTypesAsyncType? let getVpnConnectionDeviceTypesSyncOverride: GetVpnConnectionDeviceTypesSyncType? + let getVpnTunnelReplacementStatusAsyncOverride: GetVpnTunnelReplacementStatusAsyncType? + let getVpnTunnelReplacementStatusSyncOverride: GetVpnTunnelReplacementStatusSyncType? let importClientVpnClientCertificateRevocationListAsyncOverride: ImportClientVpnClientCertificateRevocationListAsyncType? let importClientVpnClientCertificateRevocationListSyncOverride: ImportClientVpnClientCertificateRevocationListSyncType? let importImageAsyncOverride: ImportImageAsyncType? @@ -974,6 +1004,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let modifyIpamPoolSyncOverride: ModifyIpamPoolSyncType? let modifyIpamResourceCidrAsyncOverride: ModifyIpamResourceCidrAsyncType? let modifyIpamResourceCidrSyncOverride: ModifyIpamResourceCidrSyncType? + let modifyIpamResourceDiscoveryAsyncOverride: ModifyIpamResourceDiscoveryAsyncType? + let modifyIpamResourceDiscoverySyncOverride: ModifyIpamResourceDiscoverySyncType? let modifyIpamScopeAsyncOverride: ModifyIpamScopeAsyncType? let modifyIpamScopeSyncOverride: ModifyIpamScopeSyncType? let modifyLaunchTemplateAsyncOverride: ModifyLaunchTemplateAsyncType? @@ -1108,6 +1140,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let replaceRouteTableAssociationSyncOverride: ReplaceRouteTableAssociationSyncType? let replaceTransitGatewayRouteAsyncOverride: ReplaceTransitGatewayRouteAsyncType? let replaceTransitGatewayRouteSyncOverride: ReplaceTransitGatewayRouteSyncType? + let replaceVpnTunnelAsyncOverride: ReplaceVpnTunnelAsyncType? + let replaceVpnTunnelSyncOverride: ReplaceVpnTunnelSyncType? let reportInstanceStatusAsyncOverride: ReportInstanceStatusAsyncType? let reportInstanceStatusSyncOverride: ReportInstanceStatusSyncType? let requestSpotFleetAsyncOverride: RequestSpotFleetAsyncType? @@ -1174,6 +1208,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc let unassignIpv6AddressesSyncOverride: UnassignIpv6AddressesSyncType? let unassignPrivateIpAddressesAsyncOverride: UnassignPrivateIpAddressesAsyncType? let unassignPrivateIpAddressesSyncOverride: UnassignPrivateIpAddressesSyncType? + let unassignPrivateNatGatewayAddressAsyncOverride: UnassignPrivateNatGatewayAddressAsyncType? + let unassignPrivateNatGatewayAddressSyncOverride: UnassignPrivateNatGatewayAddressSyncType? let unmonitorInstancesAsyncOverride: UnmonitorInstancesAsyncType? let unmonitorInstancesSyncOverride: UnmonitorInstancesSyncType? let updateSecurityGroupRuleDescriptionsEgressAsyncOverride: UpdateSecurityGroupRuleDescriptionsEgressAsyncType? @@ -1216,6 +1252,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc assignIpv6AddressesSync: AssignIpv6AddressesSyncType? = nil, assignPrivateIpAddressesAsync: AssignPrivateIpAddressesAsyncType? = nil, assignPrivateIpAddressesSync: AssignPrivateIpAddressesSyncType? = nil, + assignPrivateNatGatewayAddressAsync: AssignPrivateNatGatewayAddressAsyncType? = nil, + assignPrivateNatGatewayAddressSync: AssignPrivateNatGatewayAddressSyncType? = nil, associateAddressAsync: AssociateAddressAsyncType? = nil, associateAddressSync: AssociateAddressSyncType? = nil, associateClientVpnTargetNetworkAsync: AssociateClientVpnTargetNetworkAsyncType? = nil, @@ -1228,6 +1266,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc associateIamInstanceProfileSync: AssociateIamInstanceProfileSyncType? = nil, associateInstanceEventWindowAsync: AssociateInstanceEventWindowAsyncType? = nil, associateInstanceEventWindowSync: AssociateInstanceEventWindowSyncType? = nil, + associateIpamResourceDiscoveryAsync: AssociateIpamResourceDiscoveryAsyncType? = nil, + associateIpamResourceDiscoverySync: AssociateIpamResourceDiscoverySyncType? = nil, + associateNatGatewayAddressAsync: AssociateNatGatewayAddressAsyncType? = nil, + associateNatGatewayAddressSync: AssociateNatGatewayAddressSyncType? = nil, associateRouteTableAsync: AssociateRouteTableAsyncType? = nil, associateRouteTableSync: AssociateRouteTableSyncType? = nil, associateSubnetCidrBlockAsync: AssociateSubnetCidrBlockAsyncType? = nil, @@ -1322,6 +1364,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc createFpgaImageSync: CreateFpgaImageSyncType? = nil, createImageAsync: CreateImageAsyncType? = nil, createImageSync: CreateImageSyncType? = nil, + createInstanceConnectEndpointAsync: CreateInstanceConnectEndpointAsyncType? = nil, + createInstanceConnectEndpointSync: CreateInstanceConnectEndpointSyncType? = nil, createInstanceEventWindowAsync: CreateInstanceEventWindowAsyncType? = nil, createInstanceEventWindowSync: CreateInstanceEventWindowSyncType? = nil, createInstanceExportTaskAsync: CreateInstanceExportTaskAsyncType? = nil, @@ -1332,6 +1376,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc createIpamSync: CreateIpamSyncType? = nil, createIpamPoolAsync: CreateIpamPoolAsyncType? = nil, createIpamPoolSync: CreateIpamPoolSyncType? = nil, + createIpamResourceDiscoveryAsync: CreateIpamResourceDiscoveryAsyncType? = nil, + createIpamResourceDiscoverySync: CreateIpamResourceDiscoverySyncType? = nil, createIpamScopeAsync: CreateIpamScopeAsyncType? = nil, createIpamScopeSync: CreateIpamScopeSyncType? = nil, createKeyPairAsync: CreateKeyPairAsyncType? = nil, @@ -1472,6 +1518,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc deleteFlowLogsSync: DeleteFlowLogsSyncType? = nil, deleteFpgaImageAsync: DeleteFpgaImageAsyncType? = nil, deleteFpgaImageSync: DeleteFpgaImageSyncType? = nil, + deleteInstanceConnectEndpointAsync: DeleteInstanceConnectEndpointAsyncType? = nil, + deleteInstanceConnectEndpointSync: DeleteInstanceConnectEndpointSyncType? = nil, deleteInstanceEventWindowAsync: DeleteInstanceEventWindowAsyncType? = nil, deleteInstanceEventWindowSync: DeleteInstanceEventWindowSyncType? = nil, deleteInternetGatewayAsync: DeleteInternetGatewayAsyncType? = nil, @@ -1480,6 +1528,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc deleteIpamSync: DeleteIpamSyncType? = nil, deleteIpamPoolAsync: DeleteIpamPoolAsyncType? = nil, deleteIpamPoolSync: DeleteIpamPoolSyncType? = nil, + deleteIpamResourceDiscoveryAsync: DeleteIpamResourceDiscoveryAsyncType? = nil, + deleteIpamResourceDiscoverySync: DeleteIpamResourceDiscoverySyncType? = nil, deleteIpamScopeAsync: DeleteIpamScopeAsyncType? = nil, deleteIpamScopeSync: DeleteIpamScopeSyncType? = nil, deleteKeyPairAsync: DeleteKeyPairAsyncType? = nil, @@ -1698,6 +1748,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc describeImportSnapshotTasksSync: DescribeImportSnapshotTasksSyncType? = nil, describeInstanceAttributeAsync: DescribeInstanceAttributeAsyncType? = nil, describeInstanceAttributeSync: DescribeInstanceAttributeSyncType? = nil, + describeInstanceConnectEndpointsAsync: DescribeInstanceConnectEndpointsAsyncType? = nil, + describeInstanceConnectEndpointsSync: DescribeInstanceConnectEndpointsSyncType? = nil, describeInstanceCreditSpecificationsAsync: DescribeInstanceCreditSpecificationsAsyncType? = nil, describeInstanceCreditSpecificationsSync: DescribeInstanceCreditSpecificationsSyncType? = nil, describeInstanceEventNotificationAttributesAsync: DescribeInstanceEventNotificationAttributesAsyncType? = nil, @@ -1716,6 +1768,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc describeInternetGatewaysSync: DescribeInternetGatewaysSyncType? = nil, describeIpamPoolsAsync: DescribeIpamPoolsAsyncType? = nil, describeIpamPoolsSync: DescribeIpamPoolsSyncType? = nil, + describeIpamResourceDiscoveriesAsync: DescribeIpamResourceDiscoveriesAsyncType? = nil, + describeIpamResourceDiscoveriesSync: DescribeIpamResourceDiscoveriesSyncType? = nil, + describeIpamResourceDiscoveryAssociationsAsync: DescribeIpamResourceDiscoveryAssociationsAsyncType? = nil, + describeIpamResourceDiscoveryAssociationsSync: DescribeIpamResourceDiscoveryAssociationsSyncType? = nil, describeIpamScopesAsync: DescribeIpamScopesAsyncType? = nil, describeIpamScopesSync: DescribeIpamScopesSyncType? = nil, describeIpamsAsync: DescribeIpamsAsyncType? = nil, @@ -1938,6 +1994,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc disassociateIamInstanceProfileSync: DisassociateIamInstanceProfileSyncType? = nil, disassociateInstanceEventWindowAsync: DisassociateInstanceEventWindowAsyncType? = nil, disassociateInstanceEventWindowSync: DisassociateInstanceEventWindowSyncType? = nil, + disassociateIpamResourceDiscoveryAsync: DisassociateIpamResourceDiscoveryAsyncType? = nil, + disassociateIpamResourceDiscoverySync: DisassociateIpamResourceDiscoverySyncType? = nil, + disassociateNatGatewayAddressAsync: DisassociateNatGatewayAddressAsyncType? = nil, + disassociateNatGatewayAddressSync: DisassociateNatGatewayAddressSyncType? = nil, disassociateRouteTableAsync: DisassociateRouteTableAsyncType? = nil, disassociateRouteTableSync: DisassociateRouteTableSyncType? = nil, disassociateSubnetCidrBlockAsync: DisassociateSubnetCidrBlockAsyncType? = nil, @@ -2020,6 +2080,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc getInstanceUefiDataSync: GetInstanceUefiDataSyncType? = nil, getIpamAddressHistoryAsync: GetIpamAddressHistoryAsyncType? = nil, getIpamAddressHistorySync: GetIpamAddressHistorySyncType? = nil, + getIpamDiscoveredAccountsAsync: GetIpamDiscoveredAccountsAsyncType? = nil, + getIpamDiscoveredAccountsSync: GetIpamDiscoveredAccountsSyncType? = nil, + getIpamDiscoveredResourceCidrsAsync: GetIpamDiscoveredResourceCidrsAsyncType? = nil, + getIpamDiscoveredResourceCidrsSync: GetIpamDiscoveredResourceCidrsSyncType? = nil, getIpamPoolAllocationsAsync: GetIpamPoolAllocationsAsyncType? = nil, getIpamPoolAllocationsSync: GetIpamPoolAllocationsSyncType? = nil, getIpamPoolCidrsAsync: GetIpamPoolCidrsAsyncType? = nil, @@ -2068,6 +2132,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc getVpnConnectionDeviceSampleConfigurationSync: GetVpnConnectionDeviceSampleConfigurationSyncType? = nil, getVpnConnectionDeviceTypesAsync: GetVpnConnectionDeviceTypesAsyncType? = nil, getVpnConnectionDeviceTypesSync: GetVpnConnectionDeviceTypesSyncType? = nil, + getVpnTunnelReplacementStatusAsync: GetVpnTunnelReplacementStatusAsyncType? = nil, + getVpnTunnelReplacementStatusSync: GetVpnTunnelReplacementStatusSyncType? = nil, importClientVpnClientCertificateRevocationListAsync: ImportClientVpnClientCertificateRevocationListAsyncType? = nil, importClientVpnClientCertificateRevocationListSync: ImportClientVpnClientCertificateRevocationListSyncType? = nil, importImageAsync: ImportImageAsyncType? = nil, @@ -2132,6 +2198,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc modifyIpamPoolSync: ModifyIpamPoolSyncType? = nil, modifyIpamResourceCidrAsync: ModifyIpamResourceCidrAsyncType? = nil, modifyIpamResourceCidrSync: ModifyIpamResourceCidrSyncType? = nil, + modifyIpamResourceDiscoveryAsync: ModifyIpamResourceDiscoveryAsyncType? = nil, + modifyIpamResourceDiscoverySync: ModifyIpamResourceDiscoverySyncType? = nil, modifyIpamScopeAsync: ModifyIpamScopeAsyncType? = nil, modifyIpamScopeSync: ModifyIpamScopeSyncType? = nil, modifyLaunchTemplateAsync: ModifyLaunchTemplateAsyncType? = nil, @@ -2266,6 +2334,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc replaceRouteTableAssociationSync: ReplaceRouteTableAssociationSyncType? = nil, replaceTransitGatewayRouteAsync: ReplaceTransitGatewayRouteAsyncType? = nil, replaceTransitGatewayRouteSync: ReplaceTransitGatewayRouteSyncType? = nil, + replaceVpnTunnelAsync: ReplaceVpnTunnelAsyncType? = nil, + replaceVpnTunnelSync: ReplaceVpnTunnelSyncType? = nil, reportInstanceStatusAsync: ReportInstanceStatusAsyncType? = nil, reportInstanceStatusSync: ReportInstanceStatusSyncType? = nil, requestSpotFleetAsync: RequestSpotFleetAsyncType? = nil, @@ -2332,6 +2402,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc unassignIpv6AddressesSync: UnassignIpv6AddressesSyncType? = nil, unassignPrivateIpAddressesAsync: UnassignPrivateIpAddressesAsyncType? = nil, unassignPrivateIpAddressesSync: UnassignPrivateIpAddressesSyncType? = nil, + unassignPrivateNatGatewayAddressAsync: UnassignPrivateNatGatewayAddressAsyncType? = nil, + unassignPrivateNatGatewayAddressSync: UnassignPrivateNatGatewayAddressSyncType? = nil, unmonitorInstancesAsync: UnmonitorInstancesAsyncType? = nil, unmonitorInstancesSync: UnmonitorInstancesSyncType? = nil, updateSecurityGroupRuleDescriptionsEgressAsync: UpdateSecurityGroupRuleDescriptionsEgressAsyncType? = nil, @@ -2369,6 +2441,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.assignIpv6AddressesSyncOverride = assignIpv6AddressesSync self.assignPrivateIpAddressesAsyncOverride = assignPrivateIpAddressesAsync self.assignPrivateIpAddressesSyncOverride = assignPrivateIpAddressesSync + self.assignPrivateNatGatewayAddressAsyncOverride = assignPrivateNatGatewayAddressAsync + self.assignPrivateNatGatewayAddressSyncOverride = assignPrivateNatGatewayAddressSync self.associateAddressAsyncOverride = associateAddressAsync self.associateAddressSyncOverride = associateAddressSync self.associateClientVpnTargetNetworkAsyncOverride = associateClientVpnTargetNetworkAsync @@ -2381,6 +2455,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.associateIamInstanceProfileSyncOverride = associateIamInstanceProfileSync self.associateInstanceEventWindowAsyncOverride = associateInstanceEventWindowAsync self.associateInstanceEventWindowSyncOverride = associateInstanceEventWindowSync + self.associateIpamResourceDiscoveryAsyncOverride = associateIpamResourceDiscoveryAsync + self.associateIpamResourceDiscoverySyncOverride = associateIpamResourceDiscoverySync + self.associateNatGatewayAddressAsyncOverride = associateNatGatewayAddressAsync + self.associateNatGatewayAddressSyncOverride = associateNatGatewayAddressSync self.associateRouteTableAsyncOverride = associateRouteTableAsync self.associateRouteTableSyncOverride = associateRouteTableSync self.associateSubnetCidrBlockAsyncOverride = associateSubnetCidrBlockAsync @@ -2475,6 +2553,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.createFpgaImageSyncOverride = createFpgaImageSync self.createImageAsyncOverride = createImageAsync self.createImageSyncOverride = createImageSync + self.createInstanceConnectEndpointAsyncOverride = createInstanceConnectEndpointAsync + self.createInstanceConnectEndpointSyncOverride = createInstanceConnectEndpointSync self.createInstanceEventWindowAsyncOverride = createInstanceEventWindowAsync self.createInstanceEventWindowSyncOverride = createInstanceEventWindowSync self.createInstanceExportTaskAsyncOverride = createInstanceExportTaskAsync @@ -2485,6 +2565,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.createIpamSyncOverride = createIpamSync self.createIpamPoolAsyncOverride = createIpamPoolAsync self.createIpamPoolSyncOverride = createIpamPoolSync + self.createIpamResourceDiscoveryAsyncOverride = createIpamResourceDiscoveryAsync + self.createIpamResourceDiscoverySyncOverride = createIpamResourceDiscoverySync self.createIpamScopeAsyncOverride = createIpamScopeAsync self.createIpamScopeSyncOverride = createIpamScopeSync self.createKeyPairAsyncOverride = createKeyPairAsync @@ -2625,6 +2707,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.deleteFlowLogsSyncOverride = deleteFlowLogsSync self.deleteFpgaImageAsyncOverride = deleteFpgaImageAsync self.deleteFpgaImageSyncOverride = deleteFpgaImageSync + self.deleteInstanceConnectEndpointAsyncOverride = deleteInstanceConnectEndpointAsync + self.deleteInstanceConnectEndpointSyncOverride = deleteInstanceConnectEndpointSync self.deleteInstanceEventWindowAsyncOverride = deleteInstanceEventWindowAsync self.deleteInstanceEventWindowSyncOverride = deleteInstanceEventWindowSync self.deleteInternetGatewayAsyncOverride = deleteInternetGatewayAsync @@ -2633,6 +2717,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.deleteIpamSyncOverride = deleteIpamSync self.deleteIpamPoolAsyncOverride = deleteIpamPoolAsync self.deleteIpamPoolSyncOverride = deleteIpamPoolSync + self.deleteIpamResourceDiscoveryAsyncOverride = deleteIpamResourceDiscoveryAsync + self.deleteIpamResourceDiscoverySyncOverride = deleteIpamResourceDiscoverySync self.deleteIpamScopeAsyncOverride = deleteIpamScopeAsync self.deleteIpamScopeSyncOverride = deleteIpamScopeSync self.deleteKeyPairAsyncOverride = deleteKeyPairAsync @@ -2851,6 +2937,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.describeImportSnapshotTasksSyncOverride = describeImportSnapshotTasksSync self.describeInstanceAttributeAsyncOverride = describeInstanceAttributeAsync self.describeInstanceAttributeSyncOverride = describeInstanceAttributeSync + self.describeInstanceConnectEndpointsAsyncOverride = describeInstanceConnectEndpointsAsync + self.describeInstanceConnectEndpointsSyncOverride = describeInstanceConnectEndpointsSync self.describeInstanceCreditSpecificationsAsyncOverride = describeInstanceCreditSpecificationsAsync self.describeInstanceCreditSpecificationsSyncOverride = describeInstanceCreditSpecificationsSync self.describeInstanceEventNotificationAttributesAsyncOverride = describeInstanceEventNotificationAttributesAsync @@ -2869,6 +2957,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.describeInternetGatewaysSyncOverride = describeInternetGatewaysSync self.describeIpamPoolsAsyncOverride = describeIpamPoolsAsync self.describeIpamPoolsSyncOverride = describeIpamPoolsSync + self.describeIpamResourceDiscoveriesAsyncOverride = describeIpamResourceDiscoveriesAsync + self.describeIpamResourceDiscoveriesSyncOverride = describeIpamResourceDiscoveriesSync + self.describeIpamResourceDiscoveryAssociationsAsyncOverride = describeIpamResourceDiscoveryAssociationsAsync + self.describeIpamResourceDiscoveryAssociationsSyncOverride = describeIpamResourceDiscoveryAssociationsSync self.describeIpamScopesAsyncOverride = describeIpamScopesAsync self.describeIpamScopesSyncOverride = describeIpamScopesSync self.describeIpamsAsyncOverride = describeIpamsAsync @@ -3091,6 +3183,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.disassociateIamInstanceProfileSyncOverride = disassociateIamInstanceProfileSync self.disassociateInstanceEventWindowAsyncOverride = disassociateInstanceEventWindowAsync self.disassociateInstanceEventWindowSyncOverride = disassociateInstanceEventWindowSync + self.disassociateIpamResourceDiscoveryAsyncOverride = disassociateIpamResourceDiscoveryAsync + self.disassociateIpamResourceDiscoverySyncOverride = disassociateIpamResourceDiscoverySync + self.disassociateNatGatewayAddressAsyncOverride = disassociateNatGatewayAddressAsync + self.disassociateNatGatewayAddressSyncOverride = disassociateNatGatewayAddressSync self.disassociateRouteTableAsyncOverride = disassociateRouteTableAsync self.disassociateRouteTableSyncOverride = disassociateRouteTableSync self.disassociateSubnetCidrBlockAsyncOverride = disassociateSubnetCidrBlockAsync @@ -3173,6 +3269,10 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.getInstanceUefiDataSyncOverride = getInstanceUefiDataSync self.getIpamAddressHistoryAsyncOverride = getIpamAddressHistoryAsync self.getIpamAddressHistorySyncOverride = getIpamAddressHistorySync + self.getIpamDiscoveredAccountsAsyncOverride = getIpamDiscoveredAccountsAsync + self.getIpamDiscoveredAccountsSyncOverride = getIpamDiscoveredAccountsSync + self.getIpamDiscoveredResourceCidrsAsyncOverride = getIpamDiscoveredResourceCidrsAsync + self.getIpamDiscoveredResourceCidrsSyncOverride = getIpamDiscoveredResourceCidrsSync self.getIpamPoolAllocationsAsyncOverride = getIpamPoolAllocationsAsync self.getIpamPoolAllocationsSyncOverride = getIpamPoolAllocationsSync self.getIpamPoolCidrsAsyncOverride = getIpamPoolCidrsAsync @@ -3221,6 +3321,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.getVpnConnectionDeviceSampleConfigurationSyncOverride = getVpnConnectionDeviceSampleConfigurationSync self.getVpnConnectionDeviceTypesAsyncOverride = getVpnConnectionDeviceTypesAsync self.getVpnConnectionDeviceTypesSyncOverride = getVpnConnectionDeviceTypesSync + self.getVpnTunnelReplacementStatusAsyncOverride = getVpnTunnelReplacementStatusAsync + self.getVpnTunnelReplacementStatusSyncOverride = getVpnTunnelReplacementStatusSync self.importClientVpnClientCertificateRevocationListAsyncOverride = importClientVpnClientCertificateRevocationListAsync self.importClientVpnClientCertificateRevocationListSyncOverride = importClientVpnClientCertificateRevocationListSync self.importImageAsyncOverride = importImageAsync @@ -3285,6 +3387,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.modifyIpamPoolSyncOverride = modifyIpamPoolSync self.modifyIpamResourceCidrAsyncOverride = modifyIpamResourceCidrAsync self.modifyIpamResourceCidrSyncOverride = modifyIpamResourceCidrSync + self.modifyIpamResourceDiscoveryAsyncOverride = modifyIpamResourceDiscoveryAsync + self.modifyIpamResourceDiscoverySyncOverride = modifyIpamResourceDiscoverySync self.modifyIpamScopeAsyncOverride = modifyIpamScopeAsync self.modifyIpamScopeSyncOverride = modifyIpamScopeSync self.modifyLaunchTemplateAsyncOverride = modifyLaunchTemplateAsync @@ -3419,6 +3523,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.replaceRouteTableAssociationSyncOverride = replaceRouteTableAssociationSync self.replaceTransitGatewayRouteAsyncOverride = replaceTransitGatewayRouteAsync self.replaceTransitGatewayRouteSyncOverride = replaceTransitGatewayRouteSync + self.replaceVpnTunnelAsyncOverride = replaceVpnTunnelAsync + self.replaceVpnTunnelSyncOverride = replaceVpnTunnelSync self.reportInstanceStatusAsyncOverride = reportInstanceStatusAsync self.reportInstanceStatusSyncOverride = reportInstanceStatusSync self.requestSpotFleetAsyncOverride = requestSpotFleetAsync @@ -3485,6 +3591,8 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc self.unassignIpv6AddressesSyncOverride = unassignIpv6AddressesSync self.unassignPrivateIpAddressesAsyncOverride = unassignPrivateIpAddressesAsync self.unassignPrivateIpAddressesSyncOverride = unassignPrivateIpAddressesSync + self.unassignPrivateNatGatewayAddressAsyncOverride = unassignPrivateNatGatewayAddressAsync + self.unassignPrivateNatGatewayAddressSyncOverride = unassignPrivateNatGatewayAddressSync self.unmonitorInstancesAsyncOverride = unmonitorInstancesAsync self.unmonitorInstancesSyncOverride = unmonitorInstancesSync self.updateSecurityGroupRuleDescriptionsEgressAsyncOverride = updateSecurityGroupRuleDescriptionsEgressAsync @@ -3999,6 +4107,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the AssignPrivateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssignPrivateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssignPrivateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let assignPrivateNatGatewayAddressAsyncOverride = assignPrivateNatGatewayAddressAsyncOverride { + return try assignPrivateNatGatewayAddressAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the AssignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + if let assignPrivateNatGatewayAddressSyncOverride = assignPrivateNatGatewayAddressSyncOverride { + return try assignPrivateNatGatewayAddressSyncOverride(input) + } + + throw error + } + /** Invokes the AssociateAddress operation returning immediately and passing the response to a callback. @@ -4212,6 +4356,78 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the AssociateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The AssociateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The AssociateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func associateIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let associateIpamResourceDiscoveryAsyncOverride = associateIpamResourceDiscoveryAsyncOverride { + return try associateIpamResourceDiscoveryAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the AssociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + if let associateIpamResourceDiscoverySyncOverride = associateIpamResourceDiscoverySyncOverride { + return try associateIpamResourceDiscoverySyncOverride(input) + } + + throw error + } + + /** + Invokes the AssociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - completion: The AssociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The AssociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func associateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let associateNatGatewayAddressAsyncOverride = associateNatGatewayAddressAsyncOverride { + return try associateNatGatewayAddressAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the AssociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateNatGatewayAddressSync( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + if let associateNatGatewayAddressSyncOverride = associateNatGatewayAddressSyncOverride { + return try associateNatGatewayAddressSyncOverride(input) + } + + throw error + } + /** Invokes the AssociateRouteTable operation returning immediately and passing the response to a callback. @@ -5895,6 +6111,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the CreateInstanceConnectEndpoint operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - completion: The CreateInstanceConnectEndpointResult object or an error will be passed to this + callback when the operation is complete. The CreateInstanceConnectEndpointResult + object will be validated before being returned to caller. + */ + public func createInstanceConnectEndpointAsync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest, + completion: @escaping (Result) -> ()) throws { + if let createInstanceConnectEndpointAsyncOverride = createInstanceConnectEndpointAsyncOverride { + return try createInstanceConnectEndpointAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the CreateInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + if let createInstanceConnectEndpointSyncOverride = createInstanceConnectEndpointSyncOverride { + return try createInstanceConnectEndpointSyncOverride(input) + } + + throw error + } + /** Invokes the CreateInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -6075,6 +6327,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the CreateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The CreateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The CreateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func createIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let createIpamResourceDiscoveryAsyncOverride = createIpamResourceDiscoveryAsyncOverride { + return try createIpamResourceDiscoveryAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the CreateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + if let createIpamResourceDiscoverySyncOverride = createIpamResourceDiscoverySyncOverride { + return try createIpamResourceDiscoverySyncOverride(input) + } + + throw error + } + /** Invokes the CreateIpamScope operation returning immediately and passing the response to a callback. @@ -8580,6 +8868,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the DeleteInstanceConnectEndpoint operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - completion: The DeleteInstanceConnectEndpointResult object or an error will be passed to this + callback when the operation is complete. The DeleteInstanceConnectEndpointResult + object will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpointAsync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest, + completion: @escaping (Result) -> ()) throws { + if let deleteInstanceConnectEndpointAsyncOverride = deleteInstanceConnectEndpointAsyncOverride { + return try deleteInstanceConnectEndpointAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DeleteInstanceConnectEndpoint operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpointSync( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + if let deleteInstanceConnectEndpointSyncOverride = deleteInstanceConnectEndpointSyncOverride { + return try deleteInstanceConnectEndpointSyncOverride(input) + } + + throw error + } + /** Invokes the DeleteInstanceEventWindow operation returning immediately and passing the response to a callback. @@ -8721,6 +9045,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the DeleteIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The DeleteIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The DeleteIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let deleteIpamResourceDiscoveryAsyncOverride = deleteIpamResourceDiscoveryAsyncOverride { + return try deleteIpamResourceDiscoveryAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DeleteIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + if let deleteIpamResourceDiscoverySyncOverride = deleteIpamResourceDiscoverySyncOverride { + return try deleteIpamResourceDiscoverySyncOverride(input) + } + + throw error + } + /** Invokes the DeleteIpamScope operation returning immediately and passing the response to a callback. @@ -12591,6 +12951,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the DescribeInstanceConnectEndpoints operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - completion: The DescribeInstanceConnectEndpointsResult object or an error will be passed to this + callback when the operation is complete. The DescribeInstanceConnectEndpointsResult + object will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpointsAsync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest, + completion: @escaping (Result) -> ()) throws { + if let describeInstanceConnectEndpointsAsyncOverride = describeInstanceConnectEndpointsAsyncOverride { + return try describeInstanceConnectEndpointsAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DescribeInstanceConnectEndpoints operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpointsSync( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + if let describeInstanceConnectEndpointsSyncOverride = describeInstanceConnectEndpointsSyncOverride { + return try describeInstanceConnectEndpointsSyncOverride(input) + } + + throw error + } + /** Invokes the DescribeInstanceCreditSpecifications operation returning immediately and passing the response to a callback. @@ -12915,6 +13311,78 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the DescribeIpamResourceDiscoveries operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveriesResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveriesResult + object will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveriesAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest, + completion: @escaping (Result) -> ()) throws { + if let describeIpamResourceDiscoveriesAsyncOverride = describeIpamResourceDiscoveriesAsyncOverride { + return try describeIpamResourceDiscoveriesAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DescribeIpamResourceDiscoveries operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveriesSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + if let describeIpamResourceDiscoveriesSyncOverride = describeIpamResourceDiscoveriesSyncOverride { + return try describeIpamResourceDiscoveriesSyncOverride(input) + } + + throw error + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - completion: The DescribeIpamResourceDiscoveryAssociationsResult object or an error will be passed to this + callback when the operation is complete. The DescribeIpamResourceDiscoveryAssociationsResult + object will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociationsAsync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest, + completion: @escaping (Result) -> ()) throws { + if let describeIpamResourceDiscoveryAssociationsAsyncOverride = describeIpamResourceDiscoveryAssociationsAsyncOverride { + return try describeIpamResourceDiscoveryAssociationsAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociationsSync( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + if let describeIpamResourceDiscoveryAssociationsSyncOverride = describeIpamResourceDiscoveryAssociationsSyncOverride { + return try describeIpamResourceDiscoveryAssociationsSyncOverride(input) + } + + throw error + } + /** Invokes the DescribeIpamScopes operation returning immediately and passing the response to a callback. @@ -16896,6 +17364,78 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the DisassociateIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The DisassociateIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The DisassociateIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let disassociateIpamResourceDiscoveryAsyncOverride = disassociateIpamResourceDiscoveryAsyncOverride { + return try disassociateIpamResourceDiscoveryAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DisassociateIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + if let disassociateIpamResourceDiscoverySyncOverride = disassociateIpamResourceDiscoverySyncOverride { + return try disassociateIpamResourceDiscoverySyncOverride(input) + } + + throw error + } + + /** + Invokes the DisassociateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - completion: The DisassociateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The DisassociateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let disassociateNatGatewayAddressAsyncOverride = disassociateNatGatewayAddressAsyncOverride { + return try disassociateNatGatewayAddressAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DisassociateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddressSync( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + if let disassociateNatGatewayAddressSyncOverride = disassociateNatGatewayAddressSyncOverride { + return try disassociateNatGatewayAddressSyncOverride(input) + } + + throw error + } + /** Invokes the DisassociateRouteTable operation returning immediately and passing the response to a callback. @@ -18363,6 +18903,78 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the GetIpamDiscoveredAccounts operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredAccountsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredAccountsResult + object will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccountsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest, + completion: @escaping (Result) -> ()) throws { + if let getIpamDiscoveredAccountsAsyncOverride = getIpamDiscoveredAccountsAsyncOverride { + return try getIpamDiscoveredAccountsAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the GetIpamDiscoveredAccounts operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccountsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + if let getIpamDiscoveredAccountsSyncOverride = getIpamDiscoveredAccountsSyncOverride { + return try getIpamDiscoveredAccountsSyncOverride(input) + } + + throw error + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - completion: The GetIpamDiscoveredResourceCidrsResult object or an error will be passed to this + callback when the operation is complete. The GetIpamDiscoveredResourceCidrsResult + object will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrsAsync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest, + completion: @escaping (Result) -> ()) throws { + if let getIpamDiscoveredResourceCidrsAsyncOverride = getIpamDiscoveredResourceCidrsAsyncOverride { + return try getIpamDiscoveredResourceCidrsAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation waiting for the response before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrsSync( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + if let getIpamDiscoveredResourceCidrsSyncOverride = getIpamDiscoveredResourceCidrsSyncOverride { + return try getIpamDiscoveredResourceCidrsSyncOverride(input) + } + + throw error + } + /** Invokes the GetIpamPoolAllocations operation returning immediately and passing the response to a callback. @@ -19227,6 +19839,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the GetVpnTunnelReplacementStatus operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - completion: The GetVpnTunnelReplacementStatusResult object or an error will be passed to this + callback when the operation is complete. The GetVpnTunnelReplacementStatusResult + object will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatusAsync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest, + completion: @escaping (Result) -> ()) throws { + if let getVpnTunnelReplacementStatusAsyncOverride = getVpnTunnelReplacementStatusAsyncOverride { + return try getVpnTunnelReplacementStatusAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the GetVpnTunnelReplacementStatus operation waiting for the response before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatusSync( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + if let getVpnTunnelReplacementStatusSyncOverride = getVpnTunnelReplacementStatusSyncOverride { + return try getVpnTunnelReplacementStatusSyncOverride(input) + } + + throw error + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation returning immediately and passing the response to a callback. @@ -20367,6 +21015,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the ModifyIpamResourceDiscovery operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - completion: The ModifyIpamResourceDiscoveryResult object or an error will be passed to this + callback when the operation is complete. The ModifyIpamResourceDiscoveryResult + object will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscoveryAsync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest, + completion: @escaping (Result) -> ()) throws { + if let modifyIpamResourceDiscoveryAsyncOverride = modifyIpamResourceDiscoveryAsyncOverride { + return try modifyIpamResourceDiscoveryAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the ModifyIpamResourceDiscovery operation waiting for the response before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscoverySync( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + if let modifyIpamResourceDiscoverySyncOverride = modifyIpamResourceDiscoverySyncOverride { + return try modifyIpamResourceDiscoverySyncOverride(input) + } + + throw error + } + /** Invokes the ModifyIpamScope operation returning immediately and passing the response to a callback. @@ -22752,6 +23436,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the ReplaceVpnTunnel operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - completion: The ReplaceVpnTunnelResult object or an error will be passed to this + callback when the operation is complete. The ReplaceVpnTunnelResult + object will be validated before being returned to caller. + */ + public func replaceVpnTunnelAsync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest, + completion: @escaping (Result) -> ()) throws { + if let replaceVpnTunnelAsyncOverride = replaceVpnTunnelAsyncOverride { + return try replaceVpnTunnelAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the ReplaceVpnTunnel operation waiting for the response before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func replaceVpnTunnelSync( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult { + if let replaceVpnTunnelSyncOverride = replaceVpnTunnelSyncOverride { + return try replaceVpnTunnelSyncOverride(input) + } + + throw error + } + /** Invokes the ReportInstanceStatus operation returning immediately and passing the response to a callback. @@ -23919,6 +24639,42 @@ public struct ThrowingElasticComputeCloudClient: ElasticComputeCloudClientProtoc throw error } + /** + Invokes the UnassignPrivateNatGatewayAddress operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - completion: The UnassignPrivateNatGatewayAddressResult object or an error will be passed to this + callback when the operation is complete. The UnassignPrivateNatGatewayAddressResult + object will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddressAsync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest, + completion: @escaping (Result) -> ()) throws { + if let unassignPrivateNatGatewayAddressAsyncOverride = unassignPrivateNatGatewayAddressAsyncOverride { + return try unassignPrivateNatGatewayAddressAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the UnassignPrivateNatGatewayAddress operation waiting for the response before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddressSync( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + if let unassignPrivateNatGatewayAddressSyncOverride = unassignPrivateNatGatewayAddressSyncOverride { + return try unassignPrivateNatGatewayAddressSyncOverride(input) + } + + throw error + } + /** Invokes the UnmonitorInstances operation returning immediately and passing the response to a callback. diff --git a/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClientV2.swift b/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClientV2.swift index 96b4c0f..373b01f 100644 --- a/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClientV2.swift +++ b/Sources/ElasticComputeCloudClient/ThrowingElasticComputeCloudClientV2.swift @@ -45,12 +45,15 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let applySecurityGroupsToClientVpnTargetNetworkOverride: ApplySecurityGroupsToClientVpnTargetNetworkFunctionType? let assignIpv6AddressesOverride: AssignIpv6AddressesFunctionType? let assignPrivateIpAddressesOverride: AssignPrivateIpAddressesFunctionType? + let assignPrivateNatGatewayAddressOverride: AssignPrivateNatGatewayAddressFunctionType? let associateAddressOverride: AssociateAddressFunctionType? let associateClientVpnTargetNetworkOverride: AssociateClientVpnTargetNetworkFunctionType? let associateDhcpOptionsOverride: AssociateDhcpOptionsFunctionType? let associateEnclaveCertificateIamRoleOverride: AssociateEnclaveCertificateIamRoleFunctionType? let associateIamInstanceProfileOverride: AssociateIamInstanceProfileFunctionType? let associateInstanceEventWindowOverride: AssociateInstanceEventWindowFunctionType? + let associateIpamResourceDiscoveryOverride: AssociateIpamResourceDiscoveryFunctionType? + let associateNatGatewayAddressOverride: AssociateNatGatewayAddressFunctionType? let associateRouteTableOverride: AssociateRouteTableFunctionType? let associateSubnetCidrBlockOverride: AssociateSubnetCidrBlockFunctionType? let associateTransitGatewayMulticastDomainOverride: AssociateTransitGatewayMulticastDomainFunctionType? @@ -98,11 +101,13 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let createFlowLogsOverride: CreateFlowLogsFunctionType? let createFpgaImageOverride: CreateFpgaImageFunctionType? let createImageOverride: CreateImageFunctionType? + let createInstanceConnectEndpointOverride: CreateInstanceConnectEndpointFunctionType? let createInstanceEventWindowOverride: CreateInstanceEventWindowFunctionType? let createInstanceExportTaskOverride: CreateInstanceExportTaskFunctionType? let createInternetGatewayOverride: CreateInternetGatewayFunctionType? let createIpamOverride: CreateIpamFunctionType? let createIpamPoolOverride: CreateIpamPoolFunctionType? + let createIpamResourceDiscoveryOverride: CreateIpamResourceDiscoveryFunctionType? let createIpamScopeOverride: CreateIpamScopeFunctionType? let createKeyPairOverride: CreateKeyPairFunctionType? let createLaunchTemplateOverride: CreateLaunchTemplateFunctionType? @@ -173,10 +178,12 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let deleteFleetsOverride: DeleteFleetsFunctionType? let deleteFlowLogsOverride: DeleteFlowLogsFunctionType? let deleteFpgaImageOverride: DeleteFpgaImageFunctionType? + let deleteInstanceConnectEndpointOverride: DeleteInstanceConnectEndpointFunctionType? let deleteInstanceEventWindowOverride: DeleteInstanceEventWindowFunctionType? let deleteInternetGatewayOverride: DeleteInternetGatewayFunctionType? let deleteIpamOverride: DeleteIpamFunctionType? let deleteIpamPoolOverride: DeleteIpamPoolFunctionType? + let deleteIpamResourceDiscoveryOverride: DeleteIpamResourceDiscoveryFunctionType? let deleteIpamScopeOverride: DeleteIpamScopeFunctionType? let deleteKeyPairOverride: DeleteKeyPairFunctionType? let deleteLaunchTemplateOverride: DeleteLaunchTemplateFunctionType? @@ -286,6 +293,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let describeImportImageTasksOverride: DescribeImportImageTasksFunctionType? let describeImportSnapshotTasksOverride: DescribeImportSnapshotTasksFunctionType? let describeInstanceAttributeOverride: DescribeInstanceAttributeFunctionType? + let describeInstanceConnectEndpointsOverride: DescribeInstanceConnectEndpointsFunctionType? let describeInstanceCreditSpecificationsOverride: DescribeInstanceCreditSpecificationsFunctionType? let describeInstanceEventNotificationAttributesOverride: DescribeInstanceEventNotificationAttributesFunctionType? let describeInstanceEventWindowsOverride: DescribeInstanceEventWindowsFunctionType? @@ -295,6 +303,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let describeInstancesOverride: DescribeInstancesFunctionType? let describeInternetGatewaysOverride: DescribeInternetGatewaysFunctionType? let describeIpamPoolsOverride: DescribeIpamPoolsFunctionType? + let describeIpamResourceDiscoveriesOverride: DescribeIpamResourceDiscoveriesFunctionType? + let describeIpamResourceDiscoveryAssociationsOverride: DescribeIpamResourceDiscoveryAssociationsFunctionType? let describeIpamScopesOverride: DescribeIpamScopesFunctionType? let describeIpamsOverride: DescribeIpamsFunctionType? let describeIpv6PoolsOverride: DescribeIpv6PoolsFunctionType? @@ -406,6 +416,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let disassociateEnclaveCertificateIamRoleOverride: DisassociateEnclaveCertificateIamRoleFunctionType? let disassociateIamInstanceProfileOverride: DisassociateIamInstanceProfileFunctionType? let disassociateInstanceEventWindowOverride: DisassociateInstanceEventWindowFunctionType? + let disassociateIpamResourceDiscoveryOverride: DisassociateIpamResourceDiscoveryFunctionType? + let disassociateNatGatewayAddressOverride: DisassociateNatGatewayAddressFunctionType? let disassociateRouteTableOverride: DisassociateRouteTableFunctionType? let disassociateSubnetCidrBlockOverride: DisassociateSubnetCidrBlockFunctionType? let disassociateTransitGatewayMulticastDomainOverride: DisassociateTransitGatewayMulticastDomainFunctionType? @@ -447,6 +459,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let getInstanceTypesFromInstanceRequirementsOverride: GetInstanceTypesFromInstanceRequirementsFunctionType? let getInstanceUefiDataOverride: GetInstanceUefiDataFunctionType? let getIpamAddressHistoryOverride: GetIpamAddressHistoryFunctionType? + let getIpamDiscoveredAccountsOverride: GetIpamDiscoveredAccountsFunctionType? + let getIpamDiscoveredResourceCidrsOverride: GetIpamDiscoveredResourceCidrsFunctionType? let getIpamPoolAllocationsOverride: GetIpamPoolAllocationsFunctionType? let getIpamPoolCidrsOverride: GetIpamPoolCidrsFunctionType? let getIpamResourceCidrsOverride: GetIpamResourceCidrsFunctionType? @@ -471,6 +485,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let getVerifiedAccessGroupPolicyOverride: GetVerifiedAccessGroupPolicyFunctionType? let getVpnConnectionDeviceSampleConfigurationOverride: GetVpnConnectionDeviceSampleConfigurationFunctionType? let getVpnConnectionDeviceTypesOverride: GetVpnConnectionDeviceTypesFunctionType? + let getVpnTunnelReplacementStatusOverride: GetVpnTunnelReplacementStatusFunctionType? let importClientVpnClientCertificateRevocationListOverride: ImportClientVpnClientCertificateRevocationListFunctionType? let importImageOverride: ImportImageFunctionType? let importInstanceOverride: ImportInstanceFunctionType? @@ -503,6 +518,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let modifyIpamOverride: ModifyIpamFunctionType? let modifyIpamPoolOverride: ModifyIpamPoolFunctionType? let modifyIpamResourceCidrOverride: ModifyIpamResourceCidrFunctionType? + let modifyIpamResourceDiscoveryOverride: ModifyIpamResourceDiscoveryFunctionType? let modifyIpamScopeOverride: ModifyIpamScopeFunctionType? let modifyLaunchTemplateOverride: ModifyLaunchTemplateFunctionType? let modifyLocalGatewayRouteOverride: ModifyLocalGatewayRouteFunctionType? @@ -570,6 +586,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let replaceRouteOverride: ReplaceRouteFunctionType? let replaceRouteTableAssociationOverride: ReplaceRouteTableAssociationFunctionType? let replaceTransitGatewayRouteOverride: ReplaceTransitGatewayRouteFunctionType? + let replaceVpnTunnelOverride: ReplaceVpnTunnelFunctionType? let reportInstanceStatusOverride: ReportInstanceStatusFunctionType? let requestSpotFleetOverride: RequestSpotFleetFunctionType? let requestSpotInstancesOverride: RequestSpotInstancesFunctionType? @@ -603,6 +620,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt let terminateInstancesOverride: TerminateInstancesFunctionType? let unassignIpv6AddressesOverride: UnassignIpv6AddressesFunctionType? let unassignPrivateIpAddressesOverride: UnassignPrivateIpAddressesFunctionType? + let unassignPrivateNatGatewayAddressOverride: UnassignPrivateNatGatewayAddressFunctionType? let unmonitorInstancesOverride: UnmonitorInstancesFunctionType? let updateSecurityGroupRuleDescriptionsEgressOverride: UpdateSecurityGroupRuleDescriptionsEgressFunctionType? let updateSecurityGroupRuleDescriptionsIngressOverride: UpdateSecurityGroupRuleDescriptionsIngressFunctionType? @@ -627,12 +645,15 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt applySecurityGroupsToClientVpnTargetNetwork: ApplySecurityGroupsToClientVpnTargetNetworkFunctionType? = nil, assignIpv6Addresses: AssignIpv6AddressesFunctionType? = nil, assignPrivateIpAddresses: AssignPrivateIpAddressesFunctionType? = nil, + assignPrivateNatGatewayAddress: AssignPrivateNatGatewayAddressFunctionType? = nil, associateAddress: AssociateAddressFunctionType? = nil, associateClientVpnTargetNetwork: AssociateClientVpnTargetNetworkFunctionType? = nil, associateDhcpOptions: AssociateDhcpOptionsFunctionType? = nil, associateEnclaveCertificateIamRole: AssociateEnclaveCertificateIamRoleFunctionType? = nil, associateIamInstanceProfile: AssociateIamInstanceProfileFunctionType? = nil, associateInstanceEventWindow: AssociateInstanceEventWindowFunctionType? = nil, + associateIpamResourceDiscovery: AssociateIpamResourceDiscoveryFunctionType? = nil, + associateNatGatewayAddress: AssociateNatGatewayAddressFunctionType? = nil, associateRouteTable: AssociateRouteTableFunctionType? = nil, associateSubnetCidrBlock: AssociateSubnetCidrBlockFunctionType? = nil, associateTransitGatewayMulticastDomain: AssociateTransitGatewayMulticastDomainFunctionType? = nil, @@ -680,11 +701,13 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt createFlowLogs: CreateFlowLogsFunctionType? = nil, createFpgaImage: CreateFpgaImageFunctionType? = nil, createImage: CreateImageFunctionType? = nil, + createInstanceConnectEndpoint: CreateInstanceConnectEndpointFunctionType? = nil, createInstanceEventWindow: CreateInstanceEventWindowFunctionType? = nil, createInstanceExportTask: CreateInstanceExportTaskFunctionType? = nil, createInternetGateway: CreateInternetGatewayFunctionType? = nil, createIpam: CreateIpamFunctionType? = nil, createIpamPool: CreateIpamPoolFunctionType? = nil, + createIpamResourceDiscovery: CreateIpamResourceDiscoveryFunctionType? = nil, createIpamScope: CreateIpamScopeFunctionType? = nil, createKeyPair: CreateKeyPairFunctionType? = nil, createLaunchTemplate: CreateLaunchTemplateFunctionType? = nil, @@ -755,10 +778,12 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt deleteFleets: DeleteFleetsFunctionType? = nil, deleteFlowLogs: DeleteFlowLogsFunctionType? = nil, deleteFpgaImage: DeleteFpgaImageFunctionType? = nil, + deleteInstanceConnectEndpoint: DeleteInstanceConnectEndpointFunctionType? = nil, deleteInstanceEventWindow: DeleteInstanceEventWindowFunctionType? = nil, deleteInternetGateway: DeleteInternetGatewayFunctionType? = nil, deleteIpam: DeleteIpamFunctionType? = nil, deleteIpamPool: DeleteIpamPoolFunctionType? = nil, + deleteIpamResourceDiscovery: DeleteIpamResourceDiscoveryFunctionType? = nil, deleteIpamScope: DeleteIpamScopeFunctionType? = nil, deleteKeyPair: DeleteKeyPairFunctionType? = nil, deleteLaunchTemplate: DeleteLaunchTemplateFunctionType? = nil, @@ -868,6 +893,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt describeImportImageTasks: DescribeImportImageTasksFunctionType? = nil, describeImportSnapshotTasks: DescribeImportSnapshotTasksFunctionType? = nil, describeInstanceAttribute: DescribeInstanceAttributeFunctionType? = nil, + describeInstanceConnectEndpoints: DescribeInstanceConnectEndpointsFunctionType? = nil, describeInstanceCreditSpecifications: DescribeInstanceCreditSpecificationsFunctionType? = nil, describeInstanceEventNotificationAttributes: DescribeInstanceEventNotificationAttributesFunctionType? = nil, describeInstanceEventWindows: DescribeInstanceEventWindowsFunctionType? = nil, @@ -877,6 +903,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt describeInstances: DescribeInstancesFunctionType? = nil, describeInternetGateways: DescribeInternetGatewaysFunctionType? = nil, describeIpamPools: DescribeIpamPoolsFunctionType? = nil, + describeIpamResourceDiscoveries: DescribeIpamResourceDiscoveriesFunctionType? = nil, + describeIpamResourceDiscoveryAssociations: DescribeIpamResourceDiscoveryAssociationsFunctionType? = nil, describeIpamScopes: DescribeIpamScopesFunctionType? = nil, describeIpams: DescribeIpamsFunctionType? = nil, describeIpv6Pools: DescribeIpv6PoolsFunctionType? = nil, @@ -988,6 +1016,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt disassociateEnclaveCertificateIamRole: DisassociateEnclaveCertificateIamRoleFunctionType? = nil, disassociateIamInstanceProfile: DisassociateIamInstanceProfileFunctionType? = nil, disassociateInstanceEventWindow: DisassociateInstanceEventWindowFunctionType? = nil, + disassociateIpamResourceDiscovery: DisassociateIpamResourceDiscoveryFunctionType? = nil, + disassociateNatGatewayAddress: DisassociateNatGatewayAddressFunctionType? = nil, disassociateRouteTable: DisassociateRouteTableFunctionType? = nil, disassociateSubnetCidrBlock: DisassociateSubnetCidrBlockFunctionType? = nil, disassociateTransitGatewayMulticastDomain: DisassociateTransitGatewayMulticastDomainFunctionType? = nil, @@ -1029,6 +1059,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt getInstanceTypesFromInstanceRequirements: GetInstanceTypesFromInstanceRequirementsFunctionType? = nil, getInstanceUefiData: GetInstanceUefiDataFunctionType? = nil, getIpamAddressHistory: GetIpamAddressHistoryFunctionType? = nil, + getIpamDiscoveredAccounts: GetIpamDiscoveredAccountsFunctionType? = nil, + getIpamDiscoveredResourceCidrs: GetIpamDiscoveredResourceCidrsFunctionType? = nil, getIpamPoolAllocations: GetIpamPoolAllocationsFunctionType? = nil, getIpamPoolCidrs: GetIpamPoolCidrsFunctionType? = nil, getIpamResourceCidrs: GetIpamResourceCidrsFunctionType? = nil, @@ -1053,6 +1085,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt getVerifiedAccessGroupPolicy: GetVerifiedAccessGroupPolicyFunctionType? = nil, getVpnConnectionDeviceSampleConfiguration: GetVpnConnectionDeviceSampleConfigurationFunctionType? = nil, getVpnConnectionDeviceTypes: GetVpnConnectionDeviceTypesFunctionType? = nil, + getVpnTunnelReplacementStatus: GetVpnTunnelReplacementStatusFunctionType? = nil, importClientVpnClientCertificateRevocationList: ImportClientVpnClientCertificateRevocationListFunctionType? = nil, importImage: ImportImageFunctionType? = nil, importInstance: ImportInstanceFunctionType? = nil, @@ -1085,6 +1118,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt modifyIpam: ModifyIpamFunctionType? = nil, modifyIpamPool: ModifyIpamPoolFunctionType? = nil, modifyIpamResourceCidr: ModifyIpamResourceCidrFunctionType? = nil, + modifyIpamResourceDiscovery: ModifyIpamResourceDiscoveryFunctionType? = nil, modifyIpamScope: ModifyIpamScopeFunctionType? = nil, modifyLaunchTemplate: ModifyLaunchTemplateFunctionType? = nil, modifyLocalGatewayRoute: ModifyLocalGatewayRouteFunctionType? = nil, @@ -1152,6 +1186,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt replaceRoute: ReplaceRouteFunctionType? = nil, replaceRouteTableAssociation: ReplaceRouteTableAssociationFunctionType? = nil, replaceTransitGatewayRoute: ReplaceTransitGatewayRouteFunctionType? = nil, + replaceVpnTunnel: ReplaceVpnTunnelFunctionType? = nil, reportInstanceStatus: ReportInstanceStatusFunctionType? = nil, requestSpotFleet: RequestSpotFleetFunctionType? = nil, requestSpotInstances: RequestSpotInstancesFunctionType? = nil, @@ -1185,6 +1220,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt terminateInstances: TerminateInstancesFunctionType? = nil, unassignIpv6Addresses: UnassignIpv6AddressesFunctionType? = nil, unassignPrivateIpAddresses: UnassignPrivateIpAddressesFunctionType? = nil, + unassignPrivateNatGatewayAddress: UnassignPrivateNatGatewayAddressFunctionType? = nil, unmonitorInstances: UnmonitorInstancesFunctionType? = nil, updateSecurityGroupRuleDescriptionsEgress: UpdateSecurityGroupRuleDescriptionsEgressFunctionType? = nil, updateSecurityGroupRuleDescriptionsIngress: UpdateSecurityGroupRuleDescriptionsIngressFunctionType? = nil, @@ -1204,12 +1240,15 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.applySecurityGroupsToClientVpnTargetNetworkOverride = applySecurityGroupsToClientVpnTargetNetwork self.assignIpv6AddressesOverride = assignIpv6Addresses self.assignPrivateIpAddressesOverride = assignPrivateIpAddresses + self.assignPrivateNatGatewayAddressOverride = assignPrivateNatGatewayAddress self.associateAddressOverride = associateAddress self.associateClientVpnTargetNetworkOverride = associateClientVpnTargetNetwork self.associateDhcpOptionsOverride = associateDhcpOptions self.associateEnclaveCertificateIamRoleOverride = associateEnclaveCertificateIamRole self.associateIamInstanceProfileOverride = associateIamInstanceProfile self.associateInstanceEventWindowOverride = associateInstanceEventWindow + self.associateIpamResourceDiscoveryOverride = associateIpamResourceDiscovery + self.associateNatGatewayAddressOverride = associateNatGatewayAddress self.associateRouteTableOverride = associateRouteTable self.associateSubnetCidrBlockOverride = associateSubnetCidrBlock self.associateTransitGatewayMulticastDomainOverride = associateTransitGatewayMulticastDomain @@ -1257,11 +1296,13 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.createFlowLogsOverride = createFlowLogs self.createFpgaImageOverride = createFpgaImage self.createImageOverride = createImage + self.createInstanceConnectEndpointOverride = createInstanceConnectEndpoint self.createInstanceEventWindowOverride = createInstanceEventWindow self.createInstanceExportTaskOverride = createInstanceExportTask self.createInternetGatewayOverride = createInternetGateway self.createIpamOverride = createIpam self.createIpamPoolOverride = createIpamPool + self.createIpamResourceDiscoveryOverride = createIpamResourceDiscovery self.createIpamScopeOverride = createIpamScope self.createKeyPairOverride = createKeyPair self.createLaunchTemplateOverride = createLaunchTemplate @@ -1332,10 +1373,12 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.deleteFleetsOverride = deleteFleets self.deleteFlowLogsOverride = deleteFlowLogs self.deleteFpgaImageOverride = deleteFpgaImage + self.deleteInstanceConnectEndpointOverride = deleteInstanceConnectEndpoint self.deleteInstanceEventWindowOverride = deleteInstanceEventWindow self.deleteInternetGatewayOverride = deleteInternetGateway self.deleteIpamOverride = deleteIpam self.deleteIpamPoolOverride = deleteIpamPool + self.deleteIpamResourceDiscoveryOverride = deleteIpamResourceDiscovery self.deleteIpamScopeOverride = deleteIpamScope self.deleteKeyPairOverride = deleteKeyPair self.deleteLaunchTemplateOverride = deleteLaunchTemplate @@ -1445,6 +1488,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.describeImportImageTasksOverride = describeImportImageTasks self.describeImportSnapshotTasksOverride = describeImportSnapshotTasks self.describeInstanceAttributeOverride = describeInstanceAttribute + self.describeInstanceConnectEndpointsOverride = describeInstanceConnectEndpoints self.describeInstanceCreditSpecificationsOverride = describeInstanceCreditSpecifications self.describeInstanceEventNotificationAttributesOverride = describeInstanceEventNotificationAttributes self.describeInstanceEventWindowsOverride = describeInstanceEventWindows @@ -1454,6 +1498,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.describeInstancesOverride = describeInstances self.describeInternetGatewaysOverride = describeInternetGateways self.describeIpamPoolsOverride = describeIpamPools + self.describeIpamResourceDiscoveriesOverride = describeIpamResourceDiscoveries + self.describeIpamResourceDiscoveryAssociationsOverride = describeIpamResourceDiscoveryAssociations self.describeIpamScopesOverride = describeIpamScopes self.describeIpamsOverride = describeIpams self.describeIpv6PoolsOverride = describeIpv6Pools @@ -1565,6 +1611,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.disassociateEnclaveCertificateIamRoleOverride = disassociateEnclaveCertificateIamRole self.disassociateIamInstanceProfileOverride = disassociateIamInstanceProfile self.disassociateInstanceEventWindowOverride = disassociateInstanceEventWindow + self.disassociateIpamResourceDiscoveryOverride = disassociateIpamResourceDiscovery + self.disassociateNatGatewayAddressOverride = disassociateNatGatewayAddress self.disassociateRouteTableOverride = disassociateRouteTable self.disassociateSubnetCidrBlockOverride = disassociateSubnetCidrBlock self.disassociateTransitGatewayMulticastDomainOverride = disassociateTransitGatewayMulticastDomain @@ -1606,6 +1654,8 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.getInstanceTypesFromInstanceRequirementsOverride = getInstanceTypesFromInstanceRequirements self.getInstanceUefiDataOverride = getInstanceUefiData self.getIpamAddressHistoryOverride = getIpamAddressHistory + self.getIpamDiscoveredAccountsOverride = getIpamDiscoveredAccounts + self.getIpamDiscoveredResourceCidrsOverride = getIpamDiscoveredResourceCidrs self.getIpamPoolAllocationsOverride = getIpamPoolAllocations self.getIpamPoolCidrsOverride = getIpamPoolCidrs self.getIpamResourceCidrsOverride = getIpamResourceCidrs @@ -1630,6 +1680,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.getVerifiedAccessGroupPolicyOverride = getVerifiedAccessGroupPolicy self.getVpnConnectionDeviceSampleConfigurationOverride = getVpnConnectionDeviceSampleConfiguration self.getVpnConnectionDeviceTypesOverride = getVpnConnectionDeviceTypes + self.getVpnTunnelReplacementStatusOverride = getVpnTunnelReplacementStatus self.importClientVpnClientCertificateRevocationListOverride = importClientVpnClientCertificateRevocationList self.importImageOverride = importImage self.importInstanceOverride = importInstance @@ -1662,6 +1713,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.modifyIpamOverride = modifyIpam self.modifyIpamPoolOverride = modifyIpamPool self.modifyIpamResourceCidrOverride = modifyIpamResourceCidr + self.modifyIpamResourceDiscoveryOverride = modifyIpamResourceDiscovery self.modifyIpamScopeOverride = modifyIpamScope self.modifyLaunchTemplateOverride = modifyLaunchTemplate self.modifyLocalGatewayRouteOverride = modifyLocalGatewayRoute @@ -1729,6 +1781,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.replaceRouteOverride = replaceRoute self.replaceRouteTableAssociationOverride = replaceRouteTableAssociation self.replaceTransitGatewayRouteOverride = replaceTransitGatewayRoute + self.replaceVpnTunnelOverride = replaceVpnTunnel self.reportInstanceStatusOverride = reportInstanceStatus self.requestSpotFleetOverride = requestSpotFleet self.requestSpotInstancesOverride = requestSpotInstances @@ -1762,6 +1815,7 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt self.terminateInstancesOverride = terminateInstances self.unassignIpv6AddressesOverride = unassignIpv6Addresses self.unassignPrivateIpAddressesOverride = unassignPrivateIpAddresses + self.unassignPrivateNatGatewayAddressOverride = unassignPrivateNatGatewayAddress self.unmonitorInstancesOverride = unmonitorInstances self.updateSecurityGroupRuleDescriptionsEgressOverride = updateSecurityGroupRuleDescriptionsEgress self.updateSecurityGroupRuleDescriptionsIngressOverride = updateSecurityGroupRuleDescriptionsIngress @@ -2006,6 +2060,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the AssignPrivateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func assignPrivateNatGatewayAddress( + input: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult { + if let assignPrivateNatGatewayAddressOverride = assignPrivateNatGatewayAddressOverride { + return try await assignPrivateNatGatewayAddressOverride(input) + } + + throw error + } + /** Invokes the AssociateAddress operation suspending until the response is available before returning. @@ -2106,6 +2177,40 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the AssociateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The AssociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateIpamResourceDiscovery( + input: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult { + if let associateIpamResourceDiscoveryOverride = associateIpamResourceDiscoveryOverride { + return try await associateIpamResourceDiscoveryOverride(input) + } + + throw error + } + + /** + Invokes the AssociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated AssociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The AssociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func associateNatGatewayAddress( + input: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.AssociateNatGatewayAddressResult { + if let associateNatGatewayAddressOverride = associateNatGatewayAddressOverride { + return try await associateNatGatewayAddressOverride(input) + } + + throw error + } + /** Invokes the AssociateRouteTable operation suspending until the response is available before returning. @@ -2899,6 +3004,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the CreateInstanceConnectEndpoint operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The CreateInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createInstanceConnectEndpoint( + input: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.CreateInstanceConnectEndpointResult { + if let createInstanceConnectEndpointOverride = createInstanceConnectEndpointOverride { + return try await createInstanceConnectEndpointOverride(input) + } + + throw error + } + /** Invokes the CreateInstanceEventWindow operation suspending until the response is available before returning. @@ -2984,6 +3106,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the CreateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The CreateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func createIpamResourceDiscovery( + input: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult { + if let createIpamResourceDiscoveryOverride = createIpamResourceDiscoveryOverride { + return try await createIpamResourceDiscoveryOverride(input) + } + + throw error + } + /** Invokes the CreateIpamScope operation suspending until the response is available before returning. @@ -4164,6 +4303,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the DeleteInstanceConnectEndpoint operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteInstanceConnectEndpointRequest object being passed to this operation. + - Returns: The DeleteInstanceConnectEndpointResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteInstanceConnectEndpoint( + input: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest) async throws -> ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult { + if let deleteInstanceConnectEndpointOverride = deleteInstanceConnectEndpointOverride { + return try await deleteInstanceConnectEndpointOverride(input) + } + + throw error + } + /** Invokes the DeleteInstanceEventWindow operation suspending until the response is available before returning. @@ -4230,6 +4386,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the DeleteIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DeleteIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func deleteIpamResourceDiscovery( + input: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult { + if let deleteIpamResourceDiscoveryOverride = deleteIpamResourceDiscoveryOverride { + return try await deleteIpamResourceDiscoveryOverride(input) + } + + throw error + } + /** Invokes the DeleteIpamScope operation suspending until the response is available before returning. @@ -6047,6 +6220,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the DescribeInstanceConnectEndpoints operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeInstanceConnectEndpointsRequest object being passed to this operation. + - Returns: The DescribeInstanceConnectEndpointsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeInstanceConnectEndpoints( + input: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest) async throws -> ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult { + if let describeInstanceConnectEndpointsOverride = describeInstanceConnectEndpointsOverride { + return try await describeInstanceConnectEndpointsOverride(input) + } + + throw error + } + /** Invokes the DescribeInstanceCreditSpecifications operation suspending until the response is available before returning. @@ -6200,6 +6390,40 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the DescribeIpamResourceDiscoveries operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveriesRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveriesResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveries( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult { + if let describeIpamResourceDiscoveriesOverride = describeIpamResourceDiscoveriesOverride { + return try await describeIpamResourceDiscoveriesOverride(input) + } + + throw error + } + + /** + Invokes the DescribeIpamResourceDiscoveryAssociations operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeIpamResourceDiscoveryAssociationsRequest object being passed to this operation. + - Returns: The DescribeIpamResourceDiscoveryAssociationsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func describeIpamResourceDiscoveryAssociations( + input: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest) async throws -> ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult { + if let describeIpamResourceDiscoveryAssociationsOverride = describeIpamResourceDiscoveryAssociationsOverride { + return try await describeIpamResourceDiscoveryAssociationsOverride(input) + } + + throw error + } + /** Invokes the DescribeIpamScopes operation suspending until the response is available before returning. @@ -8077,6 +8301,40 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the DisassociateIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The DisassociateIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateIpamResourceDiscovery( + input: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult { + if let disassociateIpamResourceDiscoveryOverride = disassociateIpamResourceDiscoveryOverride { + return try await disassociateIpamResourceDiscoveryOverride(input) + } + + throw error + } + + /** + Invokes the DisassociateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DisassociateNatGatewayAddressRequest object being passed to this operation. + - Returns: The DisassociateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func disassociateNatGatewayAddress( + input: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.DisassociateNatGatewayAddressResult { + if let disassociateNatGatewayAddressOverride = disassociateNatGatewayAddressOverride { + return try await disassociateNatGatewayAddressOverride(input) + } + + throw error + } + /** Invokes the DisassociateRouteTable operation suspending until the response is available before returning. @@ -8768,6 +9026,40 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the GetIpamDiscoveredAccounts operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredAccountsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredAccountsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredAccounts( + input: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult { + if let getIpamDiscoveredAccountsOverride = getIpamDiscoveredAccountsOverride { + return try await getIpamDiscoveredAccountsOverride(input) + } + + throw error + } + + /** + Invokes the GetIpamDiscoveredResourceCidrs operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetIpamDiscoveredResourceCidrsRequest object being passed to this operation. + - Returns: The GetIpamDiscoveredResourceCidrsResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getIpamDiscoveredResourceCidrs( + input: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest) async throws -> ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult { + if let getIpamDiscoveredResourceCidrsOverride = getIpamDiscoveredResourceCidrsOverride { + return try await getIpamDiscoveredResourceCidrsOverride(input) + } + + throw error + } + /** Invokes the GetIpamPoolAllocations operation suspending until the response is available before returning. @@ -9176,6 +9468,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the GetVpnTunnelReplacementStatus operation suspending until the response is available before returning. + + - Parameters: + - input: The validated GetVpnTunnelReplacementStatusRequest object being passed to this operation. + - Returns: The GetVpnTunnelReplacementStatusResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func getVpnTunnelReplacementStatus( + input: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest) async throws -> ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult { + if let getVpnTunnelReplacementStatusOverride = getVpnTunnelReplacementStatusOverride { + return try await getVpnTunnelReplacementStatusOverride(input) + } + + throw error + } + /** Invokes the ImportClientVpnClientCertificateRevocationList operation suspending until the response is available before returning. @@ -9712,6 +10021,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the ModifyIpamResourceDiscovery operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ModifyIpamResourceDiscoveryRequest object being passed to this operation. + - Returns: The ModifyIpamResourceDiscoveryResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func modifyIpamResourceDiscovery( + input: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest) async throws -> ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult { + if let modifyIpamResourceDiscoveryOverride = modifyIpamResourceDiscoveryOverride { + return try await modifyIpamResourceDiscoveryOverride(input) + } + + throw error + } + /** Invokes the ModifyIpamScope operation suspending until the response is available before returning. @@ -10833,6 +11159,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the ReplaceVpnTunnel operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ReplaceVpnTunnelRequest object being passed to this operation. + - Returns: The ReplaceVpnTunnelResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func replaceVpnTunnel( + input: ElasticComputeCloudModel.ReplaceVpnTunnelRequest) async throws -> ElasticComputeCloudModel.ReplaceVpnTunnelResult { + if let replaceVpnTunnelOverride = replaceVpnTunnelOverride { + return try await replaceVpnTunnelOverride(input) + } + + throw error + } + /** Invokes the ReportInstanceStatus operation suspending until the response is available before returning. @@ -11380,6 +11723,23 @@ public struct ThrowingElasticComputeCloudClientV2: ElasticComputeCloudClientProt throw error } + /** + Invokes the UnassignPrivateNatGatewayAddress operation suspending until the response is available before returning. + + - Parameters: + - input: The validated UnassignPrivateNatGatewayAddressRequest object being passed to this operation. + - Returns: The UnassignPrivateNatGatewayAddressResult object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + */ + public func unassignPrivateNatGatewayAddress( + input: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest) async throws -> ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult { + if let unassignPrivateNatGatewayAddressOverride = unassignPrivateNatGatewayAddressOverride { + return try await unassignPrivateNatGatewayAddressOverride(input) + } + + throw error + } + /** Invokes the UnmonitorInstances operation suspending until the response is available before returning. diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift index 3da3941..dc7f433 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelDefaultInstances.swift @@ -236,7 +236,7 @@ public extension AcceptVpcPeeringConnectionRequest { static let __default: ElasticComputeCloudModel.AcceptVpcPeeringConnectionRequest = { let defaultInstance = ElasticComputeCloudModel.AcceptVpcPeeringConnectionRequest( dryRun: nil, - vpcPeeringConnectionId: nil) + vpcPeeringConnectionId: "value") return defaultInstance }() @@ -384,7 +384,13 @@ public extension AdditionalDetail { static let __default: ElasticComputeCloudModel.AdditionalDetail = { let defaultInstance = ElasticComputeCloudModel.AdditionalDetail( additionalDetailType: nil, - component: nil) + component: nil, + loadBalancers: nil, + ruleGroupRuleOptionsPairs: nil, + ruleGroupTypePairs: nil, + ruleOptions: nil, + serviceName: nil, + vpcEndpointService: nil) return defaultInstance }() @@ -515,14 +521,16 @@ public extension AllocateHostsRequest { */ static let __default: ElasticComputeCloudModel.AllocateHostsRequest = { let defaultInstance = ElasticComputeCloudModel.AllocateHostsRequest( + assetIds: nil, autoPlacement: nil, availabilityZone: "value", clientToken: nil, + hostMaintenance: nil, hostRecovery: nil, instanceFamily: nil, instanceType: nil, outpostArn: nil, - quantity: 0, + quantity: nil, tagSpecifications: nil) return defaultInstance @@ -682,11 +690,14 @@ public extension AnalysisRouteTableRoute { */ static let __default: ElasticComputeCloudModel.AnalysisRouteTableRoute = { let defaultInstance = ElasticComputeCloudModel.AnalysisRouteTableRoute( + carrierGatewayId: nil, + coreNetworkArn: nil, destinationCidr: nil, destinationPrefixListId: nil, egressOnlyInternetGatewayId: nil, gatewayId: nil, instanceId: nil, + localGatewayId: nil, natGatewayId: nil, networkInterfaceId: nil, origin: nil, @@ -803,6 +814,34 @@ public extension AssignPrivateIpAddressesResult { }() } +public extension AssignPrivateNatGatewayAddressRequest { + /** + Default instance of the AssignPrivateNatGatewayAddressRequest structure. + */ + static let __default: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest = { + let defaultInstance = ElasticComputeCloudModel.AssignPrivateNatGatewayAddressRequest( + dryRun: nil, + natGatewayId: "value", + privateIpAddressCount: nil, + privateIpAddresses: nil) + + return defaultInstance + }() +} + +public extension AssignPrivateNatGatewayAddressResult { + /** + Default instance of the AssignPrivateNatGatewayAddressResult structure. + */ + static let __default: ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult = { + let defaultInstance = ElasticComputeCloudModel.AssignPrivateNatGatewayAddressResult( + natGatewayAddresses: nil, + natGatewayId: nil) + + return defaultInstance + }() +} + public extension AssignedPrivateIpAddress { /** Default instance of the AssignedPrivateIpAddress structure. @@ -893,9 +932,9 @@ public extension AssociateEnclaveCertificateIamRoleRequest { */ static let __default: ElasticComputeCloudModel.AssociateEnclaveCertificateIamRoleRequest = { let defaultInstance = ElasticComputeCloudModel.AssociateEnclaveCertificateIamRoleRequest( - certificateArn: nil, + certificateArn: "value", dryRun: nil, - roleArn: nil) + roleArn: "value") return defaultInstance }() @@ -966,6 +1005,62 @@ public extension AssociateInstanceEventWindowResult { }() } +public extension AssociateIpamResourceDiscoveryRequest { + /** + Default instance of the AssociateIpamResourceDiscoveryRequest structure. + */ + static let __default: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest = { + let defaultInstance = ElasticComputeCloudModel.AssociateIpamResourceDiscoveryRequest( + clientToken: nil, + dryRun: nil, + ipamId: "value", + ipamResourceDiscoveryId: "value", + tagSpecifications: nil) + + return defaultInstance + }() +} + +public extension AssociateIpamResourceDiscoveryResult { + /** + Default instance of the AssociateIpamResourceDiscoveryResult structure. + */ + static let __default: ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult = { + let defaultInstance = ElasticComputeCloudModel.AssociateIpamResourceDiscoveryResult( + ipamResourceDiscoveryAssociation: nil) + + return defaultInstance + }() +} + +public extension AssociateNatGatewayAddressRequest { + /** + Default instance of the AssociateNatGatewayAddressRequest structure. + */ + static let __default: ElasticComputeCloudModel.AssociateNatGatewayAddressRequest = { + let defaultInstance = ElasticComputeCloudModel.AssociateNatGatewayAddressRequest( + allocationIds: [], + dryRun: nil, + natGatewayId: "value", + privateIpAddresses: nil) + + return defaultInstance + }() +} + +public extension AssociateNatGatewayAddressResult { + /** + Default instance of the AssociateNatGatewayAddressResult structure. + */ + static let __default: ElasticComputeCloudModel.AssociateNatGatewayAddressResult = { + let defaultInstance = ElasticComputeCloudModel.AssociateNatGatewayAddressResult( + natGatewayAddresses: nil, + natGatewayId: nil) + + return defaultInstance + }() +} + public extension AssociateRouteTableRequest { /** Default instance of the AssociateRouteTableRequest structure. @@ -1027,9 +1122,9 @@ public extension AssociateTransitGatewayMulticastDomainRequest { static let __default: ElasticComputeCloudModel.AssociateTransitGatewayMulticastDomainRequest = { let defaultInstance = ElasticComputeCloudModel.AssociateTransitGatewayMulticastDomainRequest( dryRun: nil, - subnetIds: nil, - transitGatewayAttachmentId: nil, - transitGatewayMulticastDomainId: nil) + subnetIds: [], + transitGatewayAttachmentId: "value", + transitGatewayMulticastDomainId: "value") return defaultInstance }() @@ -2803,6 +2898,7 @@ public extension CpuOptions { */ static let __default: ElasticComputeCloudModel.CpuOptions = { let defaultInstance = ElasticComputeCloudModel.CpuOptions( + amdSevSnp: nil, coreCount: nil, threadsPerCore: nil) @@ -2816,6 +2912,7 @@ public extension CpuOptionsRequest { */ static let __default: ElasticComputeCloudModel.CpuOptionsRequest = { let defaultInstance = ElasticComputeCloudModel.CpuOptionsRequest( + amdSevSnp: nil, coreCount: nil, threadsPerCore: nil) @@ -3061,7 +3158,7 @@ public extension CreateCustomerGatewayRequest { */ static let __default: ElasticComputeCloudModel.CreateCustomerGatewayRequest = { let defaultInstance = ElasticComputeCloudModel.CreateCustomerGatewayRequest( - bgpAsn: 0, + bgpAsn: nil, certificateArn: nil, deviceName: nil, dryRun: nil, @@ -3360,6 +3457,36 @@ public extension CreateImageResult { }() } +public extension CreateInstanceConnectEndpointRequest { + /** + Default instance of the CreateInstanceConnectEndpointRequest structure. + */ + static let __default: ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest = { + let defaultInstance = ElasticComputeCloudModel.CreateInstanceConnectEndpointRequest( + clientToken: nil, + dryRun: nil, + preserveClientIp: nil, + securityGroupIds: nil, + subnetId: "value", + tagSpecifications: nil) + + return defaultInstance + }() +} + +public extension CreateInstanceConnectEndpointResult { + /** + Default instance of the CreateInstanceConnectEndpointResult structure. + */ + static let __default: ElasticComputeCloudModel.CreateInstanceConnectEndpointResult = { + let defaultInstance = ElasticComputeCloudModel.CreateInstanceConnectEndpointResult( + clientToken: nil, + instanceConnectEndpoint: nil) + + return defaultInstance + }() +} + public extension CreateInstanceEventWindowRequest { /** Default instance of the CreateInstanceEventWindowRequest structure. @@ -3459,6 +3586,7 @@ public extension CreateIpamPoolRequest { dryRun: nil, ipamScopeId: "value", locale: nil, + publicIpSource: nil, publiclyAdvertisable: nil, sourceIpamPoolId: nil, tagSpecifications: nil) @@ -3495,6 +3623,34 @@ public extension CreateIpamRequest { }() } +public extension CreateIpamResourceDiscoveryRequest { + /** + Default instance of the CreateIpamResourceDiscoveryRequest structure. + */ + static let __default: ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest = { + let defaultInstance = ElasticComputeCloudModel.CreateIpamResourceDiscoveryRequest( + clientToken: nil, + description: nil, + dryRun: nil, + operatingRegions: nil, + tagSpecifications: nil) + + return defaultInstance + }() +} + +public extension CreateIpamResourceDiscoveryResult { + /** + Default instance of the CreateIpamResourceDiscoveryResult structure. + */ + static let __default: ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult = { + let defaultInstance = ElasticComputeCloudModel.CreateIpamResourceDiscoveryResult( + ipamResourceDiscovery: nil) + + return defaultInstance + }() +} + public extension CreateIpamResult { /** Default instance of the CreateIpamResult structure. @@ -3592,6 +3748,7 @@ public extension CreateLaunchTemplateVersionRequest { launchTemplateData: RequestLaunchTemplateData.__default, launchTemplateId: nil, launchTemplateName: nil, + resolveAlias: nil, sourceVersion: nil, versionDescription: nil) @@ -3618,7 +3775,8 @@ public extension CreateLocalGatewayRouteRequest { */ static let __default: ElasticComputeCloudModel.CreateLocalGatewayRouteRequest = { let defaultInstance = ElasticComputeCloudModel.CreateLocalGatewayRouteRequest( - destinationCidrBlock: "value", + destinationCidrBlock: nil, + destinationPrefixListId: nil, dryRun: nil, localGatewayRouteTableId: "value", localGatewayVirtualInterfaceGroupId: nil, @@ -3762,6 +3920,9 @@ public extension CreateNatGatewayRequest { connectivityType: nil, dryRun: nil, privateIpAddress: nil, + secondaryAllocationIds: nil, + secondaryPrivateIpAddressCount: nil, + secondaryPrivateIpAddresses: nil, subnetId: "value", tagSpecifications: nil) @@ -3865,10 +4026,12 @@ public extension CreateNetworkInsightsPathRequest { static let __default: ElasticComputeCloudModel.CreateNetworkInsightsPathRequest = { let defaultInstance = ElasticComputeCloudModel.CreateNetworkInsightsPathRequest( clientToken: "value", - destination: "value", + destination: nil, destinationIp: nil, destinationPort: nil, dryRun: nil, + filterAtDestination: nil, + filterAtSource: nil, protocol: .__default, source: "value", sourceIp: nil, @@ -5195,7 +5358,7 @@ public extension CreateVpcPeeringConnectionRequest { peerRegion: nil, peerVpcId: nil, tagSpecifications: nil, - vpcId: nil) + vpcId: "value") return defaultInstance }() @@ -5693,6 +5856,31 @@ public extension DeleteFpgaImageResult { }() } +public extension DeleteInstanceConnectEndpointRequest { + /** + Default instance of the DeleteInstanceConnectEndpointRequest structure. + */ + static let __default: ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest = { + let defaultInstance = ElasticComputeCloudModel.DeleteInstanceConnectEndpointRequest( + dryRun: nil, + instanceConnectEndpointId: "value") + + return defaultInstance + }() +} + +public extension DeleteInstanceConnectEndpointResult { + /** + Default instance of the DeleteInstanceConnectEndpointResult structure. + */ + static let __default: ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult = { + let defaultInstance = ElasticComputeCloudModel.DeleteInstanceConnectEndpointResult( + instanceConnectEndpoint: nil) + + return defaultInstance + }() +} + public extension DeleteInstanceEventWindowRequest { /** Default instance of the DeleteInstanceEventWindowRequest structure. @@ -5771,6 +5959,31 @@ public extension DeleteIpamRequest { }() } +public extension DeleteIpamResourceDiscoveryRequest { + /** + Default instance of the DeleteIpamResourceDiscoveryRequest structure. + */ + static let __default: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest = { + let defaultInstance = ElasticComputeCloudModel.DeleteIpamResourceDiscoveryRequest( + dryRun: nil, + ipamResourceDiscoveryId: "value") + + return defaultInstance + }() +} + +public extension DeleteIpamResourceDiscoveryResult { + /** + Default instance of the DeleteIpamResourceDiscoveryResult structure. + */ + static let __default: ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult = { + let defaultInstance = ElasticComputeCloudModel.DeleteIpamResourceDiscoveryResult( + ipamResourceDiscovery: nil) + + return defaultInstance + }() +} + public extension DeleteIpamResult { /** Default instance of the DeleteIpamResult structure. @@ -5911,7 +6124,8 @@ public extension DeleteLocalGatewayRouteRequest { */ static let __default: ElasticComputeCloudModel.DeleteLocalGatewayRouteRequest = { let defaultInstance = ElasticComputeCloudModel.DeleteLocalGatewayRouteRequest( - destinationCidrBlock: "value", + destinationCidrBlock: nil, + destinationPrefixListId: nil, dryRun: nil, localGatewayRouteTableId: "value") @@ -7164,7 +7378,7 @@ public extension DeregisterInstanceEventNotificationAttributesRequest { static let __default: ElasticComputeCloudModel.DeregisterInstanceEventNotificationAttributesRequest = { let defaultInstance = ElasticComputeCloudModel.DeregisterInstanceEventNotificationAttributesRequest( dryRun: nil, - instanceTagAttribute: nil) + instanceTagAttribute: DeregisterInstanceTagAttributeRequest.__default) return defaultInstance }() @@ -8564,6 +8778,35 @@ public extension DescribeInstanceAttributeRequest { }() } +public extension DescribeInstanceConnectEndpointsRequest { + /** + Default instance of the DescribeInstanceConnectEndpointsRequest structure. + */ + static let __default: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest = { + let defaultInstance = ElasticComputeCloudModel.DescribeInstanceConnectEndpointsRequest( + dryRun: nil, + filters: nil, + instanceConnectEndpointIds: nil, + maxResults: nil, + nextToken: nil) + + return defaultInstance + }() +} + +public extension DescribeInstanceConnectEndpointsResult { + /** + Default instance of the DescribeInstanceConnectEndpointsResult structure. + */ + static let __default: ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult = { + let defaultInstance = ElasticComputeCloudModel.DescribeInstanceConnectEndpointsResult( + instanceConnectEndpoints: nil, + nextToken: nil) + + return defaultInstance + }() +} + public extension DescribeInstanceCreditSpecificationsRequest { /** Default instance of the DescribeInstanceCreditSpecificationsRequest structure. @@ -8821,6 +9064,64 @@ public extension DescribeIpamPoolsResult { }() } +public extension DescribeIpamResourceDiscoveriesRequest { + /** + Default instance of the DescribeIpamResourceDiscoveriesRequest structure. + */ + static let __default: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest = { + let defaultInstance = ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesRequest( + dryRun: nil, + filters: nil, + ipamResourceDiscoveryIds: nil, + maxResults: nil, + nextToken: nil) + + return defaultInstance + }() +} + +public extension DescribeIpamResourceDiscoveriesResult { + /** + Default instance of the DescribeIpamResourceDiscoveriesResult structure. + */ + static let __default: ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult = { + let defaultInstance = ElasticComputeCloudModel.DescribeIpamResourceDiscoveriesResult( + ipamResourceDiscoveries: nil, + nextToken: nil) + + return defaultInstance + }() +} + +public extension DescribeIpamResourceDiscoveryAssociationsRequest { + /** + Default instance of the DescribeIpamResourceDiscoveryAssociationsRequest structure. + */ + static let __default: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest = { + let defaultInstance = ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsRequest( + dryRun: nil, + filters: nil, + ipamResourceDiscoveryAssociationIds: nil, + maxResults: nil, + nextToken: nil) + + return defaultInstance + }() +} + +public extension DescribeIpamResourceDiscoveryAssociationsResult { + /** + Default instance of the DescribeIpamResourceDiscoveryAssociationsResult structure. + */ + static let __default: ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult = { + let defaultInstance = ElasticComputeCloudModel.DescribeIpamResourceDiscoveryAssociationsResult( + ipamResourceDiscoveryAssociations: nil, + nextToken: nil) + + return defaultInstance + }() +} + public extension DescribeIpamScopesRequest { /** Default instance of the DescribeIpamScopesRequest structure. @@ -8950,6 +9251,7 @@ public extension DescribeLaunchTemplateVersionsRequest { maxVersion: nil, minVersion: nil, nextToken: nil, + resolveAlias: nil, versions: nil) return defaultInstance @@ -11987,9 +12289,9 @@ public extension DisassociateEnclaveCertificateIamRoleRequest { */ static let __default: ElasticComputeCloudModel.DisassociateEnclaveCertificateIamRoleRequest = { let defaultInstance = ElasticComputeCloudModel.DisassociateEnclaveCertificateIamRoleRequest( - certificateArn: nil, + certificateArn: "value", dryRun: nil, - roleArn: nil) + roleArn: "value") return defaultInstance }() @@ -12057,6 +12359,59 @@ public extension DisassociateInstanceEventWindowResult { }() } +public extension DisassociateIpamResourceDiscoveryRequest { + /** + Default instance of the DisassociateIpamResourceDiscoveryRequest structure. + */ + static let __default: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest = { + let defaultInstance = ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryRequest( + dryRun: nil, + ipamResourceDiscoveryAssociationId: "value") + + return defaultInstance + }() +} + +public extension DisassociateIpamResourceDiscoveryResult { + /** + Default instance of the DisassociateIpamResourceDiscoveryResult structure. + */ + static let __default: ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult = { + let defaultInstance = ElasticComputeCloudModel.DisassociateIpamResourceDiscoveryResult( + ipamResourceDiscoveryAssociation: nil) + + return defaultInstance + }() +} + +public extension DisassociateNatGatewayAddressRequest { + /** + Default instance of the DisassociateNatGatewayAddressRequest structure. + */ + static let __default: ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest = { + let defaultInstance = ElasticComputeCloudModel.DisassociateNatGatewayAddressRequest( + associationIds: [], + dryRun: nil, + maxDrainDurationSeconds: nil, + natGatewayId: "value") + + return defaultInstance + }() +} + +public extension DisassociateNatGatewayAddressResult { + /** + Default instance of the DisassociateNatGatewayAddressResult structure. + */ + static let __default: ElasticComputeCloudModel.DisassociateNatGatewayAddressResult = { + let defaultInstance = ElasticComputeCloudModel.DisassociateNatGatewayAddressResult( + natGatewayAddresses: nil, + natGatewayId: nil) + + return defaultInstance + }() +} + public extension DisassociateRouteTableRequest { /** Default instance of the DisassociateRouteTableRequest structure. @@ -12102,9 +12457,9 @@ public extension DisassociateTransitGatewayMulticastDomainRequest { static let __default: ElasticComputeCloudModel.DisassociateTransitGatewayMulticastDomainRequest = { let defaultInstance = ElasticComputeCloudModel.DisassociateTransitGatewayMulticastDomainRequest( dryRun: nil, - subnetIds: nil, - transitGatewayAttachmentId: nil, - transitGatewayMulticastDomainId: nil) + subnetIds: [], + transitGatewayAttachmentId: "value", + transitGatewayMulticastDomainId: "value") return defaultInstance }() @@ -12316,7 +12671,8 @@ public extension DnsOptions { */ static let __default: ElasticComputeCloudModel.DnsOptions = { let defaultInstance = ElasticComputeCloudModel.DnsOptions( - dnsRecordIpType: nil) + dnsRecordIpType: nil, + privateDnsOnlyForInboundResolverEndpoint: nil) return defaultInstance }() @@ -12328,7 +12684,8 @@ public extension DnsOptionsSpecification { */ static let __default: ElasticComputeCloudModel.DnsOptionsSpecification = { let defaultInstance = ElasticComputeCloudModel.DnsOptionsSpecification( - dnsRecordIpType: nil) + dnsRecordIpType: nil, + privateDnsOnlyForInboundResolverEndpoint: nil) return defaultInstance }() @@ -12427,18 +12784,44 @@ public extension EbsOptimizedInfo { }() } -public extension EfaInfo { +public extension Ec2InstanceConnectEndpoint { /** - Default instance of the EfaInfo structure. + Default instance of the Ec2InstanceConnectEndpoint structure. */ - static let __default: ElasticComputeCloudModel.EfaInfo = { - let defaultInstance = ElasticComputeCloudModel.EfaInfo( - maximumEfaInterfaces: nil) - - return defaultInstance - }() -} - + static let __default: ElasticComputeCloudModel.Ec2InstanceConnectEndpoint = { + let defaultInstance = ElasticComputeCloudModel.Ec2InstanceConnectEndpoint( + availabilityZone: nil, + createdAt: nil, + dnsName: nil, + fipsDnsName: nil, + instanceConnectEndpointArn: nil, + instanceConnectEndpointId: nil, + networkInterfaceIds: nil, + ownerId: nil, + preserveClientIp: nil, + securityGroupIds: nil, + state: nil, + stateMessage: nil, + subnetId: nil, + tags: nil, + vpcId: nil) + + return defaultInstance + }() +} + +public extension EfaInfo { + /** + Default instance of the EfaInfo structure. + */ + static let __default: ElasticComputeCloudModel.EfaInfo = { + let defaultInstance = ElasticComputeCloudModel.EfaInfo( + maximumEfaInterfaces: nil) + + return defaultInstance + }() +} + public extension EgressOnlyInternetGateway { /** Default instance of the EgressOnlyInternetGateway structure. @@ -13041,6 +13424,8 @@ public extension Explanation { direction: nil, elasticLoadBalancerListener: nil, explanationCode: nil, + firewallStatefulRule: nil, + firewallStatelessRule: nil, ingressRouteTable: nil, internetGateway: nil, loadBalancerArn: nil, @@ -13408,6 +13793,57 @@ public extension Filter { }() } +public extension FilterPortRange { + /** + Default instance of the FilterPortRange structure. + */ + static let __default: ElasticComputeCloudModel.FilterPortRange = { + let defaultInstance = ElasticComputeCloudModel.FilterPortRange( + fromPort: nil, + toPort: nil) + + return defaultInstance + }() +} + +public extension FirewallStatefulRule { + /** + Default instance of the FirewallStatefulRule structure. + */ + static let __default: ElasticComputeCloudModel.FirewallStatefulRule = { + let defaultInstance = ElasticComputeCloudModel.FirewallStatefulRule( + destinationPorts: nil, + destinations: nil, + direction: nil, + protocol: nil, + ruleAction: nil, + ruleGroupArn: nil, + sourcePorts: nil, + sources: nil) + + return defaultInstance + }() +} + +public extension FirewallStatelessRule { + /** + Default instance of the FirewallStatelessRule structure. + */ + static let __default: ElasticComputeCloudModel.FirewallStatelessRule = { + let defaultInstance = ElasticComputeCloudModel.FirewallStatelessRule( + destinationPorts: nil, + destinations: nil, + priority: nil, + protocols: nil, + ruleAction: nil, + ruleGroupArn: nil, + sourcePorts: nil, + sources: nil) + + return defaultInstance + }() +} + public extension FleetCapacityReservation { /** Default instance of the FleetCapacityReservation structure. @@ -13735,7 +14171,7 @@ public extension GetAssociatedEnclaveCertificateIamRolesRequest { */ static let __default: ElasticComputeCloudModel.GetAssociatedEnclaveCertificateIamRolesRequest = { let defaultInstance = ElasticComputeCloudModel.GetAssociatedEnclaveCertificateIamRolesRequest( - certificateArn: nil, + certificateArn: "value", dryRun: nil) return defaultInstance @@ -14174,6 +14610,66 @@ public extension GetIpamAddressHistoryResult { }() } +public extension GetIpamDiscoveredAccountsRequest { + /** + Default instance of the GetIpamDiscoveredAccountsRequest structure. + */ + static let __default: ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest = { + let defaultInstance = ElasticComputeCloudModel.GetIpamDiscoveredAccountsRequest( + discoveryRegion: "value", + dryRun: nil, + filters: nil, + ipamResourceDiscoveryId: "value", + maxResults: nil, + nextToken: nil) + + return defaultInstance + }() +} + +public extension GetIpamDiscoveredAccountsResult { + /** + Default instance of the GetIpamDiscoveredAccountsResult structure. + */ + static let __default: ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult = { + let defaultInstance = ElasticComputeCloudModel.GetIpamDiscoveredAccountsResult( + ipamDiscoveredAccounts: nil, + nextToken: nil) + + return defaultInstance + }() +} + +public extension GetIpamDiscoveredResourceCidrsRequest { + /** + Default instance of the GetIpamDiscoveredResourceCidrsRequest structure. + */ + static let __default: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest = { + let defaultInstance = ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsRequest( + dryRun: nil, + filters: nil, + ipamResourceDiscoveryId: "value", + maxResults: nil, + nextToken: nil, + resourceRegion: "value") + + return defaultInstance + }() +} + +public extension GetIpamDiscoveredResourceCidrsResult { + /** + Default instance of the GetIpamDiscoveredResourceCidrsResult structure. + */ + static let __default: ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult = { + let defaultInstance = ElasticComputeCloudModel.GetIpamDiscoveredResourceCidrsResult( + ipamDiscoveredResourceCidrs: nil, + nextToken: nil) + + return defaultInstance + }() +} + public extension GetIpamPoolAllocationsRequest { /** Default instance of the GetIpamPoolAllocationsRequest structure. @@ -14591,7 +15087,7 @@ public extension GetTransitGatewayMulticastDomainAssociationsRequest { filters: nil, maxResults: nil, nextToken: nil, - transitGatewayMulticastDomainId: nil) + transitGatewayMulticastDomainId: "value") return defaultInstance }() @@ -14860,6 +15356,37 @@ public extension GetVpnConnectionDeviceTypesResult { }() } +public extension GetVpnTunnelReplacementStatusRequest { + /** + Default instance of the GetVpnTunnelReplacementStatusRequest structure. + */ + static let __default: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest = { + let defaultInstance = ElasticComputeCloudModel.GetVpnTunnelReplacementStatusRequest( + dryRun: nil, + vpnConnectionId: "value", + vpnTunnelOutsideIpAddress: "value") + + return defaultInstance + }() +} + +public extension GetVpnTunnelReplacementStatusResult { + /** + Default instance of the GetVpnTunnelReplacementStatusResult structure. + */ + static let __default: ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult = { + let defaultInstance = ElasticComputeCloudModel.GetVpnTunnelReplacementStatusResult( + customerGatewayId: nil, + maintenanceDetails: nil, + transitGatewayId: nil, + vpnConnectionId: nil, + vpnGatewayId: nil, + vpnTunnelOutsideIpAddress: nil) + + return defaultInstance + }() +} + public extension GpuDeviceInfo { /** Default instance of the GpuDeviceInfo structure. @@ -14973,12 +15500,14 @@ public extension Host { let defaultInstance = ElasticComputeCloudModel.Host( allocationTime: nil, allowsMultipleInstanceTypes: nil, + assetId: nil, autoPlacement: nil, availabilityZone: nil, availabilityZoneId: nil, availableCapacity: nil, clientToken: nil, hostId: nil, + hostMaintenance: nil, hostProperties: nil, hostRecovery: nil, hostReservationId: nil, @@ -15637,6 +16166,7 @@ public extension Instance { capacityReservationSpecification: nil, clientToken: nil, cpuOptions: nil, + currentInstanceBootMode: nil, ebsOptimized: nil, elasticGpuAssociations: nil, elasticInferenceAcceleratorAssociations: nil, @@ -15793,7 +16323,7 @@ public extension InstanceCreditSpecificationRequest { static let __default: ElasticComputeCloudModel.InstanceCreditSpecificationRequest = { let defaultInstance = ElasticComputeCloudModel.InstanceCreditSpecificationRequest( cpuCredits: nil, - instanceId: nil) + instanceId: "value") return defaultInstance }() @@ -16256,7 +16786,7 @@ public extension InstanceSpecification { let defaultInstance = ElasticComputeCloudModel.InstanceSpecification( excludeBootVolume: nil, excludeDataVolumeIds: nil, - instanceId: nil) + instanceId: "value") return defaultInstance }() @@ -16402,6 +16932,7 @@ public extension InstanceTypeInfo { instanceType: nil, memoryInfo: nil, networkInfo: nil, + nitroEnclavesSupport: nil, placementGroupInfo: nil, processorInfo: nil, supportedBootModes: nil, @@ -16530,6 +17061,8 @@ public extension Ipam { */ static let __default: ElasticComputeCloudModel.Ipam = { let defaultInstance = ElasticComputeCloudModel.Ipam( + defaultResourceDiscoveryAssociationId: nil, + defaultResourceDiscoveryId: nil, description: nil, ipamArn: nil, ipamId: nil, @@ -16538,6 +17071,7 @@ public extension Ipam { ownerId: nil, privateDefaultScopeId: nil, publicDefaultScopeId: nil, + resourceDiscoveryAssociationCount: nil, scopeCount: nil, state: nil, tags: nil) @@ -16581,6 +17115,56 @@ public extension IpamCidrAuthorizationContext { }() } +public extension IpamDiscoveredAccount { + /** + Default instance of the IpamDiscoveredAccount structure. + */ + static let __default: ElasticComputeCloudModel.IpamDiscoveredAccount = { + let defaultInstance = ElasticComputeCloudModel.IpamDiscoveredAccount( + accountId: nil, + discoveryRegion: nil, + failureReason: nil, + lastAttemptedDiscoveryTime: nil, + lastSuccessfulDiscoveryTime: nil) + + return defaultInstance + }() +} + +public extension IpamDiscoveredResourceCidr { + /** + Default instance of the IpamDiscoveredResourceCidr structure. + */ + static let __default: ElasticComputeCloudModel.IpamDiscoveredResourceCidr = { + let defaultInstance = ElasticComputeCloudModel.IpamDiscoveredResourceCidr( + ipUsage: nil, + ipamResourceDiscoveryId: nil, + resourceCidr: nil, + resourceId: nil, + resourceOwnerId: nil, + resourceRegion: nil, + resourceTags: nil, + resourceType: nil, + sampleTime: nil, + vpcId: nil) + + return defaultInstance + }() +} + +public extension IpamDiscoveryFailureReason { + /** + Default instance of the IpamDiscoveryFailureReason structure. + */ + static let __default: ElasticComputeCloudModel.IpamDiscoveryFailureReason = { + let defaultInstance = ElasticComputeCloudModel.IpamDiscoveryFailureReason( + code: nil, + message: nil) + + return defaultInstance + }() +} + public extension IpamOperatingRegion { /** Default instance of the IpamOperatingRegion structure. @@ -16616,6 +17200,7 @@ public extension IpamPool { locale: nil, ownerId: nil, poolDepth: nil, + publicIpSource: nil, publiclyAdvertisable: nil, sourceIpamPoolId: nil, state: nil, @@ -16652,6 +17237,8 @@ public extension IpamPoolCidr { let defaultInstance = ElasticComputeCloudModel.IpamPoolCidr( cidr: nil, failureReason: nil, + ipamPoolCidrId: nil, + netmaskLength: nil, state: nil) return defaultInstance @@ -16697,6 +17284,48 @@ public extension IpamResourceCidr { }() } +public extension IpamResourceDiscovery { + /** + Default instance of the IpamResourceDiscovery structure. + */ + static let __default: ElasticComputeCloudModel.IpamResourceDiscovery = { + let defaultInstance = ElasticComputeCloudModel.IpamResourceDiscovery( + description: nil, + ipamResourceDiscoveryArn: nil, + ipamResourceDiscoveryId: nil, + ipamResourceDiscoveryRegion: nil, + isDefault: nil, + operatingRegions: nil, + ownerId: nil, + state: nil, + tags: nil) + + return defaultInstance + }() +} + +public extension IpamResourceDiscoveryAssociation { + /** + Default instance of the IpamResourceDiscoveryAssociation structure. + */ + static let __default: ElasticComputeCloudModel.IpamResourceDiscoveryAssociation = { + let defaultInstance = ElasticComputeCloudModel.IpamResourceDiscoveryAssociation( + ipamArn: nil, + ipamId: nil, + ipamRegion: nil, + ipamResourceDiscoveryAssociationArn: nil, + ipamResourceDiscoveryAssociationId: nil, + ipamResourceDiscoveryId: nil, + isDefault: nil, + ownerId: nil, + resourceDiscoveryStatus: nil, + state: nil, + tags: nil) + + return defaultInstance + }() +} + public extension IpamResourceTag { /** Default instance of the IpamResourceTag structure. @@ -17064,6 +17693,7 @@ public extension LaunchTemplateCpuOptions { */ static let __default: ElasticComputeCloudModel.LaunchTemplateCpuOptions = { let defaultInstance = ElasticComputeCloudModel.LaunchTemplateCpuOptions( + amdSevSnp: nil, coreCount: nil, threadsPerCore: nil) @@ -17077,6 +17707,7 @@ public extension LaunchTemplateCpuOptionsRequest { */ static let __default: ElasticComputeCloudModel.LaunchTemplateCpuOptionsRequest = { let defaultInstance = ElasticComputeCloudModel.LaunchTemplateCpuOptionsRequest( + amdSevSnp: nil, coreCount: nil, threadsPerCore: nil) @@ -17746,6 +18377,7 @@ public extension LocalGatewayRoute { let defaultInstance = ElasticComputeCloudModel.LocalGatewayRoute( coipPoolId: nil, destinationCidrBlock: nil, + destinationPrefixListId: nil, localGatewayRouteTableArn: nil, localGatewayRouteTableId: nil, localGatewayVirtualInterfaceGroupId: nil, @@ -17853,6 +18485,20 @@ public extension LocalGatewayVirtualInterfaceGroup { }() } +public extension MaintenanceDetails { + /** + Default instance of the MaintenanceDetails structure. + */ + static let __default: ElasticComputeCloudModel.MaintenanceDetails = { + let defaultInstance = ElasticComputeCloudModel.MaintenanceDetails( + lastMaintenanceApplied: nil, + maintenanceAutoAppliedAfter: nil, + pendingMaintenance: nil) + + return defaultInstance + }() +} + public extension ManagedPrefixList { /** Default instance of the ManagedPrefixList structure. @@ -18221,6 +18867,7 @@ public extension ModifyHostsRequest { let defaultInstance = ElasticComputeCloudModel.ModifyHostsRequest( autoPlacement: nil, hostIds: [], + hostMaintenance: nil, hostRecovery: nil, instanceFamily: nil, instanceType: nil) @@ -18279,6 +18926,7 @@ public extension ModifyImageAttributeRequest { description: nil, dryRun: nil, imageId: "value", + imdsSupport: nil, launchPermission: nil, operationType: nil, organizationArns: nil, @@ -18596,6 +19244,34 @@ public extension ModifyIpamResourceCidrResult { }() } +public extension ModifyIpamResourceDiscoveryRequest { + /** + Default instance of the ModifyIpamResourceDiscoveryRequest structure. + */ + static let __default: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest = { + let defaultInstance = ElasticComputeCloudModel.ModifyIpamResourceDiscoveryRequest( + addOperatingRegions: nil, + description: nil, + dryRun: nil, + ipamResourceDiscoveryId: "value", + removeOperatingRegions: nil) + + return defaultInstance + }() +} + +public extension ModifyIpamResourceDiscoveryResult { + /** + Default instance of the ModifyIpamResourceDiscoveryResult structure. + */ + static let __default: ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult = { + let defaultInstance = ElasticComputeCloudModel.ModifyIpamResourceDiscoveryResult( + ipamResourceDiscovery: nil) + + return defaultInstance + }() +} + public extension ModifyIpamResult { /** Default instance of the ModifyIpamResult structure. @@ -18668,7 +19344,8 @@ public extension ModifyLocalGatewayRouteRequest { */ static let __default: ElasticComputeCloudModel.ModifyLocalGatewayRouteRequest = { let defaultInstance = ElasticComputeCloudModel.ModifyLocalGatewayRouteRequest( - destinationCidrBlock: "value", + destinationCidrBlock: nil, + destinationPrefixListId: nil, dryRun: nil, localGatewayRouteTableId: "value", localGatewayVirtualInterfaceGroupId: nil, @@ -18747,7 +19424,7 @@ public extension ModifyPrivateDnsNameOptionsRequest { dryRun: nil, enableResourceNameDnsAAAARecord: nil, enableResourceNameDnsARecord: nil, - instanceId: nil, + instanceId: "value", privateDnsHostnameType: nil) return defaultInstance @@ -19329,7 +20006,13 @@ public extension ModifyVerifiedAccessTrustProviderOidcOptions { */ static let __default: ElasticComputeCloudModel.ModifyVerifiedAccessTrustProviderOidcOptions = { let defaultInstance = ElasticComputeCloudModel.ModifyVerifiedAccessTrustProviderOidcOptions( - scope: nil) + authorizationEndpoint: nil, + clientId: nil, + clientSecret: nil, + issuer: nil, + scope: nil, + tokenEndpoint: nil, + userInfoEndpoint: nil) return defaultInstance }() @@ -19717,6 +20400,7 @@ public extension ModifyVpnTunnelOptionsRequest { static let __default: ElasticComputeCloudModel.ModifyVpnTunnelOptionsRequest = { let defaultInstance = ElasticComputeCloudModel.ModifyVpnTunnelOptionsRequest( dryRun: nil, + skipTunnelReplacement: nil, tunnelOptions: ModifyVpnTunnelOptionsSpecification.__default, vpnConnectionId: "value", vpnTunnelOutsideIpAddress: "value") @@ -19745,6 +20429,7 @@ public extension ModifyVpnTunnelOptionsSpecification { let defaultInstance = ElasticComputeCloudModel.ModifyVpnTunnelOptionsSpecification( dPDTimeoutAction: nil, dPDTimeoutSeconds: nil, + enableTunnelLifecycleControl: nil, iKEVersions: nil, logOptions: nil, phase1DHGroupNumbers: nil, @@ -19900,9 +20585,13 @@ public extension NatGatewayAddress { static let __default: ElasticComputeCloudModel.NatGatewayAddress = { let defaultInstance = ElasticComputeCloudModel.NatGatewayAddress( allocationId: nil, + associationId: nil, + failureMessage: nil, + isPrimary: nil, networkInterfaceId: nil, privateIp: nil, - publicIp: nil) + publicIp: nil, + status: nil) return defaultInstance }() @@ -20113,6 +20802,8 @@ public extension NetworkInsightsPath { destinationArn: nil, destinationIp: nil, destinationPort: nil, + filterAtDestination: nil, + filterAtSource: nil, networkInsightsPathArn: nil, networkInsightsPathId: nil, protocol: nil, @@ -20410,11 +21101,14 @@ public extension PathComponent { destinationVpc: nil, elasticLoadBalancerListener: nil, explanations: nil, + firewallStatefulRule: nil, + firewallStatelessRule: nil, inboundHeader: nil, outboundHeader: nil, routeTableRoute: nil, securityGroupRule: nil, sequenceNumber: nil, + serviceName: nil, sourceVpc: nil, subnet: nil, transitGateway: nil, @@ -20425,6 +21119,36 @@ public extension PathComponent { }() } +public extension PathFilter { + /** + Default instance of the PathFilter structure. + */ + static let __default: ElasticComputeCloudModel.PathFilter = { + let defaultInstance = ElasticComputeCloudModel.PathFilter( + destinationAddress: nil, + destinationPortRange: nil, + sourceAddress: nil, + sourcePortRange: nil) + + return defaultInstance + }() +} + +public extension PathRequestFilter { + /** + Default instance of the PathRequestFilter structure. + */ + static let __default: ElasticComputeCloudModel.PathRequestFilter = { + let defaultInstance = ElasticComputeCloudModel.PathRequestFilter( + destinationAddress: nil, + destinationPortRange: nil, + sourceAddress: nil, + sourcePortRange: nil) + + return defaultInstance + }() +} + public extension PathStatement { /** Default instance of the PathStatement structure. @@ -20951,6 +21675,7 @@ public extension ProcessorInfo { static let __default: ElasticComputeCloudModel.ProcessorInfo = { let defaultInstance = ElasticComputeCloudModel.ProcessorInfo( supportedArchitectures: nil, + supportedFeatures: nil, sustainedClockSpeedInGhz: nil) return defaultInstance @@ -21020,8 +21745,10 @@ public extension ProvisionIpamPoolCidrRequest { let defaultInstance = ElasticComputeCloudModel.ProvisionIpamPoolCidrRequest( cidr: nil, cidrAuthorizationContext: nil, + clientToken: nil, dryRun: nil, - ipamPoolId: "value") + ipamPoolId: "value", + netmaskLength: nil) return defaultInstance }() @@ -21352,7 +22079,7 @@ public extension RegisterInstanceEventNotificationAttributesRequest { static let __default: ElasticComputeCloudModel.RegisterInstanceEventNotificationAttributesRequest = { let defaultInstance = ElasticComputeCloudModel.RegisterInstanceEventNotificationAttributesRequest( dryRun: nil, - instanceTagAttribute: nil) + instanceTagAttribute: RegisterInstanceTagAttributeRequest.__default) return defaultInstance }() @@ -21391,8 +22118,8 @@ public extension RegisterTransitGatewayMulticastGroupMembersRequest { let defaultInstance = ElasticComputeCloudModel.RegisterTransitGatewayMulticastGroupMembersRequest( dryRun: nil, groupIpAddress: nil, - networkInterfaceIds: nil, - transitGatewayMulticastDomainId: nil) + networkInterfaceIds: [], + transitGatewayMulticastDomainId: "value") return defaultInstance }() @@ -21418,8 +22145,8 @@ public extension RegisterTransitGatewayMulticastGroupSourcesRequest { let defaultInstance = ElasticComputeCloudModel.RegisterTransitGatewayMulticastGroupSourcesRequest( dryRun: nil, groupIpAddress: nil, - networkInterfaceIds: nil, - transitGatewayMulticastDomainId: nil) + networkInterfaceIds: [], + transitGatewayMulticastDomainId: "value") return defaultInstance }() @@ -21831,6 +22558,33 @@ public extension ReplaceTransitGatewayRouteResult { }() } +public extension ReplaceVpnTunnelRequest { + /** + Default instance of the ReplaceVpnTunnelRequest structure. + */ + static let __default: ElasticComputeCloudModel.ReplaceVpnTunnelRequest = { + let defaultInstance = ElasticComputeCloudModel.ReplaceVpnTunnelRequest( + applyPendingMaintenance: nil, + dryRun: nil, + vpnConnectionId: "value", + vpnTunnelOutsideIpAddress: "value") + + return defaultInstance + }() +} + +public extension ReplaceVpnTunnelResult { + /** + Default instance of the ReplaceVpnTunnelResult structure. + */ + static let __default: ElasticComputeCloudModel.ReplaceVpnTunnelResult = { + let defaultInstance = ElasticComputeCloudModel.ReplaceVpnTunnelResult( + return: nil) + + return defaultInstance + }() +} + public extension ReportInstanceStatusRequest { /** Default instance of the ReportInstanceStatusRequest structure. @@ -21849,6 +22603,19 @@ public extension ReportInstanceStatusRequest { }() } +public extension RequestFilterPortRange { + /** + Default instance of the RequestFilterPortRange structure. + */ + static let __default: ElasticComputeCloudModel.RequestFilterPortRange = { + let defaultInstance = ElasticComputeCloudModel.RequestFilterPortRange( + fromPort: nil, + toPort: nil) + + return defaultInstance + }() +} + public extension RequestIpamResourceTag { /** Default instance of the RequestIpamResourceTag structure. @@ -22730,6 +23497,45 @@ public extension RouteTableAssociationState { }() } +public extension RuleGroupRuleOptionsPair { + /** + Default instance of the RuleGroupRuleOptionsPair structure. + */ + static let __default: ElasticComputeCloudModel.RuleGroupRuleOptionsPair = { + let defaultInstance = ElasticComputeCloudModel.RuleGroupRuleOptionsPair( + ruleGroupArn: nil, + ruleOptions: nil) + + return defaultInstance + }() +} + +public extension RuleGroupTypePair { + /** + Default instance of the RuleGroupTypePair structure. + */ + static let __default: ElasticComputeCloudModel.RuleGroupTypePair = { + let defaultInstance = ElasticComputeCloudModel.RuleGroupTypePair( + ruleGroupArn: nil, + ruleGroupType: nil) + + return defaultInstance + }() +} + +public extension RuleOption { + /** + Default instance of the RuleOption structure. + */ + static let __default: ElasticComputeCloudModel.RuleOption = { + let defaultInstance = ElasticComputeCloudModel.RuleOption( + keyword: nil, + settings: nil) + + return defaultInstance + }() +} + public extension RunInstancesMonitoringEnabled { /** Default instance of the RunInstancesMonitoringEnabled structure. @@ -23114,7 +23920,7 @@ public extension SearchTransitGatewayMulticastGroupsRequest { filters: nil, maxResults: nil, nextToken: nil, - transitGatewayMulticastDomainId: nil) + transitGatewayMulticastDomainId: "value") return defaultInstance }() @@ -23270,7 +24076,7 @@ public extension SecurityGroupRuleUpdate { static let __default: ElasticComputeCloudModel.SecurityGroupRuleUpdate = { let defaultInstance = ElasticComputeCloudModel.SecurityGroupRuleUpdate( securityGroupRule: nil, - securityGroupRuleId: nil) + securityGroupRuleId: "value") return defaultInstance }() @@ -25254,6 +26060,7 @@ public extension TunnelOption { let defaultInstance = ElasticComputeCloudModel.TunnelOption( dpdTimeoutAction: nil, dpdTimeoutSeconds: nil, + enableTunnelLifecycleControl: nil, ikeVersions: nil, logOptions: nil, outsideIpAddress: nil, @@ -25319,6 +26126,34 @@ public extension UnassignPrivateIpAddressesRequest { }() } +public extension UnassignPrivateNatGatewayAddressRequest { + /** + Default instance of the UnassignPrivateNatGatewayAddressRequest structure. + */ + static let __default: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest = { + let defaultInstance = ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressRequest( + dryRun: nil, + maxDrainDurationSeconds: nil, + natGatewayId: "value", + privateIpAddresses: []) + + return defaultInstance + }() +} + +public extension UnassignPrivateNatGatewayAddressResult { + /** + Default instance of the UnassignPrivateNatGatewayAddressResult structure. + */ + static let __default: ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult = { + let defaultInstance = ElasticComputeCloudModel.UnassignPrivateNatGatewayAddressResult( + natGatewayAddresses: nil, + natGatewayId: nil) + + return defaultInstance + }() +} + public extension UnmonitorInstancesRequest { /** Default instance of the UnmonitorInstancesRequest structure. @@ -25770,7 +26605,9 @@ public extension VerifiedAccessLogOptions { static let __default: ElasticComputeCloudModel.VerifiedAccessLogOptions = { let defaultInstance = ElasticComputeCloudModel.VerifiedAccessLogOptions( cloudWatchLogs: nil, + includeTrustContext: nil, kinesisDataFirehose: nil, + logVersion: nil, s3: nil) return defaultInstance @@ -25815,7 +26652,9 @@ public extension VerifiedAccessLogs { static let __default: ElasticComputeCloudModel.VerifiedAccessLogs = { let defaultInstance = ElasticComputeCloudModel.VerifiedAccessLogs( cloudWatchLogs: nil, + includeTrustContext: nil, kinesisDataFirehose: nil, + logVersion: nil, s3: nil) return defaultInstance @@ -26401,6 +27240,7 @@ public extension VpnTunnelOptionsSpecification { let defaultInstance = ElasticComputeCloudModel.VpnTunnelOptionsSpecification( dPDTimeoutAction: nil, dPDTimeoutSeconds: nil, + enableTunnelLifecycleControl: nil, iKEVersions: nil, logOptions: nil, phase1DHGroupNumbers: nil, diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelOperations.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelOperations.swift index 08bb7a3..c8bbb1a 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelOperations.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelOperations.swift @@ -40,12 +40,15 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case applySecurityGroupsToClientVpnTargetNetwork = "ApplySecurityGroupsToClientVpnTargetNetwork" case assignIpv6Addresses = "AssignIpv6Addresses" case assignPrivateIpAddresses = "AssignPrivateIpAddresses" + case assignPrivateNatGatewayAddress = "AssignPrivateNatGatewayAddress" case associateAddress = "AssociateAddress" case associateClientVpnTargetNetwork = "AssociateClientVpnTargetNetwork" case associateDhcpOptions = "AssociateDhcpOptions" case associateEnclaveCertificateIamRole = "AssociateEnclaveCertificateIamRole" case associateIamInstanceProfile = "AssociateIamInstanceProfile" case associateInstanceEventWindow = "AssociateInstanceEventWindow" + case associateIpamResourceDiscovery = "AssociateIpamResourceDiscovery" + case associateNatGatewayAddress = "AssociateNatGatewayAddress" case associateRouteTable = "AssociateRouteTable" case associateSubnetCidrBlock = "AssociateSubnetCidrBlock" case associateTransitGatewayMulticastDomain = "AssociateTransitGatewayMulticastDomain" @@ -93,11 +96,13 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case createFlowLogs = "CreateFlowLogs" case createFpgaImage = "CreateFpgaImage" case createImage = "CreateImage" + case createInstanceConnectEndpoint = "CreateInstanceConnectEndpoint" case createInstanceEventWindow = "CreateInstanceEventWindow" case createInstanceExportTask = "CreateInstanceExportTask" case createInternetGateway = "CreateInternetGateway" case createIpam = "CreateIpam" case createIpamPool = "CreateIpamPool" + case createIpamResourceDiscovery = "CreateIpamResourceDiscovery" case createIpamScope = "CreateIpamScope" case createKeyPair = "CreateKeyPair" case createLaunchTemplate = "CreateLaunchTemplate" @@ -168,10 +173,12 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case deleteFleets = "DeleteFleets" case deleteFlowLogs = "DeleteFlowLogs" case deleteFpgaImage = "DeleteFpgaImage" + case deleteInstanceConnectEndpoint = "DeleteInstanceConnectEndpoint" case deleteInstanceEventWindow = "DeleteInstanceEventWindow" case deleteInternetGateway = "DeleteInternetGateway" case deleteIpam = "DeleteIpam" case deleteIpamPool = "DeleteIpamPool" + case deleteIpamResourceDiscovery = "DeleteIpamResourceDiscovery" case deleteIpamScope = "DeleteIpamScope" case deleteKeyPair = "DeleteKeyPair" case deleteLaunchTemplate = "DeleteLaunchTemplate" @@ -281,6 +288,7 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case describeImportImageTasks = "DescribeImportImageTasks" case describeImportSnapshotTasks = "DescribeImportSnapshotTasks" case describeInstanceAttribute = "DescribeInstanceAttribute" + case describeInstanceConnectEndpoints = "DescribeInstanceConnectEndpoints" case describeInstanceCreditSpecifications = "DescribeInstanceCreditSpecifications" case describeInstanceEventNotificationAttributes = "DescribeInstanceEventNotificationAttributes" case describeInstanceEventWindows = "DescribeInstanceEventWindows" @@ -290,6 +298,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case describeInstances = "DescribeInstances" case describeInternetGateways = "DescribeInternetGateways" case describeIpamPools = "DescribeIpamPools" + case describeIpamResourceDiscoveries = "DescribeIpamResourceDiscoveries" + case describeIpamResourceDiscoveryAssociations = "DescribeIpamResourceDiscoveryAssociations" case describeIpamScopes = "DescribeIpamScopes" case describeIpams = "DescribeIpams" case describeIpv6Pools = "DescribeIpv6Pools" @@ -401,6 +411,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case disassociateEnclaveCertificateIamRole = "DisassociateEnclaveCertificateIamRole" case disassociateIamInstanceProfile = "DisassociateIamInstanceProfile" case disassociateInstanceEventWindow = "DisassociateInstanceEventWindow" + case disassociateIpamResourceDiscovery = "DisassociateIpamResourceDiscovery" + case disassociateNatGatewayAddress = "DisassociateNatGatewayAddress" case disassociateRouteTable = "DisassociateRouteTable" case disassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock" case disassociateTransitGatewayMulticastDomain = "DisassociateTransitGatewayMulticastDomain" @@ -442,6 +454,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case getInstanceTypesFromInstanceRequirements = "GetInstanceTypesFromInstanceRequirements" case getInstanceUefiData = "GetInstanceUefiData" case getIpamAddressHistory = "GetIpamAddressHistory" + case getIpamDiscoveredAccounts = "GetIpamDiscoveredAccounts" + case getIpamDiscoveredResourceCidrs = "GetIpamDiscoveredResourceCidrs" case getIpamPoolAllocations = "GetIpamPoolAllocations" case getIpamPoolCidrs = "GetIpamPoolCidrs" case getIpamResourceCidrs = "GetIpamResourceCidrs" @@ -466,6 +480,7 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case getVerifiedAccessGroupPolicy = "GetVerifiedAccessGroupPolicy" case getVpnConnectionDeviceSampleConfiguration = "GetVpnConnectionDeviceSampleConfiguration" case getVpnConnectionDeviceTypes = "GetVpnConnectionDeviceTypes" + case getVpnTunnelReplacementStatus = "GetVpnTunnelReplacementStatus" case importClientVpnClientCertificateRevocationList = "ImportClientVpnClientCertificateRevocationList" case importImage = "ImportImage" case importInstance = "ImportInstance" @@ -498,6 +513,7 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case modifyIpam = "ModifyIpam" case modifyIpamPool = "ModifyIpamPool" case modifyIpamResourceCidr = "ModifyIpamResourceCidr" + case modifyIpamResourceDiscovery = "ModifyIpamResourceDiscovery" case modifyIpamScope = "ModifyIpamScope" case modifyLaunchTemplate = "ModifyLaunchTemplate" case modifyLocalGatewayRoute = "ModifyLocalGatewayRoute" @@ -565,6 +581,7 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case replaceRoute = "ReplaceRoute" case replaceRouteTableAssociation = "ReplaceRouteTableAssociation" case replaceTransitGatewayRoute = "ReplaceTransitGatewayRoute" + case replaceVpnTunnel = "ReplaceVpnTunnel" case reportInstanceStatus = "ReportInstanceStatus" case requestSpotFleet = "RequestSpotFleet" case requestSpotInstances = "RequestSpotInstances" @@ -598,6 +615,7 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo case terminateInstances = "TerminateInstances" case unassignIpv6Addresses = "UnassignIpv6Addresses" case unassignPrivateIpAddresses = "UnassignPrivateIpAddresses" + case unassignPrivateNatGatewayAddress = "UnassignPrivateNatGatewayAddress" case unmonitorInstances = "UnmonitorInstances" case updateSecurityGroupRuleDescriptionsEgress = "UpdateSecurityGroupRuleDescriptionsEgress" case updateSecurityGroupRuleDescriptionsIngress = "UpdateSecurityGroupRuleDescriptionsIngress" @@ -637,6 +655,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .assignPrivateIpAddresses: return "/" + case .assignPrivateNatGatewayAddress: + return "/" case .associateAddress: return "/" case .associateClientVpnTargetNetwork: @@ -649,6 +669,10 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .associateInstanceEventWindow: return "/" + case .associateIpamResourceDiscovery: + return "/" + case .associateNatGatewayAddress: + return "/" case .associateRouteTable: return "/" case .associateSubnetCidrBlock: @@ -743,6 +767,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .createImage: return "/" + case .createInstanceConnectEndpoint: + return "/" case .createInstanceEventWindow: return "/" case .createInstanceExportTask: @@ -753,6 +779,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .createIpamPool: return "/" + case .createIpamResourceDiscovery: + return "/" case .createIpamScope: return "/" case .createKeyPair: @@ -893,6 +921,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .deleteFpgaImage: return "/" + case .deleteInstanceConnectEndpoint: + return "/" case .deleteInstanceEventWindow: return "/" case .deleteInternetGateway: @@ -901,6 +931,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .deleteIpamPool: return "/" + case .deleteIpamResourceDiscovery: + return "/" case .deleteIpamScope: return "/" case .deleteKeyPair: @@ -1119,6 +1151,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .describeInstanceAttribute: return "/" + case .describeInstanceConnectEndpoints: + return "/" case .describeInstanceCreditSpecifications: return "/" case .describeInstanceEventNotificationAttributes: @@ -1137,6 +1171,10 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .describeIpamPools: return "/" + case .describeIpamResourceDiscoveries: + return "/" + case .describeIpamResourceDiscoveryAssociations: + return "/" case .describeIpamScopes: return "/" case .describeIpams: @@ -1359,6 +1397,10 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .disassociateInstanceEventWindow: return "/" + case .disassociateIpamResourceDiscovery: + return "/" + case .disassociateNatGatewayAddress: + return "/" case .disassociateRouteTable: return "/" case .disassociateSubnetCidrBlock: @@ -1441,6 +1483,10 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .getIpamAddressHistory: return "/" + case .getIpamDiscoveredAccounts: + return "/" + case .getIpamDiscoveredResourceCidrs: + return "/" case .getIpamPoolAllocations: return "/" case .getIpamPoolCidrs: @@ -1489,6 +1535,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .getVpnConnectionDeviceTypes: return "/" + case .getVpnTunnelReplacementStatus: + return "/" case .importClientVpnClientCertificateRevocationList: return "/" case .importImage: @@ -1553,6 +1601,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .modifyIpamResourceCidr: return "/" + case .modifyIpamResourceDiscovery: + return "/" case .modifyIpamScope: return "/" case .modifyLaunchTemplate: @@ -1687,6 +1737,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .replaceTransitGatewayRoute: return "/" + case .replaceVpnTunnel: + return "/" case .reportInstanceStatus: return "/" case .requestSpotFleet: @@ -1753,6 +1805,8 @@ public enum ElasticComputeCloudModelOperations: String, Hashable, CustomStringCo return "/" case .unassignPrivateIpAddresses: return "/" + case .unassignPrivateNatGatewayAddress: + return "/" case .unmonitorInstances: return "/" case .updateSecurityGroupRuleDescriptionsEgress: diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift index 45306ac..05cb4bb 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelStructures.swift @@ -328,10 +328,10 @@ public struct AcceptVpcEndpointConnectionsResult: Codable, Equatable { public struct AcceptVpcPeeringConnectionRequest: Codable, Equatable { public var dryRun: Boolean? - public var vpcPeeringConnectionId: VpcPeeringConnectionIdWithResolver? + public var vpcPeeringConnectionId: VpcPeeringConnectionIdWithResolver public init(dryRun: Boolean? = nil, - vpcPeeringConnectionId: VpcPeeringConnectionIdWithResolver? = nil) { + vpcPeeringConnectionId: VpcPeeringConnectionIdWithResolver) { self.dryRun = dryRun self.vpcPeeringConnectionId = vpcPeeringConnectionId } @@ -563,20 +563,45 @@ public struct AddedPrincipal: Codable, Equatable { public struct AdditionalDetail: Codable, Equatable { public var additionalDetailType: String? public var component: AnalysisComponent? + public var loadBalancers: AnalysisComponentList? + public var ruleGroupRuleOptionsPairs: RuleGroupRuleOptionsPairList? + public var ruleGroupTypePairs: RuleGroupTypePairList? + public var ruleOptions: RuleOptionList? + public var serviceName: String? + public var vpcEndpointService: AnalysisComponent? public init(additionalDetailType: String? = nil, - component: AnalysisComponent? = nil) { + component: AnalysisComponent? = nil, + loadBalancers: AnalysisComponentList? = nil, + ruleGroupRuleOptionsPairs: RuleGroupRuleOptionsPairList? = nil, + ruleGroupTypePairs: RuleGroupTypePairList? = nil, + ruleOptions: RuleOptionList? = nil, + serviceName: String? = nil, + vpcEndpointService: AnalysisComponent? = nil) { self.additionalDetailType = additionalDetailType self.component = component + self.loadBalancers = loadBalancers + self.ruleGroupRuleOptionsPairs = ruleGroupRuleOptionsPairs + self.ruleGroupTypePairs = ruleGroupTypePairs + self.ruleOptions = ruleOptions + self.serviceName = serviceName + self.vpcEndpointService = vpcEndpointService } enum CodingKeys: String, CodingKey { case additionalDetailType case component + case loadBalancers = "loadBalancerSet" + case ruleGroupRuleOptionsPairs = "ruleGroupRuleOptionsPairSet" + case ruleGroupTypePairs = "ruleGroupTypePairSet" + case ruleOptions = "ruleOptionSet" + case serviceName + case vpcEndpointService } public func validate() throws { try component?.validate() + try vpcEndpointService?.validate() } } @@ -828,28 +853,34 @@ public struct AllocateAddressResult: Codable, Equatable { } public struct AllocateHostsRequest: Codable, Equatable { + public var assetIds: AssetIdList? public var autoPlacement: AutoPlacement? public var availabilityZone: String public var clientToken: String? + public var hostMaintenance: HostMaintenance? public var hostRecovery: HostRecovery? public var instanceFamily: String? public var instanceType: String? public var outpostArn: String? - public var quantity: Integer + public var quantity: Integer? public var tagSpecifications: TagSpecificationList? - public init(autoPlacement: AutoPlacement? = nil, + public init(assetIds: AssetIdList? = nil, + autoPlacement: AutoPlacement? = nil, availabilityZone: String, clientToken: String? = nil, + hostMaintenance: HostMaintenance? = nil, hostRecovery: HostRecovery? = nil, instanceFamily: String? = nil, instanceType: String? = nil, outpostArn: String? = nil, - quantity: Integer, + quantity: Integer? = nil, tagSpecifications: TagSpecificationList? = nil) { + self.assetIds = assetIds self.autoPlacement = autoPlacement self.availabilityZone = availabilityZone self.clientToken = clientToken + self.hostMaintenance = hostMaintenance self.hostRecovery = hostRecovery self.instanceFamily = instanceFamily self.instanceType = instanceType @@ -859,9 +890,11 @@ public struct AllocateHostsRequest: Codable, Equatable { } enum CodingKeys: String, CodingKey { + case assetIds = "AssetId" case autoPlacement case availabilityZone case clientToken + case hostMaintenance = "HostMaintenance" case hostRecovery = "HostRecovery" case instanceFamily = "InstanceFamily" case instanceType @@ -1140,11 +1173,14 @@ public struct AnalysisPacketHeader: Codable, Equatable { } public struct AnalysisRouteTableRoute: Codable, Equatable { + public var carrierGatewayId: String? + public var coreNetworkArn: ResourceArn? public var destinationCidr: String? public var destinationPrefixListId: String? public var egressOnlyInternetGatewayId: String? public var gatewayId: String? public var instanceId: String? + public var localGatewayId: String? public var natGatewayId: String? public var networkInterfaceId: String? public var origin: String? @@ -1152,22 +1188,28 @@ public struct AnalysisRouteTableRoute: Codable, Equatable { public var transitGatewayId: String? public var vpcPeeringConnectionId: String? - public init(destinationCidr: String? = nil, + public init(carrierGatewayId: String? = nil, + coreNetworkArn: ResourceArn? = nil, + destinationCidr: String? = nil, destinationPrefixListId: String? = nil, egressOnlyInternetGatewayId: String? = nil, gatewayId: String? = nil, instanceId: String? = nil, + localGatewayId: String? = nil, natGatewayId: String? = nil, networkInterfaceId: String? = nil, origin: String? = nil, state: String? = nil, transitGatewayId: String? = nil, vpcPeeringConnectionId: String? = nil) { + self.carrierGatewayId = carrierGatewayId + self.coreNetworkArn = coreNetworkArn self.destinationCidr = destinationCidr self.destinationPrefixListId = destinationPrefixListId self.egressOnlyInternetGatewayId = egressOnlyInternetGatewayId self.gatewayId = gatewayId self.instanceId = instanceId + self.localGatewayId = localGatewayId self.natGatewayId = natGatewayId self.networkInterfaceId = networkInterfaceId self.origin = origin @@ -1177,11 +1219,14 @@ public struct AnalysisRouteTableRoute: Codable, Equatable { } enum CodingKeys: String, CodingKey { + case carrierGatewayId + case coreNetworkArn case destinationCidr case destinationPrefixListId case egressOnlyInternetGatewayId case gatewayId case instanceId + case localGatewayId case natGatewayId case networkInterfaceId case origin @@ -1191,6 +1236,7 @@ public struct AnalysisRouteTableRoute: Codable, Equatable { } public func validate() throws { + try coreNetworkArn?.validateAsResourceArn() } } @@ -1384,6 +1430,53 @@ public struct AssignPrivateIpAddressesResult: Codable, Equatable { } } +public struct AssignPrivateNatGatewayAddressRequest: Codable, Equatable { + public var dryRun: Boolean? + public var natGatewayId: NatGatewayId + public var privateIpAddressCount: PrivateIpAddressCount? + public var privateIpAddresses: IpList? + + public init(dryRun: Boolean? = nil, + natGatewayId: NatGatewayId, + privateIpAddressCount: PrivateIpAddressCount? = nil, + privateIpAddresses: IpList? = nil) { + self.dryRun = dryRun + self.natGatewayId = natGatewayId + self.privateIpAddressCount = privateIpAddressCount + self.privateIpAddresses = privateIpAddresses + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case natGatewayId = "NatGatewayId" + case privateIpAddressCount = "PrivateIpAddressCount" + case privateIpAddresses = "PrivateIpAddress" + } + + public func validate() throws { + try privateIpAddressCount?.validateAsPrivateIpAddressCount() + } +} + +public struct AssignPrivateNatGatewayAddressResult: Codable, Equatable { + public var natGatewayAddresses: NatGatewayAddressList? + public var natGatewayId: NatGatewayId? + + public init(natGatewayAddresses: NatGatewayAddressList? = nil, + natGatewayId: NatGatewayId? = nil) { + self.natGatewayAddresses = natGatewayAddresses + self.natGatewayId = natGatewayId + } + + enum CodingKeys: String, CodingKey { + case natGatewayAddresses = "natGatewayAddressSet" + case natGatewayId + } + + public func validate() throws { + } +} + public struct AssignedPrivateIpAddress: Codable, Equatable { public var privateIpAddress: String? @@ -1406,7 +1499,7 @@ public struct AssociateAddressRequest: Codable, Equatable { public var instanceId: InstanceId? public var networkInterfaceId: NetworkInterfaceId? public var privateIpAddress: String? - public var publicIp: String? + public var publicIp: EipAllocationPublicIp? public init(allocationId: AllocationId? = nil, allowReassociation: Boolean? = nil, @@ -1414,7 +1507,7 @@ public struct AssociateAddressRequest: Codable, Equatable { instanceId: InstanceId? = nil, networkInterfaceId: NetworkInterfaceId? = nil, privateIpAddress: String? = nil, - publicIp: String? = nil) { + publicIp: EipAllocationPublicIp? = nil) { self.allocationId = allocationId self.allowReassociation = allowReassociation self.dryRun = dryRun @@ -1524,13 +1617,13 @@ public struct AssociateDhcpOptionsRequest: Codable, Equatable { } public struct AssociateEnclaveCertificateIamRoleRequest: Codable, Equatable { - public var certificateArn: ResourceArn? + public var certificateArn: CertificateId public var dryRun: Boolean? - public var roleArn: ResourceArn? + public var roleArn: RoleId - public init(certificateArn: ResourceArn? = nil, + public init(certificateArn: CertificateId, dryRun: Boolean? = nil, - roleArn: ResourceArn? = nil) { + roleArn: RoleId) { self.certificateArn = certificateArn self.dryRun = dryRun self.roleArn = roleArn @@ -1543,8 +1636,6 @@ public struct AssociateEnclaveCertificateIamRoleRequest: Codable, Equatable { } public func validate() throws { - try certificateArn?.validateAsResourceArn() - try roleArn?.validateAsResourceArn() } } @@ -1647,6 +1738,99 @@ public struct AssociateInstanceEventWindowResult: Codable, Equatable { } } +public struct AssociateIpamResourceDiscoveryRequest: Codable, Equatable { + public var clientToken: String? + public var dryRun: Boolean? + public var ipamId: IpamId + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId + public var tagSpecifications: TagSpecificationList? + + public init(clientToken: String? = nil, + dryRun: Boolean? = nil, + ipamId: IpamId, + ipamResourceDiscoveryId: IpamResourceDiscoveryId, + tagSpecifications: TagSpecificationList? = nil) { + self.clientToken = clientToken + self.dryRun = dryRun + self.ipamId = ipamId + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.tagSpecifications = tagSpecifications + } + + enum CodingKeys: String, CodingKey { + case clientToken = "ClientToken" + case dryRun = "DryRun" + case ipamId = "IpamId" + case ipamResourceDiscoveryId = "IpamResourceDiscoveryId" + case tagSpecifications = "TagSpecification" + } + + public func validate() throws { + } +} + +public struct AssociateIpamResourceDiscoveryResult: Codable, Equatable { + public var ipamResourceDiscoveryAssociation: IpamResourceDiscoveryAssociation? + + public init(ipamResourceDiscoveryAssociation: IpamResourceDiscoveryAssociation? = nil) { + self.ipamResourceDiscoveryAssociation = ipamResourceDiscoveryAssociation + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscoveryAssociation + } + + public func validate() throws { + try ipamResourceDiscoveryAssociation?.validate() + } +} + +public struct AssociateNatGatewayAddressRequest: Codable, Equatable { + public var allocationIds: AllocationIdList + public var dryRun: Boolean? + public var natGatewayId: NatGatewayId + public var privateIpAddresses: IpList? + + public init(allocationIds: AllocationIdList, + dryRun: Boolean? = nil, + natGatewayId: NatGatewayId, + privateIpAddresses: IpList? = nil) { + self.allocationIds = allocationIds + self.dryRun = dryRun + self.natGatewayId = natGatewayId + self.privateIpAddresses = privateIpAddresses + } + + enum CodingKeys: String, CodingKey { + case allocationIds = "AllocationId" + case dryRun = "DryRun" + case natGatewayId = "NatGatewayId" + case privateIpAddresses = "PrivateIpAddress" + } + + public func validate() throws { + } +} + +public struct AssociateNatGatewayAddressResult: Codable, Equatable { + public var natGatewayAddresses: NatGatewayAddressList? + public var natGatewayId: NatGatewayId? + + public init(natGatewayAddresses: NatGatewayAddressList? = nil, + natGatewayId: NatGatewayId? = nil) { + self.natGatewayAddresses = natGatewayAddresses + self.natGatewayId = natGatewayId + } + + enum CodingKeys: String, CodingKey { + case natGatewayAddresses = "natGatewayAddressSet" + case natGatewayId + } + + public func validate() throws { + } +} + public struct AssociateRouteTableRequest: Codable, Equatable { public var dryRun: Boolean? public var gatewayId: RouteGatewayId? @@ -1735,14 +1919,14 @@ public struct AssociateSubnetCidrBlockResult: Codable, Equatable { public struct AssociateTransitGatewayMulticastDomainRequest: Codable, Equatable { public var dryRun: Boolean? - public var subnetIds: TransitGatewaySubnetIdList? - public var transitGatewayAttachmentId: TransitGatewayAttachmentId? - public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? + public var subnetIds: TransitGatewaySubnetIdList + public var transitGatewayAttachmentId: TransitGatewayAttachmentId + public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId public init(dryRun: Boolean? = nil, - subnetIds: TransitGatewaySubnetIdList? = nil, - transitGatewayAttachmentId: TransitGatewayAttachmentId? = nil, - transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? = nil) { + subnetIds: TransitGatewaySubnetIdList, + transitGatewayAttachmentId: TransitGatewayAttachmentId, + transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId) { self.dryRun = dryRun self.subnetIds = subnetIds self.transitGatewayAttachmentId = transitGatewayAttachmentId @@ -4761,7 +4945,7 @@ public struct CopySnapshotRequest: Codable, Equatable { public var dryRun: Boolean? public var encrypted: Boolean? public var kmsKeyId: KmsKeyId? - public var presignedUrl: String? + public var presignedUrl: CopySnapshotRequestPSU? public var sourceRegion: String public var sourceSnapshotId: String public var tagSpecifications: TagSpecificationList? @@ -4772,7 +4956,7 @@ public struct CopySnapshotRequest: Codable, Equatable { dryRun: Boolean? = nil, encrypted: Boolean? = nil, kmsKeyId: KmsKeyId? = nil, - presignedUrl: String? = nil, + presignedUrl: CopySnapshotRequestPSU? = nil, sourceRegion: String, sourceSnapshotId: String, tagSpecifications: TagSpecificationList? = nil) { @@ -4825,16 +5009,20 @@ public struct CopySnapshotResult: Codable, Equatable { } public struct CpuOptions: Codable, Equatable { + public var amdSevSnp: AmdSevSnpSpecification? public var coreCount: Integer? public var threadsPerCore: Integer? - public init(coreCount: Integer? = nil, + public init(amdSevSnp: AmdSevSnpSpecification? = nil, + coreCount: Integer? = nil, threadsPerCore: Integer? = nil) { + self.amdSevSnp = amdSevSnp self.coreCount = coreCount self.threadsPerCore = threadsPerCore } enum CodingKeys: String, CodingKey { + case amdSevSnp case coreCount case threadsPerCore } @@ -4844,16 +5032,20 @@ public struct CpuOptions: Codable, Equatable { } public struct CpuOptionsRequest: Codable, Equatable { + public var amdSevSnp: AmdSevSnpSpecification? public var coreCount: Integer? public var threadsPerCore: Integer? - public init(coreCount: Integer? = nil, + public init(amdSevSnp: AmdSevSnpSpecification? = nil, + coreCount: Integer? = nil, threadsPerCore: Integer? = nil) { + self.amdSevSnp = amdSevSnp self.coreCount = coreCount self.threadsPerCore = threadsPerCore } enum CodingKeys: String, CodingKey { + case amdSevSnp = "AmdSevSnp" case coreCount = "CoreCount" case threadsPerCore = "ThreadsPerCore" } @@ -4965,8 +5157,8 @@ public struct CreateCapacityReservationFleetResult: Codable, Equatable { } public struct CreateCapacityReservationRequest: Codable, Equatable { - public var availabilityZone: String? - public var availabilityZoneId: String? + public var availabilityZone: AvailabilityZoneName? + public var availabilityZoneId: AvailabilityZoneId? public var clientToken: String? public var dryRun: Boolean? public var ebsOptimized: Boolean? @@ -4982,8 +5174,8 @@ public struct CreateCapacityReservationRequest: Codable, Equatable { public var tagSpecifications: TagSpecificationList? public var tenancy: CapacityReservationTenancy? - public init(availabilityZone: String? = nil, - availabilityZoneId: String? = nil, + public init(availabilityZone: AvailabilityZoneName? = nil, + availabilityZoneId: AvailabilityZoneId? = nil, clientToken: String? = nil, dryRun: Boolean? = nil, ebsOptimized: Boolean? = nil, @@ -5340,7 +5532,7 @@ public struct CreateCoipPoolResult: Codable, Equatable { } public struct CreateCustomerGatewayRequest: Codable, Equatable { - public var bgpAsn: Integer + public var bgpAsn: Integer? public var certificateArn: String? public var deviceName: String? public var dryRun: Boolean? @@ -5349,7 +5541,7 @@ public struct CreateCustomerGatewayRequest: Codable, Equatable { public var tagSpecifications: TagSpecificationList? public var type: GatewayType - public init(bgpAsn: Integer, + public init(bgpAsn: Integer? = nil, certificateArn: String? = nil, deviceName: String? = nil, dryRun: Boolean? = nil, @@ -5913,6 +6105,62 @@ public struct CreateImageResult: Codable, Equatable { } } +public struct CreateInstanceConnectEndpointRequest: Codable, Equatable { + public var clientToken: String? + public var dryRun: Boolean? + public var preserveClientIp: Boolean? + public var securityGroupIds: SecurityGroupIdStringListRequest? + public var subnetId: SubnetId + public var tagSpecifications: TagSpecificationList? + + public init(clientToken: String? = nil, + dryRun: Boolean? = nil, + preserveClientIp: Boolean? = nil, + securityGroupIds: SecurityGroupIdStringListRequest? = nil, + subnetId: SubnetId, + tagSpecifications: TagSpecificationList? = nil) { + self.clientToken = clientToken + self.dryRun = dryRun + self.preserveClientIp = preserveClientIp + self.securityGroupIds = securityGroupIds + self.subnetId = subnetId + self.tagSpecifications = tagSpecifications + } + + enum CodingKeys: String, CodingKey { + case clientToken = "ClientToken" + case dryRun = "DryRun" + case preserveClientIp = "PreserveClientIp" + case securityGroupIds = "SecurityGroupId" + case subnetId = "SubnetId" + case tagSpecifications = "TagSpecification" + } + + public func validate() throws { + try securityGroupIds?.validateAsSecurityGroupIdStringListRequest() + } +} + +public struct CreateInstanceConnectEndpointResult: Codable, Equatable { + public var clientToken: String? + public var instanceConnectEndpoint: Ec2InstanceConnectEndpoint? + + public init(clientToken: String? = nil, + instanceConnectEndpoint: Ec2InstanceConnectEndpoint? = nil) { + self.clientToken = clientToken + self.instanceConnectEndpoint = instanceConnectEndpoint + } + + enum CodingKeys: String, CodingKey { + case clientToken + case instanceConnectEndpoint + } + + public func validate() throws { + try instanceConnectEndpoint?.validate() + } +} + public struct CreateInstanceEventWindowRequest: Codable, Equatable { public var cronExpression: InstanceEventWindowCronExpression? public var dryRun: Boolean? @@ -6056,6 +6304,7 @@ public struct CreateIpamPoolRequest: Codable, Equatable { public var dryRun: Boolean? public var ipamScopeId: IpamScopeId public var locale: String? + public var publicIpSource: IpamPoolPublicIpSource? public var publiclyAdvertisable: Boolean? public var sourceIpamPoolId: IpamPoolId? public var tagSpecifications: TagSpecificationList? @@ -6072,6 +6321,7 @@ public struct CreateIpamPoolRequest: Codable, Equatable { dryRun: Boolean? = nil, ipamScopeId: IpamScopeId, locale: String? = nil, + publicIpSource: IpamPoolPublicIpSource? = nil, publiclyAdvertisable: Boolean? = nil, sourceIpamPoolId: IpamPoolId? = nil, tagSpecifications: TagSpecificationList? = nil) { @@ -6087,6 +6337,7 @@ public struct CreateIpamPoolRequest: Codable, Equatable { self.dryRun = dryRun self.ipamScopeId = ipamScopeId self.locale = locale + self.publicIpSource = publicIpSource self.publiclyAdvertisable = publiclyAdvertisable self.sourceIpamPoolId = sourceIpamPoolId self.tagSpecifications = tagSpecifications @@ -6105,6 +6356,7 @@ public struct CreateIpamPoolRequest: Codable, Equatable { case dryRun = "DryRun" case ipamScopeId = "IpamScopeId" case locale = "Locale" + case publicIpSource = "PublicIpSource" case publiclyAdvertisable = "PubliclyAdvertisable" case sourceIpamPoolId = "SourceIpamPoolId" case tagSpecifications = "TagSpecification" @@ -6165,6 +6417,54 @@ public struct CreateIpamRequest: Codable, Equatable { } } +public struct CreateIpamResourceDiscoveryRequest: Codable, Equatable { + public var clientToken: String? + public var description: String? + public var dryRun: Boolean? + public var operatingRegions: AddIpamOperatingRegionSet? + public var tagSpecifications: TagSpecificationList? + + public init(clientToken: String? = nil, + description: String? = nil, + dryRun: Boolean? = nil, + operatingRegions: AddIpamOperatingRegionSet? = nil, + tagSpecifications: TagSpecificationList? = nil) { + self.clientToken = clientToken + self.description = description + self.dryRun = dryRun + self.operatingRegions = operatingRegions + self.tagSpecifications = tagSpecifications + } + + enum CodingKeys: String, CodingKey { + case clientToken = "ClientToken" + case description = "Description" + case dryRun = "DryRun" + case operatingRegions = "OperatingRegion" + case tagSpecifications = "TagSpecification" + } + + public func validate() throws { + try operatingRegions?.validateAsAddIpamOperatingRegionSet() + } +} + +public struct CreateIpamResourceDiscoveryResult: Codable, Equatable { + public var ipamResourceDiscovery: IpamResourceDiscovery? + + public init(ipamResourceDiscovery: IpamResourceDiscovery? = nil) { + self.ipamResourceDiscovery = ipamResourceDiscovery + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscovery + } + + public func validate() throws { + try ipamResourceDiscovery?.validate() + } +} + public struct CreateIpamResult: Codable, Equatable { public var ipam: Ipam? @@ -6324,6 +6624,7 @@ public struct CreateLaunchTemplateVersionRequest: Codable, Equatable { public var launchTemplateData: RequestLaunchTemplateData public var launchTemplateId: LaunchTemplateId? public var launchTemplateName: LaunchTemplateName? + public var resolveAlias: Boolean? public var sourceVersion: String? public var versionDescription: VersionDescription? @@ -6332,6 +6633,7 @@ public struct CreateLaunchTemplateVersionRequest: Codable, Equatable { launchTemplateData: RequestLaunchTemplateData, launchTemplateId: LaunchTemplateId? = nil, launchTemplateName: LaunchTemplateName? = nil, + resolveAlias: Boolean? = nil, sourceVersion: String? = nil, versionDescription: VersionDescription? = nil) { self.clientToken = clientToken @@ -6339,6 +6641,7 @@ public struct CreateLaunchTemplateVersionRequest: Codable, Equatable { self.launchTemplateData = launchTemplateData self.launchTemplateId = launchTemplateId self.launchTemplateName = launchTemplateName + self.resolveAlias = resolveAlias self.sourceVersion = sourceVersion self.versionDescription = versionDescription } @@ -6349,6 +6652,7 @@ public struct CreateLaunchTemplateVersionRequest: Codable, Equatable { case launchTemplateData = "LaunchTemplateData" case launchTemplateId = "LaunchTemplateId" case launchTemplateName = "LaunchTemplateName" + case resolveAlias = "ResolveAlias" case sourceVersion = "SourceVersion" case versionDescription = "VersionDescription" } @@ -6382,18 +6686,21 @@ public struct CreateLaunchTemplateVersionResult: Codable, Equatable { } public struct CreateLocalGatewayRouteRequest: Codable, Equatable { - public var destinationCidrBlock: String + public var destinationCidrBlock: String? + public var destinationPrefixListId: PrefixListResourceId? public var dryRun: Boolean? public var localGatewayRouteTableId: LocalGatewayRoutetableId public var localGatewayVirtualInterfaceGroupId: LocalGatewayVirtualInterfaceGroupId? public var networkInterfaceId: NetworkInterfaceId? - public init(destinationCidrBlock: String, + public init(destinationCidrBlock: String? = nil, + destinationPrefixListId: PrefixListResourceId? = nil, dryRun: Boolean? = nil, localGatewayRouteTableId: LocalGatewayRoutetableId, localGatewayVirtualInterfaceGroupId: LocalGatewayVirtualInterfaceGroupId? = nil, networkInterfaceId: NetworkInterfaceId? = nil) { self.destinationCidrBlock = destinationCidrBlock + self.destinationPrefixListId = destinationPrefixListId self.dryRun = dryRun self.localGatewayRouteTableId = localGatewayRouteTableId self.localGatewayVirtualInterfaceGroupId = localGatewayVirtualInterfaceGroupId @@ -6402,6 +6709,7 @@ public struct CreateLocalGatewayRouteRequest: Codable, Equatable { enum CodingKeys: String, CodingKey { case destinationCidrBlock = "DestinationCidrBlock" + case destinationPrefixListId = "DestinationPrefixListId" case dryRun = "DryRun" case localGatewayRouteTableId = "LocalGatewayRouteTableId" case localGatewayVirtualInterfaceGroupId = "LocalGatewayVirtualInterfaceGroupId" @@ -6619,6 +6927,9 @@ public struct CreateNatGatewayRequest: Codable, Equatable { public var connectivityType: ConnectivityType? public var dryRun: Boolean? public var privateIpAddress: String? + public var secondaryAllocationIds: AllocationIdList? + public var secondaryPrivateIpAddressCount: PrivateIpAddressCount? + public var secondaryPrivateIpAddresses: IpList? public var subnetId: SubnetId public var tagSpecifications: TagSpecificationList? @@ -6627,6 +6938,9 @@ public struct CreateNatGatewayRequest: Codable, Equatable { connectivityType: ConnectivityType? = nil, dryRun: Boolean? = nil, privateIpAddress: String? = nil, + secondaryAllocationIds: AllocationIdList? = nil, + secondaryPrivateIpAddressCount: PrivateIpAddressCount? = nil, + secondaryPrivateIpAddresses: IpList? = nil, subnetId: SubnetId, tagSpecifications: TagSpecificationList? = nil) { self.allocationId = allocationId @@ -6634,6 +6948,9 @@ public struct CreateNatGatewayRequest: Codable, Equatable { self.connectivityType = connectivityType self.dryRun = dryRun self.privateIpAddress = privateIpAddress + self.secondaryAllocationIds = secondaryAllocationIds + self.secondaryPrivateIpAddressCount = secondaryPrivateIpAddressCount + self.secondaryPrivateIpAddresses = secondaryPrivateIpAddresses self.subnetId = subnetId self.tagSpecifications = tagSpecifications } @@ -6644,11 +6961,15 @@ public struct CreateNatGatewayRequest: Codable, Equatable { case connectivityType = "ConnectivityType" case dryRun = "DryRun" case privateIpAddress = "PrivateIpAddress" + case secondaryAllocationIds = "SecondaryAllocationId" + case secondaryPrivateIpAddressCount = "SecondaryPrivateIpAddressCount" + case secondaryPrivateIpAddresses = "SecondaryPrivateIpAddress" case subnetId = "SubnetId" case tagSpecifications = "TagSpecification" } public func validate() throws { + try secondaryPrivateIpAddressCount?.validateAsPrivateIpAddressCount() } } @@ -6818,20 +7139,24 @@ public struct CreateNetworkInsightsAccessScopeResult: Codable, Equatable { public struct CreateNetworkInsightsPathRequest: Codable, Equatable { public var clientToken: String - public var destination: NetworkInsightsResourceId + public var destination: NetworkInsightsResourceId? public var destinationIp: IpAddress? public var destinationPort: Port? public var dryRun: Boolean? + public var filterAtDestination: PathRequestFilter? + public var filterAtSource: PathRequestFilter? public var `protocol`: Protocol public var source: NetworkInsightsResourceId public var sourceIp: IpAddress? public var tagSpecifications: TagSpecificationList? public init(clientToken: String, - destination: NetworkInsightsResourceId, + destination: NetworkInsightsResourceId? = nil, destinationIp: IpAddress? = nil, destinationPort: Port? = nil, dryRun: Boolean? = nil, + filterAtDestination: PathRequestFilter? = nil, + filterAtSource: PathRequestFilter? = nil, `protocol`: Protocol, source: NetworkInsightsResourceId, sourceIp: IpAddress? = nil, @@ -6841,6 +7166,8 @@ public struct CreateNetworkInsightsPathRequest: Codable, Equatable { self.destinationIp = destinationIp self.destinationPort = destinationPort self.dryRun = dryRun + self.filterAtDestination = filterAtDestination + self.filterAtSource = filterAtSource self.`protocol` = `protocol` self.source = source self.sourceIp = sourceIp @@ -6853,6 +7180,8 @@ public struct CreateNetworkInsightsPathRequest: Codable, Equatable { case destinationIp = "DestinationIp" case destinationPort = "DestinationPort" case dryRun = "DryRun" + case filterAtDestination = "FilterAtDestination" + case filterAtSource = "FilterAtSource" case `protocol` = "Protocol" case source = "Source" case sourceIp = "SourceIp" @@ -6862,6 +7191,8 @@ public struct CreateNetworkInsightsPathRequest: Codable, Equatable { public func validate() throws { try destinationIp?.validateAsIpAddress() try destinationPort?.validateAsPort() + try filterAtDestination?.validate() + try filterAtSource?.validate() try sourceIp?.validateAsIpAddress() } } @@ -8825,7 +9156,7 @@ public struct CreateVerifiedAccessTrustProviderDeviceOptions: Codable, Equatable public struct CreateVerifiedAccessTrustProviderOidcOptions: Codable, Equatable { public var authorizationEndpoint: String? public var clientId: String? - public var clientSecret: String? + public var clientSecret: ClientSecretType? public var issuer: String? public var scope: String? public var tokenEndpoint: String? @@ -8833,7 +9164,7 @@ public struct CreateVerifiedAccessTrustProviderOidcOptions: Codable, Equatable { public init(authorizationEndpoint: String? = nil, clientId: String? = nil, - clientSecret: String? = nil, + clientSecret: ClientSecretType? = nil, issuer: String? = nil, scope: String? = nil, tokenEndpoint: String? = nil, @@ -8969,7 +9300,7 @@ public struct CreateVolumePermissionModifications: Codable, Equatable { } public struct CreateVolumeRequest: Codable, Equatable { - public var availabilityZone: String + public var availabilityZone: AvailabilityZoneName public var clientToken: String? public var dryRun: Boolean? public var encrypted: Boolean? @@ -8983,7 +9314,7 @@ public struct CreateVolumeRequest: Codable, Equatable { public var throughput: Integer? public var volumeType: VolumeType? - public init(availabilityZone: String, + public init(availabilityZone: AvailabilityZoneName, clientToken: String? = nil, dryRun: Boolean? = nil, encrypted: Boolean? = nil, @@ -9239,14 +9570,14 @@ public struct CreateVpcPeeringConnectionRequest: Codable, Equatable { public var peerRegion: String? public var peerVpcId: String? public var tagSpecifications: TagSpecificationList? - public var vpcId: VpcId? + public var vpcId: VpcId public init(dryRun: Boolean? = nil, peerOwnerId: String? = nil, peerRegion: String? = nil, peerVpcId: String? = nil, tagSpecifications: TagSpecificationList? = nil, - vpcId: VpcId? = nil) { + vpcId: VpcId) { self.dryRun = dryRun self.peerOwnerId = peerOwnerId self.peerRegion = peerRegion @@ -10059,6 +10390,41 @@ public struct DeleteFpgaImageResult: Codable, Equatable { } } +public struct DeleteInstanceConnectEndpointRequest: Codable, Equatable { + public var dryRun: Boolean? + public var instanceConnectEndpointId: InstanceConnectEndpointId + + public init(dryRun: Boolean? = nil, + instanceConnectEndpointId: InstanceConnectEndpointId) { + self.dryRun = dryRun + self.instanceConnectEndpointId = instanceConnectEndpointId + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case instanceConnectEndpointId = "InstanceConnectEndpointId" + } + + public func validate() throws { + } +} + +public struct DeleteInstanceConnectEndpointResult: Codable, Equatable { + public var instanceConnectEndpoint: Ec2InstanceConnectEndpoint? + + public init(instanceConnectEndpoint: Ec2InstanceConnectEndpoint? = nil) { + self.instanceConnectEndpoint = instanceConnectEndpoint + } + + enum CodingKeys: String, CodingKey { + case instanceConnectEndpoint + } + + public func validate() throws { + try instanceConnectEndpoint?.validate() + } +} + public struct DeleteInstanceEventWindowRequest: Codable, Equatable { public var dryRun: Boolean? public var forceDelete: Boolean? @@ -10175,6 +10541,41 @@ public struct DeleteIpamRequest: Codable, Equatable { } } +public struct DeleteIpamResourceDiscoveryRequest: Codable, Equatable { + public var dryRun: Boolean? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId + + public init(dryRun: Boolean? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId) { + self.dryRun = dryRun + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case ipamResourceDiscoveryId = "IpamResourceDiscoveryId" + } + + public func validate() throws { + } +} + +public struct DeleteIpamResourceDiscoveryResult: Codable, Equatable { + public var ipamResourceDiscovery: IpamResourceDiscovery? + + public init(ipamResourceDiscovery: IpamResourceDiscovery? = nil) { + self.ipamResourceDiscovery = ipamResourceDiscovery + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscovery + } + + public func validate() throws { + try ipamResourceDiscovery?.validate() + } +} + public struct DeleteIpamResult: Codable, Equatable { public var ipam: Ipam? @@ -10388,20 +10789,24 @@ public struct DeleteLaunchTemplateVersionsResult: Codable, Equatable { } public struct DeleteLocalGatewayRouteRequest: Codable, Equatable { - public var destinationCidrBlock: String + public var destinationCidrBlock: String? + public var destinationPrefixListId: PrefixListResourceId? public var dryRun: Boolean? public var localGatewayRouteTableId: LocalGatewayRoutetableId - public init(destinationCidrBlock: String, + public init(destinationCidrBlock: String? = nil, + destinationPrefixListId: PrefixListResourceId? = nil, dryRun: Boolean? = nil, localGatewayRouteTableId: LocalGatewayRoutetableId) { self.destinationCidrBlock = destinationCidrBlock + self.destinationPrefixListId = destinationPrefixListId self.dryRun = dryRun self.localGatewayRouteTableId = localGatewayRouteTableId } enum CodingKeys: String, CodingKey { case destinationCidrBlock = "DestinationCidrBlock" + case destinationPrefixListId = "DestinationPrefixListId" case dryRun = "DryRun" case localGatewayRouteTableId = "LocalGatewayRouteTableId" } @@ -11170,10 +11575,10 @@ public struct DeleteTrafficMirrorFilterResult: Codable, Equatable { public struct DeleteTrafficMirrorFilterRuleRequest: Codable, Equatable { public var dryRun: Boolean? - public var trafficMirrorFilterRuleId: TrafficMirrorFilterRuleId + public var trafficMirrorFilterRuleId: TrafficMirrorFilterRuleIdWithResolver public init(dryRun: Boolean? = nil, - trafficMirrorFilterRuleId: TrafficMirrorFilterRuleId) { + trafficMirrorFilterRuleId: TrafficMirrorFilterRuleIdWithResolver) { self.dryRun = dryRun self.trafficMirrorFilterRuleId = trafficMirrorFilterRuleId } @@ -12187,10 +12592,10 @@ public struct DeregisterImageRequest: Codable, Equatable { public struct DeregisterInstanceEventNotificationAttributesRequest: Codable, Equatable { public var dryRun: Boolean? - public var instanceTagAttribute: DeregisterInstanceTagAttributeRequest? + public var instanceTagAttribute: DeregisterInstanceTagAttributeRequest public init(dryRun: Boolean? = nil, - instanceTagAttribute: DeregisterInstanceTagAttributeRequest? = nil) { + instanceTagAttribute: DeregisterInstanceTagAttributeRequest) { self.dryRun = dryRun self.instanceTagAttribute = instanceTagAttribute } @@ -12201,7 +12606,7 @@ public struct DeregisterInstanceEventNotificationAttributesRequest: Codable, Equ } public func validate() throws { - try instanceTagAttribute?.validate() + try instanceTagAttribute.validate() } } @@ -14578,6 +14983,57 @@ public struct DescribeInstanceAttributeRequest: Codable, Equatable { } } +public struct DescribeInstanceConnectEndpointsRequest: Codable, Equatable { + public var dryRun: Boolean? + public var filters: FilterList? + public var instanceConnectEndpointIds: ValueStringList? + public var maxResults: InstanceConnectEndpointMaxResults? + public var nextToken: NextToken? + + public init(dryRun: Boolean? = nil, + filters: FilterList? = nil, + instanceConnectEndpointIds: ValueStringList? = nil, + maxResults: InstanceConnectEndpointMaxResults? = nil, + nextToken: NextToken? = nil) { + self.dryRun = dryRun + self.filters = filters + self.instanceConnectEndpointIds = instanceConnectEndpointIds + self.maxResults = maxResults + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case filters = "Filter" + case instanceConnectEndpointIds = "InstanceConnectEndpointId" + case maxResults = "MaxResults" + case nextToken = "NextToken" + } + + public func validate() throws { + try maxResults?.validateAsInstanceConnectEndpointMaxResults() + } +} + +public struct DescribeInstanceConnectEndpointsResult: Codable, Equatable { + public var instanceConnectEndpoints: InstanceConnectEndpointSet? + public var nextToken: NextToken? + + public init(instanceConnectEndpoints: InstanceConnectEndpointSet? = nil, + nextToken: NextToken? = nil) { + self.instanceConnectEndpoints = instanceConnectEndpoints + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case instanceConnectEndpoints = "instanceConnectEndpointSet" + case nextToken + } + + public func validate() throws { + } +} + public struct DescribeInstanceCreditSpecificationsRequest: Codable, Equatable { public var dryRun: Boolean? public var filters: FilterList? @@ -15020,6 +15476,108 @@ public struct DescribeIpamPoolsResult: Codable, Equatable { } } +public struct DescribeIpamResourceDiscoveriesRequest: Codable, Equatable { + public var dryRun: Boolean? + public var filters: FilterList? + public var ipamResourceDiscoveryIds: ValueStringList? + public var maxResults: IpamMaxResults? + public var nextToken: NextToken? + + public init(dryRun: Boolean? = nil, + filters: FilterList? = nil, + ipamResourceDiscoveryIds: ValueStringList? = nil, + maxResults: IpamMaxResults? = nil, + nextToken: NextToken? = nil) { + self.dryRun = dryRun + self.filters = filters + self.ipamResourceDiscoveryIds = ipamResourceDiscoveryIds + self.maxResults = maxResults + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case filters = "Filter" + case ipamResourceDiscoveryIds = "IpamResourceDiscoveryId" + case maxResults = "MaxResults" + case nextToken = "NextToken" + } + + public func validate() throws { + try maxResults?.validateAsIpamMaxResults() + } +} + +public struct DescribeIpamResourceDiscoveriesResult: Codable, Equatable { + public var ipamResourceDiscoveries: IpamResourceDiscoverySet? + public var nextToken: NextToken? + + public init(ipamResourceDiscoveries: IpamResourceDiscoverySet? = nil, + nextToken: NextToken? = nil) { + self.ipamResourceDiscoveries = ipamResourceDiscoveries + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscoveries = "ipamResourceDiscoverySet" + case nextToken + } + + public func validate() throws { + } +} + +public struct DescribeIpamResourceDiscoveryAssociationsRequest: Codable, Equatable { + public var dryRun: Boolean? + public var filters: FilterList? + public var ipamResourceDiscoveryAssociationIds: ValueStringList? + public var maxResults: IpamMaxResults? + public var nextToken: NextToken? + + public init(dryRun: Boolean? = nil, + filters: FilterList? = nil, + ipamResourceDiscoveryAssociationIds: ValueStringList? = nil, + maxResults: IpamMaxResults? = nil, + nextToken: NextToken? = nil) { + self.dryRun = dryRun + self.filters = filters + self.ipamResourceDiscoveryAssociationIds = ipamResourceDiscoveryAssociationIds + self.maxResults = maxResults + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case filters = "Filter" + case ipamResourceDiscoveryAssociationIds = "IpamResourceDiscoveryAssociationId" + case maxResults = "MaxResults" + case nextToken = "NextToken" + } + + public func validate() throws { + try maxResults?.validateAsIpamMaxResults() + } +} + +public struct DescribeIpamResourceDiscoveryAssociationsResult: Codable, Equatable { + public var ipamResourceDiscoveryAssociations: IpamResourceDiscoveryAssociationSet? + public var nextToken: NextToken? + + public init(ipamResourceDiscoveryAssociations: IpamResourceDiscoveryAssociationSet? = nil, + nextToken: NextToken? = nil) { + self.ipamResourceDiscoveryAssociations = ipamResourceDiscoveryAssociations + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscoveryAssociations = "ipamResourceDiscoveryAssociationSet" + case nextToken + } + + public func validate() throws { + } +} + public struct DescribeIpamScopesRequest: Codable, Equatable { public var dryRun: Boolean? public var filters: FilterList? @@ -15228,6 +15786,7 @@ public struct DescribeLaunchTemplateVersionsRequest: Codable, Equatable { public var maxVersion: String? public var minVersion: String? public var nextToken: String? + public var resolveAlias: Boolean? public var versions: VersionStringList? public init(dryRun: Boolean? = nil, @@ -15238,6 +15797,7 @@ public struct DescribeLaunchTemplateVersionsRequest: Codable, Equatable { maxVersion: String? = nil, minVersion: String? = nil, nextToken: String? = nil, + resolveAlias: Boolean? = nil, versions: VersionStringList? = nil) { self.dryRun = dryRun self.filters = filters @@ -15247,6 +15807,7 @@ public struct DescribeLaunchTemplateVersionsRequest: Codable, Equatable { self.maxVersion = maxVersion self.minVersion = minVersion self.nextToken = nextToken + self.resolveAlias = resolveAlias self.versions = versions } @@ -15259,6 +15820,7 @@ public struct DescribeLaunchTemplateVersionsRequest: Codable, Equatable { case maxVersion = "MaxVersion" case minVersion = "MinVersion" case nextToken = "NextToken" + case resolveAlias = "ResolveAlias" case versions = "LaunchTemplateVersion" } @@ -20381,11 +20943,11 @@ public struct DisableVpcClassicLinkResult: Codable, Equatable { public struct DisassociateAddressRequest: Codable, Equatable { public var associationId: ElasticIpAssociationId? public var dryRun: Boolean? - public var publicIp: String? + public var publicIp: EipAllocationPublicIp? public init(associationId: ElasticIpAssociationId? = nil, dryRun: Boolean? = nil, - publicIp: String? = nil) { + publicIp: EipAllocationPublicIp? = nil) { self.associationId = associationId self.dryRun = dryRun self.publicIp = publicIp @@ -20445,13 +21007,13 @@ public struct DisassociateClientVpnTargetNetworkResult: Codable, Equatable { } public struct DisassociateEnclaveCertificateIamRoleRequest: Codable, Equatable { - public var certificateArn: ResourceArn? + public var certificateArn: CertificateId public var dryRun: Boolean? - public var roleArn: ResourceArn? + public var roleArn: RoleId - public init(certificateArn: ResourceArn? = nil, + public init(certificateArn: CertificateId, dryRun: Boolean? = nil, - roleArn: ResourceArn? = nil) { + roleArn: RoleId) { self.certificateArn = certificateArn self.dryRun = dryRun self.roleArn = roleArn @@ -20464,8 +21026,6 @@ public struct DisassociateEnclaveCertificateIamRoleRequest: Codable, Equatable { } public func validate() throws { - try certificateArn?.validateAsResourceArn() - try roleArn?.validateAsResourceArn() } } @@ -20555,6 +21115,88 @@ public struct DisassociateInstanceEventWindowResult: Codable, Equatable { } } +public struct DisassociateIpamResourceDiscoveryRequest: Codable, Equatable { + public var dryRun: Boolean? + public var ipamResourceDiscoveryAssociationId: IpamResourceDiscoveryAssociationId + + public init(dryRun: Boolean? = nil, + ipamResourceDiscoveryAssociationId: IpamResourceDiscoveryAssociationId) { + self.dryRun = dryRun + self.ipamResourceDiscoveryAssociationId = ipamResourceDiscoveryAssociationId + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case ipamResourceDiscoveryAssociationId = "IpamResourceDiscoveryAssociationId" + } + + public func validate() throws { + } +} + +public struct DisassociateIpamResourceDiscoveryResult: Codable, Equatable { + public var ipamResourceDiscoveryAssociation: IpamResourceDiscoveryAssociation? + + public init(ipamResourceDiscoveryAssociation: IpamResourceDiscoveryAssociation? = nil) { + self.ipamResourceDiscoveryAssociation = ipamResourceDiscoveryAssociation + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscoveryAssociation + } + + public func validate() throws { + try ipamResourceDiscoveryAssociation?.validate() + } +} + +public struct DisassociateNatGatewayAddressRequest: Codable, Equatable { + public var associationIds: EipAssociationIdList + public var dryRun: Boolean? + public var maxDrainDurationSeconds: DrainSeconds? + public var natGatewayId: NatGatewayId + + public init(associationIds: EipAssociationIdList, + dryRun: Boolean? = nil, + maxDrainDurationSeconds: DrainSeconds? = nil, + natGatewayId: NatGatewayId) { + self.associationIds = associationIds + self.dryRun = dryRun + self.maxDrainDurationSeconds = maxDrainDurationSeconds + self.natGatewayId = natGatewayId + } + + enum CodingKeys: String, CodingKey { + case associationIds = "AssociationId" + case dryRun = "DryRun" + case maxDrainDurationSeconds = "MaxDrainDurationSeconds" + case natGatewayId = "NatGatewayId" + } + + public func validate() throws { + try maxDrainDurationSeconds?.validateAsDrainSeconds() + } +} + +public struct DisassociateNatGatewayAddressResult: Codable, Equatable { + public var natGatewayAddresses: NatGatewayAddressList? + public var natGatewayId: NatGatewayId? + + public init(natGatewayAddresses: NatGatewayAddressList? = nil, + natGatewayId: NatGatewayId? = nil) { + self.natGatewayAddresses = natGatewayAddresses + self.natGatewayId = natGatewayId + } + + enum CodingKeys: String, CodingKey { + case natGatewayAddresses = "natGatewayAddressSet" + case natGatewayId + } + + public func validate() throws { + } +} + public struct DisassociateRouteTableRequest: Codable, Equatable { public var associationId: RouteTableAssociationId public var dryRun: Boolean? @@ -20611,14 +21253,14 @@ public struct DisassociateSubnetCidrBlockResult: Codable, Equatable { public struct DisassociateTransitGatewayMulticastDomainRequest: Codable, Equatable { public var dryRun: Boolean? - public var subnetIds: TransitGatewaySubnetIdList? - public var transitGatewayAttachmentId: TransitGatewayAttachmentId? - public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? + public var subnetIds: TransitGatewaySubnetIdList + public var transitGatewayAttachmentId: TransitGatewayAttachmentId + public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId public init(dryRun: Boolean? = nil, - subnetIds: TransitGatewaySubnetIdList? = nil, - transitGatewayAttachmentId: TransitGatewayAttachmentId? = nil, - transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? = nil) { + subnetIds: TransitGatewaySubnetIdList, + transitGatewayAttachmentId: TransitGatewayAttachmentId, + transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId) { self.dryRun = dryRun self.subnetIds = subnetIds self.transitGatewayAttachmentId = transitGatewayAttachmentId @@ -20840,12 +21482,12 @@ public struct DiskImage: Codable, Equatable { public struct DiskImageDescription: Codable, Equatable { public var checksum: String? public var format: DiskImageFormat? - public var importManifestUrl: String? + public var importManifestUrl: ImportManifestUrl? public var size: Long? public init(checksum: String? = nil, format: DiskImageFormat? = nil, - importManifestUrl: String? = nil, + importManifestUrl: ImportManifestUrl? = nil, size: Long? = nil) { self.checksum = checksum self.format = format @@ -20867,11 +21509,11 @@ public struct DiskImageDescription: Codable, Equatable { public struct DiskImageDetail: Codable, Equatable { public var bytes: Long public var format: DiskImageFormat - public var importManifestUrl: String + public var importManifestUrl: ImportManifestUrl public init(bytes: Long, format: DiskImageFormat, - importManifestUrl: String) { + importManifestUrl: ImportManifestUrl) { self.bytes = bytes self.format = format self.importManifestUrl = importManifestUrl @@ -20950,13 +21592,17 @@ public struct DnsEntry: Codable, Equatable { public struct DnsOptions: Codable, Equatable { public var dnsRecordIpType: DnsRecordIpType? + public var privateDnsOnlyForInboundResolverEndpoint: Boolean? - public init(dnsRecordIpType: DnsRecordIpType? = nil) { + public init(dnsRecordIpType: DnsRecordIpType? = nil, + privateDnsOnlyForInboundResolverEndpoint: Boolean? = nil) { self.dnsRecordIpType = dnsRecordIpType + self.privateDnsOnlyForInboundResolverEndpoint = privateDnsOnlyForInboundResolverEndpoint } enum CodingKeys: String, CodingKey { case dnsRecordIpType + case privateDnsOnlyForInboundResolverEndpoint } public func validate() throws { @@ -20965,13 +21611,17 @@ public struct DnsOptions: Codable, Equatable { public struct DnsOptionsSpecification: Codable, Equatable { public var dnsRecordIpType: DnsRecordIpType? + public var privateDnsOnlyForInboundResolverEndpoint: Boolean? - public init(dnsRecordIpType: DnsRecordIpType? = nil) { + public init(dnsRecordIpType: DnsRecordIpType? = nil, + privateDnsOnlyForInboundResolverEndpoint: Boolean? = nil) { self.dnsRecordIpType = dnsRecordIpType + self.privateDnsOnlyForInboundResolverEndpoint = privateDnsOnlyForInboundResolverEndpoint } enum CodingKeys: String, CodingKey { case dnsRecordIpType = "DnsRecordIpType" + case privateDnsOnlyForInboundResolverEndpoint = "PrivateDnsOnlyForInboundResolverEndpoint" } public func validate() throws { @@ -21153,6 +21803,78 @@ public struct EbsOptimizedInfo: Codable, Equatable { } } +public struct Ec2InstanceConnectEndpoint: Codable, Equatable { + public var availabilityZone: String? + public var createdAt: MillisecondDateTime? + public var dnsName: String? + public var fipsDnsName: String? + public var instanceConnectEndpointArn: ResourceArn? + public var instanceConnectEndpointId: InstanceConnectEndpointId? + public var networkInterfaceIds: NetworkInterfaceIdSet? + public var ownerId: String? + public var preserveClientIp: Boolean? + public var securityGroupIds: SecurityGroupIdSet? + public var state: Ec2InstanceConnectEndpointState? + public var stateMessage: String? + public var subnetId: SubnetId? + public var tags: TagList? + public var vpcId: VpcId? + + public init(availabilityZone: String? = nil, + createdAt: MillisecondDateTime? = nil, + dnsName: String? = nil, + fipsDnsName: String? = nil, + instanceConnectEndpointArn: ResourceArn? = nil, + instanceConnectEndpointId: InstanceConnectEndpointId? = nil, + networkInterfaceIds: NetworkInterfaceIdSet? = nil, + ownerId: String? = nil, + preserveClientIp: Boolean? = nil, + securityGroupIds: SecurityGroupIdSet? = nil, + state: Ec2InstanceConnectEndpointState? = nil, + stateMessage: String? = nil, + subnetId: SubnetId? = nil, + tags: TagList? = nil, + vpcId: VpcId? = nil) { + self.availabilityZone = availabilityZone + self.createdAt = createdAt + self.dnsName = dnsName + self.fipsDnsName = fipsDnsName + self.instanceConnectEndpointArn = instanceConnectEndpointArn + self.instanceConnectEndpointId = instanceConnectEndpointId + self.networkInterfaceIds = networkInterfaceIds + self.ownerId = ownerId + self.preserveClientIp = preserveClientIp + self.securityGroupIds = securityGroupIds + self.state = state + self.stateMessage = stateMessage + self.subnetId = subnetId + self.tags = tags + self.vpcId = vpcId + } + + enum CodingKeys: String, CodingKey { + case availabilityZone + case createdAt + case dnsName + case fipsDnsName + case instanceConnectEndpointArn + case instanceConnectEndpointId + case networkInterfaceIds = "networkInterfaceIdSet" + case ownerId + case preserveClientIp + case securityGroupIds = "securityGroupIdSet" + case state + case stateMessage + case subnetId + case tags = "tagSet" + case vpcId + } + + public func validate() throws { + try instanceConnectEndpointArn?.validateAsResourceArn() + } +} + public struct EfaInfo: Codable, Equatable { public var maximumEfaInterfaces: MaximumEfaInterfaces? @@ -22093,6 +22815,8 @@ public struct Explanation: Codable, Equatable { public var direction: String? public var elasticLoadBalancerListener: AnalysisComponent? public var explanationCode: String? + public var firewallStatefulRule: FirewallStatefulRule? + public var firewallStatelessRule: FirewallStatelessRule? public var ingressRouteTable: AnalysisComponent? public var internetGateway: AnalysisComponent? public var loadBalancerArn: ResourceArn? @@ -22145,6 +22869,8 @@ public struct Explanation: Codable, Equatable { direction: String? = nil, elasticLoadBalancerListener: AnalysisComponent? = nil, explanationCode: String? = nil, + firewallStatefulRule: FirewallStatefulRule? = nil, + firewallStatelessRule: FirewallStatelessRule? = nil, ingressRouteTable: AnalysisComponent? = nil, internetGateway: AnalysisComponent? = nil, loadBalancerArn: ResourceArn? = nil, @@ -22196,6 +22922,8 @@ public struct Explanation: Codable, Equatable { self.direction = direction self.elasticLoadBalancerListener = elasticLoadBalancerListener self.explanationCode = explanationCode + self.firewallStatefulRule = firewallStatefulRule + self.firewallStatelessRule = firewallStatelessRule self.ingressRouteTable = ingressRouteTable self.internetGateway = internetGateway self.loadBalancerArn = loadBalancerArn @@ -22250,6 +22978,8 @@ public struct Explanation: Codable, Equatable { case direction case elasticLoadBalancerListener case explanationCode + case firewallStatefulRule + case firewallStatelessRule case ingressRouteTable case internetGateway case loadBalancerArn @@ -22299,6 +23029,8 @@ public struct Explanation: Codable, Equatable { try destination?.validate() try destinationVpc?.validate() try elasticLoadBalancerListener?.validate() + try firewallStatefulRule?.validate() + try firewallStatelessRule?.validate() try ingressRouteTable?.validate() try internetGateway?.validate() try loadBalancerArn?.validateAsResourceArn() @@ -22890,6 +23622,116 @@ public struct Filter: Codable, Equatable { } } +public struct FilterPortRange: Codable, Equatable { + public var fromPort: Port? + public var toPort: Port? + + public init(fromPort: Port? = nil, + toPort: Port? = nil) { + self.fromPort = fromPort + self.toPort = toPort + } + + enum CodingKeys: String, CodingKey { + case fromPort + case toPort + } + + public func validate() throws { + try fromPort?.validateAsPort() + try toPort?.validateAsPort() + } +} + +public struct FirewallStatefulRule: Codable, Equatable { + public var destinationPorts: PortRangeList? + public var destinations: ValueStringList? + public var direction: String? + public var `protocol`: String? + public var ruleAction: String? + public var ruleGroupArn: ResourceArn? + public var sourcePorts: PortRangeList? + public var sources: ValueStringList? + + public init(destinationPorts: PortRangeList? = nil, + destinations: ValueStringList? = nil, + direction: String? = nil, + `protocol`: String? = nil, + ruleAction: String? = nil, + ruleGroupArn: ResourceArn? = nil, + sourcePorts: PortRangeList? = nil, + sources: ValueStringList? = nil) { + self.destinationPorts = destinationPorts + self.destinations = destinations + self.direction = direction + self.`protocol` = `protocol` + self.ruleAction = ruleAction + self.ruleGroupArn = ruleGroupArn + self.sourcePorts = sourcePorts + self.sources = sources + } + + enum CodingKeys: String, CodingKey { + case destinationPorts = "destinationPortSet" + case destinations = "destinationSet" + case direction + case `protocol` = "protocol" + case ruleAction + case ruleGroupArn + case sourcePorts = "sourcePortSet" + case sources = "sourceSet" + } + + public func validate() throws { + try ruleGroupArn?.validateAsResourceArn() + } +} + +public struct FirewallStatelessRule: Codable, Equatable { + public var destinationPorts: PortRangeList? + public var destinations: ValueStringList? + public var priority: Priority? + public var protocols: ProtocolIntList? + public var ruleAction: String? + public var ruleGroupArn: ResourceArn? + public var sourcePorts: PortRangeList? + public var sources: ValueStringList? + + public init(destinationPorts: PortRangeList? = nil, + destinations: ValueStringList? = nil, + priority: Priority? = nil, + protocols: ProtocolIntList? = nil, + ruleAction: String? = nil, + ruleGroupArn: ResourceArn? = nil, + sourcePorts: PortRangeList? = nil, + sources: ValueStringList? = nil) { + self.destinationPorts = destinationPorts + self.destinations = destinations + self.priority = priority + self.protocols = protocols + self.ruleAction = ruleAction + self.ruleGroupArn = ruleGroupArn + self.sourcePorts = sourcePorts + self.sources = sources + } + + enum CodingKeys: String, CodingKey { + case destinationPorts = "destinationPortSet" + case destinations = "destinationSet" + case priority + case protocols = "protocolSet" + case ruleAction + case ruleGroupArn + case sourcePorts = "sourcePortSet" + case sources = "sourceSet" + } + + public func validate() throws { + try priority?.validateAsPriority() + try ruleGroupArn?.validateAsResourceArn() + } +} + public struct FleetCapacityReservation: Codable, Equatable { public var availabilityZone: String? public var availabilityZoneId: String? @@ -23567,10 +24409,10 @@ public struct FpgaInfo: Codable, Equatable { } public struct GetAssociatedEnclaveCertificateIamRolesRequest: Codable, Equatable { - public var certificateArn: ResourceArn? + public var certificateArn: CertificateId public var dryRun: Boolean? - public init(certificateArn: ResourceArn? = nil, + public init(certificateArn: CertificateId, dryRun: Boolean? = nil) { self.certificateArn = certificateArn self.dryRun = dryRun @@ -23582,7 +24424,6 @@ public struct GetAssociatedEnclaveCertificateIamRolesRequest: Codable, Equatable } public func validate() throws { - try certificateArn?.validateAsResourceArn() } } @@ -24301,6 +25142,116 @@ public struct GetIpamAddressHistoryResult: Codable, Equatable { } } +public struct GetIpamDiscoveredAccountsRequest: Codable, Equatable { + public var discoveryRegion: String + public var dryRun: Boolean? + public var filters: FilterList? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId + public var maxResults: IpamMaxResults? + public var nextToken: NextToken? + + public init(discoveryRegion: String, + dryRun: Boolean? = nil, + filters: FilterList? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId, + maxResults: IpamMaxResults? = nil, + nextToken: NextToken? = nil) { + self.discoveryRegion = discoveryRegion + self.dryRun = dryRun + self.filters = filters + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.maxResults = maxResults + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case discoveryRegion = "DiscoveryRegion" + case dryRun = "DryRun" + case filters = "Filter" + case ipamResourceDiscoveryId = "IpamResourceDiscoveryId" + case maxResults = "MaxResults" + case nextToken = "NextToken" + } + + public func validate() throws { + try maxResults?.validateAsIpamMaxResults() + } +} + +public struct GetIpamDiscoveredAccountsResult: Codable, Equatable { + public var ipamDiscoveredAccounts: IpamDiscoveredAccountSet? + public var nextToken: NextToken? + + public init(ipamDiscoveredAccounts: IpamDiscoveredAccountSet? = nil, + nextToken: NextToken? = nil) { + self.ipamDiscoveredAccounts = ipamDiscoveredAccounts + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case ipamDiscoveredAccounts = "ipamDiscoveredAccountSet" + case nextToken + } + + public func validate() throws { + } +} + +public struct GetIpamDiscoveredResourceCidrsRequest: Codable, Equatable { + public var dryRun: Boolean? + public var filters: FilterList? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId + public var maxResults: IpamMaxResults? + public var nextToken: NextToken? + public var resourceRegion: String + + public init(dryRun: Boolean? = nil, + filters: FilterList? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId, + maxResults: IpamMaxResults? = nil, + nextToken: NextToken? = nil, + resourceRegion: String) { + self.dryRun = dryRun + self.filters = filters + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.maxResults = maxResults + self.nextToken = nextToken + self.resourceRegion = resourceRegion + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case filters = "Filter" + case ipamResourceDiscoveryId = "IpamResourceDiscoveryId" + case maxResults = "MaxResults" + case nextToken = "NextToken" + case resourceRegion = "ResourceRegion" + } + + public func validate() throws { + try maxResults?.validateAsIpamMaxResults() + } +} + +public struct GetIpamDiscoveredResourceCidrsResult: Codable, Equatable { + public var ipamDiscoveredResourceCidrs: IpamDiscoveredResourceCidrSet? + public var nextToken: NextToken? + + public init(ipamDiscoveredResourceCidrs: IpamDiscoveredResourceCidrSet? = nil, + nextToken: NextToken? = nil) { + self.ipamDiscoveredResourceCidrs = ipamDiscoveredResourceCidrs + self.nextToken = nextToken + } + + enum CodingKeys: String, CodingKey { + case ipamDiscoveredResourceCidrs = "ipamDiscoveredResourceCidrSet" + case nextToken + } + + public func validate() throws { + } +} + public struct GetIpamPoolAllocationsRequest: Codable, Equatable { public var dryRun: Boolean? public var filters: FilterList? @@ -25028,13 +25979,13 @@ public struct GetTransitGatewayMulticastDomainAssociationsRequest: Codable, Equa public var filters: FilterList? public var maxResults: TransitGatewayMaxResults? public var nextToken: String? - public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? + public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId public init(dryRun: Boolean? = nil, filters: FilterList? = nil, maxResults: TransitGatewayMaxResults? = nil, nextToken: String? = nil, - transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? = nil) { + transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId) { self.dryRun = dryRun self.filters = filters self.maxResults = maxResults @@ -25486,6 +26437,65 @@ public struct GetVpnConnectionDeviceTypesResult: Codable, Equatable { } } +public struct GetVpnTunnelReplacementStatusRequest: Codable, Equatable { + public var dryRun: Boolean? + public var vpnConnectionId: VpnConnectionId + public var vpnTunnelOutsideIpAddress: String + + public init(dryRun: Boolean? = nil, + vpnConnectionId: VpnConnectionId, + vpnTunnelOutsideIpAddress: String) { + self.dryRun = dryRun + self.vpnConnectionId = vpnConnectionId + self.vpnTunnelOutsideIpAddress = vpnTunnelOutsideIpAddress + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case vpnConnectionId = "VpnConnectionId" + case vpnTunnelOutsideIpAddress = "VpnTunnelOutsideIpAddress" + } + + public func validate() throws { + } +} + +public struct GetVpnTunnelReplacementStatusResult: Codable, Equatable { + public var customerGatewayId: CustomerGatewayId? + public var maintenanceDetails: MaintenanceDetails? + public var transitGatewayId: TransitGatewayId? + public var vpnConnectionId: VpnConnectionId? + public var vpnGatewayId: VpnGatewayId? + public var vpnTunnelOutsideIpAddress: String? + + public init(customerGatewayId: CustomerGatewayId? = nil, + maintenanceDetails: MaintenanceDetails? = nil, + transitGatewayId: TransitGatewayId? = nil, + vpnConnectionId: VpnConnectionId? = nil, + vpnGatewayId: VpnGatewayId? = nil, + vpnTunnelOutsideIpAddress: String? = nil) { + self.customerGatewayId = customerGatewayId + self.maintenanceDetails = maintenanceDetails + self.transitGatewayId = transitGatewayId + self.vpnConnectionId = vpnConnectionId + self.vpnGatewayId = vpnGatewayId + self.vpnTunnelOutsideIpAddress = vpnTunnelOutsideIpAddress + } + + enum CodingKeys: String, CodingKey { + case customerGatewayId + case maintenanceDetails + case transitGatewayId + case vpnConnectionId + case vpnGatewayId + case vpnTunnelOutsideIpAddress + } + + public func validate() throws { + try maintenanceDetails?.validate() + } +} + public struct GpuDeviceInfo: Codable, Equatable { public var count: GpuDeviceCount? public var manufacturer: GpuDeviceManufacturerName? @@ -25648,12 +26658,14 @@ public struct HistoryRecordEntry: Codable, Equatable { public struct Host: Codable, Equatable { public var allocationTime: DateTime? public var allowsMultipleInstanceTypes: AllowsMultipleInstanceTypes? + public var assetId: AssetId? public var autoPlacement: AutoPlacement? public var availabilityZone: String? public var availabilityZoneId: String? public var availableCapacity: AvailableCapacity? public var clientToken: String? public var hostId: String? + public var hostMaintenance: HostMaintenance? public var hostProperties: HostProperties? public var hostRecovery: HostRecovery? public var hostReservationId: String? @@ -25667,12 +26679,14 @@ public struct Host: Codable, Equatable { public init(allocationTime: DateTime? = nil, allowsMultipleInstanceTypes: AllowsMultipleInstanceTypes? = nil, + assetId: AssetId? = nil, autoPlacement: AutoPlacement? = nil, availabilityZone: String? = nil, availabilityZoneId: String? = nil, availableCapacity: AvailableCapacity? = nil, clientToken: String? = nil, hostId: String? = nil, + hostMaintenance: HostMaintenance? = nil, hostProperties: HostProperties? = nil, hostRecovery: HostRecovery? = nil, hostReservationId: String? = nil, @@ -25685,12 +26699,14 @@ public struct Host: Codable, Equatable { tags: TagList? = nil) { self.allocationTime = allocationTime self.allowsMultipleInstanceTypes = allowsMultipleInstanceTypes + self.assetId = assetId self.autoPlacement = autoPlacement self.availabilityZone = availabilityZone self.availabilityZoneId = availabilityZoneId self.availableCapacity = availableCapacity self.clientToken = clientToken self.hostId = hostId + self.hostMaintenance = hostMaintenance self.hostProperties = hostProperties self.hostRecovery = hostRecovery self.hostReservationId = hostReservationId @@ -25706,12 +26722,14 @@ public struct Host: Codable, Equatable { enum CodingKeys: String, CodingKey { case allocationTime case allowsMultipleInstanceTypes + case assetId case autoPlacement case availabilityZone case availabilityZoneId case availableCapacity case clientToken case hostId + case hostMaintenance case hostProperties case hostRecovery case hostReservationId @@ -26241,14 +27259,14 @@ public struct ImageDiskContainer: Codable, Equatable { public var deviceName: String? public var format: String? public var snapshotId: SnapshotId? - public var url: String? + public var url: SensitiveUrl? public var userBucket: UserBucket? public init(description: String? = nil, deviceName: String? = nil, format: String? = nil, snapshotId: SnapshotId? = nil, - url: String? = nil, + url: SensitiveUrl? = nil, userBucket: UserBucket? = nil) { self.description = description self.deviceName = deviceName @@ -27062,6 +28080,7 @@ public struct Instance: Codable, Equatable { public var capacityReservationSpecification: CapacityReservationSpecificationResponse? public var clientToken: String? public var cpuOptions: CpuOptions? + public var currentInstanceBootMode: InstanceBootModeValues? public var ebsOptimized: Boolean? public var elasticGpuAssociations: ElasticGpuAssociationList? public var elasticInferenceAcceleratorAssociations: ElasticInferenceAcceleratorAssociationList? @@ -27119,6 +28138,7 @@ public struct Instance: Codable, Equatable { capacityReservationSpecification: CapacityReservationSpecificationResponse? = nil, clientToken: String? = nil, cpuOptions: CpuOptions? = nil, + currentInstanceBootMode: InstanceBootModeValues? = nil, ebsOptimized: Boolean? = nil, elasticGpuAssociations: ElasticGpuAssociationList? = nil, elasticInferenceAcceleratorAssociations: ElasticInferenceAcceleratorAssociationList? = nil, @@ -27175,6 +28195,7 @@ public struct Instance: Codable, Equatable { self.capacityReservationSpecification = capacityReservationSpecification self.clientToken = clientToken self.cpuOptions = cpuOptions + self.currentInstanceBootMode = currentInstanceBootMode self.ebsOptimized = ebsOptimized self.elasticGpuAssociations = elasticGpuAssociations self.elasticInferenceAcceleratorAssociations = elasticInferenceAcceleratorAssociations @@ -27234,6 +28255,7 @@ public struct Instance: Codable, Equatable { case capacityReservationSpecification case clientToken case cpuOptions + case currentInstanceBootMode case ebsOptimized case elasticGpuAssociations = "elasticGpuAssociationSet" case elasticInferenceAcceleratorAssociations = "elasticInferenceAcceleratorAssociationSet" @@ -27503,10 +28525,10 @@ public struct InstanceCreditSpecification: Codable, Equatable { public struct InstanceCreditSpecificationRequest: Codable, Equatable { public var cpuCredits: String? - public var instanceId: InstanceId? + public var instanceId: InstanceId public init(cpuCredits: String? = nil, - instanceId: InstanceId? = nil) { + instanceId: InstanceId) { self.cpuCredits = cpuCredits self.instanceId = instanceId } @@ -28463,11 +29485,11 @@ public struct InstanceRequirementsWithMetadataRequest: Codable, Equatable { public struct InstanceSpecification: Codable, Equatable { public var excludeBootVolume: Boolean? public var excludeDataVolumeIds: VolumeIdStringList? - public var instanceId: InstanceId? + public var instanceId: InstanceIdWithVolumeResolver public init(excludeBootVolume: Boolean? = nil, excludeDataVolumeIds: VolumeIdStringList? = nil, - instanceId: InstanceId? = nil) { + instanceId: InstanceIdWithVolumeResolver) { self.excludeBootVolume = excludeBootVolume self.excludeDataVolumeIds = excludeDataVolumeIds self.instanceId = instanceId @@ -28710,6 +29732,7 @@ public struct InstanceTypeInfo: Codable, Equatable { public var instanceType: InstanceType? public var memoryInfo: MemoryInfo? public var networkInfo: NetworkInfo? + public var nitroEnclavesSupport: NitroEnclavesSupport? public var placementGroupInfo: PlacementGroupInfo? public var processorInfo: ProcessorInfo? public var supportedBootModes: BootModeTypeList? @@ -28735,6 +29758,7 @@ public struct InstanceTypeInfo: Codable, Equatable { instanceType: InstanceType? = nil, memoryInfo: MemoryInfo? = nil, networkInfo: NetworkInfo? = nil, + nitroEnclavesSupport: NitroEnclavesSupport? = nil, placementGroupInfo: PlacementGroupInfo? = nil, processorInfo: ProcessorInfo? = nil, supportedBootModes: BootModeTypeList? = nil, @@ -28759,6 +29783,7 @@ public struct InstanceTypeInfo: Codable, Equatable { self.instanceType = instanceType self.memoryInfo = memoryInfo self.networkInfo = networkInfo + self.nitroEnclavesSupport = nitroEnclavesSupport self.placementGroupInfo = placementGroupInfo self.processorInfo = processorInfo self.supportedBootModes = supportedBootModes @@ -28786,6 +29811,7 @@ public struct InstanceTypeInfo: Codable, Equatable { case instanceType case memoryInfo case networkInfo + case nitroEnclavesSupport case placementGroupInfo case processorInfo case supportedBootModes @@ -28987,6 +30013,8 @@ public struct IpRange: Codable, Equatable { } public struct Ipam: Codable, Equatable { + public var defaultResourceDiscoveryAssociationId: IpamResourceDiscoveryAssociationId? + public var defaultResourceDiscoveryId: IpamResourceDiscoveryId? public var description: String? public var ipamArn: ResourceArn? public var ipamId: IpamId? @@ -28995,11 +30023,14 @@ public struct Ipam: Codable, Equatable { public var ownerId: String? public var privateDefaultScopeId: IpamScopeId? public var publicDefaultScopeId: IpamScopeId? + public var resourceDiscoveryAssociationCount: Integer? public var scopeCount: Integer? public var state: IpamState? public var tags: TagList? - public init(description: String? = nil, + public init(defaultResourceDiscoveryAssociationId: IpamResourceDiscoveryAssociationId? = nil, + defaultResourceDiscoveryId: IpamResourceDiscoveryId? = nil, + description: String? = nil, ipamArn: ResourceArn? = nil, ipamId: IpamId? = nil, ipamRegion: String? = nil, @@ -29007,9 +30038,12 @@ public struct Ipam: Codable, Equatable { ownerId: String? = nil, privateDefaultScopeId: IpamScopeId? = nil, publicDefaultScopeId: IpamScopeId? = nil, + resourceDiscoveryAssociationCount: Integer? = nil, scopeCount: Integer? = nil, state: IpamState? = nil, tags: TagList? = nil) { + self.defaultResourceDiscoveryAssociationId = defaultResourceDiscoveryAssociationId + self.defaultResourceDiscoveryId = defaultResourceDiscoveryId self.description = description self.ipamArn = ipamArn self.ipamId = ipamId @@ -29018,12 +30052,15 @@ public struct Ipam: Codable, Equatable { self.ownerId = ownerId self.privateDefaultScopeId = privateDefaultScopeId self.publicDefaultScopeId = publicDefaultScopeId + self.resourceDiscoveryAssociationCount = resourceDiscoveryAssociationCount self.scopeCount = scopeCount self.state = state self.tags = tags } enum CodingKeys: String, CodingKey { + case defaultResourceDiscoveryAssociationId + case defaultResourceDiscoveryId case description case ipamArn case ipamId @@ -29032,6 +30069,7 @@ public struct Ipam: Codable, Equatable { case ownerId case privateDefaultScopeId case publicDefaultScopeId + case resourceDiscoveryAssociationCount case scopeCount case state case tags = "tagSet" @@ -29116,6 +30154,108 @@ public struct IpamCidrAuthorizationContext: Codable, Equatable { } } +public struct IpamDiscoveredAccount: Codable, Equatable { + public var accountId: String? + public var discoveryRegion: String? + public var failureReason: IpamDiscoveryFailureReason? + public var lastAttemptedDiscoveryTime: MillisecondDateTime? + public var lastSuccessfulDiscoveryTime: MillisecondDateTime? + + public init(accountId: String? = nil, + discoveryRegion: String? = nil, + failureReason: IpamDiscoveryFailureReason? = nil, + lastAttemptedDiscoveryTime: MillisecondDateTime? = nil, + lastSuccessfulDiscoveryTime: MillisecondDateTime? = nil) { + self.accountId = accountId + self.discoveryRegion = discoveryRegion + self.failureReason = failureReason + self.lastAttemptedDiscoveryTime = lastAttemptedDiscoveryTime + self.lastSuccessfulDiscoveryTime = lastSuccessfulDiscoveryTime + } + + enum CodingKeys: String, CodingKey { + case accountId + case discoveryRegion + case failureReason + case lastAttemptedDiscoveryTime + case lastSuccessfulDiscoveryTime + } + + public func validate() throws { + try failureReason?.validate() + } +} + +public struct IpamDiscoveredResourceCidr: Codable, Equatable { + public var ipUsage: BoxedDouble? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId? + public var resourceCidr: String? + public var resourceId: String? + public var resourceOwnerId: String? + public var resourceRegion: String? + public var resourceTags: IpamResourceTagList? + public var resourceType: IpamResourceType? + public var sampleTime: MillisecondDateTime? + public var vpcId: String? + + public init(ipUsage: BoxedDouble? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId? = nil, + resourceCidr: String? = nil, + resourceId: String? = nil, + resourceOwnerId: String? = nil, + resourceRegion: String? = nil, + resourceTags: IpamResourceTagList? = nil, + resourceType: IpamResourceType? = nil, + sampleTime: MillisecondDateTime? = nil, + vpcId: String? = nil) { + self.ipUsage = ipUsage + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.resourceCidr = resourceCidr + self.resourceId = resourceId + self.resourceOwnerId = resourceOwnerId + self.resourceRegion = resourceRegion + self.resourceTags = resourceTags + self.resourceType = resourceType + self.sampleTime = sampleTime + self.vpcId = vpcId + } + + enum CodingKeys: String, CodingKey { + case ipUsage + case ipamResourceDiscoveryId + case resourceCidr + case resourceId + case resourceOwnerId + case resourceRegion + case resourceTags = "resourceTagSet" + case resourceType + case sampleTime + case vpcId + } + + public func validate() throws { + } +} + +public struct IpamDiscoveryFailureReason: Codable, Equatable { + public var code: IpamDiscoveryFailureCode? + public var message: String? + + public init(code: IpamDiscoveryFailureCode? = nil, + message: String? = nil) { + self.code = code + self.message = message + } + + enum CodingKeys: String, CodingKey { + case code + case message + } + + public func validate() throws { + } +} + public struct IpamOperatingRegion: Codable, Equatable { public var regionName: String? @@ -29149,6 +30289,7 @@ public struct IpamPool: Codable, Equatable { public var locale: String? public var ownerId: String? public var poolDepth: Integer? + public var publicIpSource: IpamPoolPublicIpSource? public var publiclyAdvertisable: Boolean? public var sourceIpamPoolId: IpamPoolId? public var state: IpamPoolState? @@ -29172,6 +30313,7 @@ public struct IpamPool: Codable, Equatable { locale: String? = nil, ownerId: String? = nil, poolDepth: Integer? = nil, + publicIpSource: IpamPoolPublicIpSource? = nil, publiclyAdvertisable: Boolean? = nil, sourceIpamPoolId: IpamPoolId? = nil, state: IpamPoolState? = nil, @@ -29194,6 +30336,7 @@ public struct IpamPool: Codable, Equatable { self.locale = locale self.ownerId = ownerId self.poolDepth = poolDepth + self.publicIpSource = publicIpSource self.publiclyAdvertisable = publiclyAdvertisable self.sourceIpamPoolId = sourceIpamPoolId self.state = state @@ -29219,6 +30362,7 @@ public struct IpamPool: Codable, Equatable { case locale case ownerId case poolDepth + case publicIpSource case publiclyAdvertisable case sourceIpamPoolId case state @@ -29278,19 +30422,27 @@ public struct IpamPoolAllocation: Codable, Equatable { public struct IpamPoolCidr: Codable, Equatable { public var cidr: String? public var failureReason: IpamPoolCidrFailureReason? + public var ipamPoolCidrId: IpamPoolCidrId? + public var netmaskLength: Integer? public var state: IpamPoolCidrState? public init(cidr: String? = nil, failureReason: IpamPoolCidrFailureReason? = nil, + ipamPoolCidrId: IpamPoolCidrId? = nil, + netmaskLength: Integer? = nil, state: IpamPoolCidrState? = nil) { self.cidr = cidr self.failureReason = failureReason + self.ipamPoolCidrId = ipamPoolCidrId + self.netmaskLength = netmaskLength self.state = state } enum CodingKeys: String, CodingKey { case cidr case failureReason + case ipamPoolCidrId + case netmaskLength case state } @@ -29389,6 +30541,109 @@ public struct IpamResourceCidr: Codable, Equatable { } } +public struct IpamResourceDiscovery: Codable, Equatable { + public var description: String? + public var ipamResourceDiscoveryArn: String? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId? + public var ipamResourceDiscoveryRegion: String? + public var isDefault: Boolean? + public var operatingRegions: IpamOperatingRegionSet? + public var ownerId: String? + public var state: IpamResourceDiscoveryState? + public var tags: TagList? + + public init(description: String? = nil, + ipamResourceDiscoveryArn: String? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId? = nil, + ipamResourceDiscoveryRegion: String? = nil, + isDefault: Boolean? = nil, + operatingRegions: IpamOperatingRegionSet? = nil, + ownerId: String? = nil, + state: IpamResourceDiscoveryState? = nil, + tags: TagList? = nil) { + self.description = description + self.ipamResourceDiscoveryArn = ipamResourceDiscoveryArn + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.ipamResourceDiscoveryRegion = ipamResourceDiscoveryRegion + self.isDefault = isDefault + self.operatingRegions = operatingRegions + self.ownerId = ownerId + self.state = state + self.tags = tags + } + + enum CodingKeys: String, CodingKey { + case description + case ipamResourceDiscoveryArn + case ipamResourceDiscoveryId + case ipamResourceDiscoveryRegion + case isDefault + case operatingRegions = "operatingRegionSet" + case ownerId + case state + case tags = "tagSet" + } + + public func validate() throws { + } +} + +public struct IpamResourceDiscoveryAssociation: Codable, Equatable { + public var ipamArn: ResourceArn? + public var ipamId: IpamId? + public var ipamRegion: String? + public var ipamResourceDiscoveryAssociationArn: String? + public var ipamResourceDiscoveryAssociationId: IpamResourceDiscoveryAssociationId? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId? + public var isDefault: Boolean? + public var ownerId: String? + public var resourceDiscoveryStatus: IpamAssociatedResourceDiscoveryStatus? + public var state: IpamResourceDiscoveryAssociationState? + public var tags: TagList? + + public init(ipamArn: ResourceArn? = nil, + ipamId: IpamId? = nil, + ipamRegion: String? = nil, + ipamResourceDiscoveryAssociationArn: String? = nil, + ipamResourceDiscoveryAssociationId: IpamResourceDiscoveryAssociationId? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId? = nil, + isDefault: Boolean? = nil, + ownerId: String? = nil, + resourceDiscoveryStatus: IpamAssociatedResourceDiscoveryStatus? = nil, + state: IpamResourceDiscoveryAssociationState? = nil, + tags: TagList? = nil) { + self.ipamArn = ipamArn + self.ipamId = ipamId + self.ipamRegion = ipamRegion + self.ipamResourceDiscoveryAssociationArn = ipamResourceDiscoveryAssociationArn + self.ipamResourceDiscoveryAssociationId = ipamResourceDiscoveryAssociationId + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.isDefault = isDefault + self.ownerId = ownerId + self.resourceDiscoveryStatus = resourceDiscoveryStatus + self.state = state + self.tags = tags + } + + enum CodingKeys: String, CodingKey { + case ipamArn + case ipamId + case ipamRegion + case ipamResourceDiscoveryAssociationArn + case ipamResourceDiscoveryAssociationId + case ipamResourceDiscoveryId + case isDefault + case ownerId + case resourceDiscoveryStatus + case state + case tags = "tagSet" + } + + public func validate() throws { + try ipamArn?.validateAsResourceArn() + } +} + public struct IpamResourceTag: Codable, Equatable { public var key: String? public var value: String? @@ -29785,7 +31040,7 @@ public struct LaunchSpecification: Codable, Equatable { public var ramdiskId: String? public var securityGroups: GroupIdentifierList? public var subnetId: String? - public var userData: String? + public var userData: SensitiveUserData? public init(addressingType: String? = nil, blockDeviceMappings: BlockDeviceMappingList? = nil, @@ -29801,7 +31056,7 @@ public struct LaunchSpecification: Codable, Equatable { ramdiskId: String? = nil, securityGroups: GroupIdentifierList? = nil, subnetId: String? = nil, - userData: String? = nil) { + userData: SensitiveUserData? = nil) { self.addressingType = addressingType self.blockDeviceMappings = blockDeviceMappings self.ebsOptimized = ebsOptimized @@ -30022,16 +31277,20 @@ public struct LaunchTemplateConfig: Codable, Equatable { } public struct LaunchTemplateCpuOptions: Codable, Equatable { + public var amdSevSnp: AmdSevSnpSpecification? public var coreCount: Integer? public var threadsPerCore: Integer? - public init(coreCount: Integer? = nil, + public init(amdSevSnp: AmdSevSnpSpecification? = nil, + coreCount: Integer? = nil, threadsPerCore: Integer? = nil) { + self.amdSevSnp = amdSevSnp self.coreCount = coreCount self.threadsPerCore = threadsPerCore } enum CodingKeys: String, CodingKey { + case amdSevSnp case coreCount case threadsPerCore } @@ -30041,16 +31300,20 @@ public struct LaunchTemplateCpuOptions: Codable, Equatable { } public struct LaunchTemplateCpuOptionsRequest: Codable, Equatable { + public var amdSevSnp: AmdSevSnpSpecification? public var coreCount: Integer? public var threadsPerCore: Integer? - public init(coreCount: Integer? = nil, + public init(amdSevSnp: AmdSevSnpSpecification? = nil, + coreCount: Integer? = nil, threadsPerCore: Integer? = nil) { + self.amdSevSnp = amdSevSnp self.coreCount = coreCount self.threadsPerCore = threadsPerCore } enum CodingKeys: String, CodingKey { + case amdSevSnp = "AmdSevSnp" case coreCount = "CoreCount" case threadsPerCore = "ThreadsPerCore" } @@ -31237,6 +32500,7 @@ public struct LocalGateway: Codable, Equatable { public struct LocalGatewayRoute: Codable, Equatable { public var coipPoolId: CoipPoolId? public var destinationCidrBlock: String? + public var destinationPrefixListId: PrefixListResourceId? public var localGatewayRouteTableArn: ResourceArn? public var localGatewayRouteTableId: LocalGatewayRoutetableId? public var localGatewayVirtualInterfaceGroupId: LocalGatewayVirtualInterfaceGroupId? @@ -31248,6 +32512,7 @@ public struct LocalGatewayRoute: Codable, Equatable { public init(coipPoolId: CoipPoolId? = nil, destinationCidrBlock: String? = nil, + destinationPrefixListId: PrefixListResourceId? = nil, localGatewayRouteTableArn: ResourceArn? = nil, localGatewayRouteTableId: LocalGatewayRoutetableId? = nil, localGatewayVirtualInterfaceGroupId: LocalGatewayVirtualInterfaceGroupId? = nil, @@ -31258,6 +32523,7 @@ public struct LocalGatewayRoute: Codable, Equatable { type: LocalGatewayRouteType? = nil) { self.coipPoolId = coipPoolId self.destinationCidrBlock = destinationCidrBlock + self.destinationPrefixListId = destinationPrefixListId self.localGatewayRouteTableArn = localGatewayRouteTableArn self.localGatewayRouteTableId = localGatewayRouteTableId self.localGatewayVirtualInterfaceGroupId = localGatewayVirtualInterfaceGroupId @@ -31271,6 +32537,7 @@ public struct LocalGatewayRoute: Codable, Equatable { enum CodingKeys: String, CodingKey { case coipPoolId case destinationCidrBlock + case destinationPrefixListId case localGatewayRouteTableArn case localGatewayRouteTableId case localGatewayVirtualInterfaceGroupId @@ -31501,6 +32768,29 @@ public struct LocalGatewayVirtualInterfaceGroup: Codable, Equatable { } } +public struct MaintenanceDetails: Codable, Equatable { + public var lastMaintenanceApplied: MillisecondDateTime? + public var maintenanceAutoAppliedAfter: MillisecondDateTime? + public var pendingMaintenance: String? + + public init(lastMaintenanceApplied: MillisecondDateTime? = nil, + maintenanceAutoAppliedAfter: MillisecondDateTime? = nil, + pendingMaintenance: String? = nil) { + self.lastMaintenanceApplied = lastMaintenanceApplied + self.maintenanceAutoAppliedAfter = maintenanceAutoAppliedAfter + self.pendingMaintenance = pendingMaintenance + } + + enum CodingKeys: String, CodingKey { + case lastMaintenanceApplied + case maintenanceAutoAppliedAfter + case pendingMaintenance + } + + public func validate() throws { + } +} + public struct ManagedPrefixList: Codable, Equatable { public var addressFamily: String? public var maxEntries: Integer? @@ -32130,17 +33420,20 @@ public struct ModifyFpgaImageAttributeResult: Codable, Equatable { public struct ModifyHostsRequest: Codable, Equatable { public var autoPlacement: AutoPlacement? public var hostIds: RequestHostIdList + public var hostMaintenance: HostMaintenance? public var hostRecovery: HostRecovery? public var instanceFamily: String? public var instanceType: String? public init(autoPlacement: AutoPlacement? = nil, hostIds: RequestHostIdList, + hostMaintenance: HostMaintenance? = nil, hostRecovery: HostRecovery? = nil, instanceFamily: String? = nil, instanceType: String? = nil) { self.autoPlacement = autoPlacement self.hostIds = hostIds + self.hostMaintenance = hostMaintenance self.hostRecovery = hostRecovery self.instanceFamily = instanceFamily self.instanceType = instanceType @@ -32149,6 +33442,7 @@ public struct ModifyHostsRequest: Codable, Equatable { enum CodingKeys: String, CodingKey { case autoPlacement case hostIds = "hostId" + case hostMaintenance = "HostMaintenance" case hostRecovery = "HostRecovery" case instanceFamily = "InstanceFamily" case instanceType = "InstanceType" @@ -32224,6 +33518,7 @@ public struct ModifyImageAttributeRequest: Codable, Equatable { public var description: AttributeValue? public var dryRun: Boolean? public var imageId: ImageId + public var imdsSupport: AttributeValue? public var launchPermission: LaunchPermissionModifications? public var operationType: OperationType? public var organizationArns: OrganizationArnStringList? @@ -32237,6 +33532,7 @@ public struct ModifyImageAttributeRequest: Codable, Equatable { description: AttributeValue? = nil, dryRun: Boolean? = nil, imageId: ImageId, + imdsSupport: AttributeValue? = nil, launchPermission: LaunchPermissionModifications? = nil, operationType: OperationType? = nil, organizationArns: OrganizationArnStringList? = nil, @@ -32249,6 +33545,7 @@ public struct ModifyImageAttributeRequest: Codable, Equatable { self.description = description self.dryRun = dryRun self.imageId = imageId + self.imdsSupport = imdsSupport self.launchPermission = launchPermission self.operationType = operationType self.organizationArns = organizationArns @@ -32264,6 +33561,7 @@ public struct ModifyImageAttributeRequest: Codable, Equatable { case description = "Description" case dryRun case imageId = "ImageId" + case imdsSupport = "ImdsSupport" case launchPermission = "LaunchPermission" case operationType = "OperationType" case organizationArns = "OrganizationArn" @@ -32276,6 +33574,7 @@ public struct ModifyImageAttributeRequest: Codable, Equatable { public func validate() throws { try description?.validate() + try imdsSupport?.validate() try launchPermission?.validate() } } @@ -32858,6 +34157,55 @@ public struct ModifyIpamResourceCidrResult: Codable, Equatable { } } +public struct ModifyIpamResourceDiscoveryRequest: Codable, Equatable { + public var addOperatingRegions: AddIpamOperatingRegionSet? + public var description: String? + public var dryRun: Boolean? + public var ipamResourceDiscoveryId: IpamResourceDiscoveryId + public var removeOperatingRegions: RemoveIpamOperatingRegionSet? + + public init(addOperatingRegions: AddIpamOperatingRegionSet? = nil, + description: String? = nil, + dryRun: Boolean? = nil, + ipamResourceDiscoveryId: IpamResourceDiscoveryId, + removeOperatingRegions: RemoveIpamOperatingRegionSet? = nil) { + self.addOperatingRegions = addOperatingRegions + self.description = description + self.dryRun = dryRun + self.ipamResourceDiscoveryId = ipamResourceDiscoveryId + self.removeOperatingRegions = removeOperatingRegions + } + + enum CodingKeys: String, CodingKey { + case addOperatingRegions = "AddOperatingRegion" + case description = "Description" + case dryRun = "DryRun" + case ipamResourceDiscoveryId = "IpamResourceDiscoveryId" + case removeOperatingRegions = "RemoveOperatingRegion" + } + + public func validate() throws { + try addOperatingRegions?.validateAsAddIpamOperatingRegionSet() + try removeOperatingRegions?.validateAsRemoveIpamOperatingRegionSet() + } +} + +public struct ModifyIpamResourceDiscoveryResult: Codable, Equatable { + public var ipamResourceDiscovery: IpamResourceDiscovery? + + public init(ipamResourceDiscovery: IpamResourceDiscovery? = nil) { + self.ipamResourceDiscovery = ipamResourceDiscovery + } + + enum CodingKeys: String, CodingKey { + case ipamResourceDiscovery + } + + public func validate() throws { + try ipamResourceDiscovery?.validate() + } +} + public struct ModifyIpamResult: Codable, Equatable { public var ipam: Ipam? @@ -32962,18 +34310,21 @@ public struct ModifyLaunchTemplateResult: Codable, Equatable { } public struct ModifyLocalGatewayRouteRequest: Codable, Equatable { - public var destinationCidrBlock: String + public var destinationCidrBlock: String? + public var destinationPrefixListId: PrefixListResourceId? public var dryRun: Boolean? public var localGatewayRouteTableId: LocalGatewayRoutetableId public var localGatewayVirtualInterfaceGroupId: LocalGatewayVirtualInterfaceGroupId? public var networkInterfaceId: NetworkInterfaceId? - public init(destinationCidrBlock: String, + public init(destinationCidrBlock: String? = nil, + destinationPrefixListId: PrefixListResourceId? = nil, dryRun: Boolean? = nil, localGatewayRouteTableId: LocalGatewayRoutetableId, localGatewayVirtualInterfaceGroupId: LocalGatewayVirtualInterfaceGroupId? = nil, networkInterfaceId: NetworkInterfaceId? = nil) { self.destinationCidrBlock = destinationCidrBlock + self.destinationPrefixListId = destinationPrefixListId self.dryRun = dryRun self.localGatewayRouteTableId = localGatewayRouteTableId self.localGatewayVirtualInterfaceGroupId = localGatewayVirtualInterfaceGroupId @@ -32982,6 +34333,7 @@ public struct ModifyLocalGatewayRouteRequest: Codable, Equatable { enum CodingKeys: String, CodingKey { case destinationCidrBlock = "DestinationCidrBlock" + case destinationPrefixListId = "DestinationPrefixListId" case dryRun = "DryRun" case localGatewayRouteTableId = "LocalGatewayRouteTableId" case localGatewayVirtualInterfaceGroupId = "LocalGatewayVirtualInterfaceGroupId" @@ -33112,13 +34464,13 @@ public struct ModifyPrivateDnsNameOptionsRequest: Codable, Equatable { public var dryRun: Boolean? public var enableResourceNameDnsAAAARecord: Boolean? public var enableResourceNameDnsARecord: Boolean? - public var instanceId: InstanceId? + public var instanceId: InstanceId public var privateDnsHostnameType: HostnameType? public init(dryRun: Boolean? = nil, enableResourceNameDnsAAAARecord: Boolean? = nil, enableResourceNameDnsARecord: Boolean? = nil, - instanceId: InstanceId? = nil, + instanceId: InstanceId, privateDnsHostnameType: HostnameType? = nil) { self.dryRun = dryRun self.enableResourceNameDnsAAAARecord = enableResourceNameDnsAAAARecord @@ -33479,7 +34831,7 @@ public struct ModifyTrafficMirrorFilterRuleRequest: Codable, Equatable { public var sourceCidrBlock: String? public var sourcePortRange: TrafficMirrorPortRangeRequest? public var trafficDirection: TrafficDirection? - public var trafficMirrorFilterRuleId: TrafficMirrorFilterRuleId + public var trafficMirrorFilterRuleId: TrafficMirrorFilterRuleIdWithResolver public init(description: String? = nil, destinationCidrBlock: String? = nil, @@ -33492,7 +34844,7 @@ public struct ModifyTrafficMirrorFilterRuleRequest: Codable, Equatable { sourceCidrBlock: String? = nil, sourcePortRange: TrafficMirrorPortRangeRequest? = nil, trafficDirection: TrafficDirection? = nil, - trafficMirrorFilterRuleId: TrafficMirrorFilterRuleId) { + trafficMirrorFilterRuleId: TrafficMirrorFilterRuleIdWithResolver) { self.description = description self.destinationCidrBlock = destinationCidrBlock self.destinationPortRange = destinationPortRange @@ -34156,14 +35508,38 @@ public struct ModifyVerifiedAccessInstanceResult: Codable, Equatable { } public struct ModifyVerifiedAccessTrustProviderOidcOptions: Codable, Equatable { + public var authorizationEndpoint: String? + public var clientId: String? + public var clientSecret: ClientSecretType? + public var issuer: String? public var scope: String? + public var tokenEndpoint: String? + public var userInfoEndpoint: String? - public init(scope: String? = nil) { + public init(authorizationEndpoint: String? = nil, + clientId: String? = nil, + clientSecret: ClientSecretType? = nil, + issuer: String? = nil, + scope: String? = nil, + tokenEndpoint: String? = nil, + userInfoEndpoint: String? = nil) { + self.authorizationEndpoint = authorizationEndpoint + self.clientId = clientId + self.clientSecret = clientSecret + self.issuer = issuer self.scope = scope + self.tokenEndpoint = tokenEndpoint + self.userInfoEndpoint = userInfoEndpoint } enum CodingKeys: String, CodingKey { + case authorizationEndpoint = "AuthorizationEndpoint" + case clientId = "ClientId" + case clientSecret = "ClientSecret" + case issuer = "Issuer" case scope = "Scope" + case tokenEndpoint = "TokenEndpoint" + case userInfoEndpoint = "UserInfoEndpoint" } public func validate() throws { @@ -34829,15 +36205,18 @@ public struct ModifyVpnTunnelCertificateResult: Codable, Equatable { public struct ModifyVpnTunnelOptionsRequest: Codable, Equatable { public var dryRun: Boolean? + public var skipTunnelReplacement: Boolean? public var tunnelOptions: ModifyVpnTunnelOptionsSpecification public var vpnConnectionId: VpnConnectionId public var vpnTunnelOutsideIpAddress: String public init(dryRun: Boolean? = nil, + skipTunnelReplacement: Boolean? = nil, tunnelOptions: ModifyVpnTunnelOptionsSpecification, vpnConnectionId: VpnConnectionId, vpnTunnelOutsideIpAddress: String) { self.dryRun = dryRun + self.skipTunnelReplacement = skipTunnelReplacement self.tunnelOptions = tunnelOptions self.vpnConnectionId = vpnConnectionId self.vpnTunnelOutsideIpAddress = vpnTunnelOutsideIpAddress @@ -34845,6 +36224,7 @@ public struct ModifyVpnTunnelOptionsRequest: Codable, Equatable { enum CodingKeys: String, CodingKey { case dryRun = "DryRun" + case skipTunnelReplacement = "SkipTunnelReplacement" case tunnelOptions = "TunnelOptions" case vpnConnectionId = "VpnConnectionId" case vpnTunnelOutsideIpAddress = "VpnTunnelOutsideIpAddress" @@ -34874,6 +36254,7 @@ public struct ModifyVpnTunnelOptionsResult: Codable, Equatable { public struct ModifyVpnTunnelOptionsSpecification: Codable, Equatable { public var dPDTimeoutAction: String? public var dPDTimeoutSeconds: Integer? + public var enableTunnelLifecycleControl: Boolean? public var iKEVersions: IKEVersionsRequestList? public var logOptions: VpnTunnelLogOptionsSpecification? public var phase1DHGroupNumbers: Phase1DHGroupNumbersRequestList? @@ -34884,7 +36265,7 @@ public struct ModifyVpnTunnelOptionsSpecification: Codable, Equatable { public var phase2EncryptionAlgorithms: Phase2EncryptionAlgorithmsRequestList? public var phase2IntegrityAlgorithms: Phase2IntegrityAlgorithmsRequestList? public var phase2LifetimeSeconds: Integer? - public var preSharedKey: String? + public var preSharedKey: PreSharedKey? public var rekeyFuzzPercentage: Integer? public var rekeyMarginTimeSeconds: Integer? public var replayWindowSize: Integer? @@ -34894,6 +36275,7 @@ public struct ModifyVpnTunnelOptionsSpecification: Codable, Equatable { public init(dPDTimeoutAction: String? = nil, dPDTimeoutSeconds: Integer? = nil, + enableTunnelLifecycleControl: Boolean? = nil, iKEVersions: IKEVersionsRequestList? = nil, logOptions: VpnTunnelLogOptionsSpecification? = nil, phase1DHGroupNumbers: Phase1DHGroupNumbersRequestList? = nil, @@ -34904,7 +36286,7 @@ public struct ModifyVpnTunnelOptionsSpecification: Codable, Equatable { phase2EncryptionAlgorithms: Phase2EncryptionAlgorithmsRequestList? = nil, phase2IntegrityAlgorithms: Phase2IntegrityAlgorithmsRequestList? = nil, phase2LifetimeSeconds: Integer? = nil, - preSharedKey: String? = nil, + preSharedKey: PreSharedKey? = nil, rekeyFuzzPercentage: Integer? = nil, rekeyMarginTimeSeconds: Integer? = nil, replayWindowSize: Integer? = nil, @@ -34913,6 +36295,7 @@ public struct ModifyVpnTunnelOptionsSpecification: Codable, Equatable { tunnelInsideIpv6Cidr: String? = nil) { self.dPDTimeoutAction = dPDTimeoutAction self.dPDTimeoutSeconds = dPDTimeoutSeconds + self.enableTunnelLifecycleControl = enableTunnelLifecycleControl self.iKEVersions = iKEVersions self.logOptions = logOptions self.phase1DHGroupNumbers = phase1DHGroupNumbers @@ -34935,6 +36318,7 @@ public struct ModifyVpnTunnelOptionsSpecification: Codable, Equatable { enum CodingKeys: String, CodingKey { case dPDTimeoutAction = "DPDTimeoutAction" case dPDTimeoutSeconds = "DPDTimeoutSeconds" + case enableTunnelLifecycleControl = "EnableTunnelLifecycleControl" case iKEVersions = "IKEVersion" case logOptions = "LogOptions" case phase1DHGroupNumbers = "Phase1DHGroupNumber" @@ -35170,25 +36554,41 @@ public struct NatGateway: Codable, Equatable { public struct NatGatewayAddress: Codable, Equatable { public var allocationId: String? + public var associationId: String? + public var failureMessage: String? + public var isPrimary: Boolean? public var networkInterfaceId: String? public var privateIp: String? public var publicIp: String? + public var status: NatGatewayAddressStatus? public init(allocationId: String? = nil, + associationId: String? = nil, + failureMessage: String? = nil, + isPrimary: Boolean? = nil, networkInterfaceId: String? = nil, privateIp: String? = nil, - publicIp: String? = nil) { + publicIp: String? = nil, + status: NatGatewayAddressStatus? = nil) { self.allocationId = allocationId + self.associationId = associationId + self.failureMessage = failureMessage + self.isPrimary = isPrimary self.networkInterfaceId = networkInterfaceId self.privateIp = privateIp self.publicIp = publicIp + self.status = status } enum CodingKeys: String, CodingKey { case allocationId + case associationId + case failureMessage + case isPrimary case networkInterfaceId case privateIp case publicIp + case status } public func validate() throws { @@ -35620,6 +37020,8 @@ public struct NetworkInsightsPath: Codable, Equatable { public var destinationArn: ResourceArn? public var destinationIp: IpAddress? public var destinationPort: Integer? + public var filterAtDestination: PathFilter? + public var filterAtSource: PathFilter? public var networkInsightsPathArn: ResourceArn? public var networkInsightsPathId: NetworkInsightsPathId? public var `protocol`: Protocol? @@ -35633,6 +37035,8 @@ public struct NetworkInsightsPath: Codable, Equatable { destinationArn: ResourceArn? = nil, destinationIp: IpAddress? = nil, destinationPort: Integer? = nil, + filterAtDestination: PathFilter? = nil, + filterAtSource: PathFilter? = nil, networkInsightsPathArn: ResourceArn? = nil, networkInsightsPathId: NetworkInsightsPathId? = nil, `protocol`: Protocol? = nil, @@ -35645,6 +37049,8 @@ public struct NetworkInsightsPath: Codable, Equatable { self.destinationArn = destinationArn self.destinationIp = destinationIp self.destinationPort = destinationPort + self.filterAtDestination = filterAtDestination + self.filterAtSource = filterAtSource self.networkInsightsPathArn = networkInsightsPathArn self.networkInsightsPathId = networkInsightsPathId self.`protocol` = `protocol` @@ -35660,6 +37066,8 @@ public struct NetworkInsightsPath: Codable, Equatable { case destinationArn case destinationIp case destinationPort + case filterAtDestination + case filterAtSource case networkInsightsPathArn case networkInsightsPathId case `protocol` = "protocol" @@ -35672,6 +37080,8 @@ public struct NetworkInsightsPath: Codable, Equatable { public func validate() throws { try destinationArn?.validateAsResourceArn() try destinationIp?.validateAsIpAddress() + try filterAtDestination?.validate() + try filterAtSource?.validate() try networkInsightsPathArn?.validateAsResourceArn() try sourceArn?.validateAsResourceArn() try sourceIp?.validateAsIpAddress() @@ -36059,7 +37469,7 @@ public struct NewDhcpConfiguration: Codable, Equatable { public struct OidcOptions: Codable, Equatable { public var authorizationEndpoint: String? public var clientId: String? - public var clientSecret: String? + public var clientSecret: ClientSecretType? public var issuer: String? public var scope: String? public var tokenEndpoint: String? @@ -36067,7 +37477,7 @@ public struct OidcOptions: Codable, Equatable { public init(authorizationEndpoint: String? = nil, clientId: String? = nil, - clientSecret: String? = nil, + clientSecret: ClientSecretType? = nil, issuer: String? = nil, scope: String? = nil, tokenEndpoint: String? = nil, @@ -36253,11 +37663,14 @@ public struct PathComponent: Codable, Equatable { public var destinationVpc: AnalysisComponent? public var elasticLoadBalancerListener: AnalysisComponent? public var explanations: ExplanationList? + public var firewallStatefulRule: FirewallStatefulRule? + public var firewallStatelessRule: FirewallStatelessRule? public var inboundHeader: AnalysisPacketHeader? public var outboundHeader: AnalysisPacketHeader? public var routeTableRoute: AnalysisRouteTableRoute? public var securityGroupRule: AnalysisSecurityGroupRule? public var sequenceNumber: Integer? + public var serviceName: String? public var sourceVpc: AnalysisComponent? public var subnet: AnalysisComponent? public var transitGateway: AnalysisComponent? @@ -36271,11 +37684,14 @@ public struct PathComponent: Codable, Equatable { destinationVpc: AnalysisComponent? = nil, elasticLoadBalancerListener: AnalysisComponent? = nil, explanations: ExplanationList? = nil, + firewallStatefulRule: FirewallStatefulRule? = nil, + firewallStatelessRule: FirewallStatelessRule? = nil, inboundHeader: AnalysisPacketHeader? = nil, outboundHeader: AnalysisPacketHeader? = nil, routeTableRoute: AnalysisRouteTableRoute? = nil, securityGroupRule: AnalysisSecurityGroupRule? = nil, sequenceNumber: Integer? = nil, + serviceName: String? = nil, sourceVpc: AnalysisComponent? = nil, subnet: AnalysisComponent? = nil, transitGateway: AnalysisComponent? = nil, @@ -36288,11 +37704,14 @@ public struct PathComponent: Codable, Equatable { self.destinationVpc = destinationVpc self.elasticLoadBalancerListener = elasticLoadBalancerListener self.explanations = explanations + self.firewallStatefulRule = firewallStatefulRule + self.firewallStatelessRule = firewallStatelessRule self.inboundHeader = inboundHeader self.outboundHeader = outboundHeader self.routeTableRoute = routeTableRoute self.securityGroupRule = securityGroupRule self.sequenceNumber = sequenceNumber + self.serviceName = serviceName self.sourceVpc = sourceVpc self.subnet = subnet self.transitGateway = transitGateway @@ -36308,11 +37727,14 @@ public struct PathComponent: Codable, Equatable { case destinationVpc case elasticLoadBalancerListener case explanations = "explanationSet" + case firewallStatefulRule + case firewallStatelessRule case inboundHeader case outboundHeader case routeTableRoute case securityGroupRule case sequenceNumber + case serviceName case sourceVpc case subnet case transitGateway @@ -36326,6 +37748,8 @@ public struct PathComponent: Codable, Equatable { try component?.validate() try destinationVpc?.validate() try elasticLoadBalancerListener?.validate() + try firewallStatefulRule?.validate() + try firewallStatelessRule?.validate() try inboundHeader?.validate() try outboundHeader?.validate() try routeTableRoute?.validate() @@ -36338,6 +37762,68 @@ public struct PathComponent: Codable, Equatable { } } +public struct PathFilter: Codable, Equatable { + public var destinationAddress: IpAddress? + public var destinationPortRange: FilterPortRange? + public var sourceAddress: IpAddress? + public var sourcePortRange: FilterPortRange? + + public init(destinationAddress: IpAddress? = nil, + destinationPortRange: FilterPortRange? = nil, + sourceAddress: IpAddress? = nil, + sourcePortRange: FilterPortRange? = nil) { + self.destinationAddress = destinationAddress + self.destinationPortRange = destinationPortRange + self.sourceAddress = sourceAddress + self.sourcePortRange = sourcePortRange + } + + enum CodingKeys: String, CodingKey { + case destinationAddress + case destinationPortRange + case sourceAddress + case sourcePortRange + } + + public func validate() throws { + try destinationAddress?.validateAsIpAddress() + try destinationPortRange?.validate() + try sourceAddress?.validateAsIpAddress() + try sourcePortRange?.validate() + } +} + +public struct PathRequestFilter: Codable, Equatable { + public var destinationAddress: IpAddress? + public var destinationPortRange: RequestFilterPortRange? + public var sourceAddress: IpAddress? + public var sourcePortRange: RequestFilterPortRange? + + public init(destinationAddress: IpAddress? = nil, + destinationPortRange: RequestFilterPortRange? = nil, + sourceAddress: IpAddress? = nil, + sourcePortRange: RequestFilterPortRange? = nil) { + self.destinationAddress = destinationAddress + self.destinationPortRange = destinationPortRange + self.sourceAddress = sourceAddress + self.sourcePortRange = sourcePortRange + } + + enum CodingKeys: String, CodingKey { + case destinationAddress = "DestinationAddress" + case destinationPortRange = "DestinationPortRange" + case sourceAddress = "SourceAddress" + case sourcePortRange = "SourcePortRange" + } + + public func validate() throws { + try destinationAddress?.validateAsIpAddress() + try destinationPortRange?.validate() + try sourceAddress?.validateAsIpAddress() + try sourcePortRange?.validate() + } +} + public struct PathStatement: Codable, Equatable { public var packetHeaderStatement: PacketHeaderStatement? public var resourceStatement: ResourceStatement? @@ -37133,16 +38619,20 @@ public struct PrivateIpAddressSpecification: Codable, Equatable { public struct ProcessorInfo: Codable, Equatable { public var supportedArchitectures: ArchitectureTypeList? + public var supportedFeatures: SupportedAdditionalProcessorFeatureList? public var sustainedClockSpeedInGhz: ProcessorSustainedClockSpeed? public init(supportedArchitectures: ArchitectureTypeList? = nil, + supportedFeatures: SupportedAdditionalProcessorFeatureList? = nil, sustainedClockSpeedInGhz: ProcessorSustainedClockSpeed? = nil) { self.supportedArchitectures = supportedArchitectures + self.supportedFeatures = supportedFeatures self.sustainedClockSpeedInGhz = sustainedClockSpeedInGhz } enum CodingKeys: String, CodingKey { case supportedArchitectures + case supportedFeatures case sustainedClockSpeedInGhz } @@ -37243,24 +38733,32 @@ public struct ProvisionByoipCidrResult: Codable, Equatable { public struct ProvisionIpamPoolCidrRequest: Codable, Equatable { public var cidr: String? public var cidrAuthorizationContext: IpamCidrAuthorizationContext? + public var clientToken: String? public var dryRun: Boolean? public var ipamPoolId: IpamPoolId + public var netmaskLength: Integer? public init(cidr: String? = nil, cidrAuthorizationContext: IpamCidrAuthorizationContext? = nil, + clientToken: String? = nil, dryRun: Boolean? = nil, - ipamPoolId: IpamPoolId) { + ipamPoolId: IpamPoolId, + netmaskLength: Integer? = nil) { self.cidr = cidr self.cidrAuthorizationContext = cidrAuthorizationContext + self.clientToken = clientToken self.dryRun = dryRun self.ipamPoolId = ipamPoolId + self.netmaskLength = netmaskLength } enum CodingKeys: String, CodingKey { case cidr = "Cidr" case cidrAuthorizationContext = "CidrAuthorizationContext" + case clientToken = "ClientToken" case dryRun = "DryRun" case ipamPoolId = "IpamPoolId" + case netmaskLength = "NetmaskLength" } public func validate() throws { @@ -37854,10 +39352,10 @@ public struct RegisterImageResult: Codable, Equatable { public struct RegisterInstanceEventNotificationAttributesRequest: Codable, Equatable { public var dryRun: Boolean? - public var instanceTagAttribute: RegisterInstanceTagAttributeRequest? + public var instanceTagAttribute: RegisterInstanceTagAttributeRequest public init(dryRun: Boolean? = nil, - instanceTagAttribute: RegisterInstanceTagAttributeRequest? = nil) { + instanceTagAttribute: RegisterInstanceTagAttributeRequest) { self.dryRun = dryRun self.instanceTagAttribute = instanceTagAttribute } @@ -37868,7 +39366,7 @@ public struct RegisterInstanceEventNotificationAttributesRequest: Codable, Equat } public func validate() throws { - try instanceTagAttribute?.validate() + try instanceTagAttribute.validate() } } @@ -37910,13 +39408,13 @@ public struct RegisterInstanceTagAttributeRequest: Codable, Equatable { public struct RegisterTransitGatewayMulticastGroupMembersRequest: Codable, Equatable { public var dryRun: Boolean? public var groupIpAddress: String? - public var networkInterfaceIds: TransitGatewayNetworkInterfaceIdList? - public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? + public var networkInterfaceIds: TransitGatewayNetworkInterfaceIdList + public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId public init(dryRun: Boolean? = nil, groupIpAddress: String? = nil, - networkInterfaceIds: TransitGatewayNetworkInterfaceIdList? = nil, - transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? = nil) { + networkInterfaceIds: TransitGatewayNetworkInterfaceIdList, + transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId) { self.dryRun = dryRun self.groupIpAddress = groupIpAddress self.networkInterfaceIds = networkInterfaceIds @@ -37953,13 +39451,13 @@ public struct RegisterTransitGatewayMulticastGroupMembersResult: Codable, Equata public struct RegisterTransitGatewayMulticastGroupSourcesRequest: Codable, Equatable { public var dryRun: Boolean? public var groupIpAddress: String? - public var networkInterfaceIds: TransitGatewayNetworkInterfaceIdList? - public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? + public var networkInterfaceIds: TransitGatewayNetworkInterfaceIdList + public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId public init(dryRun: Boolean? = nil, groupIpAddress: String? = nil, - networkInterfaceIds: TransitGatewayNetworkInterfaceIdList? = nil, - transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? = nil) { + networkInterfaceIds: TransitGatewayNetworkInterfaceIdList, + transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId) { self.dryRun = dryRun self.groupIpAddress = groupIpAddress self.networkInterfaceIds = networkInterfaceIds @@ -38654,6 +40152,48 @@ public struct ReplaceTransitGatewayRouteResult: Codable, Equatable { } } +public struct ReplaceVpnTunnelRequest: Codable, Equatable { + public var applyPendingMaintenance: Boolean? + public var dryRun: Boolean? + public var vpnConnectionId: VpnConnectionId + public var vpnTunnelOutsideIpAddress: String + + public init(applyPendingMaintenance: Boolean? = nil, + dryRun: Boolean? = nil, + vpnConnectionId: VpnConnectionId, + vpnTunnelOutsideIpAddress: String) { + self.applyPendingMaintenance = applyPendingMaintenance + self.dryRun = dryRun + self.vpnConnectionId = vpnConnectionId + self.vpnTunnelOutsideIpAddress = vpnTunnelOutsideIpAddress + } + + enum CodingKeys: String, CodingKey { + case applyPendingMaintenance = "ApplyPendingMaintenance" + case dryRun = "DryRun" + case vpnConnectionId = "VpnConnectionId" + case vpnTunnelOutsideIpAddress = "VpnTunnelOutsideIpAddress" + } + + public func validate() throws { + } +} + +public struct ReplaceVpnTunnelResult: Codable, Equatable { + public var `return`: Boolean? + + public init(`return`: Boolean? = nil) { + self.`return` = `return` + } + + enum CodingKeys: String, CodingKey { + case `return` = "return" + } + + public func validate() throws { + } +} + public struct ReportInstanceStatusRequest: Codable, Equatable { public var description: String? public var dryRun: Boolean? @@ -38693,6 +40233,27 @@ public struct ReportInstanceStatusRequest: Codable, Equatable { } } +public struct RequestFilterPortRange: Codable, Equatable { + public var fromPort: Port? + public var toPort: Port? + + public init(fromPort: Port? = nil, + toPort: Port? = nil) { + self.fromPort = fromPort + self.toPort = toPort + } + + enum CodingKeys: String, CodingKey { + case fromPort = "FromPort" + case toPort = "ToPort" + } + + public func validate() throws { + try fromPort?.validateAsPort() + try toPort?.validateAsPort() + } +} + public struct RequestIpamResourceTag: Codable, Equatable { public var key: String? public var value: String? @@ -38743,7 +40304,7 @@ public struct RequestLaunchTemplateData: Codable, Equatable { public var securityGroupIds: SecurityGroupIdStringList? public var securityGroups: SecurityGroupStringList? public var tagSpecifications: LaunchTemplateTagSpecificationRequestList? - public var userData: String? + public var userData: SensitiveUserData? public init(blockDeviceMappings: LaunchTemplateBlockDeviceMappingRequestList? = nil, capacityReservationSpecification: LaunchTemplateCapacityReservationSpecificationRequest? = nil, @@ -38775,7 +40336,7 @@ public struct RequestLaunchTemplateData: Codable, Equatable { securityGroupIds: SecurityGroupIdStringList? = nil, securityGroups: SecurityGroupStringList? = nil, tagSpecifications: LaunchTemplateTagSpecificationRequestList? = nil, - userData: String? = nil) { + userData: SensitiveUserData? = nil) { self.blockDeviceMappings = blockDeviceMappings self.capacityReservationSpecification = capacityReservationSpecification self.cpuOptions = cpuOptions @@ -38990,7 +40551,7 @@ public struct RequestSpotLaunchSpecification: Codable, Equatable { public var securityGroupIds: RequestSpotLaunchSpecificationSecurityGroupIdList? public var securityGroups: RequestSpotLaunchSpecificationSecurityGroupList? public var subnetId: SubnetId? - public var userData: String? + public var userData: SensitiveUserData? public init(addressingType: String? = nil, blockDeviceMappings: BlockDeviceMappingList? = nil, @@ -39007,7 +40568,7 @@ public struct RequestSpotLaunchSpecification: Codable, Equatable { securityGroupIds: RequestSpotLaunchSpecificationSecurityGroupIdList? = nil, securityGroups: RequestSpotLaunchSpecificationSecurityGroupList? = nil, subnetId: SubnetId? = nil, - userData: String? = nil) { + userData: SensitiveUserData? = nil) { self.addressingType = addressingType self.blockDeviceMappings = blockDeviceMappings self.ebsOptimized = ebsOptimized @@ -39791,7 +41352,7 @@ public struct ResponseLaunchTemplateData: Codable, Equatable { public var securityGroupIds: ValueStringList? public var securityGroups: ValueStringList? public var tagSpecifications: LaunchTemplateTagSpecificationList? - public var userData: String? + public var userData: SensitiveUserData? public init(blockDeviceMappings: LaunchTemplateBlockDeviceMappingList? = nil, capacityReservationSpecification: LaunchTemplateCapacityReservationSpecificationResponse? = nil, @@ -39823,7 +41384,7 @@ public struct ResponseLaunchTemplateData: Codable, Equatable { securityGroupIds: ValueStringList? = nil, securityGroups: ValueStringList? = nil, tagSpecifications: LaunchTemplateTagSpecificationList? = nil, - userData: String? = nil) { + userData: SensitiveUserData? = nil) { self.blockDeviceMappings = blockDeviceMappings self.capacityReservationSpecification = capacityReservationSpecification self.cpuOptions = cpuOptions @@ -40507,6 +42068,65 @@ public struct RouteTableAssociationState: Codable, Equatable { } } +public struct RuleGroupRuleOptionsPair: Codable, Equatable { + public var ruleGroupArn: ResourceArn? + public var ruleOptions: RuleOptionList? + + public init(ruleGroupArn: ResourceArn? = nil, + ruleOptions: RuleOptionList? = nil) { + self.ruleGroupArn = ruleGroupArn + self.ruleOptions = ruleOptions + } + + enum CodingKeys: String, CodingKey { + case ruleGroupArn + case ruleOptions = "ruleOptionSet" + } + + public func validate() throws { + try ruleGroupArn?.validateAsResourceArn() + } +} + +public struct RuleGroupTypePair: Codable, Equatable { + public var ruleGroupArn: ResourceArn? + public var ruleGroupType: String? + + public init(ruleGroupArn: ResourceArn? = nil, + ruleGroupType: String? = nil) { + self.ruleGroupArn = ruleGroupArn + self.ruleGroupType = ruleGroupType + } + + enum CodingKeys: String, CodingKey { + case ruleGroupArn + case ruleGroupType + } + + public func validate() throws { + try ruleGroupArn?.validateAsResourceArn() + } +} + +public struct RuleOption: Codable, Equatable { + public var keyword: String? + public var settings: StringList? + + public init(keyword: String? = nil, + settings: StringList? = nil) { + self.keyword = keyword + self.settings = settings + } + + enum CodingKeys: String, CodingKey { + case keyword + case settings = "settingSet" + } + + public func validate() throws { + } +} + public struct RunInstancesMonitoringEnabled: Codable, Equatable { public var enabled: Boolean @@ -41335,13 +42955,13 @@ public struct SearchTransitGatewayMulticastGroupsRequest: Codable, Equatable { public var filters: FilterList? public var maxResults: TransitGatewayMaxResults? public var nextToken: String? - public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? + public var transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId public init(dryRun: Boolean? = nil, filters: FilterList? = nil, maxResults: TransitGatewayMaxResults? = nil, nextToken: String? = nil, - transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId? = nil) { + transitGatewayMulticastDomainId: TransitGatewayMulticastDomainId) { self.dryRun = dryRun self.filters = filters self.maxResults = maxResults @@ -41641,10 +43261,10 @@ public struct SecurityGroupRuleRequest: Codable, Equatable { public struct SecurityGroupRuleUpdate: Codable, Equatable { public var securityGroupRule: SecurityGroupRuleRequest? - public var securityGroupRuleId: SecurityGroupRuleId? + public var securityGroupRuleId: SecurityGroupRuleId public init(securityGroupRule: SecurityGroupRuleRequest? = nil, - securityGroupRuleId: SecurityGroupRuleId? = nil) { + securityGroupRuleId: SecurityGroupRuleId) { self.securityGroupRule = securityGroupRule self.securityGroupRuleId = securityGroupRuleId } @@ -41964,7 +43584,7 @@ public struct SnapshotDetail: Codable, Equatable { public var snapshotId: String? public var status: String? public var statusMessage: String? - public var url: String? + public var url: SensitiveUrl? public var userBucket: UserBucketDetails? public init(description: String? = nil, @@ -41975,7 +43595,7 @@ public struct SnapshotDetail: Codable, Equatable { snapshotId: String? = nil, status: String? = nil, statusMessage: String? = nil, - url: String? = nil, + url: SensitiveUrl? = nil, userBucket: UserBucketDetails? = nil) { self.description = description self.deviceName = deviceName @@ -42010,12 +43630,12 @@ public struct SnapshotDetail: Codable, Equatable { public struct SnapshotDiskContainer: Codable, Equatable { public var description: String? public var format: String? - public var url: String? + public var url: SensitiveUrl? public var userBucket: UserBucket? public init(description: String? = nil, format: String? = nil, - url: String? = nil, + url: SensitiveUrl? = nil, userBucket: UserBucket? = nil) { self.description = description self.format = format @@ -42131,7 +43751,7 @@ public struct SnapshotTaskDetail: Codable, Equatable { public var snapshotId: String? public var status: String? public var statusMessage: String? - public var url: String? + public var url: SensitiveUrl? public var userBucket: UserBucketDetails? public init(description: String? = nil, @@ -42143,7 +43763,7 @@ public struct SnapshotTaskDetail: Codable, Equatable { snapshotId: String? = nil, status: String? = nil, statusMessage: String? = nil, - url: String? = nil, + url: SensitiveUrl? = nil, userBucket: UserBucketDetails? = nil) { self.description = description self.diskImageSize = diskImageSize @@ -42305,7 +43925,7 @@ public struct SpotFleetLaunchSpecification: Codable, Equatable { public var spotPrice: String? public var subnetId: SubnetId? public var tagSpecifications: SpotFleetTagSpecificationList? - public var userData: String? + public var userData: SensitiveUserData? public var weightedCapacity: Double? public init(addressingType: String? = nil, @@ -42325,7 +43945,7 @@ public struct SpotFleetLaunchSpecification: Codable, Equatable { spotPrice: String? = nil, subnetId: SubnetId? = nil, tagSpecifications: SpotFleetTagSpecificationList? = nil, - userData: String? = nil, + userData: SensitiveUserData? = nil, weightedCapacity: Double? = nil) { self.addressingType = addressingType self.blockDeviceMappings = blockDeviceMappings @@ -43793,12 +45413,12 @@ public struct TargetReservationValue: Codable, Equatable { public struct TerminateClientVpnConnectionsRequest: Codable, Equatable { public var clientVpnEndpointId: ClientVpnEndpointId - public var connectionId: VpnConnectionId? + public var connectionId: String? public var dryRun: Boolean? public var username: String? public init(clientVpnEndpointId: ClientVpnEndpointId, - connectionId: VpnConnectionId? = nil, + connectionId: String? = nil, dryRun: Boolean? = nil, username: String? = nil) { self.clientVpnEndpointId = clientVpnEndpointId @@ -45565,6 +47185,7 @@ public struct TrunkInterfaceAssociation: Codable, Equatable { public struct TunnelOption: Codable, Equatable { public var dpdTimeoutAction: String? public var dpdTimeoutSeconds: Integer? + public var enableTunnelLifecycleControl: Boolean? public var ikeVersions: IKEVersionsList? public var logOptions: VpnTunnelLogOptions? public var outsideIpAddress: String? @@ -45576,7 +47197,7 @@ public struct TunnelOption: Codable, Equatable { public var phase2EncryptionAlgorithms: Phase2EncryptionAlgorithmsList? public var phase2IntegrityAlgorithms: Phase2IntegrityAlgorithmsList? public var phase2LifetimeSeconds: Integer? - public var preSharedKey: String? + public var preSharedKey: PreSharedKey? public var rekeyFuzzPercentage: Integer? public var rekeyMarginTimeSeconds: Integer? public var replayWindowSize: Integer? @@ -45586,6 +47207,7 @@ public struct TunnelOption: Codable, Equatable { public init(dpdTimeoutAction: String? = nil, dpdTimeoutSeconds: Integer? = nil, + enableTunnelLifecycleControl: Boolean? = nil, ikeVersions: IKEVersionsList? = nil, logOptions: VpnTunnelLogOptions? = nil, outsideIpAddress: String? = nil, @@ -45597,7 +47219,7 @@ public struct TunnelOption: Codable, Equatable { phase2EncryptionAlgorithms: Phase2EncryptionAlgorithmsList? = nil, phase2IntegrityAlgorithms: Phase2IntegrityAlgorithmsList? = nil, phase2LifetimeSeconds: Integer? = nil, - preSharedKey: String? = nil, + preSharedKey: PreSharedKey? = nil, rekeyFuzzPercentage: Integer? = nil, rekeyMarginTimeSeconds: Integer? = nil, replayWindowSize: Integer? = nil, @@ -45606,6 +47228,7 @@ public struct TunnelOption: Codable, Equatable { tunnelInsideIpv6Cidr: String? = nil) { self.dpdTimeoutAction = dpdTimeoutAction self.dpdTimeoutSeconds = dpdTimeoutSeconds + self.enableTunnelLifecycleControl = enableTunnelLifecycleControl self.ikeVersions = ikeVersions self.logOptions = logOptions self.outsideIpAddress = outsideIpAddress @@ -45629,6 +47252,7 @@ public struct TunnelOption: Codable, Equatable { enum CodingKeys: String, CodingKey { case dpdTimeoutAction case dpdTimeoutSeconds + case enableTunnelLifecycleControl case ikeVersions = "ikeVersionSet" case logOptions case outsideIpAddress @@ -45723,6 +47347,53 @@ public struct UnassignPrivateIpAddressesRequest: Codable, Equatable { } } +public struct UnassignPrivateNatGatewayAddressRequest: Codable, Equatable { + public var dryRun: Boolean? + public var maxDrainDurationSeconds: DrainSeconds? + public var natGatewayId: NatGatewayId + public var privateIpAddresses: IpList + + public init(dryRun: Boolean? = nil, + maxDrainDurationSeconds: DrainSeconds? = nil, + natGatewayId: NatGatewayId, + privateIpAddresses: IpList) { + self.dryRun = dryRun + self.maxDrainDurationSeconds = maxDrainDurationSeconds + self.natGatewayId = natGatewayId + self.privateIpAddresses = privateIpAddresses + } + + enum CodingKeys: String, CodingKey { + case dryRun = "DryRun" + case maxDrainDurationSeconds = "MaxDrainDurationSeconds" + case natGatewayId = "NatGatewayId" + case privateIpAddresses = "PrivateIpAddress" + } + + public func validate() throws { + try maxDrainDurationSeconds?.validateAsDrainSeconds() + } +} + +public struct UnassignPrivateNatGatewayAddressResult: Codable, Equatable { + public var natGatewayAddresses: NatGatewayAddressList? + public var natGatewayId: NatGatewayId? + + public init(natGatewayAddresses: NatGatewayAddressList? = nil, + natGatewayId: NatGatewayId? = nil) { + self.natGatewayAddresses = natGatewayAddresses + self.natGatewayId = natGatewayId + } + + enum CodingKeys: String, CodingKey { + case natGatewayAddresses = "natGatewayAddressSet" + case natGatewayId + } + + public func validate() throws { + } +} + public struct UnmonitorInstancesRequest: Codable, Equatable { public var dryRun: Boolean? public var instanceIds: InstanceIdStringList @@ -46488,20 +48159,28 @@ public struct VerifiedAccessLogKinesisDataFirehoseDestinationOptions: Codable, E public struct VerifiedAccessLogOptions: Codable, Equatable { public var cloudWatchLogs: VerifiedAccessLogCloudWatchLogsDestinationOptions? + public var includeTrustContext: Boolean? public var kinesisDataFirehose: VerifiedAccessLogKinesisDataFirehoseDestinationOptions? + public var logVersion: String? public var s3: VerifiedAccessLogS3DestinationOptions? public init(cloudWatchLogs: VerifiedAccessLogCloudWatchLogsDestinationOptions? = nil, + includeTrustContext: Boolean? = nil, kinesisDataFirehose: VerifiedAccessLogKinesisDataFirehoseDestinationOptions? = nil, + logVersion: String? = nil, s3: VerifiedAccessLogS3DestinationOptions? = nil) { self.cloudWatchLogs = cloudWatchLogs + self.includeTrustContext = includeTrustContext self.kinesisDataFirehose = kinesisDataFirehose + self.logVersion = logVersion self.s3 = s3 } enum CodingKeys: String, CodingKey { case cloudWatchLogs = "CloudWatchLogs" + case includeTrustContext = "IncludeTrustContext" case kinesisDataFirehose = "KinesisDataFirehose" + case logVersion = "LogVersion" case s3 = "S3" } @@ -46573,20 +48252,28 @@ public struct VerifiedAccessLogS3DestinationOptions: Codable, Equatable { public struct VerifiedAccessLogs: Codable, Equatable { public var cloudWatchLogs: VerifiedAccessLogCloudWatchLogsDestination? + public var includeTrustContext: Boolean? public var kinesisDataFirehose: VerifiedAccessLogKinesisDataFirehoseDestination? + public var logVersion: String? public var s3: VerifiedAccessLogS3Destination? public init(cloudWatchLogs: VerifiedAccessLogCloudWatchLogsDestination? = nil, + includeTrustContext: Boolean? = nil, kinesisDataFirehose: VerifiedAccessLogKinesisDataFirehoseDestination? = nil, + logVersion: String? = nil, s3: VerifiedAccessLogS3Destination? = nil) { self.cloudWatchLogs = cloudWatchLogs + self.includeTrustContext = includeTrustContext self.kinesisDataFirehose = kinesisDataFirehose + self.logVersion = logVersion self.s3 = s3 } enum CodingKeys: String, CodingKey { case cloudWatchLogs + case includeTrustContext case kinesisDataFirehose + case logVersion case s3 } @@ -47515,7 +49202,7 @@ public struct VpnConnection: Codable, Equatable { public var category: String? public var coreNetworkArn: String? public var coreNetworkAttachmentArn: String? - public var customerGatewayConfiguration: String? + public var customerGatewayConfiguration: CustomerGatewayConfiguration? public var customerGatewayId: String? public var gatewayAssociationState: GatewayAssociationState? public var options: VpnConnectionOptions? @@ -47531,7 +49218,7 @@ public struct VpnConnection: Codable, Equatable { public init(category: String? = nil, coreNetworkArn: String? = nil, coreNetworkAttachmentArn: String? = nil, - customerGatewayConfiguration: String? = nil, + customerGatewayConfiguration: CustomerGatewayConfiguration? = nil, customerGatewayId: String? = nil, gatewayAssociationState: GatewayAssociationState? = nil, options: VpnConnectionOptions? = nil, @@ -47809,6 +49496,7 @@ public struct VpnTunnelLogOptionsSpecification: Codable, Equatable { public struct VpnTunnelOptionsSpecification: Codable, Equatable { public var dPDTimeoutAction: String? public var dPDTimeoutSeconds: Integer? + public var enableTunnelLifecycleControl: Boolean? public var iKEVersions: IKEVersionsRequestList? public var logOptions: VpnTunnelLogOptionsSpecification? public var phase1DHGroupNumbers: Phase1DHGroupNumbersRequestList? @@ -47819,7 +49507,7 @@ public struct VpnTunnelOptionsSpecification: Codable, Equatable { public var phase2EncryptionAlgorithms: Phase2EncryptionAlgorithmsRequestList? public var phase2IntegrityAlgorithms: Phase2IntegrityAlgorithmsRequestList? public var phase2LifetimeSeconds: Integer? - public var preSharedKey: String? + public var preSharedKey: PreSharedKey? public var rekeyFuzzPercentage: Integer? public var rekeyMarginTimeSeconds: Integer? public var replayWindowSize: Integer? @@ -47829,6 +49517,7 @@ public struct VpnTunnelOptionsSpecification: Codable, Equatable { public init(dPDTimeoutAction: String? = nil, dPDTimeoutSeconds: Integer? = nil, + enableTunnelLifecycleControl: Boolean? = nil, iKEVersions: IKEVersionsRequestList? = nil, logOptions: VpnTunnelLogOptionsSpecification? = nil, phase1DHGroupNumbers: Phase1DHGroupNumbersRequestList? = nil, @@ -47839,7 +49528,7 @@ public struct VpnTunnelOptionsSpecification: Codable, Equatable { phase2EncryptionAlgorithms: Phase2EncryptionAlgorithmsRequestList? = nil, phase2IntegrityAlgorithms: Phase2IntegrityAlgorithmsRequestList? = nil, phase2LifetimeSeconds: Integer? = nil, - preSharedKey: String? = nil, + preSharedKey: PreSharedKey? = nil, rekeyFuzzPercentage: Integer? = nil, rekeyMarginTimeSeconds: Integer? = nil, replayWindowSize: Integer? = nil, @@ -47848,6 +49537,7 @@ public struct VpnTunnelOptionsSpecification: Codable, Equatable { tunnelInsideIpv6Cidr: String? = nil) { self.dPDTimeoutAction = dPDTimeoutAction self.dPDTimeoutSeconds = dPDTimeoutSeconds + self.enableTunnelLifecycleControl = enableTunnelLifecycleControl self.iKEVersions = iKEVersions self.logOptions = logOptions self.phase1DHGroupNumbers = phase1DHGroupNumbers @@ -47870,6 +49560,7 @@ public struct VpnTunnelOptionsSpecification: Codable, Equatable { enum CodingKeys: String, CodingKey { case dPDTimeoutAction = "DPDTimeoutAction" case dPDTimeoutSeconds = "DPDTimeoutSeconds" + case enableTunnelLifecycleControl = "EnableTunnelLifecycleControl" case iKEVersions = "IKEVersion" case logOptions = "LogOptions" case phase1DHGroupNumbers = "Phase1DHGroupNumber" diff --git a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift index d197802..29dba17 100644 --- a/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift +++ b/Sources/ElasticComputeCloudModel/ElasticComputeCloudModelTypes.swift @@ -347,6 +347,20 @@ public enum AllowsMultipleInstanceTypes: String, Codable, CustomStringConvertibl */ public typealias AlternatePathHintList = [AlternatePathHint] +/** + Enumeration restricting the values of the AmdSevSnpSpecification field. + */ +public enum AmdSevSnpSpecification: String, Codable, CustomStringConvertible { + case disabled + case enabled + + public var description: String { + return rawValue + } + + public static let __default: AmdSevSnpSpecification = .disabled +} + /** Type definition for the AnalysisComponentList field. */ @@ -430,6 +444,16 @@ public enum ArchitectureValues: String, Codable, CustomStringConvertible { */ public typealias ArnList = [ResourceArn] +/** + Type definition for the AssetId field. + */ +public typealias AssetId = String + +/** + Type definition for the AssetIdList field. + */ +public typealias AssetIdList = [AssetId] + /** Type definition for the AssignedPrivateIpAddressList field. */ @@ -553,6 +577,11 @@ public enum AutoPlacement: String, Codable, CustomStringConvertible { */ public typealias AutoRecoveryFlag = Bool +/** + Type definition for the AvailabilityZoneId field. + */ +public typealias AvailabilityZoneId = String + /** Type definition for the AvailabilityZoneList field. */ @@ -563,6 +592,11 @@ public typealias AvailabilityZoneList = [AvailabilityZone] */ public typealias AvailabilityZoneMessageList = [AvailabilityZoneMessage] +/** + Type definition for the AvailabilityZoneName field. + */ +public typealias AvailabilityZoneName = String + /** Enumeration restricting the values of the AvailabilityZoneOptInStatus field. */ @@ -722,6 +756,7 @@ public typealias BootModeTypeList = [BootModeType] public enum BootModeValues: String, Codable, CustomStringConvertible { case legacyBios = "legacy-bios" case uefi + case uefiPreferred = "uefi-preferred" public var description: String { return rawValue @@ -1053,6 +1088,11 @@ public enum CarrierGatewayState: String, Codable, CustomStringConvertible { */ public typealias CertificateArn = String +/** + Type definition for the CertificateId field. + */ +public typealias CertificateId = String + /** Type definition for the CidrBlockSet field. */ @@ -1087,6 +1127,11 @@ public enum ClientCertificateRevocationListStatusCode: String, Codable, CustomSt public static let __default: ClientCertificateRevocationListStatusCode = .active } +/** + Type definition for the ClientSecretType field. + */ +public typealias ClientSecretType = String + /** Type definition for the ClientVpnAssociationId field. */ @@ -1355,6 +1400,11 @@ public enum ConversionTaskState: String, Codable, CustomStringConvertible { public static let __default: ConversionTaskState = .active } +/** + Type definition for the CopySnapshotRequestPSU field. + */ +public typealias CopySnapshotRequestPSU = String + /** Enumeration restricting the values of the CopyTagsFromSource field. */ @@ -2098,6 +2148,11 @@ public enum DomainType: String, Codable, CustomStringConvertible { */ public typealias DoubleWithConstraints = Double +/** + Type definition for the DrainSeconds field. + */ +public typealias DrainSeconds = Int + /** Enumeration restricting the values of the DynamicRoutingValue field. */ @@ -2156,6 +2211,24 @@ public enum EbsOptimizedSupport: String, Codable, CustomStringConvertible { public static let __default: EbsOptimizedSupport = .`default` } +/** + Enumeration restricting the values of the Ec2InstanceConnectEndpointState field. + */ +public enum Ec2InstanceConnectEndpointState: String, Codable, CustomStringConvertible { + case createComplete = "create-complete" + case createFailed = "create-failed" + case createInProgress = "create-in-progress" + case deleteComplete = "delete-complete" + case deleteFailed = "delete-failed" + case deleteInProgress = "delete-in-progress" + + public var description: String { + return rawValue + } + + public static let __default: Ec2InstanceConnectEndpointState = .createComplete +} + /** Type definition for the EfaSupportedFlag field. */ @@ -2176,6 +2249,16 @@ public typealias EgressOnlyInternetGatewayIdList = [EgressOnlyInternetGatewayId] */ public typealias EgressOnlyInternetGatewayList = [EgressOnlyInternetGateway] +/** + Type definition for the EipAllocationPublicIp field. + */ +public typealias EipAllocationPublicIp = String + +/** + Type definition for the EipAssociationIdList field. + */ +public typealias EipAssociationIdList = [ElasticIpAssociationId] + /** Type definition for the ElasticGpuAssociationList field. */ @@ -2992,6 +3075,20 @@ public typealias HostInstanceList = [HostInstance] */ public typealias HostList = [Host] +/** + Enumeration restricting the values of the HostMaintenance field. + */ +public enum HostMaintenance: String, Codable, CustomStringConvertible { + case off + case on + + public var description: String { + return rawValue + } + + public static let __default: HostMaintenance = .off +} + /** Type definition for the HostOfferingSet field. */ @@ -3268,6 +3365,11 @@ public typealias ImportImageTaskList = [ImportImageTask] */ public typealias ImportInstanceVolumeDetailSet = [ImportInstanceVolumeDetailItem] +/** + Type definition for the ImportManifestUrl field. + */ +public typealias ImportManifestUrl = String + /** Type definition for the ImportSnapshotTaskId field. */ @@ -3370,6 +3472,35 @@ public typealias InstanceBlockDeviceMappingList = [InstanceBlockDeviceMapping] */ public typealias InstanceBlockDeviceMappingSpecificationList = [InstanceBlockDeviceMappingSpecification] +/** + Enumeration restricting the values of the InstanceBootModeValues field. + */ +public enum InstanceBootModeValues: String, Codable, CustomStringConvertible { + case legacyBios = "legacy-bios" + case uefi + + public var description: String { + return rawValue + } + + public static let __default: InstanceBootModeValues = .legacyBios +} + +/** + Type definition for the InstanceConnectEndpointId field. + */ +public typealias InstanceConnectEndpointId = String + +/** + Type definition for the InstanceConnectEndpointMaxResults field. + */ +public typealias InstanceConnectEndpointMaxResults = Int + +/** + Type definition for the InstanceConnectEndpointSet field. + */ +public typealias InstanceConnectEndpointSet = [Ec2InstanceConnectEndpoint] + /** Type definition for the InstanceCountList field. */ @@ -3494,6 +3625,11 @@ public typealias InstanceIdSet = [InstanceId] */ public typealias InstanceIdStringList = [InstanceId] +/** + Type definition for the InstanceIdWithVolumeResolver field. + */ +public typealias InstanceIdWithVolumeResolver = String + /** Type definition for the InstanceIdsSet field. */ @@ -3839,6 +3975,16 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case c6idLarge = "c6id.large" case c6idMetal = "c6id.metal" case c6idXlarge = "c6id.xlarge" + case c6in12xlarge = "c6in.12xlarge" + case c6in16xlarge = "c6in.16xlarge" + case c6in24xlarge = "c6in.24xlarge" + case c6in2xlarge = "c6in.2xlarge" + case c6in32xlarge = "c6in.32xlarge" + case c6in4xlarge = "c6in.4xlarge" + case c6in8xlarge = "c6in.8xlarge" + case c6inLarge = "c6in.large" + case c6inMetal = "c6in.metal" + case c6inXlarge = "c6in.xlarge" case c7g12xlarge = "c7g.12xlarge" case c7g16xlarge = "c7g.16xlarge" case c7g2xlarge = "c7g.2xlarge" @@ -3846,6 +3992,7 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case c7g8xlarge = "c7g.8xlarge" case c7gLarge = "c7g.large" case c7gMedium = "c7g.medium" + case c7gMetal = "c7g.metal" case c7gXlarge = "c7g.xlarge" case cc14xlarge = "cc1.4xlarge" case cc28xlarge = "cc2.8xlarge" @@ -3928,6 +4075,12 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case i3enLarge = "i3en.large" case i3enMetal = "i3en.metal" case i3enXlarge = "i3en.xlarge" + case i4g16xlarge = "i4g.16xlarge" + case i4g2xlarge = "i4g.2xlarge" + case i4g4xlarge = "i4g.4xlarge" + case i4g8xlarge = "i4g.8xlarge" + case i4gLarge = "i4g.large" + case i4gXlarge = "i4g.xlarge" case i4i16xlarge = "i4i.16xlarge" case i4i2xlarge = "i4i.2xlarge" case i4i32xlarge = "i4i.32xlarge" @@ -3946,6 +4099,10 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case inf12xlarge = "inf1.2xlarge" case inf16xlarge = "inf1.6xlarge" case inf1Xlarge = "inf1.xlarge" + case inf224xlarge = "inf2.24xlarge" + case inf248xlarge = "inf2.48xlarge" + case inf28xlarge = "inf2.8xlarge" + case inf2Xlarge = "inf2.xlarge" case is4gen2xlarge = "is4gen.2xlarge" case is4gen4xlarge = "is4gen.4xlarge" case is4gen8xlarge = "is4gen.8xlarge" @@ -4077,6 +4234,35 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case m6idLarge = "m6id.large" case m6idMetal = "m6id.metal" case m6idXlarge = "m6id.xlarge" + case m6idn12xlarge = "m6idn.12xlarge" + case m6idn16xlarge = "m6idn.16xlarge" + case m6idn24xlarge = "m6idn.24xlarge" + case m6idn2xlarge = "m6idn.2xlarge" + case m6idn32xlarge = "m6idn.32xlarge" + case m6idn4xlarge = "m6idn.4xlarge" + case m6idn8xlarge = "m6idn.8xlarge" + case m6idnLarge = "m6idn.large" + case m6idnMetal = "m6idn.metal" + case m6idnXlarge = "m6idn.xlarge" + case m6in12xlarge = "m6in.12xlarge" + case m6in16xlarge = "m6in.16xlarge" + case m6in24xlarge = "m6in.24xlarge" + case m6in2xlarge = "m6in.2xlarge" + case m6in32xlarge = "m6in.32xlarge" + case m6in4xlarge = "m6in.4xlarge" + case m6in8xlarge = "m6in.8xlarge" + case m6inLarge = "m6in.large" + case m6inMetal = "m6in.metal" + case m6inXlarge = "m6in.xlarge" + case m7g12xlarge = "m7g.12xlarge" + case m7g16xlarge = "m7g.16xlarge" + case m7g2xlarge = "m7g.2xlarge" + case m7g4xlarge = "m7g.4xlarge" + case m7g8xlarge = "m7g.8xlarge" + case m7gLarge = "m7g.large" + case m7gMedium = "m7g.medium" + case m7gMetal = "m7g.metal" + case m7gXlarge = "m7g.xlarge" case mac1Metal = "mac1.metal" case mac2Metal = "mac2.metal" case p216xlarge = "p2.16xlarge" @@ -4209,6 +4395,35 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case r6idLarge = "r6id.large" case r6idMetal = "r6id.metal" case r6idXlarge = "r6id.xlarge" + case r6idn12xlarge = "r6idn.12xlarge" + case r6idn16xlarge = "r6idn.16xlarge" + case r6idn24xlarge = "r6idn.24xlarge" + case r6idn2xlarge = "r6idn.2xlarge" + case r6idn32xlarge = "r6idn.32xlarge" + case r6idn4xlarge = "r6idn.4xlarge" + case r6idn8xlarge = "r6idn.8xlarge" + case r6idnLarge = "r6idn.large" + case r6idnMetal = "r6idn.metal" + case r6idnXlarge = "r6idn.xlarge" + case r6in12xlarge = "r6in.12xlarge" + case r6in16xlarge = "r6in.16xlarge" + case r6in24xlarge = "r6in.24xlarge" + case r6in2xlarge = "r6in.2xlarge" + case r6in32xlarge = "r6in.32xlarge" + case r6in4xlarge = "r6in.4xlarge" + case r6in8xlarge = "r6in.8xlarge" + case r6inLarge = "r6in.large" + case r6inMetal = "r6in.metal" + case r6inXlarge = "r6in.xlarge" + case r7g12xlarge = "r7g.12xlarge" + case r7g16xlarge = "r7g.16xlarge" + case r7g2xlarge = "r7g.2xlarge" + case r7g4xlarge = "r7g.4xlarge" + case r7g8xlarge = "r7g.8xlarge" + case r7gLarge = "r7g.large" + case r7gMedium = "r7g.medium" + case r7gMetal = "r7g.metal" + case r7gXlarge = "r7g.xlarge" case t1Micro = "t1.micro" case t22xlarge = "t2.2xlarge" case t2Large = "t2.large" @@ -4240,6 +4455,7 @@ public enum InstanceType: String, Codable, CustomStringConvertible { case t4gXlarge = "t4g.xlarge" case trn12xlarge = "trn1.2xlarge" case trn132xlarge = "trn1.32xlarge" + case trn1n32xlarge = "trn1n.32xlarge" case u12tb1112xlarge = "u-12tb1.112xlarge" case u12tb1Metal = "u-12tb1.metal" case u18tb1112xlarge = "u-18tb1.112xlarge" @@ -4437,6 +4653,11 @@ public enum IpAddressType: String, Codable, CustomStringConvertible { public static let __default: IpAddressType = .dualstack } +/** + Type definition for the IpList field. + */ +public typealias IpList = [String] + /** Type definition for the IpPermissionList field. */ @@ -4484,6 +4705,20 @@ public enum IpamAddressHistoryResourceType: String, Codable, CustomStringConvert public static let __default: IpamAddressHistoryResourceType = .eip } +/** + Enumeration restricting the values of the IpamAssociatedResourceDiscoveryStatus field. + */ +public enum IpamAssociatedResourceDiscoveryStatus: String, Codable, CustomStringConvertible { + case active + case notFound = "not-found" + + public var description: String { + return rawValue + } + + public static let __default: IpamAssociatedResourceDiscoveryStatus = .active +} + /** Enumeration restricting the values of the IpamComplianceStatus field. */ @@ -4500,6 +4735,31 @@ public enum IpamComplianceStatus: String, Codable, CustomStringConvertible { public static let __default: IpamComplianceStatus = .compliant } +/** + Type definition for the IpamDiscoveredAccountSet field. + */ +public typealias IpamDiscoveredAccountSet = [IpamDiscoveredAccount] + +/** + Type definition for the IpamDiscoveredResourceCidrSet field. + */ +public typealias IpamDiscoveredResourceCidrSet = [IpamDiscoveredResourceCidr] + +/** + Enumeration restricting the values of the IpamDiscoveryFailureCode field. + */ +public enum IpamDiscoveryFailureCode: String, Codable, CustomStringConvertible { + case assumeRoleFailure = "assume-role-failure" + case throttlingFailure = "throttling-failure" + case unauthorizedFailure = "unauthorized-failure" + + public var description: String { + return rawValue + } + + public static let __default: IpamDiscoveryFailureCode = .assumeRoleFailure +} + /** Type definition for the IpamId field. */ @@ -4599,6 +4859,7 @@ public enum IpamPoolAwsService: String, Codable, CustomStringConvertible { */ public enum IpamPoolCidrFailureCode: String, Codable, CustomStringConvertible { case cidrNotAvailable = "cidr-not-available" + case limitExceeded = "limit-exceeded" public var description: String { return rawValue @@ -4607,6 +4868,11 @@ public enum IpamPoolCidrFailureCode: String, Codable, CustomStringConvertible { public static let __default: IpamPoolCidrFailureCode = .cidrNotAvailable } +/** + Type definition for the IpamPoolCidrId field. + */ +public typealias IpamPoolCidrId = String + /** Type definition for the IpamPoolCidrSet field. */ @@ -4637,6 +4903,20 @@ public enum IpamPoolCidrState: String, Codable, CustomStringConvertible { */ public typealias IpamPoolId = String +/** + Enumeration restricting the values of the IpamPoolPublicIpSource field. + */ +public enum IpamPoolPublicIpSource: String, Codable, CustomStringConvertible { + case amazon + case byoip + + public var description: String { + return rawValue + } + + public static let __default: IpamPoolPublicIpSource = .amazon +} + /** Type definition for the IpamPoolSet field. */ @@ -4671,6 +4951,71 @@ public enum IpamPoolState: String, Codable, CustomStringConvertible { */ public typealias IpamResourceCidrSet = [IpamResourceCidr] +/** + Type definition for the IpamResourceDiscoveryAssociationId field. + */ +public typealias IpamResourceDiscoveryAssociationId = String + +/** + Type definition for the IpamResourceDiscoveryAssociationSet field. + */ +public typealias IpamResourceDiscoveryAssociationSet = [IpamResourceDiscoveryAssociation] + +/** + Enumeration restricting the values of the IpamResourceDiscoveryAssociationState field. + */ +public enum IpamResourceDiscoveryAssociationState: String, Codable, CustomStringConvertible { + case associateComplete = "associate-complete" + case associateFailed = "associate-failed" + case associateInProgress = "associate-in-progress" + case disassociateComplete = "disassociate-complete" + case disassociateFailed = "disassociate-failed" + case disassociateInProgress = "disassociate-in-progress" + case isolateComplete = "isolate-complete" + case isolateInProgress = "isolate-in-progress" + case restoreInProgress = "restore-in-progress" + + public var description: String { + return rawValue + } + + public static let __default: IpamResourceDiscoveryAssociationState = .associateComplete +} + +/** + Type definition for the IpamResourceDiscoveryId field. + */ +public typealias IpamResourceDiscoveryId = String + +/** + Type definition for the IpamResourceDiscoverySet field. + */ +public typealias IpamResourceDiscoverySet = [IpamResourceDiscovery] + +/** + Enumeration restricting the values of the IpamResourceDiscoveryState field. + */ +public enum IpamResourceDiscoveryState: String, Codable, CustomStringConvertible { + case createComplete = "create-complete" + case createFailed = "create-failed" + case createInProgress = "create-in-progress" + case deleteComplete = "delete-complete" + case deleteFailed = "delete-failed" + case deleteInProgress = "delete-in-progress" + case isolateComplete = "isolate-complete" + case isolateInProgress = "isolate-in-progress" + case modifyComplete = "modify-complete" + case modifyFailed = "modify-failed" + case modifyInProgress = "modify-in-progress" + case restoreInProgress = "restore-in-progress" + + public var description: String { + return rawValue + } + + public static let __default: IpamResourceDiscoveryState = .createComplete +} + /** Type definition for the IpamResourceTagList field. */ @@ -5613,6 +5958,24 @@ public enum MulticastSupportValue: String, Codable, CustomStringConvertible { */ public typealias NatGatewayAddressList = [NatGatewayAddress] +/** + Enumeration restricting the values of the NatGatewayAddressStatus field. + */ +public enum NatGatewayAddressStatus: String, Codable, CustomStringConvertible { + case assigning + case associating + case disassociating + case failed + case succeeded + case unassigning + + public var description: String { + return rawValue + } + + public static let __default: NatGatewayAddressStatus = .assigning +} + /** Type definition for the NatGatewayId field. */ @@ -5806,6 +6169,11 @@ public typealias NetworkInterfaceId = String */ public typealias NetworkInterfaceIdList = [NetworkInterfaceId] +/** + Type definition for the NetworkInterfaceIdSet field. + */ +public typealias NetworkInterfaceIdSet = [String] + /** Type definition for the NetworkInterfaceIpv6AddressesList field. */ @@ -5913,6 +6281,20 @@ public typealias NewDhcpConfigurationList = [NewDhcpConfiguration] */ public typealias NextToken = String +/** + Enumeration restricting the values of the NitroEnclavesSupport field. + */ +public enum NitroEnclavesSupport: String, Codable, CustomStringConvertible { + case supported + case unsupported + + public var description: String { + return rawValue + } + + public static let __default: NitroEnclavesSupport = .supported +} + /** Type definition for the OccurrenceDayRequestSet field. */ @@ -6364,6 +6746,11 @@ public enum PrincipalType: String, Codable, CustomStringConvertible { public static let __default: PrincipalType = .account } +/** + Type definition for the Priority field. + */ +public typealias Priority = Int + /** Type definition for the PrivateDnsDetailsSet field. */ @@ -6374,6 +6761,11 @@ public typealias PrivateDnsDetailsSet = [PrivateDnsDetails] */ public typealias PrivateIpAddressConfigSet = [ScheduledInstancesPrivateIpAddressConfig] +/** + Type definition for the PrivateIpAddressCount field. + */ +public typealias PrivateIpAddressCount = Int + /** Type definition for the PrivateIpAddressSpecificationList field. */ @@ -6437,6 +6829,16 @@ public enum Protocol: String, Codable, CustomStringConvertible { public static let __default: Protocol = .tcp } +/** + Type definition for the ProtocolInt field. + */ +public typealias ProtocolInt = Int + +/** + Type definition for the ProtocolIntList field. + */ +public typealias ProtocolIntList = [ProtocolInt] + /** Type definition for the ProtocolList field. */ @@ -6865,10 +7267,13 @@ public enum ResourceType: String, Codable, CustomStringConvertible { case importImageTask = "import-image-task" case importSnapshotTask = "import-snapshot-task" case instance + case instanceConnectEndpoint = "instance-connect-endpoint" case instanceEventWindow = "instance-event-window" case internetGateway = "internet-gateway" case ipam case ipamPool = "ipam-pool" + case ipamResourceDiscovery = "ipam-resource-discovery" + case ipamResourceDiscoveryAssociation = "ipam-resource-discovery-association" case ipamScope = "ipam-scope" case ipv4poolEc2 = "ipv4pool-ec2" case ipv6poolEc2 = "ipv6pool-ec2" @@ -6961,6 +7366,11 @@ public typealias RestoreSnapshotTierRequestTemporaryRestoreDays = Int */ public typealias ResultRange = Int +/** + Type definition for the RoleId field. + */ +public typealias RoleId = String + /** Enumeration restricting the values of the RootDeviceType field. */ @@ -7075,6 +7485,21 @@ public enum RuleAction: String, Codable, CustomStringConvertible { public static let __default: RuleAction = .allow } +/** + Type definition for the RuleGroupRuleOptionsPairList field. + */ +public typealias RuleGroupRuleOptionsPairList = [RuleGroupRuleOptionsPair] + +/** + Type definition for the RuleGroupTypePairList field. + */ +public typealias RuleGroupTypePairList = [RuleGroupTypePair] + +/** + Type definition for the RuleOptionList field. + */ +public typealias RuleOptionList = [RuleOption] + /** Type definition for the RunInstancesUserData field. */ @@ -7135,11 +7560,21 @@ public typealias SecurityGroupId = String */ public typealias SecurityGroupIdList = [SecurityGroupId] +/** + Type definition for the SecurityGroupIdSet field. + */ +public typealias SecurityGroupIdSet = [SecurityGroupId] + /** Type definition for the SecurityGroupIdStringList field. */ public typealias SecurityGroupIdStringList = [SecurityGroupId] +/** + Type definition for the SecurityGroupIdStringListRequest field. + */ +public typealias SecurityGroupIdStringListRequest = [SecurityGroupId] + /** Type definition for the SecurityGroupList field. */ @@ -7199,6 +7634,11 @@ public enum SelfServicePortal: String, Codable, CustomStringConvertible { public static let __default: SelfServicePortal = .disabled } +/** + Type definition for the SensitiveUrl field. + */ +public typealias SensitiveUrl = String + /** Type definition for the SensitiveUserData field. */ @@ -7720,6 +8160,24 @@ public enum SummaryStatus: String, Codable, CustomStringConvertible { public static let __default: SummaryStatus = .impaired } +/** + Enumeration restricting the values of the SupportedAdditionalProcessorFeature field. + */ +public enum SupportedAdditionalProcessorFeature: String, Codable, CustomStringConvertible { + case amdSevSnp = "amd-sev-snp" + + public var description: String { + return rawValue + } + + public static let __default: SupportedAdditionalProcessorFeature = .amdSevSnp +} + +/** + Type definition for the SupportedAdditionalProcessorFeatureList field. + */ +public typealias SupportedAdditionalProcessorFeatureList = [SupportedAdditionalProcessorFeature] + /** Type definition for the SupportedIpAddressTypes field. */ @@ -7927,9 +8385,9 @@ public enum TrafficMirrorFilterRuleField: String, Codable, CustomStringConvertib public typealias TrafficMirrorFilterRuleFieldList = [TrafficMirrorFilterRuleField] /** - Type definition for the TrafficMirrorFilterRuleId field. + Type definition for the TrafficMirrorFilterRuleIdWithResolver field. */ -public typealias TrafficMirrorFilterRuleId = String +public typealias TrafficMirrorFilterRuleIdWithResolver = String /** Type definition for the TrafficMirrorFilterRuleList field. @@ -9394,6 +9852,16 @@ public typealias ZoneIdStringList = [String] */ public typealias ZoneNameStringList = [String] +/** + Type definition for the CustomerGatewayConfiguration field. + */ +public typealias CustomerGatewayConfiguration = String + +/** + Type definition for the PreSharedKey field. + */ +public typealias PreSharedKey = String + /** Enumeration restricting the values of the Scope field. */ @@ -10400,6 +10868,21 @@ extension ElasticComputeCloudModel.DoubleWithConstraints { } } +/** + Validation for the DrainSeconds field. +*/ +extension ElasticComputeCloudModel.DrainSeconds { + public func validateAsDrainSeconds() throws { + if self < 1 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to DrainSeconds violated the minimum range constraint.") + } + + if self > 4000 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to DrainSeconds violated the maximum range constraint.") + } + } +} + /** Validation for the ElasticInferenceAcceleratorCount field. */ @@ -10568,6 +11051,21 @@ extension ElasticComputeCloudModel.Hour { } } +/** + Validation for the InstanceConnectEndpointMaxResults field. +*/ +extension ElasticComputeCloudModel.InstanceConnectEndpointMaxResults { + public func validateAsInstanceConnectEndpointMaxResults() throws { + if self < 1 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to InstanceConnectEndpointMaxResults violated the minimum range constraint.") + } + + if self > 50 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to InstanceConnectEndpointMaxResults violated the maximum range constraint.") + } + } +} + /** Validation for the InstanceTypes field. */ @@ -10802,7 +11300,7 @@ extension ElasticComputeCloudModel.OutpostArn { */ extension ElasticComputeCloudModel.PlacementGroupArn { public func validateAsPlacementGroupArn() throws { - guard let matchingRange = self.range(of: "^arn:aws([a-z-]+)?:ec2:[a-z\\d-]+:\\d{12}:placement-group/([^\\s].+[^\\s]){1,255}$", options: .regularExpression), + guard let matchingRange = self.range(of: "^arn:aws([a-z-]+)?:ec2:[a-z\\d-]+:\\d{12}:placement-group/^.{1,255}$", options: .regularExpression), matchingRange == startIndex.. 65535 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to Priority violated the maximum range constraint.") + } + } +} + +/** + Validation for the PrivateIpAddressCount field. +*/ +extension ElasticComputeCloudModel.PrivateIpAddressCount { + public func validateAsPrivateIpAddressCount() throws { + if self < 1 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to PrivateIpAddressCount violated the minimum range constraint.") + } + + if self > 31 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to PrivateIpAddressCount violated the maximum range constraint.") + } + } +} + +/** + Validation for the ProtocolInt field. +*/ +extension ElasticComputeCloudModel.ProtocolInt { + public func validateAsProtocolInt() throws { + if self < 0 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to ProtocolInt violated the minimum range constraint.") + } + + if self > 255 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to ProtocolInt violated the maximum range constraint.") + } + } +} + /** Validation for the PurchaseRequestSet field. */ @@ -10957,6 +11500,21 @@ extension ElasticComputeCloudModel.ResultRange { } } +/** + Validation for the SecurityGroupIdStringListRequest field. +*/ +extension Array where Element == ElasticComputeCloudModel.SecurityGroupId { + public func validateAsSecurityGroupIdStringListRequest() throws { + if self.count < 0 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to SecurityGroupIdStringListRequest violated the minimum length constraint.") + } + + if self.count > 16 { + throw ElasticComputeCloudError.validationError(reason: "The provided value to SecurityGroupIdStringListRequest violated the maximum length constraint.") + } + } +} + /** Validation for the SpotPlacementScoresMaxResults field. */ diff --git a/Sources/ElasticContainerClient/AWSElasticContainerClient.swift b/Sources/ElasticContainerClient/AWSElasticContainerClient.swift index 084255e..fe79b22 100644 --- a/Sources/ElasticContainerClient/AWSElasticContainerClient.swift +++ b/Sources/ElasticContainerClient/AWSElasticContainerClient.swift @@ -245,7 +245,7 @@ public struct AWSElasticContainerClient ElasticContainerModel.CreateClusterResponse { @@ -797,6 +797,76 @@ public struct AWSElasticContainerClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: ElasticContainerModelOperations.deleteTaskDefinitions.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteTaskDefinitions, + handlerDelegate: handlerDelegate) + let requestInput = DeleteTaskDefinitionsOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DeleteTaskDefinitions operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitionsSync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: ElasticContainerModelOperations.deleteTaskDefinitions.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteTaskDefinitions, + handlerDelegate: handlerDelegate) + let requestInput = DeleteTaskDefinitionsOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticContainerError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteTaskSet operation returning immediately and passing the response to a callback. @@ -3465,7 +3535,7 @@ public struct AWSElasticContainerClient ElasticContainerModel.UpdateClusterResponse { @@ -4062,7 +4132,7 @@ public struct AWSElasticContainerClient ElasticContainerModel.CreateClusterResponse { @@ -4343,6 +4413,42 @@ public struct AWSElasticContainerClient ElasticContainerModel.DeleteTaskDefinitionsResponse { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: ElasticContainerModelOperations.deleteTaskDefinitions.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteTaskDefinitions, + handlerDelegate: handlerDelegate) + let requestInput = DeleteTaskDefinitionsOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: ElasticContainerError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteTaskSet operation suspending until the response is available before returning. @@ -5718,7 +5824,7 @@ public struct AWSElasticContainerClient ElasticContainerModel.UpdateClusterResponse { diff --git a/Sources/ElasticContainerClient/ElasticContainerClientProtocol+async.swift b/Sources/ElasticContainerClient/ElasticContainerClientProtocol+async.swift index f86a14f..329587e 100644 --- a/Sources/ElasticContainerClient/ElasticContainerClientProtocol+async.swift +++ b/Sources/ElasticContainerClient/ElasticContainerClientProtocol+async.swift @@ -64,7 +64,7 @@ public extension ElasticContainerClientProtocol { - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ func createCluster(input: ElasticContainerModel.CreateClusterRequest) async throws -> ElasticContainerModel.CreateClusterResponse { @@ -273,6 +273,33 @@ public extension ElasticContainerClientProtocol { } } + /** + Invokes the DeleteTaskDefinitions operation and asynchronously returning the response. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + func deleteTaskDefinitions(input: ElasticContainerModel.DeleteTaskDefinitionsRequest) async throws + -> ElasticContainerModel.DeleteTaskDefinitionsResponse { + return try await withCheckedThrowingContinuation { cont in + do { + try deleteTaskDefinitionsAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DeleteTaskSet operation and asynchronously returning the response. @@ -1306,7 +1333,7 @@ public extension ElasticContainerClientProtocol { - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ func updateCluster(input: ElasticContainerModel.UpdateClusterRequest) async throws -> ElasticContainerModel.UpdateClusterResponse { diff --git a/Sources/ElasticContainerClient/ElasticContainerClientProtocol.swift b/Sources/ElasticContainerClient/ElasticContainerClientProtocol.swift index 274b926..124c72a 100644 --- a/Sources/ElasticContainerClient/ElasticContainerClientProtocol.swift +++ b/Sources/ElasticContainerClient/ElasticContainerClientProtocol.swift @@ -74,6 +74,11 @@ public protocol ElasticContainerClientProtocol: ElasticContainerClientProtocolV2 typealias DeleteServiceAsyncType = ( _ input: ElasticContainerModel.DeleteServiceRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias DeleteTaskDefinitionsSyncType = ( + _ input: ElasticContainerModel.DeleteTaskDefinitionsRequest) throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse + typealias DeleteTaskDefinitionsAsyncType = ( + _ input: ElasticContainerModel.DeleteTaskDefinitionsRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias DeleteTaskSetSyncType = ( _ input: ElasticContainerModel.DeleteTaskSetRequest) throws -> ElasticContainerModel.DeleteTaskSetResponse typealias DeleteTaskSetAsyncType = ( @@ -339,7 +344,7 @@ public protocol ElasticContainerClientProtocol: ElasticContainerClientProtocolV2 - completion: The CreateClusterResponse object or an error will be passed to this callback when the operation is complete. The CreateClusterResponse object will be validated before being returned to caller. - The possible errors are: client, invalidParameter, server. + The possible errors are: client, invalidParameter, namespaceNotFound, server. */ func createClusterAsync( input: ElasticContainerModel.CreateClusterRequest, @@ -352,7 +357,7 @@ public protocol ElasticContainerClientProtocol: ElasticContainerClientProtocolV2 - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ func createClusterSync( input: ElasticContainerModel.CreateClusterRequest) throws -> ElasticContainerModel.CreateClusterResponse @@ -539,6 +544,32 @@ public protocol ElasticContainerClientProtocol: ElasticContainerClientProtocolV2 func deleteServiceSync( input: ElasticContainerModel.DeleteServiceRequest) throws -> ElasticContainerModel.DeleteServiceResponse + /** + Invokes the DeleteTaskDefinitions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - completion: The DeleteTaskDefinitionsResponse object or an error will be passed to this + callback when the operation is complete. The DeleteTaskDefinitionsResponse + object will be validated before being returned to caller. + The possible errors are: accessDenied, client, invalidParameter, server. + */ + func deleteTaskDefinitionsAsync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DeleteTaskDefinitions operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + func deleteTaskDefinitionsSync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse + /** Invokes the DeleteTaskSet operation returning immediately and passing the response to a callback. @@ -1535,7 +1566,7 @@ public protocol ElasticContainerClientProtocol: ElasticContainerClientProtocolV2 - completion: The UpdateClusterResponse object or an error will be passed to this callback when the operation is complete. The UpdateClusterResponse object will be validated before being returned to caller. - The possible errors are: client, clusterNotFound, invalidParameter, server. + The possible errors are: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ func updateClusterAsync( input: ElasticContainerModel.UpdateClusterRequest, @@ -1548,7 +1579,7 @@ public protocol ElasticContainerClientProtocol: ElasticContainerClientProtocolV2 - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ func updateClusterSync( input: ElasticContainerModel.UpdateClusterRequest) throws -> ElasticContainerModel.UpdateClusterResponse diff --git a/Sources/ElasticContainerClient/ElasticContainerClientProtocolV2.swift b/Sources/ElasticContainerClient/ElasticContainerClientProtocolV2.swift index 203633e..4d3fd5a 100644 --- a/Sources/ElasticContainerClient/ElasticContainerClientProtocolV2.swift +++ b/Sources/ElasticContainerClient/ElasticContainerClientProtocolV2.swift @@ -48,6 +48,8 @@ public protocol ElasticContainerClientProtocolV2 { _ input: ElasticContainerModel.DeleteClusterRequest) async throws -> ElasticContainerModel.DeleteClusterResponse typealias DeleteServiceFunctionType = ( _ input: ElasticContainerModel.DeleteServiceRequest) async throws -> ElasticContainerModel.DeleteServiceResponse + typealias DeleteTaskDefinitionsFunctionType = ( + _ input: ElasticContainerModel.DeleteTaskDefinitionsRequest) async throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse typealias DeleteTaskSetFunctionType = ( _ input: ElasticContainerModel.DeleteTaskSetRequest) async throws -> ElasticContainerModel.DeleteTaskSetResponse typealias DeregisterContainerInstanceFunctionType = ( @@ -160,7 +162,7 @@ public protocol ElasticContainerClientProtocolV2 { - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ func createCluster( input: ElasticContainerModel.CreateClusterRequest) async throws -> ElasticContainerModel.CreateClusterResponse @@ -249,6 +251,18 @@ public protocol ElasticContainerClientProtocolV2 { func deleteService( input: ElasticContainerModel.DeleteServiceRequest) async throws -> ElasticContainerModel.DeleteServiceResponse + /** + Invokes the DeleteTaskDefinitions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + func deleteTaskDefinitions( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) async throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse + /** Invokes the DeleteTaskSet operation suspending until the response is available before returning. @@ -712,7 +726,7 @@ public protocol ElasticContainerClientProtocolV2 { - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ func updateCluster( input: ElasticContainerModel.UpdateClusterRequest) async throws -> ElasticContainerModel.UpdateClusterResponse diff --git a/Sources/ElasticContainerClient/ElasticContainerInvocationsReporting.swift b/Sources/ElasticContainerClient/ElasticContainerInvocationsReporting.swift index c87e0d4..a242df0 100644 --- a/Sources/ElasticContainerClient/ElasticContainerInvocationsReporting.swift +++ b/Sources/ElasticContainerClient/ElasticContainerInvocationsReporting.swift @@ -38,6 +38,7 @@ public struct ElasticContainerInvocationsReporting public let deleteCluster: SmokeAWSHTTPClientInvocationReporting public let deleteService: SmokeAWSHTTPClientInvocationReporting + public let deleteTaskDefinitions: SmokeAWSHTTPClientInvocationReporting public let deleteTaskSet: SmokeAWSHTTPClientInvocationReporting public let deregisterContainerInstance: SmokeAWSHTTPClientInvocationReporting public let deregisterTaskDefinition: SmokeAWSHTTPClientInvocationReporting @@ -104,6 +105,8 @@ public struct ElasticContainerInvocationsReporting BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DeleteTaskDefinitionsResponse { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DeleteTaskSet operation in a HTTP client. */ diff --git a/Sources/ElasticContainerClient/ElasticContainerOperationsReporting.swift b/Sources/ElasticContainerClient/ElasticContainerOperationsReporting.swift index 38776b0..d6a389e 100644 --- a/Sources/ElasticContainerClient/ElasticContainerOperationsReporting.swift +++ b/Sources/ElasticContainerClient/ElasticContainerOperationsReporting.swift @@ -37,6 +37,7 @@ public struct ElasticContainerOperationsReporting { public let deleteCapacityProvider: StandardSmokeAWSOperationReporting public let deleteCluster: StandardSmokeAWSOperationReporting public let deleteService: StandardSmokeAWSOperationReporting + public let deleteTaskDefinitions: StandardSmokeAWSOperationReporting public let deleteTaskSet: StandardSmokeAWSOperationReporting public let deregisterContainerInstance: StandardSmokeAWSOperationReporting public let deregisterTaskDefinition: StandardSmokeAWSOperationReporting @@ -103,6 +104,8 @@ public struct ElasticContainerOperationsReporting { clientName: clientName, operation: .deleteCluster, configuration: reportingConfiguration) self.deleteService = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteService, configuration: reportingConfiguration) + self.deleteTaskDefinitions = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .deleteTaskDefinitions, configuration: reportingConfiguration) self.deleteTaskSet = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteTaskSet, configuration: reportingConfiguration) self.deregisterContainerInstance = StandardSmokeAWSOperationReporting( diff --git a/Sources/ElasticContainerClient/MockElasticContainerClient.swift b/Sources/ElasticContainerClient/MockElasticContainerClient.swift index 4df9874..050dc54 100644 --- a/Sources/ElasticContainerClient/MockElasticContainerClient.swift +++ b/Sources/ElasticContainerClient/MockElasticContainerClient.swift @@ -47,6 +47,8 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { let deleteClusterSyncOverride: DeleteClusterSyncType? let deleteServiceAsyncOverride: DeleteServiceAsyncType? let deleteServiceSyncOverride: DeleteServiceSyncType? + let deleteTaskDefinitionsAsyncOverride: DeleteTaskDefinitionsAsyncType? + let deleteTaskDefinitionsSyncOverride: DeleteTaskDefinitionsSyncType? let deleteTaskSetAsyncOverride: DeleteTaskSetAsyncType? let deleteTaskSetSyncOverride: DeleteTaskSetSyncType? let deregisterContainerInstanceAsyncOverride: DeregisterContainerInstanceAsyncType? @@ -163,6 +165,8 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { deleteClusterSync: DeleteClusterSyncType? = nil, deleteServiceAsync: DeleteServiceAsyncType? = nil, deleteServiceSync: DeleteServiceSyncType? = nil, + deleteTaskDefinitionsAsync: DeleteTaskDefinitionsAsyncType? = nil, + deleteTaskDefinitionsSync: DeleteTaskDefinitionsSyncType? = nil, deleteTaskSetAsync: DeleteTaskSetAsyncType? = nil, deleteTaskSetSync: DeleteTaskSetSyncType? = nil, deregisterContainerInstanceAsync: DeregisterContainerInstanceAsyncType? = nil, @@ -273,6 +277,8 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { self.deleteClusterSyncOverride = deleteClusterSync self.deleteServiceAsyncOverride = deleteServiceAsync self.deleteServiceSyncOverride = deleteServiceSync + self.deleteTaskDefinitionsAsyncOverride = deleteTaskDefinitionsAsync + self.deleteTaskDefinitionsSyncOverride = deleteTaskDefinitionsSync self.deleteTaskSetAsyncOverride = deleteTaskSetAsync self.deleteTaskSetSyncOverride = deleteTaskSetSync self.deregisterContainerInstanceAsyncOverride = deregisterContainerInstanceAsync @@ -415,7 +421,7 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { - completion: The CreateClusterResponse object or an error will be passed to this callback when the operation is complete. The CreateClusterResponse object will be validated before being returned to caller. - The possible errors are: client, invalidParameter, server. + The possible errors are: client, invalidParameter, namespaceNotFound, server. */ public func createClusterAsync( input: ElasticContainerModel.CreateClusterRequest, @@ -436,7 +442,7 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ public func createClusterSync( input: ElasticContainerModel.CreateClusterRequest) throws -> ElasticContainerModel.CreateClusterResponse { @@ -727,6 +733,46 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { return DeleteServiceResponse.__default } + /** + Invokes the DeleteTaskDefinitions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - completion: The DeleteTaskDefinitionsResponse object or an error will be passed to this + callback when the operation is complete. The DeleteTaskDefinitionsResponse + object will be validated before being returned to caller. + The possible errors are: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitionsAsync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest, + completion: @escaping (Result) -> ()) throws { + if let deleteTaskDefinitionsAsyncOverride = deleteTaskDefinitionsAsyncOverride { + return try deleteTaskDefinitionsAsyncOverride(input, completion) + } + + let result = DeleteTaskDefinitionsResponse.__default + + completion(.success(result)) + } + + /** + Invokes the DeleteTaskDefinitions operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitionsSync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse { + if let deleteTaskDefinitionsSyncOverride = deleteTaskDefinitionsSyncOverride { + return try deleteTaskDefinitionsSyncOverride(input) + } + + return DeleteTaskDefinitionsResponse.__default + } + /** Invokes the DeleteTaskSet operation returning immediately and passing the response to a callback. @@ -2255,7 +2301,7 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { - completion: The UpdateClusterResponse object or an error will be passed to this callback when the operation is complete. The UpdateClusterResponse object will be validated before being returned to caller. - The possible errors are: client, clusterNotFound, invalidParameter, server. + The possible errors are: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ public func updateClusterAsync( input: ElasticContainerModel.UpdateClusterRequest, @@ -2276,7 +2322,7 @@ public struct MockElasticContainerClient: ElasticContainerClientProtocol { - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ public func updateClusterSync( input: ElasticContainerModel.UpdateClusterRequest) throws -> ElasticContainerModel.UpdateClusterResponse { diff --git a/Sources/ElasticContainerClient/MockElasticContainerClientV2.swift b/Sources/ElasticContainerClient/MockElasticContainerClientV2.swift index 8f0a72f..11f6475 100644 --- a/Sources/ElasticContainerClient/MockElasticContainerClientV2.swift +++ b/Sources/ElasticContainerClient/MockElasticContainerClientV2.swift @@ -39,6 +39,7 @@ public struct MockElasticContainerClientV2: ElasticContainerClientProtocolV2 { let deleteCapacityProviderOverride: DeleteCapacityProviderFunctionType? let deleteClusterOverride: DeleteClusterFunctionType? let deleteServiceOverride: DeleteServiceFunctionType? + let deleteTaskDefinitionsOverride: DeleteTaskDefinitionsFunctionType? let deleteTaskSetOverride: DeleteTaskSetFunctionType? let deregisterContainerInstanceOverride: DeregisterContainerInstanceFunctionType? let deregisterTaskDefinitionOverride: DeregisterTaskDefinitionFunctionType? @@ -100,6 +101,7 @@ public struct MockElasticContainerClientV2: ElasticContainerClientProtocolV2 { deleteCapacityProvider: DeleteCapacityProviderFunctionType? = nil, deleteCluster: DeleteClusterFunctionType? = nil, deleteService: DeleteServiceFunctionType? = nil, + deleteTaskDefinitions: DeleteTaskDefinitionsFunctionType? = nil, deleteTaskSet: DeleteTaskSetFunctionType? = nil, deregisterContainerInstance: DeregisterContainerInstanceFunctionType? = nil, deregisterTaskDefinition: DeregisterTaskDefinitionFunctionType? = nil, @@ -155,6 +157,7 @@ public struct MockElasticContainerClientV2: ElasticContainerClientProtocolV2 { self.deleteCapacityProviderOverride = deleteCapacityProvider self.deleteClusterOverride = deleteCluster self.deleteServiceOverride = deleteService + self.deleteTaskDefinitionsOverride = deleteTaskDefinitions self.deleteTaskSetOverride = deleteTaskSet self.deregisterContainerInstanceOverride = deregisterContainerInstance self.deregisterTaskDefinitionOverride = deregisterTaskDefinition @@ -228,7 +231,7 @@ public struct MockElasticContainerClientV2: ElasticContainerClientProtocolV2 { - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ public func createCluster( input: ElasticContainerModel.CreateClusterRequest) async throws -> ElasticContainerModel.CreateClusterResponse { @@ -365,6 +368,24 @@ public struct MockElasticContainerClientV2: ElasticContainerClientProtocolV2 { return DeleteServiceResponse.__default } + /** + Invokes the DeleteTaskDefinitions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitions( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) async throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse { + if let deleteTaskDefinitionsOverride = deleteTaskDefinitionsOverride { + return try await deleteTaskDefinitionsOverride(input) + } + + return DeleteTaskDefinitionsResponse.__default + } + /** Invokes the DeleteTaskSet operation suspending until the response is available before returning. @@ -1056,7 +1077,7 @@ public struct MockElasticContainerClientV2: ElasticContainerClientProtocolV2 { - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ public func updateCluster( input: ElasticContainerModel.UpdateClusterRequest) async throws -> ElasticContainerModel.UpdateClusterResponse { diff --git a/Sources/ElasticContainerClient/ThrowingElasticContainerClient.swift b/Sources/ElasticContainerClient/ThrowingElasticContainerClient.swift index 33e3f46..ee99558 100644 --- a/Sources/ElasticContainerClient/ThrowingElasticContainerClient.swift +++ b/Sources/ElasticContainerClient/ThrowingElasticContainerClient.swift @@ -48,6 +48,8 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { let deleteClusterSyncOverride: DeleteClusterSyncType? let deleteServiceAsyncOverride: DeleteServiceAsyncType? let deleteServiceSyncOverride: DeleteServiceSyncType? + let deleteTaskDefinitionsAsyncOverride: DeleteTaskDefinitionsAsyncType? + let deleteTaskDefinitionsSyncOverride: DeleteTaskDefinitionsSyncType? let deleteTaskSetAsyncOverride: DeleteTaskSetAsyncType? let deleteTaskSetSyncOverride: DeleteTaskSetSyncType? let deregisterContainerInstanceAsyncOverride: DeregisterContainerInstanceAsyncType? @@ -164,6 +166,8 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { deleteClusterSync: DeleteClusterSyncType? = nil, deleteServiceAsync: DeleteServiceAsyncType? = nil, deleteServiceSync: DeleteServiceSyncType? = nil, + deleteTaskDefinitionsAsync: DeleteTaskDefinitionsAsyncType? = nil, + deleteTaskDefinitionsSync: DeleteTaskDefinitionsSyncType? = nil, deleteTaskSetAsync: DeleteTaskSetAsyncType? = nil, deleteTaskSetSync: DeleteTaskSetSyncType? = nil, deregisterContainerInstanceAsync: DeregisterContainerInstanceAsyncType? = nil, @@ -275,6 +279,8 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { self.deleteClusterSyncOverride = deleteClusterSync self.deleteServiceAsyncOverride = deleteServiceAsync self.deleteServiceSyncOverride = deleteServiceSync + self.deleteTaskDefinitionsAsyncOverride = deleteTaskDefinitionsAsync + self.deleteTaskDefinitionsSyncOverride = deleteTaskDefinitionsSync self.deleteTaskSetAsyncOverride = deleteTaskSetAsync self.deleteTaskSetSyncOverride = deleteTaskSetSync self.deregisterContainerInstanceAsyncOverride = deregisterContainerInstanceAsync @@ -415,7 +421,7 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { - completion: The CreateClusterResponse object or an error will be passed to this callback when the operation is complete. The CreateClusterResponse object will be validated before being returned to caller. - The possible errors are: client, invalidParameter, server. + The possible errors are: client, invalidParameter, namespaceNotFound, server. */ public func createClusterAsync( input: ElasticContainerModel.CreateClusterRequest, @@ -434,7 +440,7 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ public func createClusterSync( input: ElasticContainerModel.CreateClusterRequest) throws -> ElasticContainerModel.CreateClusterResponse { @@ -711,6 +717,44 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { throw error } + /** + Invokes the DeleteTaskDefinitions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - completion: The DeleteTaskDefinitionsResponse object or an error will be passed to this + callback when the operation is complete. The DeleteTaskDefinitionsResponse + object will be validated before being returned to caller. + The possible errors are: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitionsAsync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest, + completion: @escaping (Result) -> ()) throws { + if let deleteTaskDefinitionsAsyncOverride = deleteTaskDefinitionsAsyncOverride { + return try deleteTaskDefinitionsAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DeleteTaskDefinitions operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitionsSync( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse { + if let deleteTaskDefinitionsSyncOverride = deleteTaskDefinitionsSyncOverride { + return try deleteTaskDefinitionsSyncOverride(input) + } + + throw error + } + /** Invokes the DeleteTaskSet operation returning immediately and passing the response to a callback. @@ -2163,7 +2207,7 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { - completion: The UpdateClusterResponse object or an error will be passed to this callback when the operation is complete. The UpdateClusterResponse object will be validated before being returned to caller. - The possible errors are: client, clusterNotFound, invalidParameter, server. + The possible errors are: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ public func updateClusterAsync( input: ElasticContainerModel.UpdateClusterRequest, @@ -2182,7 +2226,7 @@ public struct ThrowingElasticContainerClient: ElasticContainerClientProtocol { - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ public func updateClusterSync( input: ElasticContainerModel.UpdateClusterRequest) throws -> ElasticContainerModel.UpdateClusterResponse { diff --git a/Sources/ElasticContainerClient/ThrowingElasticContainerClientV2.swift b/Sources/ElasticContainerClient/ThrowingElasticContainerClientV2.swift index a45ef70..4d7d609 100644 --- a/Sources/ElasticContainerClient/ThrowingElasticContainerClientV2.swift +++ b/Sources/ElasticContainerClient/ThrowingElasticContainerClientV2.swift @@ -40,6 +40,7 @@ public struct ThrowingElasticContainerClientV2: ElasticContainerClientProtocolV2 let deleteCapacityProviderOverride: DeleteCapacityProviderFunctionType? let deleteClusterOverride: DeleteClusterFunctionType? let deleteServiceOverride: DeleteServiceFunctionType? + let deleteTaskDefinitionsOverride: DeleteTaskDefinitionsFunctionType? let deleteTaskSetOverride: DeleteTaskSetFunctionType? let deregisterContainerInstanceOverride: DeregisterContainerInstanceFunctionType? let deregisterTaskDefinitionOverride: DeregisterTaskDefinitionFunctionType? @@ -101,6 +102,7 @@ public struct ThrowingElasticContainerClientV2: ElasticContainerClientProtocolV2 deleteCapacityProvider: DeleteCapacityProviderFunctionType? = nil, deleteCluster: DeleteClusterFunctionType? = nil, deleteService: DeleteServiceFunctionType? = nil, + deleteTaskDefinitions: DeleteTaskDefinitionsFunctionType? = nil, deleteTaskSet: DeleteTaskSetFunctionType? = nil, deregisterContainerInstance: DeregisterContainerInstanceFunctionType? = nil, deregisterTaskDefinition: DeregisterTaskDefinitionFunctionType? = nil, @@ -157,6 +159,7 @@ public struct ThrowingElasticContainerClientV2: ElasticContainerClientProtocolV2 self.deleteCapacityProviderOverride = deleteCapacityProvider self.deleteClusterOverride = deleteCluster self.deleteServiceOverride = deleteService + self.deleteTaskDefinitionsOverride = deleteTaskDefinitions self.deleteTaskSetOverride = deleteTaskSet self.deregisterContainerInstanceOverride = deregisterContainerInstance self.deregisterTaskDefinitionOverride = deregisterTaskDefinition @@ -230,7 +233,7 @@ public struct ThrowingElasticContainerClientV2: ElasticContainerClientProtocolV2 - input: The validated CreateClusterRequest object being passed to this operation. - Returns: The CreateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, invalidParameter, server. + - Throws: client, invalidParameter, namespaceNotFound, server. */ public func createCluster( input: ElasticContainerModel.CreateClusterRequest) async throws -> ElasticContainerModel.CreateClusterResponse { @@ -367,6 +370,24 @@ public struct ThrowingElasticContainerClientV2: ElasticContainerClientProtocolV2 throw error } + /** + Invokes the DeleteTaskDefinitions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteTaskDefinitionsRequest object being passed to this operation. + - Returns: The DeleteTaskDefinitionsResponse object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: accessDenied, client, invalidParameter, server. + */ + public func deleteTaskDefinitions( + input: ElasticContainerModel.DeleteTaskDefinitionsRequest) async throws -> ElasticContainerModel.DeleteTaskDefinitionsResponse { + if let deleteTaskDefinitionsOverride = deleteTaskDefinitionsOverride { + return try await deleteTaskDefinitionsOverride(input) + } + + throw error + } + /** Invokes the DeleteTaskSet operation suspending until the response is available before returning. @@ -1058,7 +1079,7 @@ public struct ThrowingElasticContainerClientV2: ElasticContainerClientProtocolV2 - input: The validated UpdateClusterRequest object being passed to this operation. - Returns: The UpdateClusterResponse object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: client, clusterNotFound, invalidParameter, server. + - Throws: client, clusterNotFound, invalidParameter, namespaceNotFound, server. */ public func updateCluster( input: ElasticContainerModel.UpdateClusterRequest) async throws -> ElasticContainerModel.UpdateClusterResponse { diff --git a/Sources/ElasticContainerModel/ElasticContainerModelDefaultInstances.swift b/Sources/ElasticContainerModel/ElasticContainerModelDefaultInstances.swift index 23fbb05..bb3ec9b 100644 --- a/Sources/ElasticContainerModel/ElasticContainerModelDefaultInstances.swift +++ b/Sources/ElasticContainerModel/ElasticContainerModelDefaultInstances.swift @@ -339,6 +339,7 @@ public extension ContainerDefinition { let defaultInstance = ElasticContainerModel.ContainerDefinition( command: nil, cpu: nil, + credentialSpecs: nil, dependsOn: nil, disableNetworking: nil, dnsSearchDomains: nil, @@ -735,6 +736,31 @@ public extension DeleteServiceResponse { }() } +public extension DeleteTaskDefinitionsRequest { + /** + Default instance of the DeleteTaskDefinitionsRequest structure. + */ + static let __default: ElasticContainerModel.DeleteTaskDefinitionsRequest = { + let defaultInstance = ElasticContainerModel.DeleteTaskDefinitionsRequest( + taskDefinitions: []) + + return defaultInstance + }() +} + +public extension DeleteTaskDefinitionsResponse { + /** + Default instance of the DeleteTaskDefinitionsResponse structure. + */ + static let __default: ElasticContainerModel.DeleteTaskDefinitionsResponse = { + let defaultInstance = ElasticContainerModel.DeleteTaskDefinitionsResponse( + failures: nil, + taskDefinitions: nil) + + return defaultInstance + }() +} + public extension DeleteTaskSetRequest { /** Default instance of the DeleteTaskSetRequest structure. diff --git a/Sources/ElasticContainerModel/ElasticContainerModelOperations.swift b/Sources/ElasticContainerModel/ElasticContainerModelOperations.swift index 93383b9..3ca7960 100644 --- a/Sources/ElasticContainerModel/ElasticContainerModelOperations.swift +++ b/Sources/ElasticContainerModel/ElasticContainerModelOperations.swift @@ -35,6 +35,7 @@ public enum ElasticContainerModelOperations: String, Hashable, CustomStringConve case deleteCapacityProvider = "DeleteCapacityProvider" case deleteCluster = "DeleteCluster" case deleteService = "DeleteService" + case deleteTaskDefinitions = "DeleteTaskDefinitions" case deleteTaskSet = "DeleteTaskSet" case deregisterContainerInstance = "DeregisterContainerInstance" case deregisterTaskDefinition = "DeregisterTaskDefinition" @@ -106,6 +107,8 @@ public enum ElasticContainerModelOperations: String, Hashable, CustomStringConve return "/" case .deleteService: return "/" + case .deleteTaskDefinitions: + return "/" case .deleteTaskSet: return "/" case .deregisterContainerInstance: diff --git a/Sources/ElasticContainerModel/ElasticContainerModelStructures.swift b/Sources/ElasticContainerModel/ElasticContainerModelStructures.swift index 13ed76d..3951518 100644 --- a/Sources/ElasticContainerModel/ElasticContainerModelStructures.swift +++ b/Sources/ElasticContainerModel/ElasticContainerModelStructures.swift @@ -531,6 +531,7 @@ public struct Container: Codable, Equatable { public struct ContainerDefinition: Codable, Equatable { public var command: StringList? public var cpu: Integer? + public var credentialSpecs: StringList? public var dependsOn: ContainerDependencies? public var disableNetworking: BoxedBoolean? public var dnsSearchDomains: StringList? @@ -571,6 +572,7 @@ public struct ContainerDefinition: Codable, Equatable { public init(command: StringList? = nil, cpu: Integer? = nil, + credentialSpecs: StringList? = nil, dependsOn: ContainerDependencies? = nil, disableNetworking: BoxedBoolean? = nil, dnsSearchDomains: StringList? = nil, @@ -610,6 +612,7 @@ public struct ContainerDefinition: Codable, Equatable { workingDirectory: String? = nil) { self.command = command self.cpu = cpu + self.credentialSpecs = credentialSpecs self.dependsOn = dependsOn self.disableNetworking = disableNetworking self.dnsSearchDomains = dnsSearchDomains @@ -652,6 +655,7 @@ public struct ContainerDefinition: Codable, Equatable { enum CodingKeys: String, CodingKey { case command case cpu + case credentialSpecs case dependsOn case disableNetworking case dnsSearchDomains @@ -1381,6 +1385,40 @@ public struct DeleteServiceResponse: Codable, Equatable { } } +public struct DeleteTaskDefinitionsRequest: Codable, Equatable { + public var taskDefinitions: StringList + + public init(taskDefinitions: StringList) { + self.taskDefinitions = taskDefinitions + } + + enum CodingKeys: String, CodingKey { + case taskDefinitions + } + + public func validate() throws { + } +} + +public struct DeleteTaskDefinitionsResponse: Codable, Equatable { + public var failures: Failures? + public var taskDefinitions: TaskDefinitionList? + + public init(failures: Failures? = nil, + taskDefinitions: TaskDefinitionList? = nil) { + self.failures = failures + self.taskDefinitions = taskDefinitions + } + + enum CodingKeys: String, CodingKey { + case failures + case taskDefinitions + } + + public func validate() throws { + } +} + public struct DeleteTaskSetRequest: Codable, Equatable { public var cluster: String public var force: BoxedBoolean? diff --git a/Sources/ElasticContainerModel/ElasticContainerModelTypes.swift b/Sources/ElasticContainerModel/ElasticContainerModelTypes.swift index bf7bdc5..fb58e33 100644 --- a/Sources/ElasticContainerModel/ElasticContainerModelTypes.swift +++ b/Sources/ElasticContainerModel/ElasticContainerModelTypes.swift @@ -1029,7 +1029,9 @@ public enum SettingName: String, Codable, CustomStringConvertible { case awsvpctrunking = "awsvpcTrunking" case containerinsights = "containerInsights" case containerinstancelongarnformat = "containerInstanceLongArnFormat" + case fargatefipsmode = "fargateFIPSMode" case servicelongarnformat = "serviceLongArnFormat" + case tagresourceauthorization = "tagResourceAuthorization" case tasklongarnformat = "taskLongArnFormat" public var description: String { @@ -1158,6 +1160,11 @@ public enum TaskDefinitionField: String, Codable, CustomStringConvertible { */ public typealias TaskDefinitionFieldList = [TaskDefinitionField] +/** + Type definition for the TaskDefinitionList field. + */ +public typealias TaskDefinitionList = [TaskDefinition] + /** Enumeration restricting the values of the TaskDefinitionPlacementConstraintType field. */ @@ -1181,6 +1188,7 @@ public typealias TaskDefinitionPlacementConstraints = [TaskDefinitionPlacementCo */ public enum TaskDefinitionStatus: String, Codable, CustomStringConvertible { case active = "ACTIVE" + case deleteInProgress = "DELETE_IN_PROGRESS" case inactive = "INACTIVE" public var description: String { diff --git a/Sources/RDSClient/AWSRDSClient.swift b/Sources/RDSClient/AWSRDSClient.swift index de641c0..f435c54 100644 --- a/Sources/RDSClient/AWSRDSClient.swift +++ b/Sources/RDSClient/AWSRDSClient.swift @@ -1242,7 +1242,7 @@ public struct AWSRDSClient RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -1710,7 +1710,7 @@ public struct AWSRDSClient RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -7527,7 +7527,7 @@ public struct AWSRDSClient RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -9702,7 +9702,7 @@ public struct AWSRDSClient RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { @@ -11661,7 +11661,7 @@ public struct AWSRDSClient RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -11901,7 +11901,7 @@ public struct AWSRDSClient RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -14882,7 +14882,7 @@ public struct AWSRDSClient RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -15996,7 +15996,7 @@ public struct AWSRDSClient RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { diff --git a/Sources/RDSClient/MockRDSClient.swift b/Sources/RDSClient/MockRDSClient.swift index ae18711..269cace 100644 --- a/Sources/RDSClient/MockRDSClient.swift +++ b/Sources/RDSClient/MockRDSClient.swift @@ -1433,7 +1433,7 @@ public struct MockRDSClient: RDSClientProtocol { - completion: The DBEngineVersionForCreateCustomDBEngineVersion object or an error will be passed to this callback when the operation is complete. The DBEngineVersionForCreateCustomDBEngineVersion object will be validated before being returned to caller. - The possible errors are: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + The possible errors are: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ public func createCustomDBEngineVersionAsync( input: RDSModel.CreateCustomDBEngineVersionMessage, @@ -1454,7 +1454,7 @@ public struct MockRDSClient: RDSClientProtocol { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ public func createCustomDBEngineVersionSync( input: RDSModel.CreateCustomDBEngineVersionMessage) throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -1673,7 +1673,7 @@ public struct MockRDSClient: RDSClientProtocol { - completion: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object or an error will be passed to this callback when the operation is complete. The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object will be validated before being returned to caller. - The possible errors are: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + The possible errors are: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ public func createDBInstanceReadReplicaAsync( input: RDSModel.CreateDBInstanceReadReplicaMessage, @@ -1694,7 +1694,7 @@ public struct MockRDSClient: RDSClientProtocol { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ public func createDBInstanceReadReplicaSync( input: RDSModel.CreateDBInstanceReadReplicaMessage) throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -4625,7 +4625,7 @@ public struct MockRDSClient: RDSClientProtocol { - completion: The ModifyDBClusterResultForModifyDBCluster object or an error will be passed to this callback when the operation is complete. The ModifyDBClusterResultForModifyDBCluster object will be validated before being returned to caller. - The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ public func modifyDBClusterAsync( input: RDSModel.ModifyDBClusterMessage, @@ -4646,7 +4646,7 @@ public struct MockRDSClient: RDSClientProtocol { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ public func modifyDBClusterSync( input: RDSModel.ModifyDBClusterMessage) throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -5727,7 +5727,7 @@ public struct MockRDSClient: RDSClientProtocol { - completion: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object or an error will be passed to this callback when the operation is complete. The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object will be validated before being returned to caller. - The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ public func restoreDBClusterFromS3Async( input: RDSModel.RestoreDBClusterFromS3Message, @@ -5748,7 +5748,7 @@ public struct MockRDSClient: RDSClientProtocol { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ public func restoreDBClusterFromS3Sync( input: RDSModel.RestoreDBClusterFromS3Message) throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { diff --git a/Sources/RDSClient/MockRDSClientV2.swift b/Sources/RDSClient/MockRDSClientV2.swift index 2519bb9..38a1d61 100644 --- a/Sources/RDSClient/MockRDSClientV2.swift +++ b/Sources/RDSClient/MockRDSClientV2.swift @@ -711,7 +711,7 @@ public struct MockRDSClientV2: RDSClientProtocolV2 { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ public func createCustomDBEngineVersion( input: RDSModel.CreateCustomDBEngineVersionMessage) async throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -819,7 +819,7 @@ public struct MockRDSClientV2: RDSClientProtocolV2 { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ public func createDBInstanceReadReplica( input: RDSModel.CreateDBInstanceReadReplicaMessage) async throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -2145,7 +2145,7 @@ public struct MockRDSClientV2: RDSClientProtocolV2 { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ public func modifyDBCluster( input: RDSModel.ModifyDBClusterMessage) async throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -2640,7 +2640,7 @@ public struct MockRDSClientV2: RDSClientProtocolV2 { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ public func restoreDBClusterFromS3( input: RDSModel.RestoreDBClusterFromS3Message) async throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { diff --git a/Sources/RDSClient/RDSClientProtocol+async.swift b/Sources/RDSClient/RDSClientProtocol+async.swift index 47b0c8b..f6253d3 100644 --- a/Sources/RDSClient/RDSClientProtocol+async.swift +++ b/Sources/RDSClient/RDSClientProtocol+async.swift @@ -403,7 +403,7 @@ public extension RDSClientProtocol { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ func createCustomDBEngineVersion(input: RDSModel.CreateCustomDBEngineVersionMessage) async throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -565,7 +565,7 @@ public extension RDSClientProtocol { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ func createDBInstanceReadReplica(input: RDSModel.CreateDBInstanceReadReplicaMessage) async throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -2561,7 +2561,7 @@ public extension RDSClientProtocol { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ func modifyDBCluster(input: RDSModel.ModifyDBClusterMessage) async throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -3305,7 +3305,7 @@ public extension RDSClientProtocol { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ func restoreDBClusterFromS3(input: RDSModel.RestoreDBClusterFromS3Message) async throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { diff --git a/Sources/RDSClient/RDSClientProtocol.swift b/Sources/RDSClient/RDSClientProtocol.swift index b82c0ce..2cf006c 100644 --- a/Sources/RDSClient/RDSClientProtocol.swift +++ b/Sources/RDSClient/RDSClientProtocol.swift @@ -1098,7 +1098,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - completion: The DBEngineVersionForCreateCustomDBEngineVersion object or an error will be passed to this callback when the operation is complete. The DBEngineVersionForCreateCustomDBEngineVersion object will be validated before being returned to caller. - The possible errors are: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + The possible errors are: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ func createCustomDBEngineVersionAsync( input: RDSModel.CreateCustomDBEngineVersionMessage, @@ -1111,7 +1111,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ func createCustomDBEngineVersionSync( input: RDSModel.CreateCustomDBEngineVersionMessage) throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion @@ -1254,7 +1254,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - completion: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object or an error will be passed to this callback when the operation is complete. The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object will be validated before being returned to caller. - The possible errors are: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + The possible errors are: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ func createDBInstanceReadReplicaAsync( input: RDSModel.CreateDBInstanceReadReplicaMessage, @@ -1267,7 +1267,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ func createDBInstanceReadReplicaSync( input: RDSModel.CreateDBInstanceReadReplicaMessage) throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica @@ -3171,7 +3171,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - completion: The ModifyDBClusterResultForModifyDBCluster object or an error will be passed to this callback when the operation is complete. The ModifyDBClusterResultForModifyDBCluster object will be validated before being returned to caller. - The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ func modifyDBClusterAsync( input: RDSModel.ModifyDBClusterMessage, @@ -3184,7 +3184,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ func modifyDBClusterSync( input: RDSModel.ModifyDBClusterMessage) throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster @@ -3890,7 +3890,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - completion: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object or an error will be passed to this callback when the operation is complete. The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object will be validated before being returned to caller. - The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ func restoreDBClusterFromS3Async( input: RDSModel.RestoreDBClusterFromS3Message, @@ -3903,7 +3903,7 @@ public protocol RDSClientProtocol: RDSClientProtocolV2 { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ func restoreDBClusterFromS3Sync( input: RDSModel.RestoreDBClusterFromS3Message) throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 diff --git a/Sources/RDSClient/RDSClientProtocolV2.swift b/Sources/RDSClient/RDSClientProtocolV2.swift index bf7afd0..ccf8883 100644 --- a/Sources/RDSClient/RDSClientProtocolV2.swift +++ b/Sources/RDSClient/RDSClientProtocolV2.swift @@ -482,7 +482,7 @@ public protocol RDSClientProtocolV2 { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ func createCustomDBEngineVersion( input: RDSModel.CreateCustomDBEngineVersionMessage) async throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion @@ -554,7 +554,7 @@ public protocol RDSClientProtocolV2 { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ func createDBInstanceReadReplica( input: RDSModel.CreateDBInstanceReadReplicaMessage) async throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica @@ -1435,7 +1435,7 @@ public protocol RDSClientProtocolV2 { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ func modifyDBCluster( input: RDSModel.ModifyDBClusterMessage) async throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster @@ -1765,7 +1765,7 @@ public protocol RDSClientProtocolV2 { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ func restoreDBClusterFromS3( input: RDSModel.RestoreDBClusterFromS3Message) async throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 diff --git a/Sources/RDSClient/ThrowingRDSClient.swift b/Sources/RDSClient/ThrowingRDSClient.swift index d31d29f..a065a3d 100644 --- a/Sources/RDSClient/ThrowingRDSClient.swift +++ b/Sources/RDSClient/ThrowingRDSClient.swift @@ -1416,7 +1416,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - completion: The DBEngineVersionForCreateCustomDBEngineVersion object or an error will be passed to this callback when the operation is complete. The DBEngineVersionForCreateCustomDBEngineVersion object will be validated before being returned to caller. - The possible errors are: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + The possible errors are: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ public func createCustomDBEngineVersionAsync( input: RDSModel.CreateCustomDBEngineVersionMessage, @@ -1435,7 +1435,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ public func createCustomDBEngineVersionSync( input: RDSModel.CreateCustomDBEngineVersionMessage) throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -1644,7 +1644,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - completion: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object or an error will be passed to this callback when the operation is complete. The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object will be validated before being returned to caller. - The possible errors are: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + The possible errors are: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ public func createDBInstanceReadReplicaAsync( input: RDSModel.CreateDBInstanceReadReplicaMessage, @@ -1663,7 +1663,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ public func createDBInstanceReadReplicaSync( input: RDSModel.CreateDBInstanceReadReplicaMessage) throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -4461,7 +4461,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - completion: The ModifyDBClusterResultForModifyDBCluster object or an error will be passed to this callback when the operation is complete. The ModifyDBClusterResultForModifyDBCluster object will be validated before being returned to caller. - The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ public func modifyDBClusterAsync( input: RDSModel.ModifyDBClusterMessage, @@ -4480,7 +4480,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ public func modifyDBClusterSync( input: RDSModel.ModifyDBClusterMessage) throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -5516,7 +5516,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - completion: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object or an error will be passed to this callback when the operation is complete. The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object will be validated before being returned to caller. - The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + The possible errors are: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ public func restoreDBClusterFromS3Async( input: RDSModel.RestoreDBClusterFromS3Message, @@ -5535,7 +5535,7 @@ public struct ThrowingRDSClient: RDSClientProtocol { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ public func restoreDBClusterFromS3Sync( input: RDSModel.RestoreDBClusterFromS3Message) throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { diff --git a/Sources/RDSClient/ThrowingRDSClientV2.swift b/Sources/RDSClient/ThrowingRDSClientV2.swift index a3953a2..f8626c9 100644 --- a/Sources/RDSClient/ThrowingRDSClientV2.swift +++ b/Sources/RDSClient/ThrowingRDSClientV2.swift @@ -716,7 +716,7 @@ public struct ThrowingRDSClientV2: RDSClientProtocolV2 { - input: The validated CreateCustomDBEngineVersionMessage object being passed to this operation. - Returns: The DBEngineVersionForCreateCustomDBEngineVersion object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. + - Throws: createCustomDBEngineVersion, customDBEngineVersionAlreadyExists, customDBEngineVersionQuotaExceeded, ec2ImagePropertiesNotSupported, kMSKeyNotAccessible. */ public func createCustomDBEngineVersion( input: RDSModel.CreateCustomDBEngineVersionMessage) async throws -> RDSModel.DBEngineVersionForCreateCustomDBEngineVersion { @@ -824,7 +824,7 @@ public struct ThrowingRDSClientV2: RDSClientProtocolV2 { - input: The validated CreateDBInstanceReadReplicaMessage object being passed to this operation. - Returns: The CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. + - Throws: dBClusterNotFound, dBInstanceAlreadyExists, dBInstanceNotFound, dBParameterGroupNotFound, dBSecurityGroupNotFound, dBSubnetGroupDoesNotCoverEnoughAZs, dBSubnetGroupNotAllowed, dBSubnetGroupNotFound, domainNotFound, instanceQuotaExceeded, insufficientDBInstanceCapacity, invalidDBClusterState, invalidDBInstanceState, invalidDBSubnetGroup, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, networkTypeNotSupported, optionGroupNotFound, provisionedIopsNotAvailableInAZ, storageQuotaExceeded, storageTypeNotSupported. */ public func createDBInstanceReadReplica( input: RDSModel.CreateDBInstanceReadReplicaMessage) async throws -> RDSModel.CreateDBInstanceReadReplicaResultForCreateDBInstanceReadReplica { @@ -2155,7 +2155,7 @@ public struct ThrowingRDSClientV2: RDSClientProtocolV2 { - input: The validated ModifyDBClusterMessage object being passed to this operation. - Returns: The ModifyDBClusterResultForModifyDBCluster object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBInstanceAlreadyExists, dBSubnetGroupNotFound, domainNotFound, invalidDBClusterState, invalidDBInstanceState, invalidDBSecurityGroupState, invalidDBSubnetGroupState, invalidSubnet, invalidVPCNetworkState, storageQuotaExceeded, storageTypeNotAvailable. */ public func modifyDBCluster( input: RDSModel.ModifyDBClusterMessage) async throws -> RDSModel.ModifyDBClusterResultForModifyDBCluster { @@ -2653,7 +2653,7 @@ public struct ThrowingRDSClientV2: RDSClientProtocolV2 { - input: The validated RestoreDBClusterFromS3Message object being passed to this operation. - Returns: The RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded. + - Throws: dBClusterAlreadyExists, dBClusterNotFound, dBClusterParameterGroupNotFound, dBClusterQuotaExceeded, dBSubnetGroupNotFound, domainNotFound, insufficientStorageClusterCapacity, invalidDBClusterState, invalidDBSubnetGroupState, invalidS3Bucket, invalidSubnet, invalidVPCNetworkState, kMSKeyNotAccessible, storageQuotaExceeded, storageTypeNotSupported. */ public func restoreDBClusterFromS3( input: RDSModel.RestoreDBClusterFromS3Message) async throws -> RDSModel.RestoreDBClusterFromS3ResultForRestoreDBClusterFromS3 { diff --git a/Sources/RDSModel/RDSModelDefaultInstances.swift b/Sources/RDSModel/RDSModelDefaultInstances.swift index eecbf0b..0777625 100644 --- a/Sources/RDSModel/RDSModelDefaultInstances.swift +++ b/Sources/RDSModel/RDSModelDefaultInstances.swift @@ -477,7 +477,8 @@ public extension ClusterPendingModifiedValues { iAMDatabaseAuthenticationEnabled: nil, iops: nil, masterUserPassword: nil, - pendingCloudwatchLogsExports: nil) + pendingCloudwatchLogsExports: nil, + storageType: nil) return defaultInstance }() @@ -758,6 +759,17 @@ public extension CreateBlueGreenDeploymentResponseForCreateBlueGreenDeployment { }() } +public extension CreateCustomDBEngineVersionFault { + /** + Default instance of the CreateCustomDBEngineVersionFault structure. + */ + static let __default: RDSModel.CreateCustomDBEngineVersionFault = { + let defaultInstance = RDSModel.CreateCustomDBEngineVersionFault() + + return defaultInstance + }() +} + public extension CreateCustomDBEngineVersionMessage { /** Default instance of the CreateCustomDBEngineVersionMessage structure. @@ -980,7 +992,11 @@ public extension CreateDBInstanceMessage { dBSubnetGroupName: nil, deletionProtection: nil, domain: nil, + domainAuthSecretArn: nil, + domainDnsIps: nil, + domainFqdn: nil, domainIAMRoleName: nil, + domainOu: nil, enableCloudwatchLogsExports: nil, enableCustomerOwnedIp: nil, enableIAMDatabaseAuthentication: nil, @@ -1028,6 +1044,7 @@ public extension CreateDBInstanceReadReplicaMessage { */ static let __default: RDSModel.CreateDBInstanceReadReplicaMessage = { let defaultInstance = RDSModel.CreateDBInstanceReadReplicaMessage( + allocatedStorage: nil, autoMinorVersionUpgrade: nil, availabilityZone: nil, copyTagsToSnapshot: nil, @@ -1038,7 +1055,11 @@ public extension CreateDBInstanceReadReplicaMessage { dBSubnetGroupName: nil, deletionProtection: nil, domain: nil, + domainAuthSecretArn: nil, + domainDnsIps: nil, + domainFqdn: nil, domainIAMRoleName: nil, + domainOu: nil, enableCloudwatchLogsExports: nil, enableCustomerOwnedIp: nil, enableIAMDatabaseAuthentication: nil, @@ -1058,7 +1079,8 @@ public extension CreateDBInstanceReadReplicaMessage { processorFeatures: nil, publiclyAccessible: nil, replicaMode: nil, - sourceDBInstanceIdentifier: "value", + sourceDBClusterIdentifier: nil, + sourceDBInstanceIdentifier: nil, storageThroughput: nil, storageType: nil, tags: nil, @@ -1587,6 +1609,7 @@ public extension DBCluster { hostedZoneId: nil, httpEndpointEnabled: nil, iAMDatabaseAuthenticationEnabled: nil, + iOOptimizedNextAllowedModificationTime: nil, iops: nil, kmsKeyId: nil, latestRestorableTime: nil, @@ -2100,6 +2123,7 @@ public extension DBClusterSnapshot { sourceDBClusterSnapshotArn: nil, status: nil, storageEncrypted: nil, + storageType: nil, tagList: nil, vpcId: nil) @@ -2357,6 +2381,7 @@ public extension DBInstance { publiclyAccessible: nil, readReplicaDBClusterIdentifiers: nil, readReplicaDBInstanceIdentifiers: nil, + readReplicaSourceDBClusterIdentifier: nil, readReplicaSourceDBInstanceIdentifier: nil, replicaMode: nil, resumeFullAutomationModeTime: nil, @@ -4666,9 +4691,12 @@ public extension DomainMembership { */ static let __default: RDSModel.DomainMembership = { let defaultInstance = RDSModel.DomainMembership( + authSecretArn: nil, + dnsIps: nil, domain: nil, fQDN: nil, iAMRoleName: nil, + oU: nil, status: nil) return defaultInstance @@ -5782,6 +5810,7 @@ public extension ModifyDBClusterMessage { static let __default: RDSModel.ModifyDBClusterMessage = { let defaultInstance = RDSModel.ModifyDBClusterMessage( allocatedStorage: nil, + allowEngineModeChange: nil, allowMajorVersionUpgrade: nil, applyImmediately: nil, autoMinorVersionUpgrade: nil, @@ -5800,6 +5829,7 @@ public extension ModifyDBClusterMessage { enableHttpEndpoint: nil, enableIAMDatabaseAuthentication: nil, enablePerformanceInsights: nil, + engineMode: nil, engineVersion: nil, iops: nil, manageMasterUserPassword: nil, @@ -5925,11 +5955,17 @@ public extension ModifyDBInstanceMessage { dBSecurityGroups: nil, dBSubnetGroupName: nil, deletionProtection: nil, + disableDomain: nil, domain: nil, + domainAuthSecretArn: nil, + domainDnsIps: nil, + domainFqdn: nil, domainIAMRoleName: nil, + domainOu: nil, enableCustomerOwnedIp: nil, enableIAMDatabaseAuthentication: nil, enablePerformanceInsights: nil, + engine: nil, engineVersion: nil, iops: nil, licenseModel: nil, @@ -6774,6 +6810,7 @@ public extension PendingModifiedValues { dBInstanceClass: nil, dBInstanceIdentifier: nil, dBSubnetGroupName: nil, + engine: nil, engineVersion: nil, iAMDatabaseAuthenticationEnabled: nil, iops: nil, @@ -7426,6 +7463,7 @@ public extension RestoreDBClusterFromS3Message { sourceEngine: "value", sourceEngineVersion: "value", storageEncrypted: nil, + storageType: nil, tags: nil, vpcSecurityGroupIds: nil) @@ -7588,6 +7626,7 @@ public extension RestoreDBInstanceFromDBSnapshotMessage { */ static let __default: RDSModel.RestoreDBInstanceFromDBSnapshotMessage = { let defaultInstance = RDSModel.RestoreDBInstanceFromDBSnapshotMessage( + allocatedStorage: nil, autoMinorVersionUpgrade: nil, availabilityZone: nil, backupTarget: nil, @@ -7602,7 +7641,11 @@ public extension RestoreDBInstanceFromDBSnapshotMessage { dBSubnetGroupName: nil, deletionProtection: nil, domain: nil, + domainAuthSecretArn: nil, + domainDnsIps: nil, + domainFqdn: nil, domainIAMRoleName: nil, + domainOu: nil, enableCloudwatchLogsExports: nil, enableCustomerOwnedIp: nil, enableIAMDatabaseAuthentication: nil, @@ -7740,6 +7783,7 @@ public extension RestoreDBInstanceToPointInTimeMessage { */ static let __default: RDSModel.RestoreDBInstanceToPointInTimeMessage = { let defaultInstance = RDSModel.RestoreDBInstanceToPointInTimeMessage( + allocatedStorage: nil, autoMinorVersionUpgrade: nil, availabilityZone: nil, backupTarget: nil, @@ -7751,7 +7795,11 @@ public extension RestoreDBInstanceToPointInTimeMessage { dBSubnetGroupName: nil, deletionProtection: nil, domain: nil, + domainAuthSecretArn: nil, + domainDnsIps: nil, + domainFqdn: nil, domainIAMRoleName: nil, + domainOu: nil, enableCloudwatchLogsExports: nil, enableCustomerOwnedIp: nil, enableIAMDatabaseAuthentication: nil, @@ -8381,6 +8429,17 @@ public extension StorageQuotaExceededFault { }() } +public extension StorageTypeNotAvailableFault { + /** + Default instance of the StorageTypeNotAvailableFault structure. + */ + static let __default: RDSModel.StorageTypeNotAvailableFault = { + let defaultInstance = RDSModel.StorageTypeNotAvailableFault() + + return defaultInstance + }() +} + public extension StorageTypeNotSupportedFault { /** Default instance of the StorageTypeNotSupportedFault structure. diff --git a/Sources/RDSModel/RDSModelErrors.swift b/Sources/RDSModel/RDSModelErrors.swift index 3a0ac0c..82b14b6 100644 --- a/Sources/RDSModel/RDSModelErrors.swift +++ b/Sources/RDSModel/RDSModelErrors.swift @@ -40,6 +40,7 @@ private let backupPolicyNotFoundIdentity = "BackupPolicyNotFoundFault" private let blueGreenDeploymentAlreadyExistsIdentity = "BlueGreenDeploymentAlreadyExistsFault" private let blueGreenDeploymentNotFoundIdentity = "BlueGreenDeploymentNotFoundFault" private let certificateNotFoundIdentity = "CertificateNotFound" +private let createCustomDBEngineVersionIdentity = "CreateCustomDBEngineVersionFault" private let customAvailabilityZoneNotFoundIdentity = "CustomAvailabilityZoneNotFound" private let customDBEngineVersionAlreadyExistsIdentity = "CustomDBEngineVersionAlreadyExistsFault" private let customDBEngineVersionNotFoundIdentity = "CustomDBEngineVersionNotFoundFault" @@ -152,6 +153,7 @@ private let sourceClusterNotSupportedIdentity = "SourceClusterNotSupportedFault" private let sourceDatabaseNotSupportedIdentity = "SourceDatabaseNotSupportedFault" private let sourceNotFoundIdentity = "SourceNotFound" private let storageQuotaExceededIdentity = "StorageQuotaExceeded" +private let storageTypeNotAvailableIdentity = "StorageTypeNotAvailableFault" private let storageTypeNotSupportedIdentity = "StorageTypeNotSupported" private let subnetAlreadyInUseIdentity = "SubnetAlreadyInUse" private let subscriptionAlreadyExistIdentity = "SubscriptionAlreadyExist" @@ -167,6 +169,7 @@ public enum RDSError: Swift.Error, Decodable { case blueGreenDeploymentAlreadyExists(BlueGreenDeploymentAlreadyExistsFault) case blueGreenDeploymentNotFound(BlueGreenDeploymentNotFoundFault) case certificateNotFound(CertificateNotFoundFault) + case createCustomDBEngineVersion(CreateCustomDBEngineVersionFault) case customAvailabilityZoneNotFound(CustomAvailabilityZoneNotFoundFault) case customDBEngineVersionAlreadyExists(CustomDBEngineVersionAlreadyExistsFault) case customDBEngineVersionNotFound(CustomDBEngineVersionNotFoundFault) @@ -279,6 +282,7 @@ public enum RDSError: Swift.Error, Decodable { case sourceDatabaseNotSupported(SourceDatabaseNotSupportedFault) case sourceNotFound(SourceNotFoundFault) case storageQuotaExceeded(StorageQuotaExceededFault) + case storageTypeNotAvailable(StorageTypeNotAvailableFault) case storageTypeNotSupported(StorageTypeNotSupportedFault) case subnetAlreadyInUse(SubnetAlreadyInUse) case subscriptionAlreadyExist(SubscriptionAlreadyExistFault) @@ -324,6 +328,9 @@ public enum RDSError: Swift.Error, Decodable { case certificateNotFoundIdentity: let errorPayload = try CertificateNotFoundFault(from: decoder) self = RDSError.certificateNotFound(errorPayload) + case createCustomDBEngineVersionIdentity: + let errorPayload = try CreateCustomDBEngineVersionFault(from: decoder) + self = RDSError.createCustomDBEngineVersion(errorPayload) case customAvailabilityZoneNotFoundIdentity: let errorPayload = try CustomAvailabilityZoneNotFoundFault(from: decoder) self = RDSError.customAvailabilityZoneNotFound(errorPayload) @@ -660,6 +667,9 @@ public enum RDSError: Swift.Error, Decodable { case storageQuotaExceededIdentity: let errorPayload = try StorageQuotaExceededFault(from: decoder) self = RDSError.storageQuotaExceeded(errorPayload) + case storageTypeNotAvailableIdentity: + let errorPayload = try StorageTypeNotAvailableFault(from: decoder) + self = RDSError.storageTypeNotAvailable(errorPayload) case storageTypeNotSupportedIdentity: let errorPayload = try StorageTypeNotSupportedFault(from: decoder) self = RDSError.storageTypeNotSupported(errorPayload) diff --git a/Sources/RDSModel/RDSModelStructures.swift b/Sources/RDSModel/RDSModelStructures.swift index 39b3005..1da1864 100644 --- a/Sources/RDSModel/RDSModelStructures.swift +++ b/Sources/RDSModel/RDSModelStructures.swift @@ -675,6 +675,7 @@ public struct ClusterPendingModifiedValues: Codable, Equatable { public var iops: IntegerOptional? public var masterUserPassword: String? public var pendingCloudwatchLogsExports: PendingCloudwatchLogsExports? + public var storageType: String? public init(allocatedStorage: IntegerOptional? = nil, backupRetentionPeriod: IntegerOptional? = nil, @@ -683,7 +684,8 @@ public struct ClusterPendingModifiedValues: Codable, Equatable { iAMDatabaseAuthenticationEnabled: BooleanOptional? = nil, iops: IntegerOptional? = nil, masterUserPassword: String? = nil, - pendingCloudwatchLogsExports: PendingCloudwatchLogsExports? = nil) { + pendingCloudwatchLogsExports: PendingCloudwatchLogsExports? = nil, + storageType: String? = nil) { self.allocatedStorage = allocatedStorage self.backupRetentionPeriod = backupRetentionPeriod self.dBClusterIdentifier = dBClusterIdentifier @@ -692,6 +694,7 @@ public struct ClusterPendingModifiedValues: Codable, Equatable { self.iops = iops self.masterUserPassword = masterUserPassword self.pendingCloudwatchLogsExports = pendingCloudwatchLogsExports + self.storageType = storageType } enum CodingKeys: String, CodingKey { @@ -703,6 +706,7 @@ public struct ClusterPendingModifiedValues: Codable, Equatable { case iops = "Iops" case masterUserPassword = "MasterUserPassword" case pendingCloudwatchLogsExports = "PendingCloudwatchLogsExports" + case storageType = "StorageType" } public func validate() throws { @@ -1167,6 +1171,15 @@ public struct CreateBlueGreenDeploymentResponseForCreateBlueGreenDeployment: Cod } } +public struct CreateCustomDBEngineVersionFault: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + public struct CreateCustomDBEngineVersionMessage: Codable, Equatable { public var databaseInstallationFilesS3BucketName: BucketName? public var databaseInstallationFilesS3Prefix: String255? @@ -1631,7 +1644,11 @@ public struct CreateDBInstanceMessage: Codable, Equatable { public var dBSubnetGroupName: String? public var deletionProtection: BooleanOptional? public var domain: String? + public var domainAuthSecretArn: String? + public var domainDnsIps: StringList? + public var domainFqdn: String? public var domainIAMRoleName: String? + public var domainOu: String? public var enableCloudwatchLogsExports: LogTypeList? public var enableCustomerOwnedIp: BooleanOptional? public var enableIAMDatabaseAuthentication: BooleanOptional? @@ -1687,7 +1704,11 @@ public struct CreateDBInstanceMessage: Codable, Equatable { dBSubnetGroupName: String? = nil, deletionProtection: BooleanOptional? = nil, domain: String? = nil, + domainAuthSecretArn: String? = nil, + domainDnsIps: StringList? = nil, + domainFqdn: String? = nil, domainIAMRoleName: String? = nil, + domainOu: String? = nil, enableCloudwatchLogsExports: LogTypeList? = nil, enableCustomerOwnedIp: BooleanOptional? = nil, enableIAMDatabaseAuthentication: BooleanOptional? = nil, @@ -1742,7 +1763,11 @@ public struct CreateDBInstanceMessage: Codable, Equatable { self.dBSubnetGroupName = dBSubnetGroupName self.deletionProtection = deletionProtection self.domain = domain + self.domainAuthSecretArn = domainAuthSecretArn + self.domainDnsIps = domainDnsIps + self.domainFqdn = domainFqdn self.domainIAMRoleName = domainIAMRoleName + self.domainOu = domainOu self.enableCloudwatchLogsExports = enableCloudwatchLogsExports self.enableCustomerOwnedIp = enableCustomerOwnedIp self.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication @@ -1800,7 +1825,11 @@ public struct CreateDBInstanceMessage: Codable, Equatable { case dBSubnetGroupName = "DBSubnetGroupName" case deletionProtection = "DeletionProtection" case domain = "Domain" + case domainAuthSecretArn = "DomainAuthSecretArn" + case domainDnsIps = "DomainDnsIps" + case domainFqdn = "DomainFqdn" case domainIAMRoleName = "DomainIAMRoleName" + case domainOu = "DomainOu" case enableCloudwatchLogsExports = "EnableCloudwatchLogsExports" case enableCustomerOwnedIp = "EnableCustomerOwnedIp" case enableIAMDatabaseAuthentication = "EnableIAMDatabaseAuthentication" @@ -1844,6 +1873,7 @@ public struct CreateDBInstanceMessage: Codable, Equatable { } public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { + public var allocatedStorage: IntegerOptional? public var autoMinorVersionUpgrade: BooleanOptional? public var availabilityZone: String? public var copyTagsToSnapshot: BooleanOptional? @@ -1854,7 +1884,11 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { public var dBSubnetGroupName: String? public var deletionProtection: BooleanOptional? public var domain: String? + public var domainAuthSecretArn: String? + public var domainDnsIps: StringList? + public var domainFqdn: String? public var domainIAMRoleName: String? + public var domainOu: String? public var enableCloudwatchLogsExports: LogTypeList? public var enableCustomerOwnedIp: BooleanOptional? public var enableIAMDatabaseAuthentication: BooleanOptional? @@ -1874,14 +1908,16 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { public var processorFeatures: ProcessorFeatureList? public var publiclyAccessible: BooleanOptional? public var replicaMode: ReplicaMode? - public var sourceDBInstanceIdentifier: String + public var sourceDBClusterIdentifier: String? + public var sourceDBInstanceIdentifier: String? public var storageThroughput: IntegerOptional? public var storageType: String? public var tags: TagList? public var useDefaultProcessorFeatures: BooleanOptional? public var vpcSecurityGroupIds: VpcSecurityGroupIdList? - public init(autoMinorVersionUpgrade: BooleanOptional? = nil, + public init(allocatedStorage: IntegerOptional? = nil, + autoMinorVersionUpgrade: BooleanOptional? = nil, availabilityZone: String? = nil, copyTagsToSnapshot: BooleanOptional? = nil, customIamInstanceProfile: String? = nil, @@ -1891,7 +1927,11 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { dBSubnetGroupName: String? = nil, deletionProtection: BooleanOptional? = nil, domain: String? = nil, + domainAuthSecretArn: String? = nil, + domainDnsIps: StringList? = nil, + domainFqdn: String? = nil, domainIAMRoleName: String? = nil, + domainOu: String? = nil, enableCloudwatchLogsExports: LogTypeList? = nil, enableCustomerOwnedIp: BooleanOptional? = nil, enableIAMDatabaseAuthentication: BooleanOptional? = nil, @@ -1911,12 +1951,14 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { processorFeatures: ProcessorFeatureList? = nil, publiclyAccessible: BooleanOptional? = nil, replicaMode: ReplicaMode? = nil, - sourceDBInstanceIdentifier: String, + sourceDBClusterIdentifier: String? = nil, + sourceDBInstanceIdentifier: String? = nil, storageThroughput: IntegerOptional? = nil, storageType: String? = nil, tags: TagList? = nil, useDefaultProcessorFeatures: BooleanOptional? = nil, vpcSecurityGroupIds: VpcSecurityGroupIdList? = nil) { + self.allocatedStorage = allocatedStorage self.autoMinorVersionUpgrade = autoMinorVersionUpgrade self.availabilityZone = availabilityZone self.copyTagsToSnapshot = copyTagsToSnapshot @@ -1927,7 +1969,11 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { self.dBSubnetGroupName = dBSubnetGroupName self.deletionProtection = deletionProtection self.domain = domain + self.domainAuthSecretArn = domainAuthSecretArn + self.domainDnsIps = domainDnsIps + self.domainFqdn = domainFqdn self.domainIAMRoleName = domainIAMRoleName + self.domainOu = domainOu self.enableCloudwatchLogsExports = enableCloudwatchLogsExports self.enableCustomerOwnedIp = enableCustomerOwnedIp self.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication @@ -1947,6 +1993,7 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { self.processorFeatures = processorFeatures self.publiclyAccessible = publiclyAccessible self.replicaMode = replicaMode + self.sourceDBClusterIdentifier = sourceDBClusterIdentifier self.sourceDBInstanceIdentifier = sourceDBInstanceIdentifier self.storageThroughput = storageThroughput self.storageType = storageType @@ -1956,6 +2003,7 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { } enum CodingKeys: String, CodingKey { + case allocatedStorage = "AllocatedStorage" case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade" case availabilityZone = "AvailabilityZone" case copyTagsToSnapshot = "CopyTagsToSnapshot" @@ -1966,7 +2014,11 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { case dBSubnetGroupName = "DBSubnetGroupName" case deletionProtection = "DeletionProtection" case domain = "Domain" + case domainAuthSecretArn = "DomainAuthSecretArn" + case domainDnsIps = "DomainDnsIps" + case domainFqdn = "DomainFqdn" case domainIAMRoleName = "DomainIAMRoleName" + case domainOu = "DomainOu" case enableCloudwatchLogsExports = "EnableCloudwatchLogsExports" case enableCustomerOwnedIp = "EnableCustomerOwnedIp" case enableIAMDatabaseAuthentication = "EnableIAMDatabaseAuthentication" @@ -1986,6 +2038,7 @@ public struct CreateDBInstanceReadReplicaMessage: Codable, Equatable { case processorFeatures = "ProcessorFeatures" case publiclyAccessible = "PubliclyAccessible" case replicaMode = "ReplicaMode" + case sourceDBClusterIdentifier = "SourceDBClusterIdentifier" case sourceDBInstanceIdentifier = "SourceDBInstanceIdentifier" case storageThroughput = "StorageThroughput" case storageType = "StorageType" @@ -2746,6 +2799,7 @@ public struct DBCluster: Codable, Equatable { public var hostedZoneId: String? public var httpEndpointEnabled: BooleanOptional? public var iAMDatabaseAuthenticationEnabled: BooleanOptional? + public var iOOptimizedNextAllowedModificationTime: TStamp? public var iops: IntegerOptional? public var kmsKeyId: String? public var latestRestorableTime: TStamp? @@ -2818,6 +2872,7 @@ public struct DBCluster: Codable, Equatable { hostedZoneId: String? = nil, httpEndpointEnabled: BooleanOptional? = nil, iAMDatabaseAuthenticationEnabled: BooleanOptional? = nil, + iOOptimizedNextAllowedModificationTime: TStamp? = nil, iops: IntegerOptional? = nil, kmsKeyId: String? = nil, latestRestorableTime: TStamp? = nil, @@ -2889,6 +2944,7 @@ public struct DBCluster: Codable, Equatable { self.hostedZoneId = hostedZoneId self.httpEndpointEnabled = httpEndpointEnabled self.iAMDatabaseAuthenticationEnabled = iAMDatabaseAuthenticationEnabled + self.iOOptimizedNextAllowedModificationTime = iOOptimizedNextAllowedModificationTime self.iops = iops self.kmsKeyId = kmsKeyId self.latestRestorableTime = latestRestorableTime @@ -2963,6 +3019,7 @@ public struct DBCluster: Codable, Equatable { case hostedZoneId = "HostedZoneId" case httpEndpointEnabled = "HttpEndpointEnabled" case iAMDatabaseAuthenticationEnabled = "IAMDatabaseAuthenticationEnabled" + case iOOptimizedNextAllowedModificationTime = "IOOptimizedNextAllowedModificationTime" case iops = "Iops" case kmsKeyId = "KmsKeyId" case latestRestorableTime = "LatestRestorableTime" @@ -3637,6 +3694,7 @@ public struct DBClusterSnapshot: Codable, Equatable { public var sourceDBClusterSnapshotArn: String? public var status: String? public var storageEncrypted: Boolean? + public var storageType: String? public var tagList: TagList? public var vpcId: String? @@ -3661,6 +3719,7 @@ public struct DBClusterSnapshot: Codable, Equatable { sourceDBClusterSnapshotArn: String? = nil, status: String? = nil, storageEncrypted: Boolean? = nil, + storageType: String? = nil, tagList: TagList? = nil, vpcId: String? = nil) { self.allocatedStorage = allocatedStorage @@ -3684,6 +3743,7 @@ public struct DBClusterSnapshot: Codable, Equatable { self.sourceDBClusterSnapshotArn = sourceDBClusterSnapshotArn self.status = status self.storageEncrypted = storageEncrypted + self.storageType = storageType self.tagList = tagList self.vpcId = vpcId } @@ -3710,6 +3770,7 @@ public struct DBClusterSnapshot: Codable, Equatable { case sourceDBClusterSnapshotArn = "SourceDBClusterSnapshotArn" case status = "Status" case storageEncrypted = "StorageEncrypted" + case storageType = "StorageType" case tagList = "TagList" case vpcId = "VpcId" } @@ -4099,6 +4160,7 @@ public struct DBInstance: Codable, Equatable { public var publiclyAccessible: Boolean? public var readReplicaDBClusterIdentifiers: ReadReplicaDBClusterIdentifierList? public var readReplicaDBInstanceIdentifiers: ReadReplicaDBInstanceIdentifierList? + public var readReplicaSourceDBClusterIdentifier: String? public var readReplicaSourceDBInstanceIdentifier: String? public var replicaMode: ReplicaMode? public var resumeFullAutomationModeTime: TStamp? @@ -4180,6 +4242,7 @@ public struct DBInstance: Codable, Equatable { publiclyAccessible: Boolean? = nil, readReplicaDBClusterIdentifiers: ReadReplicaDBClusterIdentifierList? = nil, readReplicaDBInstanceIdentifiers: ReadReplicaDBInstanceIdentifierList? = nil, + readReplicaSourceDBClusterIdentifier: String? = nil, readReplicaSourceDBInstanceIdentifier: String? = nil, replicaMode: ReplicaMode? = nil, resumeFullAutomationModeTime: TStamp? = nil, @@ -4260,6 +4323,7 @@ public struct DBInstance: Codable, Equatable { self.publiclyAccessible = publiclyAccessible self.readReplicaDBClusterIdentifiers = readReplicaDBClusterIdentifiers self.readReplicaDBInstanceIdentifiers = readReplicaDBInstanceIdentifiers + self.readReplicaSourceDBClusterIdentifier = readReplicaSourceDBClusterIdentifier self.readReplicaSourceDBInstanceIdentifier = readReplicaSourceDBInstanceIdentifier self.replicaMode = replicaMode self.resumeFullAutomationModeTime = resumeFullAutomationModeTime @@ -4343,6 +4407,7 @@ public struct DBInstance: Codable, Equatable { case publiclyAccessible = "PubliclyAccessible" case readReplicaDBClusterIdentifiers = "ReadReplicaDBClusterIdentifiers" case readReplicaDBInstanceIdentifiers = "ReadReplicaDBInstanceIdentifiers" + case readReplicaSourceDBClusterIdentifier = "ReadReplicaSourceDBClusterIdentifier" case readReplicaSourceDBInstanceIdentifier = "ReadReplicaSourceDBInstanceIdentifier" case replicaMode = "ReplicaMode" case resumeFullAutomationModeTime = "ResumeFullAutomationModeTime" @@ -7960,25 +8025,37 @@ public struct DescribeValidDBInstanceModificationsResultForDescribeValidDBInstan } public struct DomainMembership: Codable, Equatable { + public var authSecretArn: String? + public var dnsIps: StringList? public var domain: String? public var fQDN: String? public var iAMRoleName: String? + public var oU: String? public var status: String? - public init(domain: String? = nil, + public init(authSecretArn: String? = nil, + dnsIps: StringList? = nil, + domain: String? = nil, fQDN: String? = nil, iAMRoleName: String? = nil, + oU: String? = nil, status: String? = nil) { + self.authSecretArn = authSecretArn + self.dnsIps = dnsIps self.domain = domain self.fQDN = fQDN self.iAMRoleName = iAMRoleName + self.oU = oU self.status = status } enum CodingKeys: String, CodingKey { + case authSecretArn = "AuthSecretArn" + case dnsIps = "DnsIps" case domain = "Domain" case fQDN = "FQDN" case iAMRoleName = "IAMRoleName" + case oU = "OU" case status = "Status" } @@ -9421,6 +9498,7 @@ public struct ModifyDBClusterEndpointMessage: Codable, Equatable { public struct ModifyDBClusterMessage: Codable, Equatable { public var allocatedStorage: IntegerOptional? + public var allowEngineModeChange: Boolean? public var allowMajorVersionUpgrade: Boolean? public var applyImmediately: Boolean? public var autoMinorVersionUpgrade: BooleanOptional? @@ -9439,6 +9517,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { public var enableHttpEndpoint: BooleanOptional? public var enableIAMDatabaseAuthentication: BooleanOptional? public var enablePerformanceInsights: BooleanOptional? + public var engineMode: String? public var engineVersion: String? public var iops: IntegerOptional? public var manageMasterUserPassword: BooleanOptional? @@ -9461,6 +9540,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { public var vpcSecurityGroupIds: VpcSecurityGroupIdList? public init(allocatedStorage: IntegerOptional? = nil, + allowEngineModeChange: Boolean? = nil, allowMajorVersionUpgrade: Boolean? = nil, applyImmediately: Boolean? = nil, autoMinorVersionUpgrade: BooleanOptional? = nil, @@ -9479,6 +9559,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { enableHttpEndpoint: BooleanOptional? = nil, enableIAMDatabaseAuthentication: BooleanOptional? = nil, enablePerformanceInsights: BooleanOptional? = nil, + engineMode: String? = nil, engineVersion: String? = nil, iops: IntegerOptional? = nil, manageMasterUserPassword: BooleanOptional? = nil, @@ -9500,6 +9581,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { storageType: String? = nil, vpcSecurityGroupIds: VpcSecurityGroupIdList? = nil) { self.allocatedStorage = allocatedStorage + self.allowEngineModeChange = allowEngineModeChange self.allowMajorVersionUpgrade = allowMajorVersionUpgrade self.applyImmediately = applyImmediately self.autoMinorVersionUpgrade = autoMinorVersionUpgrade @@ -9518,6 +9600,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { self.enableHttpEndpoint = enableHttpEndpoint self.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication self.enablePerformanceInsights = enablePerformanceInsights + self.engineMode = engineMode self.engineVersion = engineVersion self.iops = iops self.manageMasterUserPassword = manageMasterUserPassword @@ -9542,6 +9625,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { enum CodingKeys: String, CodingKey { case allocatedStorage = "AllocatedStorage" + case allowEngineModeChange = "AllowEngineModeChange" case allowMajorVersionUpgrade = "AllowMajorVersionUpgrade" case applyImmediately = "ApplyImmediately" case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade" @@ -9560,6 +9644,7 @@ public struct ModifyDBClusterMessage: Codable, Equatable { case enableHttpEndpoint = "EnableHttpEndpoint" case enableIAMDatabaseAuthentication = "EnableIAMDatabaseAuthentication" case enablePerformanceInsights = "EnablePerformanceInsights" + case engineMode = "EngineMode" case engineVersion = "EngineVersion" case iops = "Iops" case manageMasterUserPassword = "ManageMasterUserPassword" @@ -9718,11 +9803,17 @@ public struct ModifyDBInstanceMessage: Codable, Equatable { public var dBSecurityGroups: DBSecurityGroupNameList? public var dBSubnetGroupName: String? public var deletionProtection: BooleanOptional? + public var disableDomain: BooleanOptional? public var domain: String? + public var domainAuthSecretArn: String? + public var domainDnsIps: StringList? + public var domainFqdn: String? public var domainIAMRoleName: String? + public var domainOu: String? public var enableCustomerOwnedIp: BooleanOptional? public var enableIAMDatabaseAuthentication: BooleanOptional? public var enablePerformanceInsights: BooleanOptional? + public var engine: String? public var engineVersion: String? public var iops: IntegerOptional? public var licenseModel: String? @@ -9771,11 +9862,17 @@ public struct ModifyDBInstanceMessage: Codable, Equatable { dBSecurityGroups: DBSecurityGroupNameList? = nil, dBSubnetGroupName: String? = nil, deletionProtection: BooleanOptional? = nil, + disableDomain: BooleanOptional? = nil, domain: String? = nil, + domainAuthSecretArn: String? = nil, + domainDnsIps: StringList? = nil, + domainFqdn: String? = nil, domainIAMRoleName: String? = nil, + domainOu: String? = nil, enableCustomerOwnedIp: BooleanOptional? = nil, enableIAMDatabaseAuthentication: BooleanOptional? = nil, enablePerformanceInsights: BooleanOptional? = nil, + engine: String? = nil, engineVersion: String? = nil, iops: IntegerOptional? = nil, licenseModel: String? = nil, @@ -9823,11 +9920,17 @@ public struct ModifyDBInstanceMessage: Codable, Equatable { self.dBSecurityGroups = dBSecurityGroups self.dBSubnetGroupName = dBSubnetGroupName self.deletionProtection = deletionProtection + self.disableDomain = disableDomain self.domain = domain + self.domainAuthSecretArn = domainAuthSecretArn + self.domainDnsIps = domainDnsIps + self.domainFqdn = domainFqdn self.domainIAMRoleName = domainIAMRoleName + self.domainOu = domainOu self.enableCustomerOwnedIp = enableCustomerOwnedIp self.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication self.enablePerformanceInsights = enablePerformanceInsights + self.engine = engine self.engineVersion = engineVersion self.iops = iops self.licenseModel = licenseModel @@ -9878,11 +9981,17 @@ public struct ModifyDBInstanceMessage: Codable, Equatable { case dBSecurityGroups = "DBSecurityGroups" case dBSubnetGroupName = "DBSubnetGroupName" case deletionProtection = "DeletionProtection" + case disableDomain = "DisableDomain" case domain = "Domain" + case domainAuthSecretArn = "DomainAuthSecretArn" + case domainDnsIps = "DomainDnsIps" + case domainFqdn = "DomainFqdn" case domainIAMRoleName = "DomainIAMRoleName" + case domainOu = "DomainOu" case enableCustomerOwnedIp = "EnableCustomerOwnedIp" case enableIAMDatabaseAuthentication = "EnableIAMDatabaseAuthentication" case enablePerformanceInsights = "EnablePerformanceInsights" + case engine = "Engine" case engineVersion = "EngineVersion" case iops = "Iops" case licenseModel = "LicenseModel" @@ -11320,6 +11429,7 @@ public struct PendingModifiedValues: Codable, Equatable { public var dBInstanceClass: String? public var dBInstanceIdentifier: String? public var dBSubnetGroupName: String? + public var engine: String? public var engineVersion: String? public var iAMDatabaseAuthenticationEnabled: BooleanOptional? public var iops: IntegerOptional? @@ -11340,6 +11450,7 @@ public struct PendingModifiedValues: Codable, Equatable { dBInstanceClass: String? = nil, dBInstanceIdentifier: String? = nil, dBSubnetGroupName: String? = nil, + engine: String? = nil, engineVersion: String? = nil, iAMDatabaseAuthenticationEnabled: BooleanOptional? = nil, iops: IntegerOptional? = nil, @@ -11359,6 +11470,7 @@ public struct PendingModifiedValues: Codable, Equatable { self.dBInstanceClass = dBInstanceClass self.dBInstanceIdentifier = dBInstanceIdentifier self.dBSubnetGroupName = dBSubnetGroupName + self.engine = engine self.engineVersion = engineVersion self.iAMDatabaseAuthenticationEnabled = iAMDatabaseAuthenticationEnabled self.iops = iops @@ -11381,6 +11493,7 @@ public struct PendingModifiedValues: Codable, Equatable { case dBInstanceClass = "DBInstanceClass" case dBInstanceIdentifier = "DBInstanceIdentifier" case dBSubnetGroupName = "DBSubnetGroupName" + case engine = "Engine" case engineVersion = "EngineVersion" case iAMDatabaseAuthenticationEnabled = "IAMDatabaseAuthenticationEnabled" case iops = "Iops" @@ -12303,6 +12416,7 @@ public struct RestoreDBClusterFromS3Message: Codable, Equatable { public var sourceEngine: String public var sourceEngineVersion: String public var storageEncrypted: BooleanOptional? + public var storageType: String? public var tags: TagList? public var vpcSecurityGroupIds: VpcSecurityGroupIdList? @@ -12339,6 +12453,7 @@ public struct RestoreDBClusterFromS3Message: Codable, Equatable { sourceEngine: String, sourceEngineVersion: String, storageEncrypted: BooleanOptional? = nil, + storageType: String? = nil, tags: TagList? = nil, vpcSecurityGroupIds: VpcSecurityGroupIdList? = nil) { self.availabilityZones = availabilityZones @@ -12374,6 +12489,7 @@ public struct RestoreDBClusterFromS3Message: Codable, Equatable { self.sourceEngine = sourceEngine self.sourceEngineVersion = sourceEngineVersion self.storageEncrypted = storageEncrypted + self.storageType = storageType self.tags = tags self.vpcSecurityGroupIds = vpcSecurityGroupIds } @@ -12412,6 +12528,7 @@ public struct RestoreDBClusterFromS3Message: Codable, Equatable { case sourceEngine = "SourceEngine" case sourceEngineVersion = "SourceEngineVersion" case storageEncrypted = "StorageEncrypted" + case storageType = "StorageType" case tags = "Tags" case vpcSecurityGroupIds = "VpcSecurityGroupIds" } @@ -12764,6 +12881,7 @@ public struct RestoreDBClusterToPointInTimeResultForRestoreDBClusterToPointInTim } public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { + public var allocatedStorage: IntegerOptional? public var autoMinorVersionUpgrade: BooleanOptional? public var availabilityZone: String? public var backupTarget: String? @@ -12778,7 +12896,11 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { public var dBSubnetGroupName: String? public var deletionProtection: BooleanOptional? public var domain: String? + public var domainAuthSecretArn: String? + public var domainDnsIps: StringList? + public var domainFqdn: String? public var domainIAMRoleName: String? + public var domainOu: String? public var enableCloudwatchLogsExports: LogTypeList? public var enableCustomerOwnedIp: BooleanOptional? public var enableIAMDatabaseAuthentication: BooleanOptional? @@ -12799,7 +12921,8 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { public var useDefaultProcessorFeatures: BooleanOptional? public var vpcSecurityGroupIds: VpcSecurityGroupIdList? - public init(autoMinorVersionUpgrade: BooleanOptional? = nil, + public init(allocatedStorage: IntegerOptional? = nil, + autoMinorVersionUpgrade: BooleanOptional? = nil, availabilityZone: String? = nil, backupTarget: String? = nil, copyTagsToSnapshot: BooleanOptional? = nil, @@ -12813,7 +12936,11 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { dBSubnetGroupName: String? = nil, deletionProtection: BooleanOptional? = nil, domain: String? = nil, + domainAuthSecretArn: String? = nil, + domainDnsIps: StringList? = nil, + domainFqdn: String? = nil, domainIAMRoleName: String? = nil, + domainOu: String? = nil, enableCloudwatchLogsExports: LogTypeList? = nil, enableCustomerOwnedIp: BooleanOptional? = nil, enableIAMDatabaseAuthentication: BooleanOptional? = nil, @@ -12833,6 +12960,7 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { tdeCredentialPassword: String? = nil, useDefaultProcessorFeatures: BooleanOptional? = nil, vpcSecurityGroupIds: VpcSecurityGroupIdList? = nil) { + self.allocatedStorage = allocatedStorage self.autoMinorVersionUpgrade = autoMinorVersionUpgrade self.availabilityZone = availabilityZone self.backupTarget = backupTarget @@ -12847,7 +12975,11 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { self.dBSubnetGroupName = dBSubnetGroupName self.deletionProtection = deletionProtection self.domain = domain + self.domainAuthSecretArn = domainAuthSecretArn + self.domainDnsIps = domainDnsIps + self.domainFqdn = domainFqdn self.domainIAMRoleName = domainIAMRoleName + self.domainOu = domainOu self.enableCloudwatchLogsExports = enableCloudwatchLogsExports self.enableCustomerOwnedIp = enableCustomerOwnedIp self.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication @@ -12870,6 +13002,7 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { } enum CodingKeys: String, CodingKey { + case allocatedStorage = "AllocatedStorage" case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade" case availabilityZone = "AvailabilityZone" case backupTarget = "BackupTarget" @@ -12884,7 +13017,11 @@ public struct RestoreDBInstanceFromDBSnapshotMessage: Codable, Equatable { case dBSubnetGroupName = "DBSubnetGroupName" case deletionProtection = "DeletionProtection" case domain = "Domain" + case domainAuthSecretArn = "DomainAuthSecretArn" + case domainDnsIps = "DomainDnsIps" + case domainFqdn = "DomainFqdn" case domainIAMRoleName = "DomainIAMRoleName" + case domainOu = "DomainOu" case enableCloudwatchLogsExports = "EnableCloudwatchLogsExports" case enableCustomerOwnedIp = "EnableCustomerOwnedIp" case enableIAMDatabaseAuthentication = "EnableIAMDatabaseAuthentication" @@ -13178,6 +13315,7 @@ public struct RestoreDBInstanceFromS3ResultForRestoreDBInstanceFromS3: Codable, } public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { + public var allocatedStorage: IntegerOptional? public var autoMinorVersionUpgrade: BooleanOptional? public var availabilityZone: String? public var backupTarget: String? @@ -13189,7 +13327,11 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { public var dBSubnetGroupName: String? public var deletionProtection: BooleanOptional? public var domain: String? + public var domainAuthSecretArn: String? + public var domainDnsIps: StringList? + public var domainFqdn: String? public var domainIAMRoleName: String? + public var domainOu: String? public var enableCloudwatchLogsExports: LogTypeList? public var enableCustomerOwnedIp: BooleanOptional? public var enableIAMDatabaseAuthentication: BooleanOptional? @@ -13217,7 +13359,8 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { public var useLatestRestorableTime: Boolean? public var vpcSecurityGroupIds: VpcSecurityGroupIdList? - public init(autoMinorVersionUpgrade: BooleanOptional? = nil, + public init(allocatedStorage: IntegerOptional? = nil, + autoMinorVersionUpgrade: BooleanOptional? = nil, availabilityZone: String? = nil, backupTarget: String? = nil, copyTagsToSnapshot: BooleanOptional? = nil, @@ -13228,7 +13371,11 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { dBSubnetGroupName: String? = nil, deletionProtection: BooleanOptional? = nil, domain: String? = nil, + domainAuthSecretArn: String? = nil, + domainDnsIps: StringList? = nil, + domainFqdn: String? = nil, domainIAMRoleName: String? = nil, + domainOu: String? = nil, enableCloudwatchLogsExports: LogTypeList? = nil, enableCustomerOwnedIp: BooleanOptional? = nil, enableIAMDatabaseAuthentication: BooleanOptional? = nil, @@ -13255,6 +13402,7 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { useDefaultProcessorFeatures: BooleanOptional? = nil, useLatestRestorableTime: Boolean? = nil, vpcSecurityGroupIds: VpcSecurityGroupIdList? = nil) { + self.allocatedStorage = allocatedStorage self.autoMinorVersionUpgrade = autoMinorVersionUpgrade self.availabilityZone = availabilityZone self.backupTarget = backupTarget @@ -13266,7 +13414,11 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { self.dBSubnetGroupName = dBSubnetGroupName self.deletionProtection = deletionProtection self.domain = domain + self.domainAuthSecretArn = domainAuthSecretArn + self.domainDnsIps = domainDnsIps + self.domainFqdn = domainFqdn self.domainIAMRoleName = domainIAMRoleName + self.domainOu = domainOu self.enableCloudwatchLogsExports = enableCloudwatchLogsExports self.enableCustomerOwnedIp = enableCustomerOwnedIp self.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication @@ -13296,6 +13448,7 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { } enum CodingKeys: String, CodingKey { + case allocatedStorage = "AllocatedStorage" case autoMinorVersionUpgrade = "AutoMinorVersionUpgrade" case availabilityZone = "AvailabilityZone" case backupTarget = "BackupTarget" @@ -13307,7 +13460,11 @@ public struct RestoreDBInstanceToPointInTimeMessage: Codable, Equatable { case dBSubnetGroupName = "DBSubnetGroupName" case deletionProtection = "DeletionProtection" case domain = "Domain" + case domainAuthSecretArn = "DomainAuthSecretArn" + case domainDnsIps = "DomainDnsIps" + case domainFqdn = "DomainFqdn" case domainIAMRoleName = "DomainIAMRoleName" + case domainOu = "DomainOu" case enableCloudwatchLogsExports = "EnableCloudwatchLogsExports" case enableCustomerOwnedIp = "EnableCustomerOwnedIp" case enableIAMDatabaseAuthentication = "EnableIAMDatabaseAuthentication" @@ -14182,6 +14339,15 @@ public struct StorageQuotaExceededFault: Codable, Equatable { } } +public struct StorageTypeNotAvailableFault: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + public struct StorageTypeNotSupportedFault: Codable, Equatable { public init() { diff --git a/Sources/S3Client/S3OperationsClientOutput.swift b/Sources/S3Client/S3OperationsClientOutput.swift index 469faf3..cf7ec2f 100644 --- a/Sources/S3Client/S3OperationsClientOutput.swift +++ b/Sources/S3Client/S3OperationsClientOutput.swift @@ -185,12 +185,17 @@ extension DeleteObjectsOutput: HTTPResponseOutputProtocol { Type to handle the output from the GetBucketAccelerateConfiguration operation in a HTTP client. */ extension GetBucketAccelerateConfigurationOutput: HTTPResponseOutputProtocol { - public typealias BodyType = GetBucketAccelerateConfigurationOutput - public typealias HeadersType = GetBucketAccelerateConfigurationOutput + public typealias BodyType = GetBucketAccelerateConfigurationOperationOutputBody + public typealias HeadersType = GetBucketAccelerateConfigurationOperationOutputHeaders public static func compose(bodyDecodableProvider: () throws -> BodyType, headersDecodableProvider: () throws -> HeadersType) throws -> GetBucketAccelerateConfigurationOutput { - return try bodyDecodableProvider() + let body = try bodyDecodableProvider() + let headers = try headersDecodableProvider() + + return S3Model.GetBucketAccelerateConfigurationOutput( + requestCharged: headers.requestCharged, + status: body.status) } } @@ -733,12 +738,28 @@ extension ListBucketsOutput: HTTPResponseOutputProtocol { Type to handle the output from the ListMultipartUploads operation in a HTTP client. */ extension ListMultipartUploadsOutput: HTTPResponseOutputProtocol { - public typealias BodyType = ListMultipartUploadsOutput - public typealias HeadersType = ListMultipartUploadsOutput + public typealias BodyType = ListMultipartUploadsOperationOutputBody + public typealias HeadersType = ListMultipartUploadsOperationOutputHeaders public static func compose(bodyDecodableProvider: () throws -> BodyType, headersDecodableProvider: () throws -> HeadersType) throws -> ListMultipartUploadsOutput { - return try bodyDecodableProvider() + let body = try bodyDecodableProvider() + let headers = try headersDecodableProvider() + + return S3Model.ListMultipartUploadsOutput( + bucket: body.bucket, + commonPrefixes: body.commonPrefixes, + delimiter: body.delimiter, + encodingType: body.encodingType, + isTruncated: body.isTruncated, + keyMarker: body.keyMarker, + maxUploads: body.maxUploads, + nextKeyMarker: body.nextKeyMarker, + nextUploadIdMarker: body.nextUploadIdMarker, + prefix: body.prefix, + requestCharged: headers.requestCharged, + uploadIdMarker: body.uploadIdMarker, + uploads: body.uploads) } } @@ -746,12 +767,29 @@ extension ListMultipartUploadsOutput: HTTPResponseOutputProtocol { Type to handle the output from the ListObjectVersions operation in a HTTP client. */ extension ListObjectVersionsOutput: HTTPResponseOutputProtocol { - public typealias BodyType = ListObjectVersionsOutput - public typealias HeadersType = ListObjectVersionsOutput + public typealias BodyType = ListObjectVersionsOperationOutputBody + public typealias HeadersType = ListObjectVersionsOperationOutputHeaders public static func compose(bodyDecodableProvider: () throws -> BodyType, headersDecodableProvider: () throws -> HeadersType) throws -> ListObjectVersionsOutput { - return try bodyDecodableProvider() + let body = try bodyDecodableProvider() + let headers = try headersDecodableProvider() + + return S3Model.ListObjectVersionsOutput( + commonPrefixes: body.commonPrefixes, + deleteMarkers: body.deleteMarkers, + delimiter: body.delimiter, + encodingType: body.encodingType, + isTruncated: body.isTruncated, + keyMarker: body.keyMarker, + maxKeys: body.maxKeys, + name: body.name, + nextKeyMarker: body.nextKeyMarker, + nextVersionIdMarker: body.nextVersionIdMarker, + prefix: body.prefix, + requestCharged: headers.requestCharged, + versionIdMarker: body.versionIdMarker, + versions: body.versions) } } @@ -759,12 +797,26 @@ extension ListObjectVersionsOutput: HTTPResponseOutputProtocol { Type to handle the output from the ListObjects operation in a HTTP client. */ extension ListObjectsOutput: HTTPResponseOutputProtocol { - public typealias BodyType = ListObjectsOutput - public typealias HeadersType = ListObjectsOutput + public typealias BodyType = ListObjectsOperationOutputBody + public typealias HeadersType = ListObjectsOperationOutputHeaders public static func compose(bodyDecodableProvider: () throws -> BodyType, headersDecodableProvider: () throws -> HeadersType) throws -> ListObjectsOutput { - return try bodyDecodableProvider() + let body = try bodyDecodableProvider() + let headers = try headersDecodableProvider() + + return S3Model.ListObjectsOutput( + commonPrefixes: body.commonPrefixes, + contents: body.contents, + delimiter: body.delimiter, + encodingType: body.encodingType, + isTruncated: body.isTruncated, + marker: body.marker, + maxKeys: body.maxKeys, + name: body.name, + nextMarker: body.nextMarker, + prefix: body.prefix, + requestCharged: headers.requestCharged) } } @@ -772,12 +824,28 @@ extension ListObjectsOutput: HTTPResponseOutputProtocol { Type to handle the output from the ListObjectsV2 operation in a HTTP client. */ extension ListObjectsV2Output: HTTPResponseOutputProtocol { - public typealias BodyType = ListObjectsV2Output - public typealias HeadersType = ListObjectsV2Output + public typealias BodyType = ListObjectsV2OperationOutputBody + public typealias HeadersType = ListObjectsV2OperationOutputHeaders public static func compose(bodyDecodableProvider: () throws -> BodyType, headersDecodableProvider: () throws -> HeadersType) throws -> ListObjectsV2Output { - return try bodyDecodableProvider() + let body = try bodyDecodableProvider() + let headers = try headersDecodableProvider() + + return S3Model.ListObjectsV2Output( + commonPrefixes: body.commonPrefixes, + contents: body.contents, + continuationToken: body.continuationToken, + delimiter: body.delimiter, + encodingType: body.encodingType, + isTruncated: body.isTruncated, + keyCount: body.keyCount, + maxKeys: body.maxKeys, + name: body.name, + nextContinuationToken: body.nextContinuationToken, + prefix: body.prefix, + requestCharged: headers.requestCharged, + startAfter: body.startAfter) } } diff --git a/Sources/S3Model/S3ModelDefaultInstances.swift b/Sources/S3Model/S3ModelDefaultInstances.swift index e5e3326..b267c33 100644 --- a/Sources/S3Model/S3ModelDefaultInstances.swift +++ b/Sources/S3Model/S3ModelDefaultInstances.swift @@ -1121,6 +1121,7 @@ public extension GetBucketAccelerateConfigurationOutput { */ static let __default: S3Model.GetBucketAccelerateConfigurationOutput = { let defaultInstance = S3Model.GetBucketAccelerateConfigurationOutput( + requestCharged: nil, status: nil) return defaultInstance @@ -1134,7 +1135,8 @@ public extension GetBucketAccelerateConfigurationRequest { static let __default: S3Model.GetBucketAccelerateConfigurationRequest = { let defaultInstance = S3Model.GetBucketAccelerateConfigurationRequest( bucket: "value", - expectedBucketOwner: nil) + expectedBucketOwner: nil, + requestPayer: nil) return defaultInstance }() @@ -2529,6 +2531,7 @@ public extension ListMultipartUploadsOutput { nextKeyMarker: nil, nextUploadIdMarker: nil, prefix: nil, + requestCharged: nil, uploadIdMarker: nil, uploads: nil) @@ -2549,6 +2552,7 @@ public extension ListMultipartUploadsRequest { keyMarker: nil, maxUploads: nil, prefix: nil, + requestPayer: nil, uploadIdMarker: nil) return defaultInstance @@ -2572,6 +2576,7 @@ public extension ListObjectVersionsOutput { nextKeyMarker: nil, nextVersionIdMarker: nil, prefix: nil, + requestCharged: nil, versionIdMarker: nil, versions: nil) @@ -2591,7 +2596,9 @@ public extension ListObjectVersionsRequest { expectedBucketOwner: nil, keyMarker: nil, maxKeys: nil, + optionalObjectAttributes: nil, prefix: nil, + requestPayer: nil, versionIdMarker: nil) return defaultInstance @@ -2613,7 +2620,8 @@ public extension ListObjectsOutput { maxKeys: nil, name: nil, nextMarker: nil, - prefix: nil) + prefix: nil, + requestCharged: nil) return defaultInstance }() @@ -2631,6 +2639,7 @@ public extension ListObjectsRequest { expectedBucketOwner: nil, marker: nil, maxKeys: nil, + optionalObjectAttributes: nil, prefix: nil, requestPayer: nil) @@ -2655,6 +2664,7 @@ public extension ListObjectsV2Output { name: nil, nextContinuationToken: nil, prefix: nil, + requestCharged: nil, startAfter: nil) return defaultInstance @@ -2674,6 +2684,7 @@ public extension ListObjectsV2Request { expectedBucketOwner: nil, fetchOwner: nil, maxKeys: nil, + optionalObjectAttributes: nil, prefix: nil, requestPayer: nil, startAfter: nil) @@ -2941,6 +2952,7 @@ public extension Object { key: nil, lastModified: nil, owner: nil, + restoreStatus: nil, size: nil, storageClass: nil) @@ -3062,6 +3074,7 @@ public extension ObjectVersion { key: nil, lastModified: nil, owner: nil, + restoreStatus: nil, size: nil, storageClass: nil, versionId: nil) @@ -4024,6 +4037,19 @@ public extension RestoreRequest { }() } +public extension RestoreStatus { + /** + Default instance of the RestoreStatus structure. + */ + static let __default: S3Model.RestoreStatus = { + let defaultInstance = S3Model.RestoreStatus( + isRestoreInProgress: nil, + restoreExpiryDate: nil) + + return defaultInstance + }() +} + public extension RoutingRule { /** Default instance of the RoutingRule structure. diff --git a/Sources/S3Model/S3ModelOperations.swift b/Sources/S3Model/S3ModelOperations.swift index e045385..c9b99dc 100644 --- a/Sources/S3Model/S3ModelOperations.swift +++ b/Sources/S3Model/S3ModelOperations.swift @@ -2512,13 +2512,17 @@ public extension GetBucketAccelerateConfigurationRequest { */ public struct GetBucketAccelerateConfigurationOperationInputAdditionalHeaders: Codable, Equatable { public var expectedBucketOwner: AccountId? + public var requestPayer: RequestPayer? - public init(expectedBucketOwner: AccountId? = nil) { + public init(expectedBucketOwner: AccountId? = nil, + requestPayer: RequestPayer? = nil) { self.expectedBucketOwner = expectedBucketOwner + self.requestPayer = requestPayer } enum CodingKeys: String, CodingKey { case expectedBucketOwner = "x-amz-expected-bucket-owner" + case requestPayer = "x-amz-request-payer" } public func validate() throws { @@ -2528,7 +2532,60 @@ public struct GetBucketAccelerateConfigurationOperationInputAdditionalHeaders: C public extension GetBucketAccelerateConfigurationRequest { func asS3ModelGetBucketAccelerateConfigurationOperationInputAdditionalHeaders() -> GetBucketAccelerateConfigurationOperationInputAdditionalHeaders { return GetBucketAccelerateConfigurationOperationInputAdditionalHeaders( - expectedBucketOwner: expectedBucketOwner) + expectedBucketOwner: expectedBucketOwner, + requestPayer: requestPayer) + } +} + +/** + Structure to encode the body input for the GetBucketAccelerateConfiguration + operation. + */ +public struct GetBucketAccelerateConfigurationOperationOutputBody: Codable, Equatable { + public var status: BucketAccelerateStatus? + + public init(status: BucketAccelerateStatus? = nil) { + self.status = status + } + + enum CodingKeys: String, CodingKey { + case status = "Status" + } + + public func validate() throws { + } +} + +public extension GetBucketAccelerateConfigurationOutput { + func asS3ModelGetBucketAccelerateConfigurationOperationOutputBody() -> GetBucketAccelerateConfigurationOperationOutputBody { + return GetBucketAccelerateConfigurationOperationOutputBody( + status: status) + } +} + +/** + Structure to encode the body input for the GetBucketAccelerateConfiguration + operation. + */ +public struct GetBucketAccelerateConfigurationOperationOutputHeaders: Codable, Equatable { + public var requestCharged: RequestCharged? + + public init(requestCharged: RequestCharged? = nil) { + self.requestCharged = requestCharged + } + + enum CodingKeys: String, CodingKey { + case requestCharged = "x-amz-request-charged" + } + + public func validate() throws { + } +} + +public extension GetBucketAccelerateConfigurationOutput { + func asS3ModelGetBucketAccelerateConfigurationOperationOutputHeaders() -> GetBucketAccelerateConfigurationOperationOutputHeaders { + return GetBucketAccelerateConfigurationOperationOutputHeaders( + requestCharged: requestCharged) } } @@ -5494,13 +5551,17 @@ public extension ListMultipartUploadsRequest { */ public struct ListMultipartUploadsOperationInputAdditionalHeaders: Codable, Equatable { public var expectedBucketOwner: AccountId? + public var requestPayer: RequestPayer? - public init(expectedBucketOwner: AccountId? = nil) { + public init(expectedBucketOwner: AccountId? = nil, + requestPayer: RequestPayer? = nil) { self.expectedBucketOwner = expectedBucketOwner + self.requestPayer = requestPayer } enum CodingKeys: String, CodingKey { case expectedBucketOwner = "x-amz-expected-bucket-owner" + case requestPayer = "x-amz-request-payer" } public func validate() throws { @@ -5510,7 +5571,115 @@ public struct ListMultipartUploadsOperationInputAdditionalHeaders: Codable, Equa public extension ListMultipartUploadsRequest { func asS3ModelListMultipartUploadsOperationInputAdditionalHeaders() -> ListMultipartUploadsOperationInputAdditionalHeaders { return ListMultipartUploadsOperationInputAdditionalHeaders( - expectedBucketOwner: expectedBucketOwner) + expectedBucketOwner: expectedBucketOwner, + requestPayer: requestPayer) + } +} + +/** + Structure to encode the body input for the ListMultipartUploads + operation. + */ +public struct ListMultipartUploadsOperationOutputBody: Codable, Equatable { + public var bucket: BucketName? + public var commonPrefixes: CommonPrefixList? + public var delimiter: Delimiter? + public var encodingType: EncodingType? + public var isTruncated: IsTruncated? + public var keyMarker: KeyMarker? + public var maxUploads: MaxUploads? + public var nextKeyMarker: NextKeyMarker? + public var nextUploadIdMarker: NextUploadIdMarker? + public var prefix: Prefix? + public var uploadIdMarker: UploadIdMarker? + public var uploads: MultipartUploadList? + + public init(bucket: BucketName? = nil, + commonPrefixes: CommonPrefixList? = nil, + delimiter: Delimiter? = nil, + encodingType: EncodingType? = nil, + isTruncated: IsTruncated? = nil, + keyMarker: KeyMarker? = nil, + maxUploads: MaxUploads? = nil, + nextKeyMarker: NextKeyMarker? = nil, + nextUploadIdMarker: NextUploadIdMarker? = nil, + prefix: Prefix? = nil, + uploadIdMarker: UploadIdMarker? = nil, + uploads: MultipartUploadList? = nil) { + self.bucket = bucket + self.commonPrefixes = commonPrefixes + self.delimiter = delimiter + self.encodingType = encodingType + self.isTruncated = isTruncated + self.keyMarker = keyMarker + self.maxUploads = maxUploads + self.nextKeyMarker = nextKeyMarker + self.nextUploadIdMarker = nextUploadIdMarker + self.prefix = prefix + self.uploadIdMarker = uploadIdMarker + self.uploads = uploads + } + + enum CodingKeys: String, CodingKey { + case bucket = "Bucket" + case commonPrefixes = "CommonPrefixes" + case delimiter = "Delimiter" + case encodingType = "EncodingType" + case isTruncated = "IsTruncated" + case keyMarker = "KeyMarker" + case maxUploads = "MaxUploads" + case nextKeyMarker = "NextKeyMarker" + case nextUploadIdMarker = "NextUploadIdMarker" + case prefix = "Prefix" + case uploadIdMarker = "UploadIdMarker" + case uploads = "Upload" + } + + public func validate() throws { + } +} + +public extension ListMultipartUploadsOutput { + func asS3ModelListMultipartUploadsOperationOutputBody() -> ListMultipartUploadsOperationOutputBody { + return ListMultipartUploadsOperationOutputBody( + bucket: bucket, + commonPrefixes: commonPrefixes, + delimiter: delimiter, + encodingType: encodingType, + isTruncated: isTruncated, + keyMarker: keyMarker, + maxUploads: maxUploads, + nextKeyMarker: nextKeyMarker, + nextUploadIdMarker: nextUploadIdMarker, + prefix: prefix, + uploadIdMarker: uploadIdMarker, + uploads: uploads) + } +} + +/** + Structure to encode the body input for the ListMultipartUploads + operation. + */ +public struct ListMultipartUploadsOperationOutputHeaders: Codable, Equatable { + public var requestCharged: RequestCharged? + + public init(requestCharged: RequestCharged? = nil) { + self.requestCharged = requestCharged + } + + enum CodingKeys: String, CodingKey { + case requestCharged = "x-amz-request-charged" + } + + public func validate() throws { + } +} + +public extension ListMultipartUploadsOutput { + func asS3ModelListMultipartUploadsOperationOutputHeaders() -> ListMultipartUploadsOperationOutputHeaders { + return ListMultipartUploadsOperationOutputHeaders( + requestCharged: requestCharged) } } @@ -5597,13 +5766,21 @@ public extension ListObjectVersionsRequest { */ public struct ListObjectVersionsOperationInputAdditionalHeaders: Codable, Equatable { public var expectedBucketOwner: AccountId? + public var optionalObjectAttributes: OptionalObjectAttributesList? + public var requestPayer: RequestPayer? - public init(expectedBucketOwner: AccountId? = nil) { + public init(expectedBucketOwner: AccountId? = nil, + optionalObjectAttributes: OptionalObjectAttributesList? = nil, + requestPayer: RequestPayer? = nil) { self.expectedBucketOwner = expectedBucketOwner + self.optionalObjectAttributes = optionalObjectAttributes + self.requestPayer = requestPayer } enum CodingKeys: String, CodingKey { case expectedBucketOwner = "x-amz-expected-bucket-owner" + case optionalObjectAttributes = "x-amz-optional-object-attributes" + case requestPayer = "x-amz-request-payer" } public func validate() throws { @@ -5613,7 +5790,121 @@ public struct ListObjectVersionsOperationInputAdditionalHeaders: Codable, Equata public extension ListObjectVersionsRequest { func asS3ModelListObjectVersionsOperationInputAdditionalHeaders() -> ListObjectVersionsOperationInputAdditionalHeaders { return ListObjectVersionsOperationInputAdditionalHeaders( - expectedBucketOwner: expectedBucketOwner) + expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: optionalObjectAttributes, + requestPayer: requestPayer) + } +} + +/** + Structure to encode the body input for the ListObjectVersions + operation. + */ +public struct ListObjectVersionsOperationOutputBody: Codable, Equatable { + public var commonPrefixes: CommonPrefixList? + public var deleteMarkers: DeleteMarkers? + public var delimiter: Delimiter? + public var encodingType: EncodingType? + public var isTruncated: IsTruncated? + public var keyMarker: KeyMarker? + public var maxKeys: MaxKeys? + public var name: BucketName? + public var nextKeyMarker: NextKeyMarker? + public var nextVersionIdMarker: NextVersionIdMarker? + public var prefix: Prefix? + public var versionIdMarker: VersionIdMarker? + public var versions: ObjectVersionList? + + public init(commonPrefixes: CommonPrefixList? = nil, + deleteMarkers: DeleteMarkers? = nil, + delimiter: Delimiter? = nil, + encodingType: EncodingType? = nil, + isTruncated: IsTruncated? = nil, + keyMarker: KeyMarker? = nil, + maxKeys: MaxKeys? = nil, + name: BucketName? = nil, + nextKeyMarker: NextKeyMarker? = nil, + nextVersionIdMarker: NextVersionIdMarker? = nil, + prefix: Prefix? = nil, + versionIdMarker: VersionIdMarker? = nil, + versions: ObjectVersionList? = nil) { + self.commonPrefixes = commonPrefixes + self.deleteMarkers = deleteMarkers + self.delimiter = delimiter + self.encodingType = encodingType + self.isTruncated = isTruncated + self.keyMarker = keyMarker + self.maxKeys = maxKeys + self.name = name + self.nextKeyMarker = nextKeyMarker + self.nextVersionIdMarker = nextVersionIdMarker + self.prefix = prefix + self.versionIdMarker = versionIdMarker + self.versions = versions + } + + enum CodingKeys: String, CodingKey { + case commonPrefixes = "CommonPrefixes" + case deleteMarkers = "DeleteMarker" + case delimiter = "Delimiter" + case encodingType = "EncodingType" + case isTruncated = "IsTruncated" + case keyMarker = "KeyMarker" + case maxKeys = "MaxKeys" + case name = "Name" + case nextKeyMarker = "NextKeyMarker" + case nextVersionIdMarker = "NextVersionIdMarker" + case prefix = "Prefix" + case versionIdMarker = "VersionIdMarker" + case versions = "Version" + } + + public func validate() throws { + } +} + +public extension ListObjectVersionsOutput { + func asS3ModelListObjectVersionsOperationOutputBody() -> ListObjectVersionsOperationOutputBody { + return ListObjectVersionsOperationOutputBody( + commonPrefixes: commonPrefixes, + deleteMarkers: deleteMarkers, + delimiter: delimiter, + encodingType: encodingType, + isTruncated: isTruncated, + keyMarker: keyMarker, + maxKeys: maxKeys, + name: name, + nextKeyMarker: nextKeyMarker, + nextVersionIdMarker: nextVersionIdMarker, + prefix: prefix, + versionIdMarker: versionIdMarker, + versions: versions) + } +} + +/** + Structure to encode the body input for the ListObjectVersions + operation. + */ +public struct ListObjectVersionsOperationOutputHeaders: Codable, Equatable { + public var requestCharged: RequestCharged? + + public init(requestCharged: RequestCharged? = nil) { + self.requestCharged = requestCharged + } + + enum CodingKeys: String, CodingKey { + case requestCharged = "x-amz-request-charged" + } + + public func validate() throws { + } +} + +public extension ListObjectVersionsOutput { + func asS3ModelListObjectVersionsOperationOutputHeaders() -> ListObjectVersionsOperationOutputHeaders { + return ListObjectVersionsOperationOutputHeaders( + requestCharged: requestCharged) } } @@ -5695,16 +5986,20 @@ public extension ListObjectsRequest { */ public struct ListObjectsOperationInputAdditionalHeaders: Codable, Equatable { public var expectedBucketOwner: AccountId? + public var optionalObjectAttributes: OptionalObjectAttributesList? public var requestPayer: RequestPayer? public init(expectedBucketOwner: AccountId? = nil, + optionalObjectAttributes: OptionalObjectAttributesList? = nil, requestPayer: RequestPayer? = nil) { self.expectedBucketOwner = expectedBucketOwner + self.optionalObjectAttributes = optionalObjectAttributes self.requestPayer = requestPayer } enum CodingKeys: String, CodingKey { case expectedBucketOwner = "x-amz-expected-bucket-owner" + case optionalObjectAttributes = "x-amz-optional-object-attributes" case requestPayer = "x-amz-request-payer" } @@ -5716,10 +6011,108 @@ public extension ListObjectsRequest { func asS3ModelListObjectsOperationInputAdditionalHeaders() -> ListObjectsOperationInputAdditionalHeaders { return ListObjectsOperationInputAdditionalHeaders( expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: optionalObjectAttributes, requestPayer: requestPayer) } } +/** + Structure to encode the body input for the ListObjects + operation. + */ +public struct ListObjectsOperationOutputBody: Codable, Equatable { + public var commonPrefixes: CommonPrefixList? + public var contents: ObjectList? + public var delimiter: Delimiter? + public var encodingType: EncodingType? + public var isTruncated: IsTruncated? + public var marker: Marker? + public var maxKeys: MaxKeys? + public var name: BucketName? + public var nextMarker: NextMarker? + public var prefix: Prefix? + + public init(commonPrefixes: CommonPrefixList? = nil, + contents: ObjectList? = nil, + delimiter: Delimiter? = nil, + encodingType: EncodingType? = nil, + isTruncated: IsTruncated? = nil, + marker: Marker? = nil, + maxKeys: MaxKeys? = nil, + name: BucketName? = nil, + nextMarker: NextMarker? = nil, + prefix: Prefix? = nil) { + self.commonPrefixes = commonPrefixes + self.contents = contents + self.delimiter = delimiter + self.encodingType = encodingType + self.isTruncated = isTruncated + self.marker = marker + self.maxKeys = maxKeys + self.name = name + self.nextMarker = nextMarker + self.prefix = prefix + } + + enum CodingKeys: String, CodingKey { + case commonPrefixes = "CommonPrefixes" + case contents = "Contents" + case delimiter = "Delimiter" + case encodingType = "EncodingType" + case isTruncated = "IsTruncated" + case marker = "Marker" + case maxKeys = "MaxKeys" + case name = "Name" + case nextMarker = "NextMarker" + case prefix = "Prefix" + } + + public func validate() throws { + } +} + +public extension ListObjectsOutput { + func asS3ModelListObjectsOperationOutputBody() -> ListObjectsOperationOutputBody { + return ListObjectsOperationOutputBody( + commonPrefixes: commonPrefixes, + contents: contents, + delimiter: delimiter, + encodingType: encodingType, + isTruncated: isTruncated, + marker: marker, + maxKeys: maxKeys, + name: name, + nextMarker: nextMarker, + prefix: prefix) + } +} + +/** + Structure to encode the body input for the ListObjects + operation. + */ +public struct ListObjectsOperationOutputHeaders: Codable, Equatable { + public var requestCharged: RequestCharged? + + public init(requestCharged: RequestCharged? = nil) { + self.requestCharged = requestCharged + } + + enum CodingKeys: String, CodingKey { + case requestCharged = "x-amz-request-charged" + } + + public func validate() throws { + } +} + +public extension ListObjectsOutput { + func asS3ModelListObjectsOperationOutputHeaders() -> ListObjectsOperationOutputHeaders { + return ListObjectsOperationOutputHeaders( + requestCharged: requestCharged) + } +} + /** Structure to encode the path input for the ListObjectsV2 operation. @@ -5808,16 +6201,20 @@ public extension ListObjectsV2Request { */ public struct ListObjectsV2OperationInputAdditionalHeaders: Codable, Equatable { public var expectedBucketOwner: AccountId? + public var optionalObjectAttributes: OptionalObjectAttributesList? public var requestPayer: RequestPayer? public init(expectedBucketOwner: AccountId? = nil, + optionalObjectAttributes: OptionalObjectAttributesList? = nil, requestPayer: RequestPayer? = nil) { self.expectedBucketOwner = expectedBucketOwner + self.optionalObjectAttributes = optionalObjectAttributes self.requestPayer = requestPayer } enum CodingKeys: String, CodingKey { case expectedBucketOwner = "x-amz-expected-bucket-owner" + case optionalObjectAttributes = "x-amz-optional-object-attributes" case requestPayer = "x-amz-request-payer" } @@ -5829,10 +6226,118 @@ public extension ListObjectsV2Request { func asS3ModelListObjectsV2OperationInputAdditionalHeaders() -> ListObjectsV2OperationInputAdditionalHeaders { return ListObjectsV2OperationInputAdditionalHeaders( expectedBucketOwner: expectedBucketOwner, + optionalObjectAttributes: optionalObjectAttributes, requestPayer: requestPayer) } } +/** + Structure to encode the body input for the ListObjectsV2 + operation. + */ +public struct ListObjectsV2OperationOutputBody: Codable, Equatable { + public var commonPrefixes: CommonPrefixList? + public var contents: ObjectList? + public var continuationToken: Token? + public var delimiter: Delimiter? + public var encodingType: EncodingType? + public var isTruncated: IsTruncated? + public var keyCount: KeyCount? + public var maxKeys: MaxKeys? + public var name: BucketName? + public var nextContinuationToken: NextToken? + public var prefix: Prefix? + public var startAfter: StartAfter? + + public init(commonPrefixes: CommonPrefixList? = nil, + contents: ObjectList? = nil, + continuationToken: Token? = nil, + delimiter: Delimiter? = nil, + encodingType: EncodingType? = nil, + isTruncated: IsTruncated? = nil, + keyCount: KeyCount? = nil, + maxKeys: MaxKeys? = nil, + name: BucketName? = nil, + nextContinuationToken: NextToken? = nil, + prefix: Prefix? = nil, + startAfter: StartAfter? = nil) { + self.commonPrefixes = commonPrefixes + self.contents = contents + self.continuationToken = continuationToken + self.delimiter = delimiter + self.encodingType = encodingType + self.isTruncated = isTruncated + self.keyCount = keyCount + self.maxKeys = maxKeys + self.name = name + self.nextContinuationToken = nextContinuationToken + self.prefix = prefix + self.startAfter = startAfter + } + + enum CodingKeys: String, CodingKey { + case commonPrefixes = "CommonPrefixes" + case contents = "Contents" + case continuationToken = "ContinuationToken" + case delimiter = "Delimiter" + case encodingType = "EncodingType" + case isTruncated = "IsTruncated" + case keyCount = "KeyCount" + case maxKeys = "MaxKeys" + case name = "Name" + case nextContinuationToken = "NextContinuationToken" + case prefix = "Prefix" + case startAfter = "StartAfter" + } + + public func validate() throws { + } +} + +public extension ListObjectsV2Output { + func asS3ModelListObjectsV2OperationOutputBody() -> ListObjectsV2OperationOutputBody { + return ListObjectsV2OperationOutputBody( + commonPrefixes: commonPrefixes, + contents: contents, + continuationToken: continuationToken, + delimiter: delimiter, + encodingType: encodingType, + isTruncated: isTruncated, + keyCount: keyCount, + maxKeys: maxKeys, + name: name, + nextContinuationToken: nextContinuationToken, + prefix: prefix, + startAfter: startAfter) + } +} + +/** + Structure to encode the body input for the ListObjectsV2 + operation. + */ +public struct ListObjectsV2OperationOutputHeaders: Codable, Equatable { + public var requestCharged: RequestCharged? + + public init(requestCharged: RequestCharged? = nil) { + self.requestCharged = requestCharged + } + + enum CodingKeys: String, CodingKey { + case requestCharged = "x-amz-request-charged" + } + + public func validate() throws { + } +} + +public extension ListObjectsV2Output { + func asS3ModelListObjectsV2OperationOutputHeaders() -> ListObjectsV2OperationOutputHeaders { + return ListObjectsV2OperationOutputHeaders( + requestCharged: requestCharged) + } +} + /** Structure to encode the path input for the ListParts operation. diff --git a/Sources/S3Model/S3ModelStructures.swift b/Sources/S3Model/S3ModelStructures.swift index 12c3126..956a3d2 100644 --- a/Sources/S3Model/S3ModelStructures.swift +++ b/Sources/S3Model/S3ModelStructures.swift @@ -2038,13 +2038,17 @@ public struct FilterRule: Codable, Equatable { } public struct GetBucketAccelerateConfigurationOutput: Codable, Equatable { + public var requestCharged: RequestCharged? public var status: BucketAccelerateStatus? - public init(status: BucketAccelerateStatus? = nil) { + public init(requestCharged: RequestCharged? = nil, + status: BucketAccelerateStatus? = nil) { + self.requestCharged = requestCharged self.status = status } enum CodingKeys: String, CodingKey { + case requestCharged = "x-amz-request-charged" case status = "Status" } @@ -2055,16 +2059,20 @@ public struct GetBucketAccelerateConfigurationOutput: Codable, Equatable { public struct GetBucketAccelerateConfigurationRequest: Codable, Equatable { public var bucket: BucketName public var expectedBucketOwner: AccountId? + public var requestPayer: RequestPayer? public init(bucket: BucketName, - expectedBucketOwner: AccountId? = nil) { + expectedBucketOwner: AccountId? = nil, + requestPayer: RequestPayer? = nil) { self.bucket = bucket self.expectedBucketOwner = expectedBucketOwner + self.requestPayer = requestPayer } enum CodingKeys: String, CodingKey { case bucket = "Bucket" case expectedBucketOwner = "x-amz-expected-bucket-owner" + case requestPayer = "x-amz-request-payer" } public func validate() throws { @@ -4522,6 +4530,7 @@ public struct ListMultipartUploadsOutput: Codable, Equatable { public var nextKeyMarker: NextKeyMarker? public var nextUploadIdMarker: NextUploadIdMarker? public var prefix: Prefix? + public var requestCharged: RequestCharged? public var uploadIdMarker: UploadIdMarker? public var uploads: MultipartUploadList? @@ -4535,6 +4544,7 @@ public struct ListMultipartUploadsOutput: Codable, Equatable { nextKeyMarker: NextKeyMarker? = nil, nextUploadIdMarker: NextUploadIdMarker? = nil, prefix: Prefix? = nil, + requestCharged: RequestCharged? = nil, uploadIdMarker: UploadIdMarker? = nil, uploads: MultipartUploadList? = nil) { self.bucket = bucket @@ -4547,6 +4557,7 @@ public struct ListMultipartUploadsOutput: Codable, Equatable { self.nextKeyMarker = nextKeyMarker self.nextUploadIdMarker = nextUploadIdMarker self.prefix = prefix + self.requestCharged = requestCharged self.uploadIdMarker = uploadIdMarker self.uploads = uploads } @@ -4562,6 +4573,7 @@ public struct ListMultipartUploadsOutput: Codable, Equatable { case nextKeyMarker = "NextKeyMarker" case nextUploadIdMarker = "NextUploadIdMarker" case prefix = "Prefix" + case requestCharged = "x-amz-request-charged" case uploadIdMarker = "UploadIdMarker" case uploads = "Upload" } @@ -4578,6 +4590,7 @@ public struct ListMultipartUploadsRequest: Codable, Equatable { public var keyMarker: KeyMarker? public var maxUploads: MaxUploads? public var prefix: Prefix? + public var requestPayer: RequestPayer? public var uploadIdMarker: UploadIdMarker? public init(bucket: BucketName, @@ -4587,6 +4600,7 @@ public struct ListMultipartUploadsRequest: Codable, Equatable { keyMarker: KeyMarker? = nil, maxUploads: MaxUploads? = nil, prefix: Prefix? = nil, + requestPayer: RequestPayer? = nil, uploadIdMarker: UploadIdMarker? = nil) { self.bucket = bucket self.delimiter = delimiter @@ -4595,6 +4609,7 @@ public struct ListMultipartUploadsRequest: Codable, Equatable { self.keyMarker = keyMarker self.maxUploads = maxUploads self.prefix = prefix + self.requestPayer = requestPayer self.uploadIdMarker = uploadIdMarker } @@ -4606,6 +4621,7 @@ public struct ListMultipartUploadsRequest: Codable, Equatable { case keyMarker = "key-marker" case maxUploads = "max-uploads" case prefix + case requestPayer = "x-amz-request-payer" case uploadIdMarker = "upload-id-marker" } @@ -4625,6 +4641,7 @@ public struct ListObjectVersionsOutput: Codable, Equatable { public var nextKeyMarker: NextKeyMarker? public var nextVersionIdMarker: NextVersionIdMarker? public var prefix: Prefix? + public var requestCharged: RequestCharged? public var versionIdMarker: VersionIdMarker? public var versions: ObjectVersionList? @@ -4639,6 +4656,7 @@ public struct ListObjectVersionsOutput: Codable, Equatable { nextKeyMarker: NextKeyMarker? = nil, nextVersionIdMarker: NextVersionIdMarker? = nil, prefix: Prefix? = nil, + requestCharged: RequestCharged? = nil, versionIdMarker: VersionIdMarker? = nil, versions: ObjectVersionList? = nil) { self.commonPrefixes = commonPrefixes @@ -4652,6 +4670,7 @@ public struct ListObjectVersionsOutput: Codable, Equatable { self.nextKeyMarker = nextKeyMarker self.nextVersionIdMarker = nextVersionIdMarker self.prefix = prefix + self.requestCharged = requestCharged self.versionIdMarker = versionIdMarker self.versions = versions } @@ -4668,6 +4687,7 @@ public struct ListObjectVersionsOutput: Codable, Equatable { case nextKeyMarker = "NextKeyMarker" case nextVersionIdMarker = "NextVersionIdMarker" case prefix = "Prefix" + case requestCharged = "x-amz-request-charged" case versionIdMarker = "VersionIdMarker" case versions = "Version" } @@ -4683,7 +4703,9 @@ public struct ListObjectVersionsRequest: Codable, Equatable { public var expectedBucketOwner: AccountId? public var keyMarker: KeyMarker? public var maxKeys: MaxKeys? + public var optionalObjectAttributes: OptionalObjectAttributesList? public var prefix: Prefix? + public var requestPayer: RequestPayer? public var versionIdMarker: VersionIdMarker? public init(bucket: BucketName, @@ -4692,7 +4714,9 @@ public struct ListObjectVersionsRequest: Codable, Equatable { expectedBucketOwner: AccountId? = nil, keyMarker: KeyMarker? = nil, maxKeys: MaxKeys? = nil, + optionalObjectAttributes: OptionalObjectAttributesList? = nil, prefix: Prefix? = nil, + requestPayer: RequestPayer? = nil, versionIdMarker: VersionIdMarker? = nil) { self.bucket = bucket self.delimiter = delimiter @@ -4700,7 +4724,9 @@ public struct ListObjectVersionsRequest: Codable, Equatable { self.expectedBucketOwner = expectedBucketOwner self.keyMarker = keyMarker self.maxKeys = maxKeys + self.optionalObjectAttributes = optionalObjectAttributes self.prefix = prefix + self.requestPayer = requestPayer self.versionIdMarker = versionIdMarker } @@ -4711,7 +4737,9 @@ public struct ListObjectVersionsRequest: Codable, Equatable { case expectedBucketOwner = "x-amz-expected-bucket-owner" case keyMarker = "key-marker" case maxKeys = "max-keys" + case optionalObjectAttributes = "x-amz-optional-object-attributes" case prefix + case requestPayer = "x-amz-request-payer" case versionIdMarker = "version-id-marker" } @@ -4730,6 +4758,7 @@ public struct ListObjectsOutput: Codable, Equatable { public var name: BucketName? public var nextMarker: NextMarker? public var prefix: Prefix? + public var requestCharged: RequestCharged? public init(commonPrefixes: CommonPrefixList? = nil, contents: ObjectList? = nil, @@ -4740,7 +4769,8 @@ public struct ListObjectsOutput: Codable, Equatable { maxKeys: MaxKeys? = nil, name: BucketName? = nil, nextMarker: NextMarker? = nil, - prefix: Prefix? = nil) { + prefix: Prefix? = nil, + requestCharged: RequestCharged? = nil) { self.commonPrefixes = commonPrefixes self.contents = contents self.delimiter = delimiter @@ -4751,6 +4781,7 @@ public struct ListObjectsOutput: Codable, Equatable { self.name = name self.nextMarker = nextMarker self.prefix = prefix + self.requestCharged = requestCharged } enum CodingKeys: String, CodingKey { @@ -4764,6 +4795,7 @@ public struct ListObjectsOutput: Codable, Equatable { case name = "Name" case nextMarker = "NextMarker" case prefix = "Prefix" + case requestCharged = "x-amz-request-charged" } public func validate() throws { @@ -4777,6 +4809,7 @@ public struct ListObjectsRequest: Codable, Equatable { public var expectedBucketOwner: AccountId? public var marker: Marker? public var maxKeys: MaxKeys? + public var optionalObjectAttributes: OptionalObjectAttributesList? public var prefix: Prefix? public var requestPayer: RequestPayer? @@ -4786,6 +4819,7 @@ public struct ListObjectsRequest: Codable, Equatable { expectedBucketOwner: AccountId? = nil, marker: Marker? = nil, maxKeys: MaxKeys? = nil, + optionalObjectAttributes: OptionalObjectAttributesList? = nil, prefix: Prefix? = nil, requestPayer: RequestPayer? = nil) { self.bucket = bucket @@ -4794,6 +4828,7 @@ public struct ListObjectsRequest: Codable, Equatable { self.expectedBucketOwner = expectedBucketOwner self.marker = marker self.maxKeys = maxKeys + self.optionalObjectAttributes = optionalObjectAttributes self.prefix = prefix self.requestPayer = requestPayer } @@ -4805,6 +4840,7 @@ public struct ListObjectsRequest: Codable, Equatable { case expectedBucketOwner = "x-amz-expected-bucket-owner" case marker case maxKeys = "max-keys" + case optionalObjectAttributes = "x-amz-optional-object-attributes" case prefix case requestPayer = "x-amz-request-payer" } @@ -4825,6 +4861,7 @@ public struct ListObjectsV2Output: Codable, Equatable { public var name: BucketName? public var nextContinuationToken: NextToken? public var prefix: Prefix? + public var requestCharged: RequestCharged? public var startAfter: StartAfter? public init(commonPrefixes: CommonPrefixList? = nil, @@ -4838,6 +4875,7 @@ public struct ListObjectsV2Output: Codable, Equatable { name: BucketName? = nil, nextContinuationToken: NextToken? = nil, prefix: Prefix? = nil, + requestCharged: RequestCharged? = nil, startAfter: StartAfter? = nil) { self.commonPrefixes = commonPrefixes self.contents = contents @@ -4850,6 +4888,7 @@ public struct ListObjectsV2Output: Codable, Equatable { self.name = name self.nextContinuationToken = nextContinuationToken self.prefix = prefix + self.requestCharged = requestCharged self.startAfter = startAfter } @@ -4865,6 +4904,7 @@ public struct ListObjectsV2Output: Codable, Equatable { case name = "Name" case nextContinuationToken = "NextContinuationToken" case prefix = "Prefix" + case requestCharged = "x-amz-request-charged" case startAfter = "StartAfter" } @@ -4880,6 +4920,7 @@ public struct ListObjectsV2Request: Codable, Equatable { public var expectedBucketOwner: AccountId? public var fetchOwner: FetchOwner? public var maxKeys: MaxKeys? + public var optionalObjectAttributes: OptionalObjectAttributesList? public var prefix: Prefix? public var requestPayer: RequestPayer? public var startAfter: StartAfter? @@ -4891,6 +4932,7 @@ public struct ListObjectsV2Request: Codable, Equatable { expectedBucketOwner: AccountId? = nil, fetchOwner: FetchOwner? = nil, maxKeys: MaxKeys? = nil, + optionalObjectAttributes: OptionalObjectAttributesList? = nil, prefix: Prefix? = nil, requestPayer: RequestPayer? = nil, startAfter: StartAfter? = nil) { @@ -4901,6 +4943,7 @@ public struct ListObjectsV2Request: Codable, Equatable { self.expectedBucketOwner = expectedBucketOwner self.fetchOwner = fetchOwner self.maxKeys = maxKeys + self.optionalObjectAttributes = optionalObjectAttributes self.prefix = prefix self.requestPayer = requestPayer self.startAfter = startAfter @@ -4914,6 +4957,7 @@ public struct ListObjectsV2Request: Codable, Equatable { case expectedBucketOwner = "x-amz-expected-bucket-owner" case fetchOwner = "fetch-owner" case maxKeys = "max-keys" + case optionalObjectAttributes = "x-amz-optional-object-attributes" case prefix case requestPayer = "x-amz-request-payer" case startAfter = "start-after" @@ -5370,6 +5414,7 @@ public struct Object: Codable, Equatable { public var key: ObjectKey? public var lastModified: LastModified? public var owner: Owner? + public var restoreStatus: RestoreStatus? public var size: Size? public var storageClass: ObjectStorageClass? @@ -5378,6 +5423,7 @@ public struct Object: Codable, Equatable { key: ObjectKey? = nil, lastModified: LastModified? = nil, owner: Owner? = nil, + restoreStatus: RestoreStatus? = nil, size: Size? = nil, storageClass: ObjectStorageClass? = nil) { self.checksumAlgorithm = checksumAlgorithm @@ -5385,6 +5431,7 @@ public struct Object: Codable, Equatable { self.key = key self.lastModified = lastModified self.owner = owner + self.restoreStatus = restoreStatus self.size = size self.storageClass = storageClass } @@ -5395,6 +5442,7 @@ public struct Object: Codable, Equatable { case key = "Key" case lastModified = "LastModified" case owner = "Owner" + case restoreStatus = "RestoreStatus" case size = "Size" case storageClass = "StorageClass" } @@ -5402,6 +5450,7 @@ public struct Object: Codable, Equatable { public func validate() throws { try key?.validateAsObjectKey() try owner?.validate() + try restoreStatus?.validate() } } @@ -5555,6 +5604,7 @@ public struct ObjectVersion: Codable, Equatable { public var key: ObjectKey? public var lastModified: LastModified? public var owner: Owner? + public var restoreStatus: RestoreStatus? public var size: Size? public var storageClass: ObjectVersionStorageClass? public var versionId: ObjectVersionId? @@ -5565,6 +5615,7 @@ public struct ObjectVersion: Codable, Equatable { key: ObjectKey? = nil, lastModified: LastModified? = nil, owner: Owner? = nil, + restoreStatus: RestoreStatus? = nil, size: Size? = nil, storageClass: ObjectVersionStorageClass? = nil, versionId: ObjectVersionId? = nil) { @@ -5574,6 +5625,7 @@ public struct ObjectVersion: Codable, Equatable { self.key = key self.lastModified = lastModified self.owner = owner + self.restoreStatus = restoreStatus self.size = size self.storageClass = storageClass self.versionId = versionId @@ -5586,6 +5638,7 @@ public struct ObjectVersion: Codable, Equatable { case key = "Key" case lastModified = "LastModified" case owner = "Owner" + case restoreStatus = "RestoreStatus" case size = "Size" case storageClass = "StorageClass" case versionId = "VersionId" @@ -5594,6 +5647,7 @@ public struct ObjectVersion: Codable, Equatable { public func validate() throws { try key?.validateAsObjectKey() try owner?.validate() + try restoreStatus?.validate() } } @@ -7446,6 +7500,25 @@ public struct RestoreRequest: Codable, Equatable { } } +public struct RestoreStatus: Codable, Equatable { + public var isRestoreInProgress: IsRestoreInProgress? + public var restoreExpiryDate: RestoreExpiryDate? + + public init(isRestoreInProgress: IsRestoreInProgress? = nil, + restoreExpiryDate: RestoreExpiryDate? = nil) { + self.isRestoreInProgress = isRestoreInProgress + self.restoreExpiryDate = restoreExpiryDate + } + + enum CodingKeys: String, CodingKey { + case isRestoreInProgress = "IsRestoreInProgress" + case restoreExpiryDate = "RestoreExpiryDate" + } + + public func validate() throws { + } +} + public struct RoutingRule: Codable, Equatable { public var condition: Condition? public var redirect: Redirect diff --git a/Sources/S3Model/S3ModelTypes.swift b/Sources/S3Model/S3ModelTypes.swift index 1ce60a6..c4072a1 100644 --- a/Sources/S3Model/S3ModelTypes.swift +++ b/Sources/S3Model/S3ModelTypes.swift @@ -957,6 +957,11 @@ public typealias IsLatest = Bool */ public typealias IsPublic = Bool +/** + Type definition for the IsRestoreInProgress field. + */ +public typealias IsRestoreInProgress = Bool + /** Type definition for the IsTruncated field. */ @@ -1369,6 +1374,7 @@ public enum ObjectStorageClass: String, Codable, CustomStringConvertible { case onezoneIa = "ONEZONE_IA" case outposts = "OUTPOSTS" case reducedRedundancy = "REDUCED_REDUNDANCY" + case snow = "SNOW" case standard = "STANDARD" case standardIa = "STANDARD_IA" @@ -1402,6 +1408,24 @@ public enum ObjectVersionStorageClass: String, Codable, CustomStringConvertible public static let __default: ObjectVersionStorageClass = .standard } +/** + Enumeration restricting the values of the OptionalObjectAttributes field. + */ +public enum OptionalObjectAttributes: String, Codable, CustomStringConvertible { + case restorestatus = "RestoreStatus" + + public var description: String { + return rawValue + } + + public static let __default: OptionalObjectAttributes = .restorestatus +} + +/** + Type definition for the OptionalObjectAttributesList field. + */ +public typealias OptionalObjectAttributesList = [OptionalObjectAttributes] + /** Enumeration restricting the values of the OwnerOverride field. */ @@ -1703,6 +1727,11 @@ public typealias ResponseExpires = String */ public typealias Restore = String +/** + Type definition for the RestoreExpiryDate field. + */ +public typealias RestoreExpiryDate = String + /** Type definition for the RestoreOutputPath field. */ @@ -1767,6 +1796,7 @@ public typealias SSEKMSKeyId = String public enum ServerSideEncryption: String, Codable, CustomStringConvertible { case aes256 = "AES256" case awsKms = "aws:kms" + case awsKmsDsse = "aws:kms:dsse" public var description: String { return rawValue @@ -1830,6 +1860,7 @@ public enum StorageClass: String, Codable, CustomStringConvertible { case onezoneIa = "ONEZONE_IA" case outposts = "OUTPOSTS" case reducedRedundancy = "REDUCED_REDUNDANCY" + case snow = "SNOW" case standard = "STANDARD" case standardIa = "STANDARD_IA" diff --git a/Sources/SimpleQueueClient/AWSSimpleQueueClient.swift b/Sources/SimpleQueueClient/AWSSimpleQueueClient.swift index f269af1..c455a42 100644 --- a/Sources/SimpleQueueClient/AWSSimpleQueueClient.swift +++ b/Sources/SimpleQueueClient/AWSSimpleQueueClient.swift @@ -262,6 +262,84 @@ public struct AWSSimpleQueueClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.cancelMessageMoveTask, + handlerDelegate: handlerDelegate) + let wrappedInput = CancelMessageMoveTaskOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.cancelMessageMoveTask.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the CancelMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTaskSync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.cancelMessageMoveTask, + handlerDelegate: handlerDelegate) + let wrappedInput = CancelMessageMoveTaskOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.cancelMessageMoveTask.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: SimpleQueueError = error.asTypedError() + throw typedError + } + } + /** Invokes the ChangeMessageVisibility operation returning immediately and passing the response to a callback. @@ -953,6 +1031,84 @@ public struct AWSSimpleQueueClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listMessageMoveTasks, + handlerDelegate: handlerDelegate) + let wrappedInput = ListMessageMoveTasksOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.listMessageMoveTasks.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the ListMessageMoveTasks operation waiting for the response before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasksSync( + input: SimpleQueueModel.ListMessageMoveTasksRequest) throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listMessageMoveTasks, + handlerDelegate: handlerDelegate) + let wrappedInput = ListMessageMoveTasksOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.listMessageMoveTasks.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: SimpleQueueError = error.asTypedError() + throw typedError + } + } + /** Invokes the ListQueueTags operation returning immediately and passing the response to a callback. @@ -1562,6 +1718,84 @@ public struct AWSSimpleQueueClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.startMessageMoveTask, + handlerDelegate: handlerDelegate) + let wrappedInput = StartMessageMoveTaskOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.startMessageMoveTask.rawValue, + version: apiVersion) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the StartMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTaskSync( + input: SimpleQueueModel.StartMessageMoveTaskRequest) throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.startMessageMoveTask, + handlerDelegate: handlerDelegate) + let wrappedInput = StartMessageMoveTaskOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.startMessageMoveTask.rawValue, + version: apiVersion) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: SimpleQueueError = error.asTypedError() + throw typedError + } + } + /** Invokes the TagQueue operation returning immediately and passing the response to a callback. @@ -1748,6 +1982,46 @@ public struct AWSSimpleQueueClient SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.cancelMessageMoveTask, + handlerDelegate: handlerDelegate) + let wrappedInput = CancelMessageMoveTaskOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.cancelMessageMoveTask.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: SimpleQueueError = error.asTypedError() + throw typedError + } + } + /** Invokes the ChangeMessageVisibility operation suspending until the response is available before returning. @@ -2101,6 +2375,46 @@ public struct AWSSimpleQueueClient SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listMessageMoveTasks, + handlerDelegate: handlerDelegate) + let wrappedInput = ListMessageMoveTasksOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.listMessageMoveTasks.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: SimpleQueueError = error.asTypedError() + throw typedError + } + } + /** Invokes the ListQueueTags operation suspending until the response is available before returning. @@ -2412,6 +2726,46 @@ public struct AWSSimpleQueueClient SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.startMessageMoveTask, + handlerDelegate: handlerDelegate) + let wrappedInput = StartMessageMoveTaskOperationHTTPRequestInput(encodable: input) + + let requestInput = QueryWrapperHTTPRequestInput( + wrappedInput: wrappedInput, + action: SimpleQueueModelOperations.startMessageMoveTask.rawValue, + version: apiVersion) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: SimpleQueueError = error.asTypedError() + throw typedError + } + } + /** Invokes the TagQueue operation suspending until the response is available before returning. diff --git a/Sources/SimpleQueueClient/MockSimpleQueueClient.swift b/Sources/SimpleQueueClient/MockSimpleQueueClient.swift index 625c042..a85b10c 100644 --- a/Sources/SimpleQueueClient/MockSimpleQueueClient.swift +++ b/Sources/SimpleQueueClient/MockSimpleQueueClient.swift @@ -31,6 +31,8 @@ import SmokeHTTPClient public struct MockSimpleQueueClient: SimpleQueueClientProtocol { let addPermissionAsyncOverride: AddPermissionAsyncType? let addPermissionSyncOverride: AddPermissionSyncType? + let cancelMessageMoveTaskAsyncOverride: CancelMessageMoveTaskAsyncType? + let cancelMessageMoveTaskSyncOverride: CancelMessageMoveTaskSyncType? let changeMessageVisibilityAsyncOverride: ChangeMessageVisibilityAsyncType? let changeMessageVisibilitySyncOverride: ChangeMessageVisibilitySyncType? let changeMessageVisibilityBatchAsyncOverride: ChangeMessageVisibilityBatchAsyncType? @@ -49,6 +51,8 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { let getQueueUrlSyncOverride: GetQueueUrlSyncType? let listDeadLetterSourceQueuesAsyncOverride: ListDeadLetterSourceQueuesAsyncType? let listDeadLetterSourceQueuesSyncOverride: ListDeadLetterSourceQueuesSyncType? + let listMessageMoveTasksAsyncOverride: ListMessageMoveTasksAsyncType? + let listMessageMoveTasksSyncOverride: ListMessageMoveTasksSyncType? let listQueueTagsAsyncOverride: ListQueueTagsAsyncType? let listQueueTagsSyncOverride: ListQueueTagsSyncType? let listQueuesAsyncOverride: ListQueuesAsyncType? @@ -65,6 +69,8 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { let sendMessageBatchSyncOverride: SendMessageBatchSyncType? let setQueueAttributesAsyncOverride: SetQueueAttributesAsyncType? let setQueueAttributesSyncOverride: SetQueueAttributesSyncType? + let startMessageMoveTaskAsyncOverride: StartMessageMoveTaskAsyncType? + let startMessageMoveTaskSyncOverride: StartMessageMoveTaskSyncType? let tagQueueAsyncOverride: TagQueueAsyncType? let tagQueueSyncOverride: TagQueueSyncType? let untagQueueAsyncOverride: UntagQueueAsyncType? @@ -77,6 +83,8 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { public init( addPermissionAsync: AddPermissionAsyncType? = nil, addPermissionSync: AddPermissionSyncType? = nil, + cancelMessageMoveTaskAsync: CancelMessageMoveTaskAsyncType? = nil, + cancelMessageMoveTaskSync: CancelMessageMoveTaskSyncType? = nil, changeMessageVisibilityAsync: ChangeMessageVisibilityAsyncType? = nil, changeMessageVisibilitySync: ChangeMessageVisibilitySyncType? = nil, changeMessageVisibilityBatchAsync: ChangeMessageVisibilityBatchAsyncType? = nil, @@ -95,6 +103,8 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { getQueueUrlSync: GetQueueUrlSyncType? = nil, listDeadLetterSourceQueuesAsync: ListDeadLetterSourceQueuesAsyncType? = nil, listDeadLetterSourceQueuesSync: ListDeadLetterSourceQueuesSyncType? = nil, + listMessageMoveTasksAsync: ListMessageMoveTasksAsyncType? = nil, + listMessageMoveTasksSync: ListMessageMoveTasksSyncType? = nil, listQueueTagsAsync: ListQueueTagsAsyncType? = nil, listQueueTagsSync: ListQueueTagsSyncType? = nil, listQueuesAsync: ListQueuesAsyncType? = nil, @@ -111,12 +121,16 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { sendMessageBatchSync: SendMessageBatchSyncType? = nil, setQueueAttributesAsync: SetQueueAttributesAsyncType? = nil, setQueueAttributesSync: SetQueueAttributesSyncType? = nil, + startMessageMoveTaskAsync: StartMessageMoveTaskAsyncType? = nil, + startMessageMoveTaskSync: StartMessageMoveTaskSyncType? = nil, tagQueueAsync: TagQueueAsyncType? = nil, tagQueueSync: TagQueueSyncType? = nil, untagQueueAsync: UntagQueueAsyncType? = nil, untagQueueSync: UntagQueueSyncType? = nil) { self.addPermissionAsyncOverride = addPermissionAsync self.addPermissionSyncOverride = addPermissionSync + self.cancelMessageMoveTaskAsyncOverride = cancelMessageMoveTaskAsync + self.cancelMessageMoveTaskSyncOverride = cancelMessageMoveTaskSync self.changeMessageVisibilityAsyncOverride = changeMessageVisibilityAsync self.changeMessageVisibilitySyncOverride = changeMessageVisibilitySync self.changeMessageVisibilityBatchAsyncOverride = changeMessageVisibilityBatchAsync @@ -135,6 +149,8 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { self.getQueueUrlSyncOverride = getQueueUrlSync self.listDeadLetterSourceQueuesAsyncOverride = listDeadLetterSourceQueuesAsync self.listDeadLetterSourceQueuesSyncOverride = listDeadLetterSourceQueuesSync + self.listMessageMoveTasksAsyncOverride = listMessageMoveTasksAsync + self.listMessageMoveTasksSyncOverride = listMessageMoveTasksSync self.listQueueTagsAsyncOverride = listQueueTagsAsync self.listQueueTagsSyncOverride = listQueueTagsSync self.listQueuesAsyncOverride = listQueuesAsync @@ -151,6 +167,8 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { self.sendMessageBatchSyncOverride = sendMessageBatchSync self.setQueueAttributesAsyncOverride = setQueueAttributesAsync self.setQueueAttributesSyncOverride = setQueueAttributesSync + self.startMessageMoveTaskAsyncOverride = startMessageMoveTaskAsync + self.startMessageMoveTaskSyncOverride = startMessageMoveTaskSync self.tagQueueAsyncOverride = tagQueueAsync self.tagQueueSyncOverride = tagQueueSync self.untagQueueAsyncOverride = untagQueueAsync @@ -191,6 +209,46 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { } + /** + Invokes the CancelMessageMoveTask operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - completion: The CancelMessageMoveTaskResultForCancelMessageMoveTask object or an error will be passed to this + callback when the operation is complete. The CancelMessageMoveTaskResultForCancelMessageMoveTask + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTaskAsync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest, + completion: @escaping (Result) -> ()) throws { + if let cancelMessageMoveTaskAsyncOverride = cancelMessageMoveTaskAsyncOverride { + return try cancelMessageMoveTaskAsyncOverride(input, completion) + } + + let result = CancelMessageMoveTaskResultForCancelMessageMoveTask.__default + + completion(.success(result)) + } + + /** + Invokes the CancelMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTaskSync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + if let cancelMessageMoveTaskSyncOverride = cancelMessageMoveTaskSyncOverride { + return try cancelMessageMoveTaskSyncOverride(input) + } + + return CancelMessageMoveTaskResultForCancelMessageMoveTask.__default + } + /** Invokes the ChangeMessageVisibility operation returning immediately and passing the response to a callback. @@ -531,6 +589,46 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { return ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues.__default } + /** + Invokes the ListMessageMoveTasks operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - completion: The ListMessageMoveTasksResultForListMessageMoveTasks object or an error will be passed to this + callback when the operation is complete. The ListMessageMoveTasksResultForListMessageMoveTasks + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasksAsync( + input: SimpleQueueModel.ListMessageMoveTasksRequest, + completion: @escaping (Result) -> ()) throws { + if let listMessageMoveTasksAsyncOverride = listMessageMoveTasksAsyncOverride { + return try listMessageMoveTasksAsyncOverride(input, completion) + } + + let result = ListMessageMoveTasksResultForListMessageMoveTasks.__default + + completion(.success(result)) + } + + /** + Invokes the ListMessageMoveTasks operation waiting for the response before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasksSync( + input: SimpleQueueModel.ListMessageMoveTasksRequest) throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + if let listMessageMoveTasksSyncOverride = listMessageMoveTasksSyncOverride { + return try listMessageMoveTasksSyncOverride(input) + } + + return ListMessageMoveTasksResultForListMessageMoveTasks.__default + } + /** Invokes the ListQueueTags operation returning immediately and passing the response to a callback. @@ -827,6 +925,46 @@ public struct MockSimpleQueueClient: SimpleQueueClientProtocol { } + /** + Invokes the StartMessageMoveTask operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - completion: The StartMessageMoveTaskResultForStartMessageMoveTask object or an error will be passed to this + callback when the operation is complete. The StartMessageMoveTaskResultForStartMessageMoveTask + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTaskAsync( + input: SimpleQueueModel.StartMessageMoveTaskRequest, + completion: @escaping (Result) -> ()) throws { + if let startMessageMoveTaskAsyncOverride = startMessageMoveTaskAsyncOverride { + return try startMessageMoveTaskAsyncOverride(input, completion) + } + + let result = StartMessageMoveTaskResultForStartMessageMoveTask.__default + + completion(.success(result)) + } + + /** + Invokes the StartMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTaskSync( + input: SimpleQueueModel.StartMessageMoveTaskRequest) throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + if let startMessageMoveTaskSyncOverride = startMessageMoveTaskSyncOverride { + return try startMessageMoveTaskSyncOverride(input) + } + + return StartMessageMoveTaskResultForStartMessageMoveTask.__default + } + /** Invokes the TagQueue operation returning immediately and passing the response to a callback. diff --git a/Sources/SimpleQueueClient/MockSimpleQueueClientV2.swift b/Sources/SimpleQueueClient/MockSimpleQueueClientV2.swift index 298f5c0..68ee6f4 100644 --- a/Sources/SimpleQueueClient/MockSimpleQueueClientV2.swift +++ b/Sources/SimpleQueueClient/MockSimpleQueueClientV2.swift @@ -31,6 +31,7 @@ import SmokeHTTPClient public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) let addPermissionOverride: AddPermissionFunctionType? + let cancelMessageMoveTaskOverride: CancelMessageMoveTaskFunctionType? let changeMessageVisibilityOverride: ChangeMessageVisibilityFunctionType? let changeMessageVisibilityBatchOverride: ChangeMessageVisibilityBatchFunctionType? let createQueueOverride: CreateQueueFunctionType? @@ -40,6 +41,7 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { let getQueueAttributesOverride: GetQueueAttributesFunctionType? let getQueueUrlOverride: GetQueueUrlFunctionType? let listDeadLetterSourceQueuesOverride: ListDeadLetterSourceQueuesFunctionType? + let listMessageMoveTasksOverride: ListMessageMoveTasksFunctionType? let listQueueTagsOverride: ListQueueTagsFunctionType? let listQueuesOverride: ListQueuesFunctionType? let purgeQueueOverride: PurgeQueueFunctionType? @@ -48,6 +50,7 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { let sendMessageOverride: SendMessageFunctionType? let sendMessageBatchOverride: SendMessageBatchFunctionType? let setQueueAttributesOverride: SetQueueAttributesFunctionType? + let startMessageMoveTaskOverride: StartMessageMoveTaskFunctionType? let tagQueueOverride: TagQueueFunctionType? let untagQueueOverride: UntagQueueFunctionType? @@ -57,6 +60,7 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { */ public init( addPermission: AddPermissionFunctionType? = nil, + cancelMessageMoveTask: CancelMessageMoveTaskFunctionType? = nil, changeMessageVisibility: ChangeMessageVisibilityFunctionType? = nil, changeMessageVisibilityBatch: ChangeMessageVisibilityBatchFunctionType? = nil, createQueue: CreateQueueFunctionType? = nil, @@ -66,6 +70,7 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { getQueueAttributes: GetQueueAttributesFunctionType? = nil, getQueueUrl: GetQueueUrlFunctionType? = nil, listDeadLetterSourceQueues: ListDeadLetterSourceQueuesFunctionType? = nil, + listMessageMoveTasks: ListMessageMoveTasksFunctionType? = nil, listQueueTags: ListQueueTagsFunctionType? = nil, listQueues: ListQueuesFunctionType? = nil, purgeQueue: PurgeQueueFunctionType? = nil, @@ -74,9 +79,11 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { sendMessage: SendMessageFunctionType? = nil, sendMessageBatch: SendMessageBatchFunctionType? = nil, setQueueAttributes: SetQueueAttributesFunctionType? = nil, + startMessageMoveTask: StartMessageMoveTaskFunctionType? = nil, tagQueue: TagQueueFunctionType? = nil, untagQueue: UntagQueueFunctionType? = nil) { self.addPermissionOverride = addPermission + self.cancelMessageMoveTaskOverride = cancelMessageMoveTask self.changeMessageVisibilityOverride = changeMessageVisibility self.changeMessageVisibilityBatchOverride = changeMessageVisibilityBatch self.createQueueOverride = createQueue @@ -86,6 +93,7 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { self.getQueueAttributesOverride = getQueueAttributes self.getQueueUrlOverride = getQueueUrl self.listDeadLetterSourceQueuesOverride = listDeadLetterSourceQueues + self.listMessageMoveTasksOverride = listMessageMoveTasks self.listQueueTagsOverride = listQueueTags self.listQueuesOverride = listQueues self.purgeQueueOverride = purgeQueue @@ -94,6 +102,7 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { self.sendMessageOverride = sendMessage self.sendMessageBatchOverride = sendMessageBatch self.setQueueAttributesOverride = setQueueAttributes + self.startMessageMoveTaskOverride = startMessageMoveTask self.tagQueueOverride = tagQueue self.untagQueueOverride = untagQueue } @@ -113,6 +122,24 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { } + /** + Invokes the CancelMessageMoveTask operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTask( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) async throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + if let cancelMessageMoveTaskOverride = cancelMessageMoveTaskOverride { + return try await cancelMessageMoveTaskOverride(input) + } + + return CancelMessageMoveTaskResultForCancelMessageMoveTask.__default + } + /** Invokes the ChangeMessageVisibility operation suspending until the response is available before returning. @@ -265,6 +292,24 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { return ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues.__default } + /** + Invokes the ListMessageMoveTasks operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasks( + input: SimpleQueueModel.ListMessageMoveTasksRequest) async throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + if let listMessageMoveTasksOverride = listMessageMoveTasksOverride { + return try await listMessageMoveTasksOverride(input) + } + + return ListMessageMoveTasksResultForListMessageMoveTasks.__default + } + /** Invokes the ListQueueTags operation suspending until the response is available before returning. @@ -397,6 +442,24 @@ public struct MockSimpleQueueClientV2: SimpleQueueClientProtocolV2 { } + /** + Invokes the StartMessageMoveTask operation suspending until the response is available before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTask( + input: SimpleQueueModel.StartMessageMoveTaskRequest) async throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + if let startMessageMoveTaskOverride = startMessageMoveTaskOverride { + return try await startMessageMoveTaskOverride(input) + } + + return StartMessageMoveTaskResultForStartMessageMoveTask.__default + } + /** Invokes the TagQueue operation suspending until the response is available before returning. diff --git a/Sources/SimpleQueueClient/SimpleQueueClientProtocol+async.swift b/Sources/SimpleQueueClient/SimpleQueueClientProtocol+async.swift index 8f18025..8a9d222 100644 --- a/Sources/SimpleQueueClient/SimpleQueueClientProtocol+async.swift +++ b/Sources/SimpleQueueClient/SimpleQueueClientProtocol+async.swift @@ -53,6 +53,33 @@ public extension SimpleQueueClientProtocol { } } + /** + Invokes the CancelMessageMoveTask operation and asynchronously returning the response. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func cancelMessageMoveTask(input: SimpleQueueModel.CancelMessageMoveTaskRequest) async throws + -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + return try await withCheckedThrowingContinuation { cont in + do { + try cancelMessageMoveTaskAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ChangeMessageVisibility operation and asynchronously returning the response. @@ -283,6 +310,33 @@ public extension SimpleQueueClientProtocol { } } + /** + Invokes the ListMessageMoveTasks operation and asynchronously returning the response. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func listMessageMoveTasks(input: SimpleQueueModel.ListMessageMoveTasksRequest) async throws + -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + return try await withCheckedThrowingContinuation { cont in + do { + try listMessageMoveTasksAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ListQueueTags operation and asynchronously returning the response. @@ -484,6 +538,33 @@ public extension SimpleQueueClientProtocol { } } + /** + Invokes the StartMessageMoveTask operation and asynchronously returning the response. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func startMessageMoveTask(input: SimpleQueueModel.StartMessageMoveTaskRequest) async throws + -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + return try await withCheckedThrowingContinuation { cont in + do { + try startMessageMoveTaskAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the TagQueue operation and asynchronously returning the response. diff --git a/Sources/SimpleQueueClient/SimpleQueueClientProtocol.swift b/Sources/SimpleQueueClient/SimpleQueueClientProtocol.swift index 1903eb1..9562300 100644 --- a/Sources/SimpleQueueClient/SimpleQueueClientProtocol.swift +++ b/Sources/SimpleQueueClient/SimpleQueueClientProtocol.swift @@ -34,6 +34,11 @@ public protocol SimpleQueueClientProtocol: SimpleQueueClientProtocolV2 { typealias AddPermissionAsyncType = ( _ input: SimpleQueueModel.AddPermissionRequest, _ completion: @escaping (SimpleQueueError?) -> ()) throws -> () + typealias CancelMessageMoveTaskSyncType = ( + _ input: SimpleQueueModel.CancelMessageMoveTaskRequest) throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask + typealias CancelMessageMoveTaskAsyncType = ( + _ input: SimpleQueueModel.CancelMessageMoveTaskRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias ChangeMessageVisibilitySyncType = ( _ input: SimpleQueueModel.ChangeMessageVisibilityRequest) throws -> () typealias ChangeMessageVisibilityAsyncType = ( @@ -79,6 +84,11 @@ public protocol SimpleQueueClientProtocol: SimpleQueueClientProtocolV2 { typealias ListDeadLetterSourceQueuesAsyncType = ( _ input: SimpleQueueModel.ListDeadLetterSourceQueuesRequest, _ completion: @escaping (Result) -> ()) throws -> () + typealias ListMessageMoveTasksSyncType = ( + _ input: SimpleQueueModel.ListMessageMoveTasksRequest) throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks + typealias ListMessageMoveTasksAsyncType = ( + _ input: SimpleQueueModel.ListMessageMoveTasksRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias ListQueueTagsSyncType = ( _ input: SimpleQueueModel.ListQueueTagsRequest) throws -> SimpleQueueModel.ListQueueTagsResultForListQueueTags typealias ListQueueTagsAsyncType = ( @@ -119,6 +129,11 @@ public protocol SimpleQueueClientProtocol: SimpleQueueClientProtocolV2 { typealias SetQueueAttributesAsyncType = ( _ input: SimpleQueueModel.SetQueueAttributesRequest, _ completion: @escaping (SimpleQueueError?) -> ()) throws -> () + typealias StartMessageMoveTaskSyncType = ( + _ input: SimpleQueueModel.StartMessageMoveTaskRequest) throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask + typealias StartMessageMoveTaskAsyncType = ( + _ input: SimpleQueueModel.StartMessageMoveTaskRequest, + _ completion: @escaping (Result) -> ()) throws -> () typealias TagQueueSyncType = ( _ input: SimpleQueueModel.TagQueueRequest) throws -> () typealias TagQueueAsyncType = ( @@ -153,6 +168,32 @@ public protocol SimpleQueueClientProtocol: SimpleQueueClientProtocolV2 { func addPermissionSync( input: SimpleQueueModel.AddPermissionRequest) throws + /** + Invokes the CancelMessageMoveTask operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - completion: The CancelMessageMoveTaskResultForCancelMessageMoveTask object or an error will be passed to this + callback when the operation is complete. The CancelMessageMoveTaskResultForCancelMessageMoveTask + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + func cancelMessageMoveTaskAsync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the CancelMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func cancelMessageMoveTaskSync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask + /** Invokes the ChangeMessageVisibility operation returning immediately and passing the response to a callback. @@ -376,6 +417,32 @@ public protocol SimpleQueueClientProtocol: SimpleQueueClientProtocolV2 { func listDeadLetterSourceQueuesSync( input: SimpleQueueModel.ListDeadLetterSourceQueuesRequest) throws -> SimpleQueueModel.ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues + /** + Invokes the ListMessageMoveTasks operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - completion: The ListMessageMoveTasksResultForListMessageMoveTasks object or an error will be passed to this + callback when the operation is complete. The ListMessageMoveTasksResultForListMessageMoveTasks + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + func listMessageMoveTasksAsync( + input: SimpleQueueModel.ListMessageMoveTasksRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the ListMessageMoveTasks operation waiting for the response before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func listMessageMoveTasksSync( + input: SimpleQueueModel.ListMessageMoveTasksRequest) throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks + /** Invokes the ListQueueTags operation returning immediately and passing the response to a callback. @@ -569,6 +636,32 @@ public protocol SimpleQueueClientProtocol: SimpleQueueClientProtocolV2 { func setQueueAttributesSync( input: SimpleQueueModel.SetQueueAttributesRequest) throws + /** + Invokes the StartMessageMoveTask operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - completion: The StartMessageMoveTaskResultForStartMessageMoveTask object or an error will be passed to this + callback when the operation is complete. The StartMessageMoveTaskResultForStartMessageMoveTask + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + func startMessageMoveTaskAsync( + input: SimpleQueueModel.StartMessageMoveTaskRequest, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the StartMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func startMessageMoveTaskSync( + input: SimpleQueueModel.StartMessageMoveTaskRequest) throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask + /** Invokes the TagQueue operation returning immediately and passing the response to a callback. diff --git a/Sources/SimpleQueueClient/SimpleQueueClientProtocolV2.swift b/Sources/SimpleQueueClient/SimpleQueueClientProtocolV2.swift index e6f0232..f4d3850 100644 --- a/Sources/SimpleQueueClient/SimpleQueueClientProtocolV2.swift +++ b/Sources/SimpleQueueClient/SimpleQueueClientProtocolV2.swift @@ -32,6 +32,8 @@ public protocol SimpleQueueClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) typealias AddPermissionFunctionType = ( _ input: SimpleQueueModel.AddPermissionRequest) async throws -> () + typealias CancelMessageMoveTaskFunctionType = ( + _ input: SimpleQueueModel.CancelMessageMoveTaskRequest) async throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask typealias ChangeMessageVisibilityFunctionType = ( _ input: SimpleQueueModel.ChangeMessageVisibilityRequest) async throws -> () typealias ChangeMessageVisibilityBatchFunctionType = ( @@ -50,6 +52,8 @@ public protocol SimpleQueueClientProtocolV2 { _ input: SimpleQueueModel.GetQueueUrlRequest) async throws -> SimpleQueueModel.GetQueueUrlResultForGetQueueUrl typealias ListDeadLetterSourceQueuesFunctionType = ( _ input: SimpleQueueModel.ListDeadLetterSourceQueuesRequest) async throws -> SimpleQueueModel.ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues + typealias ListMessageMoveTasksFunctionType = ( + _ input: SimpleQueueModel.ListMessageMoveTasksRequest) async throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks typealias ListQueueTagsFunctionType = ( _ input: SimpleQueueModel.ListQueueTagsRequest) async throws -> SimpleQueueModel.ListQueueTagsResultForListQueueTags typealias ListQueuesFunctionType = ( @@ -66,6 +70,8 @@ public protocol SimpleQueueClientProtocolV2 { _ input: SimpleQueueModel.SendMessageBatchRequest) async throws -> SimpleQueueModel.SendMessageBatchResultForSendMessageBatch typealias SetQueueAttributesFunctionType = ( _ input: SimpleQueueModel.SetQueueAttributesRequest) async throws -> () + typealias StartMessageMoveTaskFunctionType = ( + _ input: SimpleQueueModel.StartMessageMoveTaskRequest) async throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask typealias TagQueueFunctionType = ( _ input: SimpleQueueModel.TagQueueRequest) async throws -> () typealias UntagQueueFunctionType = ( @@ -81,6 +87,18 @@ public protocol SimpleQueueClientProtocolV2 { func addPermission( input: SimpleQueueModel.AddPermissionRequest) async throws + /** + Invokes the CancelMessageMoveTask operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func cancelMessageMoveTask( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) async throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask + /** Invokes the ChangeMessageVisibility operation suspending until the response is available before returning. @@ -182,6 +200,18 @@ public protocol SimpleQueueClientProtocolV2 { func listDeadLetterSourceQueues( input: SimpleQueueModel.ListDeadLetterSourceQueuesRequest) async throws -> SimpleQueueModel.ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues + /** + Invokes the ListMessageMoveTasks operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func listMessageMoveTasks( + input: SimpleQueueModel.ListMessageMoveTasksRequest) async throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks + /** Invokes the ListQueueTags operation suspending until the response is available before returning. @@ -269,6 +299,18 @@ public protocol SimpleQueueClientProtocolV2 { func setQueueAttributes( input: SimpleQueueModel.SetQueueAttributesRequest) async throws + /** + Invokes the StartMessageMoveTask operation suspending until the response is available before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + func startMessageMoveTask( + input: SimpleQueueModel.StartMessageMoveTaskRequest) async throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask + /** Invokes the TagQueue operation suspending until the response is available before returning. diff --git a/Sources/SimpleQueueClient/SimpleQueueInvocationsReporting.swift b/Sources/SimpleQueueClient/SimpleQueueInvocationsReporting.swift index 10de55f..bde80aa 100644 --- a/Sources/SimpleQueueClient/SimpleQueueInvocationsReporting.swift +++ b/Sources/SimpleQueueClient/SimpleQueueInvocationsReporting.swift @@ -30,6 +30,7 @@ import SimpleQueueModel */ public struct SimpleQueueInvocationsReporting { public let addPermission: SmokeAWSHTTPClientInvocationReporting + public let cancelMessageMoveTask: SmokeAWSHTTPClientInvocationReporting public let changeMessageVisibility: SmokeAWSHTTPClientInvocationReporting public let changeMessageVisibilityBatch: SmokeAWSHTTPClientInvocationReporting public let createQueue: SmokeAWSHTTPClientInvocationReporting @@ -39,6 +40,7 @@ public struct SimpleQueueInvocationsReporting public let getQueueUrl: SmokeAWSHTTPClientInvocationReporting public let listDeadLetterSourceQueues: SmokeAWSHTTPClientInvocationReporting + public let listMessageMoveTasks: SmokeAWSHTTPClientInvocationReporting public let listQueueTags: SmokeAWSHTTPClientInvocationReporting public let listQueues: SmokeAWSHTTPClientInvocationReporting public let purgeQueue: SmokeAWSHTTPClientInvocationReporting @@ -47,12 +49,15 @@ public struct SimpleQueueInvocationsReporting public let sendMessageBatch: SmokeAWSHTTPClientInvocationReporting public let setQueueAttributes: SmokeAWSHTTPClientInvocationReporting + public let startMessageMoveTask: SmokeAWSHTTPClientInvocationReporting public let tagQueue: SmokeAWSHTTPClientInvocationReporting public let untagQueue: SmokeAWSHTTPClientInvocationReporting public init(reporting: InvocationReportingType, operationsReporting: SimpleQueueOperationsReporting) { self.addPermission = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.addPermission) + self.cancelMessageMoveTask = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, + smokeAWSOperationReporting: operationsReporting.cancelMessageMoveTask) self.changeMessageVisibility = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.changeMessageVisibility) self.changeMessageVisibilityBatch = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, @@ -71,6 +76,8 @@ public struct SimpleQueueInvocationsReporting BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> CancelMessageMoveTaskResultForCancelMessageMoveTask { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the ChangeMessageVisibilityBatch operation in a HTTP client. */ @@ -102,6 +115,19 @@ extension ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues: HTTPRes } } +/** + Type to handle the output from the ListMessageMoveTasks operation in a HTTP client. + */ +extension ListMessageMoveTasksResultForListMessageMoveTasks: HTTPResponseOutputProtocol { + public typealias BodyType = ListMessageMoveTasksResultForListMessageMoveTasks + public typealias HeadersType = ListMessageMoveTasksResultForListMessageMoveTasks + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> ListMessageMoveTasksResultForListMessageMoveTasks { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the ListQueueTags operation in a HTTP client. */ @@ -166,3 +192,16 @@ extension SendMessageBatchResultForSendMessageBatch: HTTPResponseOutputProtocol return try bodyDecodableProvider() } } + +/** + Type to handle the output from the StartMessageMoveTask operation in a HTTP client. + */ +extension StartMessageMoveTaskResultForStartMessageMoveTask: HTTPResponseOutputProtocol { + public typealias BodyType = StartMessageMoveTaskResultForStartMessageMoveTask + public typealias HeadersType = StartMessageMoveTaskResultForStartMessageMoveTask + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> StartMessageMoveTaskResultForStartMessageMoveTask { + return try bodyDecodableProvider() + } +} diff --git a/Sources/SimpleQueueClient/SimpleQueueOperationsReporting.swift b/Sources/SimpleQueueClient/SimpleQueueOperationsReporting.swift index d9e04b1..26522bf 100644 --- a/Sources/SimpleQueueClient/SimpleQueueOperationsReporting.swift +++ b/Sources/SimpleQueueClient/SimpleQueueOperationsReporting.swift @@ -29,6 +29,7 @@ import SimpleQueueModel */ public struct SimpleQueueOperationsReporting { public let addPermission: StandardSmokeAWSOperationReporting + public let cancelMessageMoveTask: StandardSmokeAWSOperationReporting public let changeMessageVisibility: StandardSmokeAWSOperationReporting public let changeMessageVisibilityBatch: StandardSmokeAWSOperationReporting public let createQueue: StandardSmokeAWSOperationReporting @@ -38,6 +39,7 @@ public struct SimpleQueueOperationsReporting { public let getQueueAttributes: StandardSmokeAWSOperationReporting public let getQueueUrl: StandardSmokeAWSOperationReporting public let listDeadLetterSourceQueues: StandardSmokeAWSOperationReporting + public let listMessageMoveTasks: StandardSmokeAWSOperationReporting public let listQueueTags: StandardSmokeAWSOperationReporting public let listQueues: StandardSmokeAWSOperationReporting public let purgeQueue: StandardSmokeAWSOperationReporting @@ -46,12 +48,15 @@ public struct SimpleQueueOperationsReporting { public let sendMessage: StandardSmokeAWSOperationReporting public let sendMessageBatch: StandardSmokeAWSOperationReporting public let setQueueAttributes: StandardSmokeAWSOperationReporting + public let startMessageMoveTask: StandardSmokeAWSOperationReporting public let tagQueue: StandardSmokeAWSOperationReporting public let untagQueue: StandardSmokeAWSOperationReporting public init(clientName: String, reportingConfiguration: SmokeAWSClientReportingConfiguration) { self.addPermission = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .addPermission, configuration: reportingConfiguration) + self.cancelMessageMoveTask = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .cancelMessageMoveTask, configuration: reportingConfiguration) self.changeMessageVisibility = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .changeMessageVisibility, configuration: reportingConfiguration) self.changeMessageVisibilityBatch = StandardSmokeAWSOperationReporting( @@ -70,6 +75,8 @@ public struct SimpleQueueOperationsReporting { clientName: clientName, operation: .getQueueUrl, configuration: reportingConfiguration) self.listDeadLetterSourceQueues = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .listDeadLetterSourceQueues, configuration: reportingConfiguration) + self.listMessageMoveTasks = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .listMessageMoveTasks, configuration: reportingConfiguration) self.listQueueTags = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .listQueueTags, configuration: reportingConfiguration) self.listQueues = StandardSmokeAWSOperationReporting( @@ -86,6 +93,8 @@ public struct SimpleQueueOperationsReporting { clientName: clientName, operation: .sendMessageBatch, configuration: reportingConfiguration) self.setQueueAttributes = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .setQueueAttributes, configuration: reportingConfiguration) + self.startMessageMoveTask = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .startMessageMoveTask, configuration: reportingConfiguration) self.tagQueue = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .tagQueue, configuration: reportingConfiguration) self.untagQueue = StandardSmokeAWSOperationReporting( diff --git a/Sources/SimpleQueueClient/ThrowingSimpleQueueClient.swift b/Sources/SimpleQueueClient/ThrowingSimpleQueueClient.swift index 12c5e7a..aaee605 100644 --- a/Sources/SimpleQueueClient/ThrowingSimpleQueueClient.swift +++ b/Sources/SimpleQueueClient/ThrowingSimpleQueueClient.swift @@ -32,6 +32,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { let error: SimpleQueueError let addPermissionAsyncOverride: AddPermissionAsyncType? let addPermissionSyncOverride: AddPermissionSyncType? + let cancelMessageMoveTaskAsyncOverride: CancelMessageMoveTaskAsyncType? + let cancelMessageMoveTaskSyncOverride: CancelMessageMoveTaskSyncType? let changeMessageVisibilityAsyncOverride: ChangeMessageVisibilityAsyncType? let changeMessageVisibilitySyncOverride: ChangeMessageVisibilitySyncType? let changeMessageVisibilityBatchAsyncOverride: ChangeMessageVisibilityBatchAsyncType? @@ -50,6 +52,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { let getQueueUrlSyncOverride: GetQueueUrlSyncType? let listDeadLetterSourceQueuesAsyncOverride: ListDeadLetterSourceQueuesAsyncType? let listDeadLetterSourceQueuesSyncOverride: ListDeadLetterSourceQueuesSyncType? + let listMessageMoveTasksAsyncOverride: ListMessageMoveTasksAsyncType? + let listMessageMoveTasksSyncOverride: ListMessageMoveTasksSyncType? let listQueueTagsAsyncOverride: ListQueueTagsAsyncType? let listQueueTagsSyncOverride: ListQueueTagsSyncType? let listQueuesAsyncOverride: ListQueuesAsyncType? @@ -66,6 +70,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { let sendMessageBatchSyncOverride: SendMessageBatchSyncType? let setQueueAttributesAsyncOverride: SetQueueAttributesAsyncType? let setQueueAttributesSyncOverride: SetQueueAttributesSyncType? + let startMessageMoveTaskAsyncOverride: StartMessageMoveTaskAsyncType? + let startMessageMoveTaskSyncOverride: StartMessageMoveTaskSyncType? let tagQueueAsyncOverride: TagQueueAsyncType? let tagQueueSyncOverride: TagQueueSyncType? let untagQueueAsyncOverride: UntagQueueAsyncType? @@ -78,6 +84,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { public init(error: SimpleQueueError, addPermissionAsync: AddPermissionAsyncType? = nil, addPermissionSync: AddPermissionSyncType? = nil, + cancelMessageMoveTaskAsync: CancelMessageMoveTaskAsyncType? = nil, + cancelMessageMoveTaskSync: CancelMessageMoveTaskSyncType? = nil, changeMessageVisibilityAsync: ChangeMessageVisibilityAsyncType? = nil, changeMessageVisibilitySync: ChangeMessageVisibilitySyncType? = nil, changeMessageVisibilityBatchAsync: ChangeMessageVisibilityBatchAsyncType? = nil, @@ -96,6 +104,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { getQueueUrlSync: GetQueueUrlSyncType? = nil, listDeadLetterSourceQueuesAsync: ListDeadLetterSourceQueuesAsyncType? = nil, listDeadLetterSourceQueuesSync: ListDeadLetterSourceQueuesSyncType? = nil, + listMessageMoveTasksAsync: ListMessageMoveTasksAsyncType? = nil, + listMessageMoveTasksSync: ListMessageMoveTasksSyncType? = nil, listQueueTagsAsync: ListQueueTagsAsyncType? = nil, listQueueTagsSync: ListQueueTagsSyncType? = nil, listQueuesAsync: ListQueuesAsyncType? = nil, @@ -112,6 +122,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { sendMessageBatchSync: SendMessageBatchSyncType? = nil, setQueueAttributesAsync: SetQueueAttributesAsyncType? = nil, setQueueAttributesSync: SetQueueAttributesSyncType? = nil, + startMessageMoveTaskAsync: StartMessageMoveTaskAsyncType? = nil, + startMessageMoveTaskSync: StartMessageMoveTaskSyncType? = nil, tagQueueAsync: TagQueueAsyncType? = nil, tagQueueSync: TagQueueSyncType? = nil, untagQueueAsync: UntagQueueAsyncType? = nil, @@ -119,6 +131,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { self.error = error self.addPermissionAsyncOverride = addPermissionAsync self.addPermissionSyncOverride = addPermissionSync + self.cancelMessageMoveTaskAsyncOverride = cancelMessageMoveTaskAsync + self.cancelMessageMoveTaskSyncOverride = cancelMessageMoveTaskSync self.changeMessageVisibilityAsyncOverride = changeMessageVisibilityAsync self.changeMessageVisibilitySyncOverride = changeMessageVisibilitySync self.changeMessageVisibilityBatchAsyncOverride = changeMessageVisibilityBatchAsync @@ -137,6 +151,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { self.getQueueUrlSyncOverride = getQueueUrlSync self.listDeadLetterSourceQueuesAsyncOverride = listDeadLetterSourceQueuesAsync self.listDeadLetterSourceQueuesSyncOverride = listDeadLetterSourceQueuesSync + self.listMessageMoveTasksAsyncOverride = listMessageMoveTasksAsync + self.listMessageMoveTasksSyncOverride = listMessageMoveTasksSync self.listQueueTagsAsyncOverride = listQueueTagsAsync self.listQueueTagsSyncOverride = listQueueTagsSync self.listQueuesAsyncOverride = listQueuesAsync @@ -153,6 +169,8 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { self.sendMessageBatchSyncOverride = sendMessageBatchSync self.setQueueAttributesAsyncOverride = setQueueAttributesAsync self.setQueueAttributesSyncOverride = setQueueAttributesSync + self.startMessageMoveTaskAsyncOverride = startMessageMoveTaskAsync + self.startMessageMoveTaskSyncOverride = startMessageMoveTaskSync self.tagQueueAsyncOverride = tagQueueAsync self.tagQueueSyncOverride = tagQueueSync self.untagQueueAsyncOverride = untagQueueAsync @@ -194,6 +212,44 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { throw error } + /** + Invokes the CancelMessageMoveTask operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - completion: The CancelMessageMoveTaskResultForCancelMessageMoveTask object or an error will be passed to this + callback when the operation is complete. The CancelMessageMoveTaskResultForCancelMessageMoveTask + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTaskAsync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest, + completion: @escaping (Result) -> ()) throws { + if let cancelMessageMoveTaskAsyncOverride = cancelMessageMoveTaskAsyncOverride { + return try cancelMessageMoveTaskAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the CancelMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTaskSync( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + if let cancelMessageMoveTaskSyncOverride = cancelMessageMoveTaskSyncOverride { + return try cancelMessageMoveTaskSyncOverride(input) + } + + throw error + } + /** Invokes the ChangeMessageVisibility operation returning immediately and passing the response to a callback. @@ -525,6 +581,44 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { throw error } + /** + Invokes the ListMessageMoveTasks operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - completion: The ListMessageMoveTasksResultForListMessageMoveTasks object or an error will be passed to this + callback when the operation is complete. The ListMessageMoveTasksResultForListMessageMoveTasks + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasksAsync( + input: SimpleQueueModel.ListMessageMoveTasksRequest, + completion: @escaping (Result) -> ()) throws { + if let listMessageMoveTasksAsyncOverride = listMessageMoveTasksAsyncOverride { + return try listMessageMoveTasksAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the ListMessageMoveTasks operation waiting for the response before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasksSync( + input: SimpleQueueModel.ListMessageMoveTasksRequest) throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + if let listMessageMoveTasksSyncOverride = listMessageMoveTasksSyncOverride { + return try listMessageMoveTasksSyncOverride(input) + } + + throw error + } + /** Invokes the ListQueueTags operation returning immediately and passing the response to a callback. @@ -814,6 +908,44 @@ public struct ThrowingSimpleQueueClient: SimpleQueueClientProtocol { throw error } + /** + Invokes the StartMessageMoveTask operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - completion: The StartMessageMoveTaskResultForStartMessageMoveTask object or an error will be passed to this + callback when the operation is complete. The StartMessageMoveTaskResultForStartMessageMoveTask + object will be validated before being returned to caller. + The possible errors are: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTaskAsync( + input: SimpleQueueModel.StartMessageMoveTaskRequest, + completion: @escaping (Result) -> ()) throws { + if let startMessageMoveTaskAsyncOverride = startMessageMoveTaskAsyncOverride { + return try startMessageMoveTaskAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the StartMessageMoveTask operation waiting for the response before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTaskSync( + input: SimpleQueueModel.StartMessageMoveTaskRequest) throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + if let startMessageMoveTaskSyncOverride = startMessageMoveTaskSyncOverride { + return try startMessageMoveTaskSyncOverride(input) + } + + throw error + } + /** Invokes the TagQueue operation returning immediately and passing the response to a callback. diff --git a/Sources/SimpleQueueClient/ThrowingSimpleQueueClientV2.swift b/Sources/SimpleQueueClient/ThrowingSimpleQueueClientV2.swift index ca17592..eb83f2e 100644 --- a/Sources/SimpleQueueClient/ThrowingSimpleQueueClientV2.swift +++ b/Sources/SimpleQueueClient/ThrowingSimpleQueueClientV2.swift @@ -32,6 +32,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) let error: SimpleQueueError let addPermissionOverride: AddPermissionFunctionType? + let cancelMessageMoveTaskOverride: CancelMessageMoveTaskFunctionType? let changeMessageVisibilityOverride: ChangeMessageVisibilityFunctionType? let changeMessageVisibilityBatchOverride: ChangeMessageVisibilityBatchFunctionType? let createQueueOverride: CreateQueueFunctionType? @@ -41,6 +42,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { let getQueueAttributesOverride: GetQueueAttributesFunctionType? let getQueueUrlOverride: GetQueueUrlFunctionType? let listDeadLetterSourceQueuesOverride: ListDeadLetterSourceQueuesFunctionType? + let listMessageMoveTasksOverride: ListMessageMoveTasksFunctionType? let listQueueTagsOverride: ListQueueTagsFunctionType? let listQueuesOverride: ListQueuesFunctionType? let purgeQueueOverride: PurgeQueueFunctionType? @@ -49,6 +51,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { let sendMessageOverride: SendMessageFunctionType? let sendMessageBatchOverride: SendMessageBatchFunctionType? let setQueueAttributesOverride: SetQueueAttributesFunctionType? + let startMessageMoveTaskOverride: StartMessageMoveTaskFunctionType? let tagQueueOverride: TagQueueFunctionType? let untagQueueOverride: UntagQueueFunctionType? @@ -58,6 +61,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { */ public init(error: SimpleQueueError, addPermission: AddPermissionFunctionType? = nil, + cancelMessageMoveTask: CancelMessageMoveTaskFunctionType? = nil, changeMessageVisibility: ChangeMessageVisibilityFunctionType? = nil, changeMessageVisibilityBatch: ChangeMessageVisibilityBatchFunctionType? = nil, createQueue: CreateQueueFunctionType? = nil, @@ -67,6 +71,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { getQueueAttributes: GetQueueAttributesFunctionType? = nil, getQueueUrl: GetQueueUrlFunctionType? = nil, listDeadLetterSourceQueues: ListDeadLetterSourceQueuesFunctionType? = nil, + listMessageMoveTasks: ListMessageMoveTasksFunctionType? = nil, listQueueTags: ListQueueTagsFunctionType? = nil, listQueues: ListQueuesFunctionType? = nil, purgeQueue: PurgeQueueFunctionType? = nil, @@ -75,10 +80,12 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { sendMessage: SendMessageFunctionType? = nil, sendMessageBatch: SendMessageBatchFunctionType? = nil, setQueueAttributes: SetQueueAttributesFunctionType? = nil, + startMessageMoveTask: StartMessageMoveTaskFunctionType? = nil, tagQueue: TagQueueFunctionType? = nil, untagQueue: UntagQueueFunctionType? = nil) { self.error = error self.addPermissionOverride = addPermission + self.cancelMessageMoveTaskOverride = cancelMessageMoveTask self.changeMessageVisibilityOverride = changeMessageVisibility self.changeMessageVisibilityBatchOverride = changeMessageVisibilityBatch self.createQueueOverride = createQueue @@ -88,6 +95,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { self.getQueueAttributesOverride = getQueueAttributes self.getQueueUrlOverride = getQueueUrl self.listDeadLetterSourceQueuesOverride = listDeadLetterSourceQueues + self.listMessageMoveTasksOverride = listMessageMoveTasks self.listQueueTagsOverride = listQueueTags self.listQueuesOverride = listQueues self.purgeQueueOverride = purgeQueue @@ -96,6 +104,7 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { self.sendMessageOverride = sendMessage self.sendMessageBatchOverride = sendMessageBatch self.setQueueAttributesOverride = setQueueAttributes + self.startMessageMoveTaskOverride = startMessageMoveTask self.tagQueueOverride = tagQueue self.untagQueueOverride = untagQueue } @@ -116,6 +125,24 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { throw error } + /** + Invokes the CancelMessageMoveTask operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CancelMessageMoveTaskRequest object being passed to this operation. + - Returns: The CancelMessageMoveTaskResultForCancelMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func cancelMessageMoveTask( + input: SimpleQueueModel.CancelMessageMoveTaskRequest) async throws -> SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask { + if let cancelMessageMoveTaskOverride = cancelMessageMoveTaskOverride { + return try await cancelMessageMoveTaskOverride(input) + } + + throw error + } + /** Invokes the ChangeMessageVisibility operation suspending until the response is available before returning. @@ -271,6 +298,24 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { throw error } + /** + Invokes the ListMessageMoveTasks operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListMessageMoveTasksRequest object being passed to this operation. + - Returns: The ListMessageMoveTasksResultForListMessageMoveTasks object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func listMessageMoveTasks( + input: SimpleQueueModel.ListMessageMoveTasksRequest) async throws -> SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks { + if let listMessageMoveTasksOverride = listMessageMoveTasksOverride { + return try await listMessageMoveTasksOverride(input) + } + + throw error + } + /** Invokes the ListQueueTags operation suspending until the response is available before returning. @@ -406,6 +451,24 @@ public struct ThrowingSimpleQueueClientV2: SimpleQueueClientProtocolV2 { throw error } + /** + Invokes the StartMessageMoveTask operation suspending until the response is available before returning. + + - Parameters: + - input: The validated StartMessageMoveTaskRequest object being passed to this operation. + - Returns: The StartMessageMoveTaskResultForStartMessageMoveTask object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: resourceNotFound, unsupportedOperation. + */ + public func startMessageMoveTask( + input: SimpleQueueModel.StartMessageMoveTaskRequest) async throws -> SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask { + if let startMessageMoveTaskOverride = startMessageMoveTaskOverride { + return try await startMessageMoveTaskOverride(input) + } + + throw error + } + /** Invokes the TagQueue operation suspending until the response is available before returning. diff --git a/Sources/SimpleQueueModel/SimpleQueueModelDefaultInstances.swift b/Sources/SimpleQueueModel/SimpleQueueModelDefaultInstances.swift index f660fd1..09184cf 100644 --- a/Sources/SimpleQueueModel/SimpleQueueModelDefaultInstances.swift +++ b/Sources/SimpleQueueModel/SimpleQueueModelDefaultInstances.swift @@ -74,6 +74,42 @@ public extension BatchResultErrorEntry { }() } +public extension CancelMessageMoveTaskRequest { + /** + Default instance of the CancelMessageMoveTaskRequest structure. + */ + static let __default: SimpleQueueModel.CancelMessageMoveTaskRequest = { + let defaultInstance = SimpleQueueModel.CancelMessageMoveTaskRequest( + taskHandle: "value") + + return defaultInstance + }() +} + +public extension CancelMessageMoveTaskResult { + /** + Default instance of the CancelMessageMoveTaskResult structure. + */ + static let __default: SimpleQueueModel.CancelMessageMoveTaskResult = { + let defaultInstance = SimpleQueueModel.CancelMessageMoveTaskResult( + approximateNumberOfMessagesMoved: nil) + + return defaultInstance + }() +} + +public extension CancelMessageMoveTaskResultForCancelMessageMoveTask { + /** + Default instance of the CancelMessageMoveTaskResultForCancelMessageMoveTask structure. + */ + static let __default: SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask = { + let defaultInstance = SimpleQueueModel.CancelMessageMoveTaskResultForCancelMessageMoveTask( + cancelMessageMoveTaskResult: CancelMessageMoveTaskResult.__default) + + return defaultInstance + }() +} + public extension ChangeMessageVisibilityBatchRequest { /** Default instance of the ChangeMessageVisibilityBatchRequest structure. @@ -446,6 +482,63 @@ public extension ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues { }() } +public extension ListMessageMoveTasksRequest { + /** + Default instance of the ListMessageMoveTasksRequest structure. + */ + static let __default: SimpleQueueModel.ListMessageMoveTasksRequest = { + let defaultInstance = SimpleQueueModel.ListMessageMoveTasksRequest( + maxResults: nil, + sourceArn: "value") + + return defaultInstance + }() +} + +public extension ListMessageMoveTasksResult { + /** + Default instance of the ListMessageMoveTasksResult structure. + */ + static let __default: SimpleQueueModel.ListMessageMoveTasksResult = { + let defaultInstance = SimpleQueueModel.ListMessageMoveTasksResult( + results: nil) + + return defaultInstance + }() +} + +public extension ListMessageMoveTasksResultEntry { + /** + Default instance of the ListMessageMoveTasksResultEntry structure. + */ + static let __default: SimpleQueueModel.ListMessageMoveTasksResultEntry = { + let defaultInstance = SimpleQueueModel.ListMessageMoveTasksResultEntry( + approximateNumberOfMessagesMoved: nil, + approximateNumberOfMessagesToMove: nil, + destinationArn: nil, + failureReason: nil, + maxNumberOfMessagesPerSecond: nil, + sourceArn: nil, + startedTimestamp: nil, + status: nil, + taskHandle: nil) + + return defaultInstance + }() +} + +public extension ListMessageMoveTasksResultForListMessageMoveTasks { + /** + Default instance of the ListMessageMoveTasksResultForListMessageMoveTasks structure. + */ + static let __default: SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks = { + let defaultInstance = SimpleQueueModel.ListMessageMoveTasksResultForListMessageMoveTasks( + listMessageMoveTasksResult: ListMessageMoveTasksResult.__default) + + return defaultInstance + }() +} + public extension ListQueueTagsRequest { /** Default instance of the ListQueueTagsRequest structure. @@ -715,6 +808,17 @@ public extension RemovePermissionRequest { }() } +public extension ResourceNotFoundException { + /** + Default instance of the ResourceNotFoundException structure. + */ + static let __default: SimpleQueueModel.ResourceNotFoundException = { + let defaultInstance = SimpleQueueModel.ResourceNotFoundException() + + return defaultInstance + }() +} + public extension SendMessageBatchRequest { /** Default instance of the SendMessageBatchRequest structure. @@ -847,6 +951,44 @@ public extension SetQueueAttributesRequest { }() } +public extension StartMessageMoveTaskRequest { + /** + Default instance of the StartMessageMoveTaskRequest structure. + */ + static let __default: SimpleQueueModel.StartMessageMoveTaskRequest = { + let defaultInstance = SimpleQueueModel.StartMessageMoveTaskRequest( + destinationArn: nil, + maxNumberOfMessagesPerSecond: nil, + sourceArn: "value") + + return defaultInstance + }() +} + +public extension StartMessageMoveTaskResult { + /** + Default instance of the StartMessageMoveTaskResult structure. + */ + static let __default: SimpleQueueModel.StartMessageMoveTaskResult = { + let defaultInstance = SimpleQueueModel.StartMessageMoveTaskResult( + taskHandle: nil) + + return defaultInstance + }() +} + +public extension StartMessageMoveTaskResultForStartMessageMoveTask { + /** + Default instance of the StartMessageMoveTaskResultForStartMessageMoveTask structure. + */ + static let __default: SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask = { + let defaultInstance = SimpleQueueModel.StartMessageMoveTaskResultForStartMessageMoveTask( + startMessageMoveTaskResult: StartMessageMoveTaskResult.__default) + + return defaultInstance + }() +} + public extension TagQueueRequest { /** Default instance of the TagQueueRequest structure. diff --git a/Sources/SimpleQueueModel/SimpleQueueModelErrors.swift b/Sources/SimpleQueueModel/SimpleQueueModelErrors.swift index 233405c..8979313 100644 --- a/Sources/SimpleQueueModel/SimpleQueueModelErrors.swift +++ b/Sources/SimpleQueueModel/SimpleQueueModelErrors.swift @@ -47,6 +47,7 @@ private let queueDeletedRecentlyIdentity = "AWS.SimpleQueueService.QueueDeletedR private let queueDoesNotExistIdentity = "AWS.SimpleQueueService.NonExistentQueue" private let queueNameExistsIdentity = "QueueAlreadyExists" private let receiptHandleIsInvalidIdentity = "ReceiptHandleIsInvalid" +private let resourceNotFoundIdentity = "ResourceNotFoundException" private let tooManyEntriesInBatchRequestIdentity = "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" private let unsupportedOperationIdentity = "AWS.SimpleQueueService.UnsupportedOperation" private let __accessDeniedIdentity = "AccessDenied" @@ -66,6 +67,7 @@ public enum SimpleQueueError: Swift.Error, Decodable { case queueDoesNotExist(QueueDoesNotExist) case queueNameExists(QueueNameExists) case receiptHandleIsInvalid(ReceiptHandleIsInvalid) + case resourceNotFound(ResourceNotFoundException) case tooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest) case unsupportedOperation(UnsupportedOperation) case accessDenied(message: String?) @@ -129,6 +131,9 @@ public enum SimpleQueueError: Swift.Error, Decodable { case receiptHandleIsInvalidIdentity: let errorPayload = try ReceiptHandleIsInvalid(from: decoder) self = SimpleQueueError.receiptHandleIsInvalid(errorPayload) + case resourceNotFoundIdentity: + let errorPayload = try ResourceNotFoundException(from: decoder) + self = SimpleQueueError.resourceNotFound(errorPayload) case tooManyEntriesInBatchRequestIdentity: let errorPayload = try TooManyEntriesInBatchRequest(from: decoder) self = SimpleQueueError.tooManyEntriesInBatchRequest(errorPayload) diff --git a/Sources/SimpleQueueModel/SimpleQueueModelOperations.swift b/Sources/SimpleQueueModel/SimpleQueueModelOperations.swift index 223f5a9..b3bbb2f 100644 --- a/Sources/SimpleQueueModel/SimpleQueueModelOperations.swift +++ b/Sources/SimpleQueueModel/SimpleQueueModelOperations.swift @@ -27,6 +27,7 @@ import Foundation */ public enum SimpleQueueModelOperations: String, Hashable, CustomStringConvertible { case addPermission = "AddPermission" + case cancelMessageMoveTask = "CancelMessageMoveTask" case changeMessageVisibility = "ChangeMessageVisibility" case changeMessageVisibilityBatch = "ChangeMessageVisibilityBatch" case createQueue = "CreateQueue" @@ -36,6 +37,7 @@ public enum SimpleQueueModelOperations: String, Hashable, CustomStringConvertibl case getQueueAttributes = "GetQueueAttributes" case getQueueUrl = "GetQueueUrl" case listDeadLetterSourceQueues = "ListDeadLetterSourceQueues" + case listMessageMoveTasks = "ListMessageMoveTasks" case listQueueTags = "ListQueueTags" case listQueues = "ListQueues" case purgeQueue = "PurgeQueue" @@ -44,6 +46,7 @@ public enum SimpleQueueModelOperations: String, Hashable, CustomStringConvertibl case sendMessage = "SendMessage" case sendMessageBatch = "SendMessageBatch" case setQueueAttributes = "SetQueueAttributes" + case startMessageMoveTask = "StartMessageMoveTask" case tagQueue = "TagQueue" case untagQueue = "UntagQueue" @@ -55,6 +58,8 @@ public enum SimpleQueueModelOperations: String, Hashable, CustomStringConvertibl switch self { case .addPermission: return "/" + case .cancelMessageMoveTask: + return "/" case .changeMessageVisibility: return "/" case .changeMessageVisibilityBatch: @@ -73,6 +78,8 @@ public enum SimpleQueueModelOperations: String, Hashable, CustomStringConvertibl return "/" case .listDeadLetterSourceQueues: return "/" + case .listMessageMoveTasks: + return "/" case .listQueueTags: return "/" case .listQueues: @@ -89,6 +96,8 @@ public enum SimpleQueueModelOperations: String, Hashable, CustomStringConvertibl return "/" case .setQueueAttributes: return "/" + case .startMessageMoveTask: + return "/" case .tagQueue: return "/" case .untagQueue: diff --git a/Sources/SimpleQueueModel/SimpleQueueModelStructures.swift b/Sources/SimpleQueueModel/SimpleQueueModelStructures.swift index 581df66..d755f25 100644 --- a/Sources/SimpleQueueModel/SimpleQueueModelStructures.swift +++ b/Sources/SimpleQueueModel/SimpleQueueModelStructures.swift @@ -94,6 +94,52 @@ public struct BatchResultErrorEntry: Codable, Equatable { } } +public struct CancelMessageMoveTaskRequest: Codable, Equatable { + public var taskHandle: String + + public init(taskHandle: String) { + self.taskHandle = taskHandle + } + + enum CodingKeys: String, CodingKey { + case taskHandle = "TaskHandle" + } + + public func validate() throws { + } +} + +public struct CancelMessageMoveTaskResult: Codable, Equatable { + public var approximateNumberOfMessagesMoved: Long? + + public init(approximateNumberOfMessagesMoved: Long? = nil) { + self.approximateNumberOfMessagesMoved = approximateNumberOfMessagesMoved + } + + enum CodingKeys: String, CodingKey { + case approximateNumberOfMessagesMoved = "ApproximateNumberOfMessagesMoved" + } + + public func validate() throws { + } +} + +public struct CancelMessageMoveTaskResultForCancelMessageMoveTask: Codable, Equatable { + public var cancelMessageMoveTaskResult: CancelMessageMoveTaskResult + + public init(cancelMessageMoveTaskResult: CancelMessageMoveTaskResult) { + self.cancelMessageMoveTaskResult = cancelMessageMoveTaskResult + } + + enum CodingKeys: String, CodingKey { + case cancelMessageMoveTaskResult = "CancelMessageMoveTaskResult" + } + + public func validate() throws { + try cancelMessageMoveTaskResult.validate() + } +} + public struct ChangeMessageVisibilityBatchRequest: Codable, Equatable { public var entries: ChangeMessageVisibilityBatchRequestEntryList public var queueUrl: String @@ -588,6 +634,103 @@ public struct ListDeadLetterSourceQueuesResultForListDeadLetterSourceQueues: Cod } } +public struct ListMessageMoveTasksRequest: Codable, Equatable { + public var maxResults: Integer? + public var sourceArn: String + + public init(maxResults: Integer? = nil, + sourceArn: String) { + self.maxResults = maxResults + self.sourceArn = sourceArn + } + + enum CodingKeys: String, CodingKey { + case maxResults = "MaxResults" + case sourceArn = "SourceArn" + } + + public func validate() throws { + } +} + +public struct ListMessageMoveTasksResult: Codable, Equatable { + public var results: ListMessageMoveTasksResultEntryList? + + public init(results: ListMessageMoveTasksResultEntryList? = nil) { + self.results = results + } + + enum CodingKeys: String, CodingKey { + case results = "Results" + } + + public func validate() throws { + } +} + +public struct ListMessageMoveTasksResultEntry: Codable, Equatable { + public var approximateNumberOfMessagesMoved: Long? + public var approximateNumberOfMessagesToMove: Long? + public var destinationArn: String? + public var failureReason: String? + public var maxNumberOfMessagesPerSecond: Integer? + public var sourceArn: String? + public var startedTimestamp: Long? + public var status: String? + public var taskHandle: String? + + public init(approximateNumberOfMessagesMoved: Long? = nil, + approximateNumberOfMessagesToMove: Long? = nil, + destinationArn: String? = nil, + failureReason: String? = nil, + maxNumberOfMessagesPerSecond: Integer? = nil, + sourceArn: String? = nil, + startedTimestamp: Long? = nil, + status: String? = nil, + taskHandle: String? = nil) { + self.approximateNumberOfMessagesMoved = approximateNumberOfMessagesMoved + self.approximateNumberOfMessagesToMove = approximateNumberOfMessagesToMove + self.destinationArn = destinationArn + self.failureReason = failureReason + self.maxNumberOfMessagesPerSecond = maxNumberOfMessagesPerSecond + self.sourceArn = sourceArn + self.startedTimestamp = startedTimestamp + self.status = status + self.taskHandle = taskHandle + } + + enum CodingKeys: String, CodingKey { + case approximateNumberOfMessagesMoved = "ApproximateNumberOfMessagesMoved" + case approximateNumberOfMessagesToMove = "ApproximateNumberOfMessagesToMove" + case destinationArn = "DestinationArn" + case failureReason = "FailureReason" + case maxNumberOfMessagesPerSecond = "MaxNumberOfMessagesPerSecond" + case sourceArn = "SourceArn" + case startedTimestamp = "StartedTimestamp" + case status = "Status" + case taskHandle = "TaskHandle" + } + + public func validate() throws { + } +} + +public struct ListMessageMoveTasksResultForListMessageMoveTasks: Codable, Equatable { + public var listMessageMoveTasksResult: ListMessageMoveTasksResult + + public init(listMessageMoveTasksResult: ListMessageMoveTasksResult) { + self.listMessageMoveTasksResult = listMessageMoveTasksResult + } + + enum CodingKeys: String, CodingKey { + case listMessageMoveTasksResult = "ListMessageMoveTasksResult" + } + + public func validate() throws { + try listMessageMoveTasksResult.validate() + } +} + public struct ListQueueTagsRequest: Codable, Equatable { public var queueUrl: String @@ -960,6 +1103,15 @@ public struct RemovePermissionRequest: Codable, Equatable { } } +public struct ResourceNotFoundException: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + public struct SendMessageBatchRequest: Codable, Equatable { public var entries: SendMessageBatchRequestEntryList public var queueUrl: String @@ -1193,6 +1345,60 @@ public struct SetQueueAttributesRequest: Codable, Equatable { } } +public struct StartMessageMoveTaskRequest: Codable, Equatable { + public var destinationArn: String? + public var maxNumberOfMessagesPerSecond: Integer? + public var sourceArn: String + + public init(destinationArn: String? = nil, + maxNumberOfMessagesPerSecond: Integer? = nil, + sourceArn: String) { + self.destinationArn = destinationArn + self.maxNumberOfMessagesPerSecond = maxNumberOfMessagesPerSecond + self.sourceArn = sourceArn + } + + enum CodingKeys: String, CodingKey { + case destinationArn = "DestinationArn" + case maxNumberOfMessagesPerSecond = "MaxNumberOfMessagesPerSecond" + case sourceArn = "SourceArn" + } + + public func validate() throws { + } +} + +public struct StartMessageMoveTaskResult: Codable, Equatable { + public var taskHandle: String? + + public init(taskHandle: String? = nil) { + self.taskHandle = taskHandle + } + + enum CodingKeys: String, CodingKey { + case taskHandle = "TaskHandle" + } + + public func validate() throws { + } +} + +public struct StartMessageMoveTaskResultForStartMessageMoveTask: Codable, Equatable { + public var startMessageMoveTaskResult: StartMessageMoveTaskResult + + public init(startMessageMoveTaskResult: StartMessageMoveTaskResult) { + self.startMessageMoveTaskResult = startMessageMoveTaskResult + } + + enum CodingKeys: String, CodingKey { + case startMessageMoveTaskResult = "StartMessageMoveTaskResult" + } + + public func validate() throws { + try startMessageMoveTaskResult.validate() + } +} + public struct TagQueueRequest: Codable, Equatable { public var queueUrl: String public var tags: TagMap diff --git a/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift b/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift index 96d3cc4..bf97d12 100644 --- a/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift +++ b/Sources/SimpleQueueModel/SimpleQueueModelTypes.swift @@ -87,6 +87,16 @@ public typealias DeleteMessageBatchResultEntryList = [DeleteMessageBatchResultEn */ public typealias Integer = Int +/** + Type definition for the ListMessageMoveTasksResultEntryList field. + */ +public typealias ListMessageMoveTasksResultEntryList = [ListMessageMoveTasksResultEntry] + +/** + Type definition for the Long field. + */ +public typealias Long = Int64 + /** Type definition for the MessageAttributeName field. */ @@ -124,6 +134,7 @@ public enum MessageSystemAttributeName: String, Codable, CustomStringConvertible case awstraceheader = "AWSTraceHeader" case approximatefirstreceivetimestamp = "ApproximateFirstReceiveTimestamp" case approximatereceivecount = "ApproximateReceiveCount" + case deadletterqueuesourcearn = "DeadLetterQueueSourceArn" case messagededuplicationid = "MessageDeduplicationId" case messagegroupid = "MessageGroupId" case senderid = "SenderId" diff --git a/Sources/SimpleWorkflowModel/SimpleWorkflowModelDefaultInstances.swift b/Sources/SimpleWorkflowModel/SimpleWorkflowModelDefaultInstances.swift index 81a1ccd..e5e3a66 100644 --- a/Sources/SimpleWorkflowModel/SimpleWorkflowModelDefaultInstances.swift +++ b/Sources/SimpleWorkflowModel/SimpleWorkflowModelDefaultInstances.swift @@ -1204,6 +1204,7 @@ public extension PollForDecisionTaskInput { maximumPageSize: nil, nextPageToken: nil, reverseOrder: nil, + startAtPreviousStartedEvent: nil, taskList: TaskList.__default) return defaultInstance diff --git a/Sources/SimpleWorkflowModel/SimpleWorkflowModelStructures.swift b/Sources/SimpleWorkflowModel/SimpleWorkflowModelStructures.swift index 57215f1..8b5882a 100644 --- a/Sources/SimpleWorkflowModel/SimpleWorkflowModelStructures.swift +++ b/Sources/SimpleWorkflowModel/SimpleWorkflowModelStructures.swift @@ -2358,6 +2358,7 @@ public struct PollForDecisionTaskInput: Codable, Equatable { public var maximumPageSize: PageSize? public var nextPageToken: PageToken? public var reverseOrder: ReverseOrder? + public var startAtPreviousStartedEvent: StartAtPreviousStartedEvent? public var taskList: TaskList public init(domain: DomainName, @@ -2365,12 +2366,14 @@ public struct PollForDecisionTaskInput: Codable, Equatable { maximumPageSize: PageSize? = nil, nextPageToken: PageToken? = nil, reverseOrder: ReverseOrder? = nil, + startAtPreviousStartedEvent: StartAtPreviousStartedEvent? = nil, taskList: TaskList) { self.domain = domain self.identity = identity self.maximumPageSize = maximumPageSize self.nextPageToken = nextPageToken self.reverseOrder = reverseOrder + self.startAtPreviousStartedEvent = startAtPreviousStartedEvent self.taskList = taskList } @@ -2380,6 +2383,7 @@ public struct PollForDecisionTaskInput: Codable, Equatable { case maximumPageSize case nextPageToken case reverseOrder + case startAtPreviousStartedEvent case taskList } diff --git a/Sources/SimpleWorkflowModel/SimpleWorkflowModelTypes.swift b/Sources/SimpleWorkflowModel/SimpleWorkflowModelTypes.swift index 66434f0..8489d33 100644 --- a/Sources/SimpleWorkflowModel/SimpleWorkflowModelTypes.swift +++ b/Sources/SimpleWorkflowModel/SimpleWorkflowModelTypes.swift @@ -559,6 +559,11 @@ public enum SignalExternalWorkflowExecutionFailedCause: String, Codable, CustomS */ public typealias SignalName = String +/** + Type definition for the StartAtPreviousStartedEvent field. + */ +public typealias StartAtPreviousStartedEvent = Bool + /** Enumeration restricting the values of the StartChildWorkflowExecutionFailedCause field. */ diff --git a/Sources/StepFunctionsClient/AWSStepFunctionsClient.swift b/Sources/StepFunctionsClient/AWSStepFunctionsClient.swift index 95d638f..e1e8a6c 100644 --- a/Sources/StepFunctionsClient/AWSStepFunctionsClient.swift +++ b/Sources/StepFunctionsClient/AWSStepFunctionsClient.swift @@ -245,7 +245,7 @@ public struct AWSStepFunctionsClient StepFunctionsModel.CreateStateMachineOutput { @@ -307,6 +307,76 @@ public struct AWSStepFunctionsClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.createStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = CreateStateMachineAliasOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the CreateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAliasSync( + input: StepFunctionsModel.CreateStateMachineAliasInput) throws -> StepFunctionsModel.CreateStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.createStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = CreateStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteActivity operation returning immediately and passing the response to a callback. @@ -447,6 +517,146 @@ public struct AWSStepFunctionsClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.deleteStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = DeleteStateMachineAliasOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DeleteStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAliasSync( + input: StepFunctionsModel.DeleteStateMachineAliasInput) throws -> StepFunctionsModel.DeleteStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.deleteStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = DeleteStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the DeleteStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - completion: The DeleteStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersionAsync( + input: StepFunctionsModel.DeleteStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.deleteStateMachineVersion.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteStateMachineVersion, + handlerDelegate: handlerDelegate) + let requestInput = DeleteStateMachineVersionOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DeleteStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersionSync( + input: StepFunctionsModel.DeleteStateMachineVersionInput) throws -> StepFunctionsModel.DeleteStateMachineVersionOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.deleteStateMachineVersion.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteStateMachineVersion, + handlerDelegate: handlerDelegate) + let requestInput = DeleteStateMachineVersionOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeActivity operation returning immediately and passing the response to a callback. @@ -727,6 +937,76 @@ public struct AWSStepFunctionsClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.describeStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = DescribeStateMachineAliasOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the DescribeStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAliasSync( + input: StepFunctionsModel.DescribeStateMachineAliasInput) throws -> StepFunctionsModel.DescribeStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.describeStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = DescribeStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeStateMachineForExecution operation returning immediately and passing the response to a callback. @@ -1147,6 +1427,146 @@ public struct AWSStepFunctionsClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.listStateMachineAliases.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listStateMachineAliases, + handlerDelegate: handlerDelegate) + let requestInput = ListStateMachineAliasesOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the ListStateMachineAliases operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliasesSync( + input: StepFunctionsModel.ListStateMachineAliasesInput) throws -> StepFunctionsModel.ListStateMachineAliasesOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.listStateMachineAliases.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listStateMachineAliases, + handlerDelegate: handlerDelegate) + let requestInput = ListStateMachineAliasesOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the ListStateMachineVersions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - completion: The ListStateMachineVersionsOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineVersionsOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersionsAsync( + input: StepFunctionsModel.ListStateMachineVersionsInput, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.listStateMachineVersions.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listStateMachineVersions, + handlerDelegate: handlerDelegate) + let requestInput = ListStateMachineVersionsOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the ListStateMachineVersions operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersionsSync( + input: StepFunctionsModel.ListStateMachineVersionsInput) throws -> StepFunctionsModel.ListStateMachineVersionsOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.listStateMachineVersions.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listStateMachineVersions, + handlerDelegate: handlerDelegate) + let requestInput = ListStateMachineVersionsOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the ListStateMachines operation returning immediately and passing the response to a callback. @@ -1287,6 +1707,76 @@ public struct AWSStepFunctionsClient) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.publishStateMachineVersion.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.publishStateMachineVersion, + handlerDelegate: handlerDelegate) + let requestInput = PublishStateMachineVersionOperationHTTPRequestInput(encodable: input) + + _ = try httpClient.executeOperationAsyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + completion: completion, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } + + /** + Invokes the PublishStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersionSync( + input: StepFunctionsModel.PublishStateMachineVersionInput) throws -> StepFunctionsModel.PublishStateMachineVersionOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.publishStateMachineVersion.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.publishStateMachineVersion, + handlerDelegate: handlerDelegate) + let requestInput = PublishStateMachineVersionOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the SendTaskFailure operation returning immediately and passing the response to a callback. @@ -1867,9 +2357,79 @@ public struct AWSStepFunctionsClient StepFunctionsModel.UpdateMapRunOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.updateMapRun.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateMapRun, + handlerDelegate: handlerDelegate) + let requestInput = UpdateMapRunOperationHTTPRequestInput(encodable: input) + + do { + return try httpClient.executeSyncRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the UpdateStateMachine operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UpdateStateMachineInput object being passed to this operation. + - completion: The UpdateStateMachineOutput object or an error will be passed to this + callback when the operation is complete. The UpdateStateMachineOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func updateStateMachineAsync( + input: StepFunctionsModel.UpdateStateMachineInput, + completion: @escaping (Result) -> ()) throws { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.updateStateMachine.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachine, handlerDelegate: handlerDelegate) - let requestInput = UpdateMapRunOperationHTTPRequestInput(encodable: input) + let requestInput = UpdateStateMachineOperationHTTPRequestInput(encodable: input) _ = try httpClient.executeOperationAsyncRetriableWithOutput( endpointPath: "/", @@ -1882,26 +2442,26 @@ public struct AWSStepFunctionsClient StepFunctionsModel.UpdateMapRunOutput { + public func updateStateMachineSync( + input: StepFunctionsModel.UpdateStateMachineInput) throws -> StepFunctionsModel.UpdateStateMachineOutput { let handlerDelegate = AWSClientInvocationDelegate( credentialsProvider: credentialsProvider, awsRegion: awsRegion, service: service, - operation: StepFunctionsModelOperations.updateMapRun.rawValue, + operation: StepFunctionsModelOperations.updateStateMachine.rawValue, target: target) - let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateMapRun, + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachine, handlerDelegate: handlerDelegate) - let requestInput = UpdateMapRunOperationHTTPRequestInput(encodable: input) + let requestInput = UpdateStateMachineOperationHTTPRequestInput(encodable: input) do { return try httpClient.executeSyncRetriableWithOutput( @@ -1918,28 +2478,28 @@ public struct AWSStepFunctionsClient) -> ()) throws { + public func updateStateMachineAliasAsync( + input: StepFunctionsModel.UpdateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { let handlerDelegate = AWSClientInvocationDelegate( credentialsProvider: credentialsProvider, awsRegion: awsRegion, service: service, - operation: StepFunctionsModelOperations.updateStateMachine.rawValue, + operation: StepFunctionsModelOperations.updateStateMachineAlias.rawValue, target: target) - let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachine, + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachineAlias, handlerDelegate: handlerDelegate) - let requestInput = UpdateStateMachineOperationHTTPRequestInput(encodable: input) + let requestInput = UpdateStateMachineAliasOperationHTTPRequestInput(encodable: input) _ = try httpClient.executeOperationAsyncRetriableWithOutput( endpointPath: "/", @@ -1952,26 +2512,26 @@ public struct AWSStepFunctionsClient StepFunctionsModel.UpdateStateMachineOutput { + public func updateStateMachineAliasSync( + input: StepFunctionsModel.UpdateStateMachineAliasInput) throws -> StepFunctionsModel.UpdateStateMachineAliasOutput { let handlerDelegate = AWSClientInvocationDelegate( credentialsProvider: credentialsProvider, awsRegion: awsRegion, service: service, - operation: StepFunctionsModelOperations.updateStateMachine.rawValue, + operation: StepFunctionsModelOperations.updateStateMachineAlias.rawValue, target: target) - let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachine, + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachineAlias, handlerDelegate: handlerDelegate) - let requestInput = UpdateStateMachineOperationHTTPRequestInput(encodable: input) + let requestInput = UpdateStateMachineAliasOperationHTTPRequestInput(encodable: input) do { return try httpClient.executeSyncRetriableWithOutput( @@ -2032,7 +2592,7 @@ public struct AWSStepFunctionsClient StepFunctionsModel.CreateStateMachineOutput { @@ -2061,6 +2621,42 @@ public struct AWSStepFunctionsClient StepFunctionsModel.CreateStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.createStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.createStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = CreateStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the DeleteActivity operation suspending until the response is available before returning. @@ -2133,6 +2729,78 @@ public struct AWSStepFunctionsClient StepFunctionsModel.DeleteStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.deleteStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = DeleteStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the DeleteStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersion( + input: StepFunctionsModel.DeleteStateMachineVersionInput) async throws -> StepFunctionsModel.DeleteStateMachineVersionOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.deleteStateMachineVersion.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.deleteStateMachineVersion, + handlerDelegate: handlerDelegate) + let requestInput = DeleteStateMachineVersionOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeActivity operation suspending until the response is available before returning. @@ -2277,6 +2945,42 @@ public struct AWSStepFunctionsClient StepFunctionsModel.DescribeStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.describeStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.describeStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = DescribeStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the DescribeStateMachineForExecution operation suspending until the response is available before returning. @@ -2493,6 +3197,78 @@ public struct AWSStepFunctionsClient StepFunctionsModel.ListStateMachineAliasesOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.listStateMachineAliases.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listStateMachineAliases, + handlerDelegate: handlerDelegate) + let requestInput = ListStateMachineAliasesOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + + /** + Invokes the ListStateMachineVersions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersions( + input: StepFunctionsModel.ListStateMachineVersionsInput) async throws -> StepFunctionsModel.ListStateMachineVersionsOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.listStateMachineVersions.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.listStateMachineVersions, + handlerDelegate: handlerDelegate) + let requestInput = ListStateMachineVersionsOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the ListStateMachines operation suspending until the response is available before returning. @@ -2565,6 +3341,42 @@ public struct AWSStepFunctionsClient StepFunctionsModel.PublishStateMachineVersionOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.publishStateMachineVersion.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.publishStateMachineVersion, + handlerDelegate: handlerDelegate) + let requestInput = PublishStateMachineVersionOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } + /** Invokes the SendTaskFailure operation suspending until the response is available before returning. @@ -2896,7 +3708,7 @@ public struct AWSStepFunctionsClient StepFunctionsModel.UpdateStateMachineOutput { @@ -2924,5 +3736,41 @@ public struct AWSStepFunctionsClient StepFunctionsModel.UpdateStateMachineAliasOutput { + let handlerDelegate = AWSClientInvocationDelegate( + credentialsProvider: credentialsProvider, + awsRegion: awsRegion, + service: service, + operation: StepFunctionsModelOperations.updateStateMachineAlias.rawValue, + target: target) + + let invocationContext = HTTPClientInvocationContext(reporting: self.invocationsReporting.updateStateMachineAlias, + handlerDelegate: handlerDelegate) + let requestInput = UpdateStateMachineAliasOperationHTTPRequestInput(encodable: input) + + do { + return try await httpClient.executeRetriableWithOutput( + endpointPath: "/", + httpMethod: .POST, + input: requestInput, + invocationContext: invocationContext, + retryConfiguration: retryConfiguration, + retryOnError: retryOnErrorProvider) + } catch { + let typedError: StepFunctionsError = error.asTypedError() + throw typedError + } + } #endif } diff --git a/Sources/StepFunctionsClient/MockStepFunctionsClient.swift b/Sources/StepFunctionsClient/MockStepFunctionsClient.swift index 14a73b3..c4ad36a 100644 --- a/Sources/StepFunctionsClient/MockStepFunctionsClient.swift +++ b/Sources/StepFunctionsClient/MockStepFunctionsClient.swift @@ -33,10 +33,16 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { let createActivitySyncOverride: CreateActivitySyncType? let createStateMachineAsyncOverride: CreateStateMachineAsyncType? let createStateMachineSyncOverride: CreateStateMachineSyncType? + let createStateMachineAliasAsyncOverride: CreateStateMachineAliasAsyncType? + let createStateMachineAliasSyncOverride: CreateStateMachineAliasSyncType? let deleteActivityAsyncOverride: DeleteActivityAsyncType? let deleteActivitySyncOverride: DeleteActivitySyncType? let deleteStateMachineAsyncOverride: DeleteStateMachineAsyncType? let deleteStateMachineSyncOverride: DeleteStateMachineSyncType? + let deleteStateMachineAliasAsyncOverride: DeleteStateMachineAliasAsyncType? + let deleteStateMachineAliasSyncOverride: DeleteStateMachineAliasSyncType? + let deleteStateMachineVersionAsyncOverride: DeleteStateMachineVersionAsyncType? + let deleteStateMachineVersionSyncOverride: DeleteStateMachineVersionSyncType? let describeActivityAsyncOverride: DescribeActivityAsyncType? let describeActivitySyncOverride: DescribeActivitySyncType? let describeExecutionAsyncOverride: DescribeExecutionAsyncType? @@ -45,6 +51,8 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { let describeMapRunSyncOverride: DescribeMapRunSyncType? let describeStateMachineAsyncOverride: DescribeStateMachineAsyncType? let describeStateMachineSyncOverride: DescribeStateMachineSyncType? + let describeStateMachineAliasAsyncOverride: DescribeStateMachineAliasAsyncType? + let describeStateMachineAliasSyncOverride: DescribeStateMachineAliasSyncType? let describeStateMachineForExecutionAsyncOverride: DescribeStateMachineForExecutionAsyncType? let describeStateMachineForExecutionSyncOverride: DescribeStateMachineForExecutionSyncType? let getActivityTaskAsyncOverride: GetActivityTaskAsyncType? @@ -57,10 +65,16 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { let listExecutionsSyncOverride: ListExecutionsSyncType? let listMapRunsAsyncOverride: ListMapRunsAsyncType? let listMapRunsSyncOverride: ListMapRunsSyncType? + let listStateMachineAliasesAsyncOverride: ListStateMachineAliasesAsyncType? + let listStateMachineAliasesSyncOverride: ListStateMachineAliasesSyncType? + let listStateMachineVersionsAsyncOverride: ListStateMachineVersionsAsyncType? + let listStateMachineVersionsSyncOverride: ListStateMachineVersionsSyncType? let listStateMachinesAsyncOverride: ListStateMachinesAsyncType? let listStateMachinesSyncOverride: ListStateMachinesSyncType? let listTagsForResourceAsyncOverride: ListTagsForResourceAsyncType? let listTagsForResourceSyncOverride: ListTagsForResourceSyncType? + let publishStateMachineVersionAsyncOverride: PublishStateMachineVersionAsyncType? + let publishStateMachineVersionSyncOverride: PublishStateMachineVersionSyncType? let sendTaskFailureAsyncOverride: SendTaskFailureAsyncType? let sendTaskFailureSyncOverride: SendTaskFailureSyncType? let sendTaskHeartbeatAsyncOverride: SendTaskHeartbeatAsyncType? @@ -81,6 +95,8 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { let updateMapRunSyncOverride: UpdateMapRunSyncType? let updateStateMachineAsyncOverride: UpdateStateMachineAsyncType? let updateStateMachineSyncOverride: UpdateStateMachineSyncType? + let updateStateMachineAliasAsyncOverride: UpdateStateMachineAliasAsyncType? + let updateStateMachineAliasSyncOverride: UpdateStateMachineAliasSyncType? /** Initializer that creates an instance of this clients. The behavior of individual @@ -91,10 +107,16 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { createActivitySync: CreateActivitySyncType? = nil, createStateMachineAsync: CreateStateMachineAsyncType? = nil, createStateMachineSync: CreateStateMachineSyncType? = nil, + createStateMachineAliasAsync: CreateStateMachineAliasAsyncType? = nil, + createStateMachineAliasSync: CreateStateMachineAliasSyncType? = nil, deleteActivityAsync: DeleteActivityAsyncType? = nil, deleteActivitySync: DeleteActivitySyncType? = nil, deleteStateMachineAsync: DeleteStateMachineAsyncType? = nil, deleteStateMachineSync: DeleteStateMachineSyncType? = nil, + deleteStateMachineAliasAsync: DeleteStateMachineAliasAsyncType? = nil, + deleteStateMachineAliasSync: DeleteStateMachineAliasSyncType? = nil, + deleteStateMachineVersionAsync: DeleteStateMachineVersionAsyncType? = nil, + deleteStateMachineVersionSync: DeleteStateMachineVersionSyncType? = nil, describeActivityAsync: DescribeActivityAsyncType? = nil, describeActivitySync: DescribeActivitySyncType? = nil, describeExecutionAsync: DescribeExecutionAsyncType? = nil, @@ -103,6 +125,8 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { describeMapRunSync: DescribeMapRunSyncType? = nil, describeStateMachineAsync: DescribeStateMachineAsyncType? = nil, describeStateMachineSync: DescribeStateMachineSyncType? = nil, + describeStateMachineAliasAsync: DescribeStateMachineAliasAsyncType? = nil, + describeStateMachineAliasSync: DescribeStateMachineAliasSyncType? = nil, describeStateMachineForExecutionAsync: DescribeStateMachineForExecutionAsyncType? = nil, describeStateMachineForExecutionSync: DescribeStateMachineForExecutionSyncType? = nil, getActivityTaskAsync: GetActivityTaskAsyncType? = nil, @@ -115,10 +139,16 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { listExecutionsSync: ListExecutionsSyncType? = nil, listMapRunsAsync: ListMapRunsAsyncType? = nil, listMapRunsSync: ListMapRunsSyncType? = nil, + listStateMachineAliasesAsync: ListStateMachineAliasesAsyncType? = nil, + listStateMachineAliasesSync: ListStateMachineAliasesSyncType? = nil, + listStateMachineVersionsAsync: ListStateMachineVersionsAsyncType? = nil, + listStateMachineVersionsSync: ListStateMachineVersionsSyncType? = nil, listStateMachinesAsync: ListStateMachinesAsyncType? = nil, listStateMachinesSync: ListStateMachinesSyncType? = nil, listTagsForResourceAsync: ListTagsForResourceAsyncType? = nil, listTagsForResourceSync: ListTagsForResourceSyncType? = nil, + publishStateMachineVersionAsync: PublishStateMachineVersionAsyncType? = nil, + publishStateMachineVersionSync: PublishStateMachineVersionSyncType? = nil, sendTaskFailureAsync: SendTaskFailureAsyncType? = nil, sendTaskFailureSync: SendTaskFailureSyncType? = nil, sendTaskHeartbeatAsync: SendTaskHeartbeatAsyncType? = nil, @@ -138,15 +168,23 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { updateMapRunAsync: UpdateMapRunAsyncType? = nil, updateMapRunSync: UpdateMapRunSyncType? = nil, updateStateMachineAsync: UpdateStateMachineAsyncType? = nil, - updateStateMachineSync: UpdateStateMachineSyncType? = nil) { + updateStateMachineSync: UpdateStateMachineSyncType? = nil, + updateStateMachineAliasAsync: UpdateStateMachineAliasAsyncType? = nil, + updateStateMachineAliasSync: UpdateStateMachineAliasSyncType? = nil) { self.createActivityAsyncOverride = createActivityAsync self.createActivitySyncOverride = createActivitySync self.createStateMachineAsyncOverride = createStateMachineAsync self.createStateMachineSyncOverride = createStateMachineSync + self.createStateMachineAliasAsyncOverride = createStateMachineAliasAsync + self.createStateMachineAliasSyncOverride = createStateMachineAliasSync self.deleteActivityAsyncOverride = deleteActivityAsync self.deleteActivitySyncOverride = deleteActivitySync self.deleteStateMachineAsyncOverride = deleteStateMachineAsync self.deleteStateMachineSyncOverride = deleteStateMachineSync + self.deleteStateMachineAliasAsyncOverride = deleteStateMachineAliasAsync + self.deleteStateMachineAliasSyncOverride = deleteStateMachineAliasSync + self.deleteStateMachineVersionAsyncOverride = deleteStateMachineVersionAsync + self.deleteStateMachineVersionSyncOverride = deleteStateMachineVersionSync self.describeActivityAsyncOverride = describeActivityAsync self.describeActivitySyncOverride = describeActivitySync self.describeExecutionAsyncOverride = describeExecutionAsync @@ -155,6 +193,8 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { self.describeMapRunSyncOverride = describeMapRunSync self.describeStateMachineAsyncOverride = describeStateMachineAsync self.describeStateMachineSyncOverride = describeStateMachineSync + self.describeStateMachineAliasAsyncOverride = describeStateMachineAliasAsync + self.describeStateMachineAliasSyncOverride = describeStateMachineAliasSync self.describeStateMachineForExecutionAsyncOverride = describeStateMachineForExecutionAsync self.describeStateMachineForExecutionSyncOverride = describeStateMachineForExecutionSync self.getActivityTaskAsyncOverride = getActivityTaskAsync @@ -167,10 +207,16 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { self.listExecutionsSyncOverride = listExecutionsSync self.listMapRunsAsyncOverride = listMapRunsAsync self.listMapRunsSyncOverride = listMapRunsSync + self.listStateMachineAliasesAsyncOverride = listStateMachineAliasesAsync + self.listStateMachineAliasesSyncOverride = listStateMachineAliasesSync + self.listStateMachineVersionsAsyncOverride = listStateMachineVersionsAsync + self.listStateMachineVersionsSyncOverride = listStateMachineVersionsSync self.listStateMachinesAsyncOverride = listStateMachinesAsync self.listStateMachinesSyncOverride = listStateMachinesSync self.listTagsForResourceAsyncOverride = listTagsForResourceAsync self.listTagsForResourceSyncOverride = listTagsForResourceSync + self.publishStateMachineVersionAsyncOverride = publishStateMachineVersionAsync + self.publishStateMachineVersionSyncOverride = publishStateMachineVersionSync self.sendTaskFailureAsyncOverride = sendTaskFailureAsync self.sendTaskFailureSyncOverride = sendTaskFailureSync self.sendTaskHeartbeatAsyncOverride = sendTaskHeartbeatAsync @@ -191,6 +237,8 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { self.updateMapRunSyncOverride = updateMapRunSync self.updateStateMachineAsyncOverride = updateStateMachineAsync self.updateStateMachineSyncOverride = updateStateMachineSync + self.updateStateMachineAliasAsyncOverride = updateStateMachineAliasAsync + self.updateStateMachineAliasSyncOverride = updateStateMachineAliasSync } /** @@ -241,7 +289,7 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { - completion: The CreateStateMachineOutput object or an error will be passed to this callback when the operation is complete. The CreateStateMachineOutput object will be validated before being returned to caller. - The possible errors are: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ public func createStateMachineAsync( input: StepFunctionsModel.CreateStateMachineInput, @@ -262,7 +310,7 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ public func createStateMachineSync( input: StepFunctionsModel.CreateStateMachineInput) throws -> StepFunctionsModel.CreateStateMachineOutput { @@ -273,6 +321,46 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { return CreateStateMachineOutput.__default } + /** + Invokes the CreateStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - completion: The CreateStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The CreateStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAliasAsync( + input: StepFunctionsModel.CreateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let createStateMachineAliasAsyncOverride = createStateMachineAliasAsyncOverride { + return try createStateMachineAliasAsyncOverride(input, completion) + } + + let result = CreateStateMachineAliasOutput.__default + + completion(.success(result)) + } + + /** + Invokes the CreateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAliasSync( + input: StepFunctionsModel.CreateStateMachineAliasInput) throws -> StepFunctionsModel.CreateStateMachineAliasOutput { + if let createStateMachineAliasSyncOverride = createStateMachineAliasSyncOverride { + return try createStateMachineAliasSyncOverride(input) + } + + return CreateStateMachineAliasOutput.__default + } + /** Invokes the DeleteActivity operation returning immediately and passing the response to a callback. @@ -353,6 +441,86 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { return DeleteStateMachineOutput.__default } + /** + Invokes the DeleteStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - completion: The DeleteStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAliasAsync( + input: StepFunctionsModel.DeleteStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let deleteStateMachineAliasAsyncOverride = deleteStateMachineAliasAsyncOverride { + return try deleteStateMachineAliasAsyncOverride(input, completion) + } + + let result = DeleteStateMachineAliasOutput.__default + + completion(.success(result)) + } + + /** + Invokes the DeleteStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAliasSync( + input: StepFunctionsModel.DeleteStateMachineAliasInput) throws -> StepFunctionsModel.DeleteStateMachineAliasOutput { + if let deleteStateMachineAliasSyncOverride = deleteStateMachineAliasSyncOverride { + return try deleteStateMachineAliasSyncOverride(input) + } + + return DeleteStateMachineAliasOutput.__default + } + + /** + Invokes the DeleteStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - completion: The DeleteStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersionAsync( + input: StepFunctionsModel.DeleteStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws { + if let deleteStateMachineVersionAsyncOverride = deleteStateMachineVersionAsyncOverride { + return try deleteStateMachineVersionAsyncOverride(input, completion) + } + + let result = DeleteStateMachineVersionOutput.__default + + completion(.success(result)) + } + + /** + Invokes the DeleteStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersionSync( + input: StepFunctionsModel.DeleteStateMachineVersionInput) throws -> StepFunctionsModel.DeleteStateMachineVersionOutput { + if let deleteStateMachineVersionSyncOverride = deleteStateMachineVersionSyncOverride { + return try deleteStateMachineVersionSyncOverride(input) + } + + return DeleteStateMachineVersionOutput.__default + } + /** Invokes the DescribeActivity operation returning immediately and passing the response to a callback. @@ -513,6 +681,46 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { return DescribeStateMachineOutput.__default } + /** + Invokes the DescribeStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - completion: The DescribeStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The DescribeStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAliasAsync( + input: StepFunctionsModel.DescribeStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let describeStateMachineAliasAsyncOverride = describeStateMachineAliasAsyncOverride { + return try describeStateMachineAliasAsyncOverride(input, completion) + } + + let result = DescribeStateMachineAliasOutput.__default + + completion(.success(result)) + } + + /** + Invokes the DescribeStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAliasSync( + input: StepFunctionsModel.DescribeStateMachineAliasInput) throws -> StepFunctionsModel.DescribeStateMachineAliasOutput { + if let describeStateMachineAliasSyncOverride = describeStateMachineAliasSyncOverride { + return try describeStateMachineAliasSyncOverride(input) + } + + return DescribeStateMachineAliasOutput.__default + } + /** Invokes the DescribeStateMachineForExecution operation returning immediately and passing the response to a callback. @@ -753,6 +961,86 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { return ListMapRunsOutput.__default } + /** + Invokes the ListStateMachineAliases operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - completion: The ListStateMachineAliasesOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineAliasesOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliasesAsync( + input: StepFunctionsModel.ListStateMachineAliasesInput, + completion: @escaping (Result) -> ()) throws { + if let listStateMachineAliasesAsyncOverride = listStateMachineAliasesAsyncOverride { + return try listStateMachineAliasesAsyncOverride(input, completion) + } + + let result = ListStateMachineAliasesOutput.__default + + completion(.success(result)) + } + + /** + Invokes the ListStateMachineAliases operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliasesSync( + input: StepFunctionsModel.ListStateMachineAliasesInput) throws -> StepFunctionsModel.ListStateMachineAliasesOutput { + if let listStateMachineAliasesSyncOverride = listStateMachineAliasesSyncOverride { + return try listStateMachineAliasesSyncOverride(input) + } + + return ListStateMachineAliasesOutput.__default + } + + /** + Invokes the ListStateMachineVersions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - completion: The ListStateMachineVersionsOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineVersionsOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersionsAsync( + input: StepFunctionsModel.ListStateMachineVersionsInput, + completion: @escaping (Result) -> ()) throws { + if let listStateMachineVersionsAsyncOverride = listStateMachineVersionsAsyncOverride { + return try listStateMachineVersionsAsyncOverride(input, completion) + } + + let result = ListStateMachineVersionsOutput.__default + + completion(.success(result)) + } + + /** + Invokes the ListStateMachineVersions operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersionsSync( + input: StepFunctionsModel.ListStateMachineVersionsInput) throws -> StepFunctionsModel.ListStateMachineVersionsOutput { + if let listStateMachineVersionsSyncOverride = listStateMachineVersionsSyncOverride { + return try listStateMachineVersionsSyncOverride(input) + } + + return ListStateMachineVersionsOutput.__default + } + /** Invokes the ListStateMachines operation returning immediately and passing the response to a callback. @@ -833,6 +1121,46 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { return ListTagsForResourceOutput.__default } + /** + Invokes the PublishStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - completion: The PublishStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The PublishStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersionAsync( + input: StepFunctionsModel.PublishStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws { + if let publishStateMachineVersionAsyncOverride = publishStateMachineVersionAsyncOverride { + return try publishStateMachineVersionAsyncOverride(input, completion) + } + + let result = PublishStateMachineVersionOutput.__default + + completion(.success(result)) + } + + /** + Invokes the PublishStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersionSync( + input: StepFunctionsModel.PublishStateMachineVersionInput) throws -> StepFunctionsModel.PublishStateMachineVersionOutput { + if let publishStateMachineVersionSyncOverride = publishStateMachineVersionSyncOverride { + return try publishStateMachineVersionSyncOverride(input) + } + + return PublishStateMachineVersionOutput.__default + } + /** Invokes the SendTaskFailure operation returning immediately and passing the response to a callback. @@ -1201,7 +1529,7 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { - completion: The UpdateStateMachineOutput object or an error will be passed to this callback when the operation is complete. The UpdateStateMachineOutput object will be validated before being returned to caller. - The possible errors are: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ public func updateStateMachineAsync( input: StepFunctionsModel.UpdateStateMachineInput, @@ -1222,7 +1550,7 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ public func updateStateMachineSync( input: StepFunctionsModel.UpdateStateMachineInput) throws -> StepFunctionsModel.UpdateStateMachineOutput { @@ -1232,4 +1560,44 @@ public struct MockStepFunctionsClient: StepFunctionsClientProtocol { return UpdateStateMachineOutput.__default } + + /** + Invokes the UpdateStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - completion: The UpdateStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The UpdateStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, resourceNotFound, validation. + */ + public func updateStateMachineAliasAsync( + input: StepFunctionsModel.UpdateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let updateStateMachineAliasAsyncOverride = updateStateMachineAliasAsyncOverride { + return try updateStateMachineAliasAsyncOverride(input, completion) + } + + let result = UpdateStateMachineAliasOutput.__default + + completion(.success(result)) + } + + /** + Invokes the UpdateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func updateStateMachineAliasSync( + input: StepFunctionsModel.UpdateStateMachineAliasInput) throws -> StepFunctionsModel.UpdateStateMachineAliasOutput { + if let updateStateMachineAliasSyncOverride = updateStateMachineAliasSyncOverride { + return try updateStateMachineAliasSyncOverride(input) + } + + return UpdateStateMachineAliasOutput.__default + } } diff --git a/Sources/StepFunctionsClient/MockStepFunctionsClientV2.swift b/Sources/StepFunctionsClient/MockStepFunctionsClientV2.swift index abc80fc..8e8b46a 100644 --- a/Sources/StepFunctionsClient/MockStepFunctionsClientV2.swift +++ b/Sources/StepFunctionsClient/MockStepFunctionsClientV2.swift @@ -32,20 +32,27 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { #if (os(Linux) && compiler(>=5.5)) || (!os(Linux) && compiler(>=5.5.2)) && canImport(_Concurrency) let createActivityOverride: CreateActivityFunctionType? let createStateMachineOverride: CreateStateMachineFunctionType? + let createStateMachineAliasOverride: CreateStateMachineAliasFunctionType? let deleteActivityOverride: DeleteActivityFunctionType? let deleteStateMachineOverride: DeleteStateMachineFunctionType? + let deleteStateMachineAliasOverride: DeleteStateMachineAliasFunctionType? + let deleteStateMachineVersionOverride: DeleteStateMachineVersionFunctionType? let describeActivityOverride: DescribeActivityFunctionType? let describeExecutionOverride: DescribeExecutionFunctionType? let describeMapRunOverride: DescribeMapRunFunctionType? let describeStateMachineOverride: DescribeStateMachineFunctionType? + let describeStateMachineAliasOverride: DescribeStateMachineAliasFunctionType? let describeStateMachineForExecutionOverride: DescribeStateMachineForExecutionFunctionType? let getActivityTaskOverride: GetActivityTaskFunctionType? let getExecutionHistoryOverride: GetExecutionHistoryFunctionType? let listActivitiesOverride: ListActivitiesFunctionType? let listExecutionsOverride: ListExecutionsFunctionType? let listMapRunsOverride: ListMapRunsFunctionType? + let listStateMachineAliasesOverride: ListStateMachineAliasesFunctionType? + let listStateMachineVersionsOverride: ListStateMachineVersionsFunctionType? let listStateMachinesOverride: ListStateMachinesFunctionType? let listTagsForResourceOverride: ListTagsForResourceFunctionType? + let publishStateMachineVersionOverride: PublishStateMachineVersionFunctionType? let sendTaskFailureOverride: SendTaskFailureFunctionType? let sendTaskHeartbeatOverride: SendTaskHeartbeatFunctionType? let sendTaskSuccessOverride: SendTaskSuccessFunctionType? @@ -56,6 +63,7 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { let untagResourceOverride: UntagResourceFunctionType? let updateMapRunOverride: UpdateMapRunFunctionType? let updateStateMachineOverride: UpdateStateMachineFunctionType? + let updateStateMachineAliasOverride: UpdateStateMachineAliasFunctionType? /** Initializer that creates an instance of this clients. The behavior of individual @@ -64,20 +72,27 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { public init( createActivity: CreateActivityFunctionType? = nil, createStateMachine: CreateStateMachineFunctionType? = nil, + createStateMachineAlias: CreateStateMachineAliasFunctionType? = nil, deleteActivity: DeleteActivityFunctionType? = nil, deleteStateMachine: DeleteStateMachineFunctionType? = nil, + deleteStateMachineAlias: DeleteStateMachineAliasFunctionType? = nil, + deleteStateMachineVersion: DeleteStateMachineVersionFunctionType? = nil, describeActivity: DescribeActivityFunctionType? = nil, describeExecution: DescribeExecutionFunctionType? = nil, describeMapRun: DescribeMapRunFunctionType? = nil, describeStateMachine: DescribeStateMachineFunctionType? = nil, + describeStateMachineAlias: DescribeStateMachineAliasFunctionType? = nil, describeStateMachineForExecution: DescribeStateMachineForExecutionFunctionType? = nil, getActivityTask: GetActivityTaskFunctionType? = nil, getExecutionHistory: GetExecutionHistoryFunctionType? = nil, listActivities: ListActivitiesFunctionType? = nil, listExecutions: ListExecutionsFunctionType? = nil, listMapRuns: ListMapRunsFunctionType? = nil, + listStateMachineAliases: ListStateMachineAliasesFunctionType? = nil, + listStateMachineVersions: ListStateMachineVersionsFunctionType? = nil, listStateMachines: ListStateMachinesFunctionType? = nil, listTagsForResource: ListTagsForResourceFunctionType? = nil, + publishStateMachineVersion: PublishStateMachineVersionFunctionType? = nil, sendTaskFailure: SendTaskFailureFunctionType? = nil, sendTaskHeartbeat: SendTaskHeartbeatFunctionType? = nil, sendTaskSuccess: SendTaskSuccessFunctionType? = nil, @@ -87,23 +102,31 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { tagResource: TagResourceFunctionType? = nil, untagResource: UntagResourceFunctionType? = nil, updateMapRun: UpdateMapRunFunctionType? = nil, - updateStateMachine: UpdateStateMachineFunctionType? = nil) { + updateStateMachine: UpdateStateMachineFunctionType? = nil, + updateStateMachineAlias: UpdateStateMachineAliasFunctionType? = nil) { self.createActivityOverride = createActivity self.createStateMachineOverride = createStateMachine + self.createStateMachineAliasOverride = createStateMachineAlias self.deleteActivityOverride = deleteActivity self.deleteStateMachineOverride = deleteStateMachine + self.deleteStateMachineAliasOverride = deleteStateMachineAlias + self.deleteStateMachineVersionOverride = deleteStateMachineVersion self.describeActivityOverride = describeActivity self.describeExecutionOverride = describeExecution self.describeMapRunOverride = describeMapRun self.describeStateMachineOverride = describeStateMachine + self.describeStateMachineAliasOverride = describeStateMachineAlias self.describeStateMachineForExecutionOverride = describeStateMachineForExecution self.getActivityTaskOverride = getActivityTask self.getExecutionHistoryOverride = getExecutionHistory self.listActivitiesOverride = listActivities self.listExecutionsOverride = listExecutions self.listMapRunsOverride = listMapRuns + self.listStateMachineAliasesOverride = listStateMachineAliases + self.listStateMachineVersionsOverride = listStateMachineVersions self.listStateMachinesOverride = listStateMachines self.listTagsForResourceOverride = listTagsForResource + self.publishStateMachineVersionOverride = publishStateMachineVersion self.sendTaskFailureOverride = sendTaskFailure self.sendTaskHeartbeatOverride = sendTaskHeartbeat self.sendTaskSuccessOverride = sendTaskSuccess @@ -114,6 +137,7 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { self.untagResourceOverride = untagResource self.updateMapRunOverride = updateMapRun self.updateStateMachineOverride = updateStateMachine + self.updateStateMachineAliasOverride = updateStateMachineAlias } /** @@ -141,7 +165,7 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ public func createStateMachine( input: StepFunctionsModel.CreateStateMachineInput) async throws -> StepFunctionsModel.CreateStateMachineOutput { @@ -152,6 +176,24 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { return CreateStateMachineOutput.__default } + /** + Invokes the CreateStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAlias( + input: StepFunctionsModel.CreateStateMachineAliasInput) async throws -> StepFunctionsModel.CreateStateMachineAliasOutput { + if let createStateMachineAliasOverride = createStateMachineAliasOverride { + return try await createStateMachineAliasOverride(input) + } + + return CreateStateMachineAliasOutput.__default + } + /** Invokes the DeleteActivity operation suspending until the response is available before returning. @@ -188,6 +230,42 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { return DeleteStateMachineOutput.__default } + /** + Invokes the DeleteStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAlias( + input: StepFunctionsModel.DeleteStateMachineAliasInput) async throws -> StepFunctionsModel.DeleteStateMachineAliasOutput { + if let deleteStateMachineAliasOverride = deleteStateMachineAliasOverride { + return try await deleteStateMachineAliasOverride(input) + } + + return DeleteStateMachineAliasOutput.__default + } + + /** + Invokes the DeleteStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersion( + input: StepFunctionsModel.DeleteStateMachineVersionInput) async throws -> StepFunctionsModel.DeleteStateMachineVersionOutput { + if let deleteStateMachineVersionOverride = deleteStateMachineVersionOverride { + return try await deleteStateMachineVersionOverride(input) + } + + return DeleteStateMachineVersionOutput.__default + } + /** Invokes the DescribeActivity operation suspending until the response is available before returning. @@ -260,6 +338,24 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { return DescribeStateMachineOutput.__default } + /** + Invokes the DescribeStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAlias( + input: StepFunctionsModel.DescribeStateMachineAliasInput) async throws -> StepFunctionsModel.DescribeStateMachineAliasOutput { + if let describeStateMachineAliasOverride = describeStateMachineAliasOverride { + return try await describeStateMachineAliasOverride(input) + } + + return DescribeStateMachineAliasOutput.__default + } + /** Invokes the DescribeStateMachineForExecution operation suspending until the response is available before returning. @@ -368,6 +464,42 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { return ListMapRunsOutput.__default } + /** + Invokes the ListStateMachineAliases operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliases( + input: StepFunctionsModel.ListStateMachineAliasesInput) async throws -> StepFunctionsModel.ListStateMachineAliasesOutput { + if let listStateMachineAliasesOverride = listStateMachineAliasesOverride { + return try await listStateMachineAliasesOverride(input) + } + + return ListStateMachineAliasesOutput.__default + } + + /** + Invokes the ListStateMachineVersions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersions( + input: StepFunctionsModel.ListStateMachineVersionsInput) async throws -> StepFunctionsModel.ListStateMachineVersionsOutput { + if let listStateMachineVersionsOverride = listStateMachineVersionsOverride { + return try await listStateMachineVersionsOverride(input) + } + + return ListStateMachineVersionsOutput.__default + } + /** Invokes the ListStateMachines operation suspending until the response is available before returning. @@ -404,6 +536,24 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { return ListTagsForResourceOutput.__default } + /** + Invokes the PublishStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersion( + input: StepFunctionsModel.PublishStateMachineVersionInput) async throws -> StepFunctionsModel.PublishStateMachineVersionOutput { + if let publishStateMachineVersionOverride = publishStateMachineVersionOverride { + return try await publishStateMachineVersionOverride(input) + } + + return PublishStateMachineVersionOutput.__default + } + /** Invokes the SendTaskFailure operation suspending until the response is available before returning. @@ -573,7 +723,7 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ public func updateStateMachine( input: StepFunctionsModel.UpdateStateMachineInput) async throws -> StepFunctionsModel.UpdateStateMachineOutput { @@ -583,5 +733,23 @@ public struct MockStepFunctionsClientV2: StepFunctionsClientProtocolV2 { return UpdateStateMachineOutput.__default } + + /** + Invokes the UpdateStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func updateStateMachineAlias( + input: StepFunctionsModel.UpdateStateMachineAliasInput) async throws -> StepFunctionsModel.UpdateStateMachineAliasOutput { + if let updateStateMachineAliasOverride = updateStateMachineAliasOverride { + return try await updateStateMachineAliasOverride(input) + } + + return UpdateStateMachineAliasOutput.__default + } #endif } diff --git a/Sources/StepFunctionsClient/StepFunctionsClientProtocol+async.swift b/Sources/StepFunctionsClient/StepFunctionsClientProtocol+async.swift index e19b2a2..626fe84 100644 --- a/Sources/StepFunctionsClient/StepFunctionsClientProtocol+async.swift +++ b/Sources/StepFunctionsClient/StepFunctionsClientProtocol+async.swift @@ -64,7 +64,7 @@ public extension StepFunctionsClientProtocol { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ func createStateMachine(input: StepFunctionsModel.CreateStateMachineInput) async throws -> StepFunctionsModel.CreateStateMachineOutput { @@ -84,6 +84,33 @@ public extension StepFunctionsClientProtocol { } } + /** + Invokes the CreateStateMachineAlias operation and asynchronously returning the response. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + func createStateMachineAlias(input: StepFunctionsModel.CreateStateMachineAliasInput) async throws + -> StepFunctionsModel.CreateStateMachineAliasOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try createStateMachineAliasAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DeleteActivity operation and asynchronously returning the response. @@ -138,6 +165,60 @@ public extension StepFunctionsClientProtocol { } } + /** + Invokes the DeleteStateMachineAlias operation and asynchronously returning the response. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + func deleteStateMachineAlias(input: StepFunctionsModel.DeleteStateMachineAliasInput) async throws + -> StepFunctionsModel.DeleteStateMachineAliasOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try deleteStateMachineAliasAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + + /** + Invokes the DeleteStateMachineVersion operation and asynchronously returning the response. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + func deleteStateMachineVersion(input: StepFunctionsModel.DeleteStateMachineVersionInput) async throws + -> StepFunctionsModel.DeleteStateMachineVersionOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try deleteStateMachineVersionAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DescribeActivity operation and asynchronously returning the response. @@ -246,6 +327,33 @@ public extension StepFunctionsClientProtocol { } } + /** + Invokes the DescribeStateMachineAlias operation and asynchronously returning the response. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + func describeStateMachineAlias(input: StepFunctionsModel.DescribeStateMachineAliasInput) async throws + -> StepFunctionsModel.DescribeStateMachineAliasOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try describeStateMachineAliasAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the DescribeStateMachineForExecution operation and asynchronously returning the response. @@ -408,6 +516,60 @@ public extension StepFunctionsClientProtocol { } } + /** + Invokes the ListStateMachineAliases operation and asynchronously returning the response. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + func listStateMachineAliases(input: StepFunctionsModel.ListStateMachineAliasesInput) async throws + -> StepFunctionsModel.ListStateMachineAliasesOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try listStateMachineAliasesAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + + /** + Invokes the ListStateMachineVersions operation and asynchronously returning the response. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + func listStateMachineVersions(input: StepFunctionsModel.ListStateMachineVersionsInput) async throws + -> StepFunctionsModel.ListStateMachineVersionsOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try listStateMachineVersionsAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the ListStateMachines operation and asynchronously returning the response. @@ -462,6 +624,33 @@ public extension StepFunctionsClientProtocol { } } + /** + Invokes the PublishStateMachineVersion operation and asynchronously returning the response. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + func publishStateMachineVersion(input: StepFunctionsModel.PublishStateMachineVersionInput) async throws + -> StepFunctionsModel.PublishStateMachineVersionOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try publishStateMachineVersionAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } + /** Invokes the SendTaskFailure operation and asynchronously returning the response. @@ -712,7 +901,7 @@ public extension StepFunctionsClientProtocol { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ func updateStateMachine(input: StepFunctionsModel.UpdateStateMachineInput) async throws -> StepFunctionsModel.UpdateStateMachineOutput { @@ -731,6 +920,33 @@ public extension StepFunctionsClientProtocol { } } } + + /** + Invokes the UpdateStateMachineAlias operation and asynchronously returning the response. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + func updateStateMachineAlias(input: StepFunctionsModel.UpdateStateMachineAliasInput) async throws + -> StepFunctionsModel.UpdateStateMachineAliasOutput { + return try await withCheckedThrowingContinuation { cont in + do { + try updateStateMachineAliasAsync(input: input) { result in + switch result { + case .failure(let error): + cont.resume(throwing: error) + case .success(let response): + cont.resume(returning: response) + } + } + } catch { + cont.resume(throwing: error) + } + } + } } #endif diff --git a/Sources/StepFunctionsClient/StepFunctionsClientProtocol.swift b/Sources/StepFunctionsClient/StepFunctionsClientProtocol.swift index 961c4b3..99a4d93 100644 --- a/Sources/StepFunctionsClient/StepFunctionsClientProtocol.swift +++ b/Sources/StepFunctionsClient/StepFunctionsClientProtocol.swift @@ -39,6 +39,11 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { typealias CreateStateMachineAsyncType = ( _ input: StepFunctionsModel.CreateStateMachineInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias CreateStateMachineAliasSyncType = ( + _ input: StepFunctionsModel.CreateStateMachineAliasInput) throws -> StepFunctionsModel.CreateStateMachineAliasOutput + typealias CreateStateMachineAliasAsyncType = ( + _ input: StepFunctionsModel.CreateStateMachineAliasInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias DeleteActivitySyncType = ( _ input: StepFunctionsModel.DeleteActivityInput) throws -> StepFunctionsModel.DeleteActivityOutput typealias DeleteActivityAsyncType = ( @@ -49,6 +54,16 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { typealias DeleteStateMachineAsyncType = ( _ input: StepFunctionsModel.DeleteStateMachineInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias DeleteStateMachineAliasSyncType = ( + _ input: StepFunctionsModel.DeleteStateMachineAliasInput) throws -> StepFunctionsModel.DeleteStateMachineAliasOutput + typealias DeleteStateMachineAliasAsyncType = ( + _ input: StepFunctionsModel.DeleteStateMachineAliasInput, + _ completion: @escaping (Result) -> ()) throws -> () + typealias DeleteStateMachineVersionSyncType = ( + _ input: StepFunctionsModel.DeleteStateMachineVersionInput) throws -> StepFunctionsModel.DeleteStateMachineVersionOutput + typealias DeleteStateMachineVersionAsyncType = ( + _ input: StepFunctionsModel.DeleteStateMachineVersionInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias DescribeActivitySyncType = ( _ input: StepFunctionsModel.DescribeActivityInput) throws -> StepFunctionsModel.DescribeActivityOutput typealias DescribeActivityAsyncType = ( @@ -69,6 +84,11 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { typealias DescribeStateMachineAsyncType = ( _ input: StepFunctionsModel.DescribeStateMachineInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias DescribeStateMachineAliasSyncType = ( + _ input: StepFunctionsModel.DescribeStateMachineAliasInput) throws -> StepFunctionsModel.DescribeStateMachineAliasOutput + typealias DescribeStateMachineAliasAsyncType = ( + _ input: StepFunctionsModel.DescribeStateMachineAliasInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias DescribeStateMachineForExecutionSyncType = ( _ input: StepFunctionsModel.DescribeStateMachineForExecutionInput) throws -> StepFunctionsModel.DescribeStateMachineForExecutionOutput typealias DescribeStateMachineForExecutionAsyncType = ( @@ -99,6 +119,16 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { typealias ListMapRunsAsyncType = ( _ input: StepFunctionsModel.ListMapRunsInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias ListStateMachineAliasesSyncType = ( + _ input: StepFunctionsModel.ListStateMachineAliasesInput) throws -> StepFunctionsModel.ListStateMachineAliasesOutput + typealias ListStateMachineAliasesAsyncType = ( + _ input: StepFunctionsModel.ListStateMachineAliasesInput, + _ completion: @escaping (Result) -> ()) throws -> () + typealias ListStateMachineVersionsSyncType = ( + _ input: StepFunctionsModel.ListStateMachineVersionsInput) throws -> StepFunctionsModel.ListStateMachineVersionsOutput + typealias ListStateMachineVersionsAsyncType = ( + _ input: StepFunctionsModel.ListStateMachineVersionsInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias ListStateMachinesSyncType = ( _ input: StepFunctionsModel.ListStateMachinesInput) throws -> StepFunctionsModel.ListStateMachinesOutput typealias ListStateMachinesAsyncType = ( @@ -109,6 +139,11 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { typealias ListTagsForResourceAsyncType = ( _ input: StepFunctionsModel.ListTagsForResourceInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias PublishStateMachineVersionSyncType = ( + _ input: StepFunctionsModel.PublishStateMachineVersionInput) throws -> StepFunctionsModel.PublishStateMachineVersionOutput + typealias PublishStateMachineVersionAsyncType = ( + _ input: StepFunctionsModel.PublishStateMachineVersionInput, + _ completion: @escaping (Result) -> ()) throws -> () typealias SendTaskFailureSyncType = ( _ input: StepFunctionsModel.SendTaskFailureInput) throws -> StepFunctionsModel.SendTaskFailureOutput typealias SendTaskFailureAsyncType = ( @@ -159,6 +194,11 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { typealias UpdateStateMachineAsyncType = ( _ input: StepFunctionsModel.UpdateStateMachineInput, _ completion: @escaping (Result) -> ()) throws -> () + typealias UpdateStateMachineAliasSyncType = ( + _ input: StepFunctionsModel.UpdateStateMachineAliasInput) throws -> StepFunctionsModel.UpdateStateMachineAliasOutput + typealias UpdateStateMachineAliasAsyncType = ( + _ input: StepFunctionsModel.UpdateStateMachineAliasInput, + _ completion: @escaping (Result) -> ()) throws -> () /** Invokes the CreateActivity operation returning immediately and passing the response to a callback. @@ -194,7 +234,7 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { - completion: The CreateStateMachineOutput object or an error will be passed to this callback when the operation is complete. The CreateStateMachineOutput object will be validated before being returned to caller. - The possible errors are: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ func createStateMachineAsync( input: StepFunctionsModel.CreateStateMachineInput, @@ -207,11 +247,37 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ func createStateMachineSync( input: StepFunctionsModel.CreateStateMachineInput) throws -> StepFunctionsModel.CreateStateMachineOutput + /** + Invokes the CreateStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - completion: The CreateStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The CreateStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + func createStateMachineAliasAsync( + input: StepFunctionsModel.CreateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the CreateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + func createStateMachineAliasSync( + input: StepFunctionsModel.CreateStateMachineAliasInput) throws -> StepFunctionsModel.CreateStateMachineAliasOutput + /** Invokes the DeleteActivity operation returning immediately and passing the response to a callback. @@ -264,6 +330,58 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { func deleteStateMachineSync( input: StepFunctionsModel.DeleteStateMachineInput) throws -> StepFunctionsModel.DeleteStateMachineOutput + /** + Invokes the DeleteStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - completion: The DeleteStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, resourceNotFound, validation. + */ + func deleteStateMachineAliasAsync( + input: StepFunctionsModel.DeleteStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DeleteStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + func deleteStateMachineAliasSync( + input: StepFunctionsModel.DeleteStateMachineAliasInput) throws -> StepFunctionsModel.DeleteStateMachineAliasOutput + + /** + Invokes the DeleteStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - completion: The DeleteStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, validation. + */ + func deleteStateMachineVersionAsync( + input: StepFunctionsModel.DeleteStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DeleteStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + func deleteStateMachineVersionSync( + input: StepFunctionsModel.DeleteStateMachineVersionInput) throws -> StepFunctionsModel.DeleteStateMachineVersionOutput + /** Invokes the DescribeActivity operation returning immediately and passing the response to a callback. @@ -368,6 +486,32 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { func describeStateMachineSync( input: StepFunctionsModel.DescribeStateMachineInput) throws -> StepFunctionsModel.DescribeStateMachineOutput + /** + Invokes the DescribeStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - completion: The DescribeStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The DescribeStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, resourceNotFound, validation. + */ + func describeStateMachineAliasAsync( + input: StepFunctionsModel.DescribeStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the DescribeStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + func describeStateMachineAliasSync( + input: StepFunctionsModel.DescribeStateMachineAliasInput) throws -> StepFunctionsModel.DescribeStateMachineAliasOutput + /** Invokes the DescribeStateMachineForExecution operation returning immediately and passing the response to a callback. @@ -524,6 +668,58 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { func listMapRunsSync( input: StepFunctionsModel.ListMapRunsInput) throws -> StepFunctionsModel.ListMapRunsOutput + /** + Invokes the ListStateMachineAliases operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - completion: The ListStateMachineAliasesOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineAliasesOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + func listStateMachineAliasesAsync( + input: StepFunctionsModel.ListStateMachineAliasesInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the ListStateMachineAliases operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + func listStateMachineAliasesSync( + input: StepFunctionsModel.ListStateMachineAliasesInput) throws -> StepFunctionsModel.ListStateMachineAliasesOutput + + /** + Invokes the ListStateMachineVersions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - completion: The ListStateMachineVersionsOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineVersionsOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, validation. + */ + func listStateMachineVersionsAsync( + input: StepFunctionsModel.ListStateMachineVersionsInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the ListStateMachineVersions operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + func listStateMachineVersionsSync( + input: StepFunctionsModel.ListStateMachineVersionsInput) throws -> StepFunctionsModel.ListStateMachineVersionsOutput + /** Invokes the ListStateMachines operation returning immediately and passing the response to a callback. @@ -576,6 +772,32 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { func listTagsForResourceSync( input: StepFunctionsModel.ListTagsForResourceInput) throws -> StepFunctionsModel.ListTagsForResourceOutput + /** + Invokes the PublishStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - completion: The PublishStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The PublishStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + func publishStateMachineVersionAsync( + input: StepFunctionsModel.PublishStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the PublishStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + func publishStateMachineVersionSync( + input: StepFunctionsModel.PublishStateMachineVersionInput) throws -> StepFunctionsModel.PublishStateMachineVersionOutput + /** Invokes the SendTaskFailure operation returning immediately and passing the response to a callback. @@ -818,7 +1040,7 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { - completion: The UpdateStateMachineOutput object or an error will be passed to this callback when the operation is complete. The UpdateStateMachineOutput object will be validated before being returned to caller. - The possible errors are: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ func updateStateMachineAsync( input: StepFunctionsModel.UpdateStateMachineInput, @@ -831,8 +1053,34 @@ public protocol StepFunctionsClientProtocol: StepFunctionsClientProtocolV2 { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ func updateStateMachineSync( input: StepFunctionsModel.UpdateStateMachineInput) throws -> StepFunctionsModel.UpdateStateMachineOutput + + /** + Invokes the UpdateStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - completion: The UpdateStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The UpdateStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, resourceNotFound, validation. + */ + func updateStateMachineAliasAsync( + input: StepFunctionsModel.UpdateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws + + /** + Invokes the UpdateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + func updateStateMachineAliasSync( + input: StepFunctionsModel.UpdateStateMachineAliasInput) throws -> StepFunctionsModel.UpdateStateMachineAliasOutput } diff --git a/Sources/StepFunctionsClient/StepFunctionsClientProtocolV2.swift b/Sources/StepFunctionsClient/StepFunctionsClientProtocolV2.swift index ce4f5f0..f6a171a 100644 --- a/Sources/StepFunctionsClient/StepFunctionsClientProtocolV2.swift +++ b/Sources/StepFunctionsClient/StepFunctionsClientProtocolV2.swift @@ -34,10 +34,16 @@ public protocol StepFunctionsClientProtocolV2 { _ input: StepFunctionsModel.CreateActivityInput) async throws -> StepFunctionsModel.CreateActivityOutput typealias CreateStateMachineFunctionType = ( _ input: StepFunctionsModel.CreateStateMachineInput) async throws -> StepFunctionsModel.CreateStateMachineOutput + typealias CreateStateMachineAliasFunctionType = ( + _ input: StepFunctionsModel.CreateStateMachineAliasInput) async throws -> StepFunctionsModel.CreateStateMachineAliasOutput typealias DeleteActivityFunctionType = ( _ input: StepFunctionsModel.DeleteActivityInput) async throws -> StepFunctionsModel.DeleteActivityOutput typealias DeleteStateMachineFunctionType = ( _ input: StepFunctionsModel.DeleteStateMachineInput) async throws -> StepFunctionsModel.DeleteStateMachineOutput + typealias DeleteStateMachineAliasFunctionType = ( + _ input: StepFunctionsModel.DeleteStateMachineAliasInput) async throws -> StepFunctionsModel.DeleteStateMachineAliasOutput + typealias DeleteStateMachineVersionFunctionType = ( + _ input: StepFunctionsModel.DeleteStateMachineVersionInput) async throws -> StepFunctionsModel.DeleteStateMachineVersionOutput typealias DescribeActivityFunctionType = ( _ input: StepFunctionsModel.DescribeActivityInput) async throws -> StepFunctionsModel.DescribeActivityOutput typealias DescribeExecutionFunctionType = ( @@ -46,6 +52,8 @@ public protocol StepFunctionsClientProtocolV2 { _ input: StepFunctionsModel.DescribeMapRunInput) async throws -> StepFunctionsModel.DescribeMapRunOutput typealias DescribeStateMachineFunctionType = ( _ input: StepFunctionsModel.DescribeStateMachineInput) async throws -> StepFunctionsModel.DescribeStateMachineOutput + typealias DescribeStateMachineAliasFunctionType = ( + _ input: StepFunctionsModel.DescribeStateMachineAliasInput) async throws -> StepFunctionsModel.DescribeStateMachineAliasOutput typealias DescribeStateMachineForExecutionFunctionType = ( _ input: StepFunctionsModel.DescribeStateMachineForExecutionInput) async throws -> StepFunctionsModel.DescribeStateMachineForExecutionOutput typealias GetActivityTaskFunctionType = ( @@ -58,10 +66,16 @@ public protocol StepFunctionsClientProtocolV2 { _ input: StepFunctionsModel.ListExecutionsInput) async throws -> StepFunctionsModel.ListExecutionsOutput typealias ListMapRunsFunctionType = ( _ input: StepFunctionsModel.ListMapRunsInput) async throws -> StepFunctionsModel.ListMapRunsOutput + typealias ListStateMachineAliasesFunctionType = ( + _ input: StepFunctionsModel.ListStateMachineAliasesInput) async throws -> StepFunctionsModel.ListStateMachineAliasesOutput + typealias ListStateMachineVersionsFunctionType = ( + _ input: StepFunctionsModel.ListStateMachineVersionsInput) async throws -> StepFunctionsModel.ListStateMachineVersionsOutput typealias ListStateMachinesFunctionType = ( _ input: StepFunctionsModel.ListStateMachinesInput) async throws -> StepFunctionsModel.ListStateMachinesOutput typealias ListTagsForResourceFunctionType = ( _ input: StepFunctionsModel.ListTagsForResourceInput) async throws -> StepFunctionsModel.ListTagsForResourceOutput + typealias PublishStateMachineVersionFunctionType = ( + _ input: StepFunctionsModel.PublishStateMachineVersionInput) async throws -> StepFunctionsModel.PublishStateMachineVersionOutput typealias SendTaskFailureFunctionType = ( _ input: StepFunctionsModel.SendTaskFailureInput) async throws -> StepFunctionsModel.SendTaskFailureOutput typealias SendTaskHeartbeatFunctionType = ( @@ -82,6 +96,8 @@ public protocol StepFunctionsClientProtocolV2 { _ input: StepFunctionsModel.UpdateMapRunInput) async throws -> StepFunctionsModel.UpdateMapRunOutput typealias UpdateStateMachineFunctionType = ( _ input: StepFunctionsModel.UpdateStateMachineInput) async throws -> StepFunctionsModel.UpdateStateMachineOutput + typealias UpdateStateMachineAliasFunctionType = ( + _ input: StepFunctionsModel.UpdateStateMachineAliasInput) async throws -> StepFunctionsModel.UpdateStateMachineAliasOutput /** Invokes the CreateActivity operation suspending until the response is available before returning. @@ -102,11 +118,23 @@ public protocol StepFunctionsClientProtocolV2 { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ func createStateMachine( input: StepFunctionsModel.CreateStateMachineInput) async throws -> StepFunctionsModel.CreateStateMachineOutput + /** + Invokes the CreateStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + func createStateMachineAlias( + input: StepFunctionsModel.CreateStateMachineAliasInput) async throws -> StepFunctionsModel.CreateStateMachineAliasOutput + /** Invokes the DeleteActivity operation suspending until the response is available before returning. @@ -131,6 +159,30 @@ public protocol StepFunctionsClientProtocolV2 { func deleteStateMachine( input: StepFunctionsModel.DeleteStateMachineInput) async throws -> StepFunctionsModel.DeleteStateMachineOutput + /** + Invokes the DeleteStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + func deleteStateMachineAlias( + input: StepFunctionsModel.DeleteStateMachineAliasInput) async throws -> StepFunctionsModel.DeleteStateMachineAliasOutput + + /** + Invokes the DeleteStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + func deleteStateMachineVersion( + input: StepFunctionsModel.DeleteStateMachineVersionInput) async throws -> StepFunctionsModel.DeleteStateMachineVersionOutput + /** Invokes the DescribeActivity operation suspending until the response is available before returning. @@ -179,6 +231,18 @@ public protocol StepFunctionsClientProtocolV2 { func describeStateMachine( input: StepFunctionsModel.DescribeStateMachineInput) async throws -> StepFunctionsModel.DescribeStateMachineOutput + /** + Invokes the DescribeStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + func describeStateMachineAlias( + input: StepFunctionsModel.DescribeStateMachineAliasInput) async throws -> StepFunctionsModel.DescribeStateMachineAliasOutput + /** Invokes the DescribeStateMachineForExecution operation suspending until the response is available before returning. @@ -251,6 +315,30 @@ public protocol StepFunctionsClientProtocolV2 { func listMapRuns( input: StepFunctionsModel.ListMapRunsInput) async throws -> StepFunctionsModel.ListMapRunsOutput + /** + Invokes the ListStateMachineAliases operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + func listStateMachineAliases( + input: StepFunctionsModel.ListStateMachineAliasesInput) async throws -> StepFunctionsModel.ListStateMachineAliasesOutput + + /** + Invokes the ListStateMachineVersions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + func listStateMachineVersions( + input: StepFunctionsModel.ListStateMachineVersionsInput) async throws -> StepFunctionsModel.ListStateMachineVersionsOutput + /** Invokes the ListStateMachines operation suspending until the response is available before returning. @@ -275,6 +363,18 @@ public protocol StepFunctionsClientProtocolV2 { func listTagsForResource( input: StepFunctionsModel.ListTagsForResourceInput) async throws -> StepFunctionsModel.ListTagsForResourceOutput + /** + Invokes the PublishStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + func publishStateMachineVersion( + input: StepFunctionsModel.PublishStateMachineVersionInput) async throws -> StepFunctionsModel.PublishStateMachineVersionOutput + /** Invokes the SendTaskFailure operation suspending until the response is available before returning. @@ -390,9 +490,21 @@ public protocol StepFunctionsClientProtocolV2 { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ func updateStateMachine( input: StepFunctionsModel.UpdateStateMachineInput) async throws -> StepFunctionsModel.UpdateStateMachineOutput + + /** + Invokes the UpdateStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + func updateStateMachineAlias( + input: StepFunctionsModel.UpdateStateMachineAliasInput) async throws -> StepFunctionsModel.UpdateStateMachineAliasOutput #endif } diff --git a/Sources/StepFunctionsClient/StepFunctionsInvocationsReporting.swift b/Sources/StepFunctionsClient/StepFunctionsInvocationsReporting.swift index 018acd3..b197646 100644 --- a/Sources/StepFunctionsClient/StepFunctionsInvocationsReporting.swift +++ b/Sources/StepFunctionsClient/StepFunctionsInvocationsReporting.swift @@ -31,20 +31,27 @@ import StepFunctionsModel public struct StepFunctionsInvocationsReporting { public let createActivity: SmokeAWSHTTPClientInvocationReporting public let createStateMachine: SmokeAWSHTTPClientInvocationReporting + public let createStateMachineAlias: SmokeAWSHTTPClientInvocationReporting public let deleteActivity: SmokeAWSHTTPClientInvocationReporting public let deleteStateMachine: SmokeAWSHTTPClientInvocationReporting + public let deleteStateMachineAlias: SmokeAWSHTTPClientInvocationReporting + public let deleteStateMachineVersion: SmokeAWSHTTPClientInvocationReporting public let describeActivity: SmokeAWSHTTPClientInvocationReporting public let describeExecution: SmokeAWSHTTPClientInvocationReporting public let describeMapRun: SmokeAWSHTTPClientInvocationReporting public let describeStateMachine: SmokeAWSHTTPClientInvocationReporting + public let describeStateMachineAlias: SmokeAWSHTTPClientInvocationReporting public let describeStateMachineForExecution: SmokeAWSHTTPClientInvocationReporting public let getActivityTask: SmokeAWSHTTPClientInvocationReporting public let getExecutionHistory: SmokeAWSHTTPClientInvocationReporting public let listActivities: SmokeAWSHTTPClientInvocationReporting public let listExecutions: SmokeAWSHTTPClientInvocationReporting public let listMapRuns: SmokeAWSHTTPClientInvocationReporting + public let listStateMachineAliases: SmokeAWSHTTPClientInvocationReporting + public let listStateMachineVersions: SmokeAWSHTTPClientInvocationReporting public let listStateMachines: SmokeAWSHTTPClientInvocationReporting public let listTagsForResource: SmokeAWSHTTPClientInvocationReporting + public let publishStateMachineVersion: SmokeAWSHTTPClientInvocationReporting public let sendTaskFailure: SmokeAWSHTTPClientInvocationReporting public let sendTaskHeartbeat: SmokeAWSHTTPClientInvocationReporting public let sendTaskSuccess: SmokeAWSHTTPClientInvocationReporting @@ -55,16 +62,23 @@ public struct StepFunctionsInvocationsReporting public let updateMapRun: SmokeAWSHTTPClientInvocationReporting public let updateStateMachine: SmokeAWSHTTPClientInvocationReporting + public let updateStateMachineAlias: SmokeAWSHTTPClientInvocationReporting public init(reporting: InvocationReportingType, operationsReporting: StepFunctionsOperationsReporting) { self.createActivity = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.createActivity) self.createStateMachine = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.createStateMachine) + self.createStateMachineAlias = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, + smokeAWSOperationReporting: operationsReporting.createStateMachineAlias) self.deleteActivity = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.deleteActivity) self.deleteStateMachine = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.deleteStateMachine) + self.deleteStateMachineAlias = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, + smokeAWSOperationReporting: operationsReporting.deleteStateMachineAlias) + self.deleteStateMachineVersion = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, + smokeAWSOperationReporting: operationsReporting.deleteStateMachineVersion) self.describeActivity = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, smokeAWSOperationReporting: operationsReporting.describeActivity) self.describeExecution = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting, @@ -73,6 +87,8 @@ public struct StepFunctionsInvocationsReporting BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> CreateStateMachineAliasOutput { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DeleteActivity operation in a HTTP client. */ @@ -76,6 +89,32 @@ extension DeleteStateMachineOutput: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DeleteStateMachineAlias operation in a HTTP client. + */ +extension DeleteStateMachineAliasOutput: HTTPResponseOutputProtocol { + public typealias BodyType = DeleteStateMachineAliasOutput + public typealias HeadersType = DeleteStateMachineAliasOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DeleteStateMachineAliasOutput { + return try bodyDecodableProvider() + } +} + +/** + Type to handle the output from the DeleteStateMachineVersion operation in a HTTP client. + */ +extension DeleteStateMachineVersionOutput: HTTPResponseOutputProtocol { + public typealias BodyType = DeleteStateMachineVersionOutput + public typealias HeadersType = DeleteStateMachineVersionOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DeleteStateMachineVersionOutput { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DescribeActivity operation in a HTTP client. */ @@ -128,6 +167,19 @@ extension DescribeStateMachineOutput: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the DescribeStateMachineAlias operation in a HTTP client. + */ +extension DescribeStateMachineAliasOutput: HTTPResponseOutputProtocol { + public typealias BodyType = DescribeStateMachineAliasOutput + public typealias HeadersType = DescribeStateMachineAliasOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> DescribeStateMachineAliasOutput { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the DescribeStateMachineForExecution operation in a HTTP client. */ @@ -206,6 +258,32 @@ extension ListMapRunsOutput: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the ListStateMachineAliases operation in a HTTP client. + */ +extension ListStateMachineAliasesOutput: HTTPResponseOutputProtocol { + public typealias BodyType = ListStateMachineAliasesOutput + public typealias HeadersType = ListStateMachineAliasesOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> ListStateMachineAliasesOutput { + return try bodyDecodableProvider() + } +} + +/** + Type to handle the output from the ListStateMachineVersions operation in a HTTP client. + */ +extension ListStateMachineVersionsOutput: HTTPResponseOutputProtocol { + public typealias BodyType = ListStateMachineVersionsOutput + public typealias HeadersType = ListStateMachineVersionsOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> ListStateMachineVersionsOutput { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the ListStateMachines operation in a HTTP client. */ @@ -232,6 +310,19 @@ extension ListTagsForResourceOutput: HTTPResponseOutputProtocol { } } +/** + Type to handle the output from the PublishStateMachineVersion operation in a HTTP client. + */ +extension PublishStateMachineVersionOutput: HTTPResponseOutputProtocol { + public typealias BodyType = PublishStateMachineVersionOutput + public typealias HeadersType = PublishStateMachineVersionOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> PublishStateMachineVersionOutput { + return try bodyDecodableProvider() + } +} + /** Type to handle the output from the SendTaskFailure operation in a HTTP client. */ @@ -361,3 +452,16 @@ extension UpdateStateMachineOutput: HTTPResponseOutputProtocol { return try bodyDecodableProvider() } } + +/** + Type to handle the output from the UpdateStateMachineAlias operation in a HTTP client. + */ +extension UpdateStateMachineAliasOutput: HTTPResponseOutputProtocol { + public typealias BodyType = UpdateStateMachineAliasOutput + public typealias HeadersType = UpdateStateMachineAliasOutput + + public static func compose(bodyDecodableProvider: () throws -> BodyType, + headersDecodableProvider: () throws -> HeadersType) throws -> UpdateStateMachineAliasOutput { + return try bodyDecodableProvider() + } +} diff --git a/Sources/StepFunctionsClient/StepFunctionsOperationsReporting.swift b/Sources/StepFunctionsClient/StepFunctionsOperationsReporting.swift index 668f905..0fd09e8 100644 --- a/Sources/StepFunctionsClient/StepFunctionsOperationsReporting.swift +++ b/Sources/StepFunctionsClient/StepFunctionsOperationsReporting.swift @@ -30,20 +30,27 @@ import StepFunctionsModel public struct StepFunctionsOperationsReporting { public let createActivity: StandardSmokeAWSOperationReporting public let createStateMachine: StandardSmokeAWSOperationReporting + public let createStateMachineAlias: StandardSmokeAWSOperationReporting public let deleteActivity: StandardSmokeAWSOperationReporting public let deleteStateMachine: StandardSmokeAWSOperationReporting + public let deleteStateMachineAlias: StandardSmokeAWSOperationReporting + public let deleteStateMachineVersion: StandardSmokeAWSOperationReporting public let describeActivity: StandardSmokeAWSOperationReporting public let describeExecution: StandardSmokeAWSOperationReporting public let describeMapRun: StandardSmokeAWSOperationReporting public let describeStateMachine: StandardSmokeAWSOperationReporting + public let describeStateMachineAlias: StandardSmokeAWSOperationReporting public let describeStateMachineForExecution: StandardSmokeAWSOperationReporting public let getActivityTask: StandardSmokeAWSOperationReporting public let getExecutionHistory: StandardSmokeAWSOperationReporting public let listActivities: StandardSmokeAWSOperationReporting public let listExecutions: StandardSmokeAWSOperationReporting public let listMapRuns: StandardSmokeAWSOperationReporting + public let listStateMachineAliases: StandardSmokeAWSOperationReporting + public let listStateMachineVersions: StandardSmokeAWSOperationReporting public let listStateMachines: StandardSmokeAWSOperationReporting public let listTagsForResource: StandardSmokeAWSOperationReporting + public let publishStateMachineVersion: StandardSmokeAWSOperationReporting public let sendTaskFailure: StandardSmokeAWSOperationReporting public let sendTaskHeartbeat: StandardSmokeAWSOperationReporting public let sendTaskSuccess: StandardSmokeAWSOperationReporting @@ -54,16 +61,23 @@ public struct StepFunctionsOperationsReporting { public let untagResource: StandardSmokeAWSOperationReporting public let updateMapRun: StandardSmokeAWSOperationReporting public let updateStateMachine: StandardSmokeAWSOperationReporting + public let updateStateMachineAlias: StandardSmokeAWSOperationReporting public init(clientName: String, reportingConfiguration: SmokeAWSClientReportingConfiguration) { self.createActivity = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createActivity, configuration: reportingConfiguration) self.createStateMachine = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .createStateMachine, configuration: reportingConfiguration) + self.createStateMachineAlias = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .createStateMachineAlias, configuration: reportingConfiguration) self.deleteActivity = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteActivity, configuration: reportingConfiguration) self.deleteStateMachine = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .deleteStateMachine, configuration: reportingConfiguration) + self.deleteStateMachineAlias = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .deleteStateMachineAlias, configuration: reportingConfiguration) + self.deleteStateMachineVersion = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .deleteStateMachineVersion, configuration: reportingConfiguration) self.describeActivity = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeActivity, configuration: reportingConfiguration) self.describeExecution = StandardSmokeAWSOperationReporting( @@ -72,6 +86,8 @@ public struct StepFunctionsOperationsReporting { clientName: clientName, operation: .describeMapRun, configuration: reportingConfiguration) self.describeStateMachine = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeStateMachine, configuration: reportingConfiguration) + self.describeStateMachineAlias = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .describeStateMachineAlias, configuration: reportingConfiguration) self.describeStateMachineForExecution = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .describeStateMachineForExecution, configuration: reportingConfiguration) self.getActivityTask = StandardSmokeAWSOperationReporting( @@ -84,10 +100,16 @@ public struct StepFunctionsOperationsReporting { clientName: clientName, operation: .listExecutions, configuration: reportingConfiguration) self.listMapRuns = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .listMapRuns, configuration: reportingConfiguration) + self.listStateMachineAliases = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .listStateMachineAliases, configuration: reportingConfiguration) + self.listStateMachineVersions = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .listStateMachineVersions, configuration: reportingConfiguration) self.listStateMachines = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .listStateMachines, configuration: reportingConfiguration) self.listTagsForResource = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .listTagsForResource, configuration: reportingConfiguration) + self.publishStateMachineVersion = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .publishStateMachineVersion, configuration: reportingConfiguration) self.sendTaskFailure = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .sendTaskFailure, configuration: reportingConfiguration) self.sendTaskHeartbeat = StandardSmokeAWSOperationReporting( @@ -108,5 +130,7 @@ public struct StepFunctionsOperationsReporting { clientName: clientName, operation: .updateMapRun, configuration: reportingConfiguration) self.updateStateMachine = StandardSmokeAWSOperationReporting( clientName: clientName, operation: .updateStateMachine, configuration: reportingConfiguration) + self.updateStateMachineAlias = StandardSmokeAWSOperationReporting( + clientName: clientName, operation: .updateStateMachineAlias, configuration: reportingConfiguration) } } diff --git a/Sources/StepFunctionsClient/ThrowingStepFunctionsClient.swift b/Sources/StepFunctionsClient/ThrowingStepFunctionsClient.swift index 1e9a271..0f14f45 100644 --- a/Sources/StepFunctionsClient/ThrowingStepFunctionsClient.swift +++ b/Sources/StepFunctionsClient/ThrowingStepFunctionsClient.swift @@ -34,10 +34,16 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { let createActivitySyncOverride: CreateActivitySyncType? let createStateMachineAsyncOverride: CreateStateMachineAsyncType? let createStateMachineSyncOverride: CreateStateMachineSyncType? + let createStateMachineAliasAsyncOverride: CreateStateMachineAliasAsyncType? + let createStateMachineAliasSyncOverride: CreateStateMachineAliasSyncType? let deleteActivityAsyncOverride: DeleteActivityAsyncType? let deleteActivitySyncOverride: DeleteActivitySyncType? let deleteStateMachineAsyncOverride: DeleteStateMachineAsyncType? let deleteStateMachineSyncOverride: DeleteStateMachineSyncType? + let deleteStateMachineAliasAsyncOverride: DeleteStateMachineAliasAsyncType? + let deleteStateMachineAliasSyncOverride: DeleteStateMachineAliasSyncType? + let deleteStateMachineVersionAsyncOverride: DeleteStateMachineVersionAsyncType? + let deleteStateMachineVersionSyncOverride: DeleteStateMachineVersionSyncType? let describeActivityAsyncOverride: DescribeActivityAsyncType? let describeActivitySyncOverride: DescribeActivitySyncType? let describeExecutionAsyncOverride: DescribeExecutionAsyncType? @@ -46,6 +52,8 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { let describeMapRunSyncOverride: DescribeMapRunSyncType? let describeStateMachineAsyncOverride: DescribeStateMachineAsyncType? let describeStateMachineSyncOverride: DescribeStateMachineSyncType? + let describeStateMachineAliasAsyncOverride: DescribeStateMachineAliasAsyncType? + let describeStateMachineAliasSyncOverride: DescribeStateMachineAliasSyncType? let describeStateMachineForExecutionAsyncOverride: DescribeStateMachineForExecutionAsyncType? let describeStateMachineForExecutionSyncOverride: DescribeStateMachineForExecutionSyncType? let getActivityTaskAsyncOverride: GetActivityTaskAsyncType? @@ -58,10 +66,16 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { let listExecutionsSyncOverride: ListExecutionsSyncType? let listMapRunsAsyncOverride: ListMapRunsAsyncType? let listMapRunsSyncOverride: ListMapRunsSyncType? + let listStateMachineAliasesAsyncOverride: ListStateMachineAliasesAsyncType? + let listStateMachineAliasesSyncOverride: ListStateMachineAliasesSyncType? + let listStateMachineVersionsAsyncOverride: ListStateMachineVersionsAsyncType? + let listStateMachineVersionsSyncOverride: ListStateMachineVersionsSyncType? let listStateMachinesAsyncOverride: ListStateMachinesAsyncType? let listStateMachinesSyncOverride: ListStateMachinesSyncType? let listTagsForResourceAsyncOverride: ListTagsForResourceAsyncType? let listTagsForResourceSyncOverride: ListTagsForResourceSyncType? + let publishStateMachineVersionAsyncOverride: PublishStateMachineVersionAsyncType? + let publishStateMachineVersionSyncOverride: PublishStateMachineVersionSyncType? let sendTaskFailureAsyncOverride: SendTaskFailureAsyncType? let sendTaskFailureSyncOverride: SendTaskFailureSyncType? let sendTaskHeartbeatAsyncOverride: SendTaskHeartbeatAsyncType? @@ -82,6 +96,8 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { let updateMapRunSyncOverride: UpdateMapRunSyncType? let updateStateMachineAsyncOverride: UpdateStateMachineAsyncType? let updateStateMachineSyncOverride: UpdateStateMachineSyncType? + let updateStateMachineAliasAsyncOverride: UpdateStateMachineAliasAsyncType? + let updateStateMachineAliasSyncOverride: UpdateStateMachineAliasSyncType? /** Initializer that creates an instance of this clients. The behavior of individual @@ -92,10 +108,16 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { createActivitySync: CreateActivitySyncType? = nil, createStateMachineAsync: CreateStateMachineAsyncType? = nil, createStateMachineSync: CreateStateMachineSyncType? = nil, + createStateMachineAliasAsync: CreateStateMachineAliasAsyncType? = nil, + createStateMachineAliasSync: CreateStateMachineAliasSyncType? = nil, deleteActivityAsync: DeleteActivityAsyncType? = nil, deleteActivitySync: DeleteActivitySyncType? = nil, deleteStateMachineAsync: DeleteStateMachineAsyncType? = nil, deleteStateMachineSync: DeleteStateMachineSyncType? = nil, + deleteStateMachineAliasAsync: DeleteStateMachineAliasAsyncType? = nil, + deleteStateMachineAliasSync: DeleteStateMachineAliasSyncType? = nil, + deleteStateMachineVersionAsync: DeleteStateMachineVersionAsyncType? = nil, + deleteStateMachineVersionSync: DeleteStateMachineVersionSyncType? = nil, describeActivityAsync: DescribeActivityAsyncType? = nil, describeActivitySync: DescribeActivitySyncType? = nil, describeExecutionAsync: DescribeExecutionAsyncType? = nil, @@ -104,6 +126,8 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { describeMapRunSync: DescribeMapRunSyncType? = nil, describeStateMachineAsync: DescribeStateMachineAsyncType? = nil, describeStateMachineSync: DescribeStateMachineSyncType? = nil, + describeStateMachineAliasAsync: DescribeStateMachineAliasAsyncType? = nil, + describeStateMachineAliasSync: DescribeStateMachineAliasSyncType? = nil, describeStateMachineForExecutionAsync: DescribeStateMachineForExecutionAsyncType? = nil, describeStateMachineForExecutionSync: DescribeStateMachineForExecutionSyncType? = nil, getActivityTaskAsync: GetActivityTaskAsyncType? = nil, @@ -116,10 +140,16 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { listExecutionsSync: ListExecutionsSyncType? = nil, listMapRunsAsync: ListMapRunsAsyncType? = nil, listMapRunsSync: ListMapRunsSyncType? = nil, + listStateMachineAliasesAsync: ListStateMachineAliasesAsyncType? = nil, + listStateMachineAliasesSync: ListStateMachineAliasesSyncType? = nil, + listStateMachineVersionsAsync: ListStateMachineVersionsAsyncType? = nil, + listStateMachineVersionsSync: ListStateMachineVersionsSyncType? = nil, listStateMachinesAsync: ListStateMachinesAsyncType? = nil, listStateMachinesSync: ListStateMachinesSyncType? = nil, listTagsForResourceAsync: ListTagsForResourceAsyncType? = nil, listTagsForResourceSync: ListTagsForResourceSyncType? = nil, + publishStateMachineVersionAsync: PublishStateMachineVersionAsyncType? = nil, + publishStateMachineVersionSync: PublishStateMachineVersionSyncType? = nil, sendTaskFailureAsync: SendTaskFailureAsyncType? = nil, sendTaskFailureSync: SendTaskFailureSyncType? = nil, sendTaskHeartbeatAsync: SendTaskHeartbeatAsyncType? = nil, @@ -139,16 +169,24 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { updateMapRunAsync: UpdateMapRunAsyncType? = nil, updateMapRunSync: UpdateMapRunSyncType? = nil, updateStateMachineAsync: UpdateStateMachineAsyncType? = nil, - updateStateMachineSync: UpdateStateMachineSyncType? = nil) { + updateStateMachineSync: UpdateStateMachineSyncType? = nil, + updateStateMachineAliasAsync: UpdateStateMachineAliasAsyncType? = nil, + updateStateMachineAliasSync: UpdateStateMachineAliasSyncType? = nil) { self.error = error self.createActivityAsyncOverride = createActivityAsync self.createActivitySyncOverride = createActivitySync self.createStateMachineAsyncOverride = createStateMachineAsync self.createStateMachineSyncOverride = createStateMachineSync + self.createStateMachineAliasAsyncOverride = createStateMachineAliasAsync + self.createStateMachineAliasSyncOverride = createStateMachineAliasSync self.deleteActivityAsyncOverride = deleteActivityAsync self.deleteActivitySyncOverride = deleteActivitySync self.deleteStateMachineAsyncOverride = deleteStateMachineAsync self.deleteStateMachineSyncOverride = deleteStateMachineSync + self.deleteStateMachineAliasAsyncOverride = deleteStateMachineAliasAsync + self.deleteStateMachineAliasSyncOverride = deleteStateMachineAliasSync + self.deleteStateMachineVersionAsyncOverride = deleteStateMachineVersionAsync + self.deleteStateMachineVersionSyncOverride = deleteStateMachineVersionSync self.describeActivityAsyncOverride = describeActivityAsync self.describeActivitySyncOverride = describeActivitySync self.describeExecutionAsyncOverride = describeExecutionAsync @@ -157,6 +195,8 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { self.describeMapRunSyncOverride = describeMapRunSync self.describeStateMachineAsyncOverride = describeStateMachineAsync self.describeStateMachineSyncOverride = describeStateMachineSync + self.describeStateMachineAliasAsyncOverride = describeStateMachineAliasAsync + self.describeStateMachineAliasSyncOverride = describeStateMachineAliasSync self.describeStateMachineForExecutionAsyncOverride = describeStateMachineForExecutionAsync self.describeStateMachineForExecutionSyncOverride = describeStateMachineForExecutionSync self.getActivityTaskAsyncOverride = getActivityTaskAsync @@ -169,10 +209,16 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { self.listExecutionsSyncOverride = listExecutionsSync self.listMapRunsAsyncOverride = listMapRunsAsync self.listMapRunsSyncOverride = listMapRunsSync + self.listStateMachineAliasesAsyncOverride = listStateMachineAliasesAsync + self.listStateMachineAliasesSyncOverride = listStateMachineAliasesSync + self.listStateMachineVersionsAsyncOverride = listStateMachineVersionsAsync + self.listStateMachineVersionsSyncOverride = listStateMachineVersionsSync self.listStateMachinesAsyncOverride = listStateMachinesAsync self.listStateMachinesSyncOverride = listStateMachinesSync self.listTagsForResourceAsyncOverride = listTagsForResourceAsync self.listTagsForResourceSyncOverride = listTagsForResourceSync + self.publishStateMachineVersionAsyncOverride = publishStateMachineVersionAsync + self.publishStateMachineVersionSyncOverride = publishStateMachineVersionSync self.sendTaskFailureAsyncOverride = sendTaskFailureAsync self.sendTaskFailureSyncOverride = sendTaskFailureSync self.sendTaskHeartbeatAsyncOverride = sendTaskHeartbeatAsync @@ -193,6 +239,8 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { self.updateMapRunSyncOverride = updateMapRunSync self.updateStateMachineAsyncOverride = updateStateMachineAsync self.updateStateMachineSyncOverride = updateStateMachineSync + self.updateStateMachineAliasAsyncOverride = updateStateMachineAliasAsync + self.updateStateMachineAliasSyncOverride = updateStateMachineAliasSync } /** @@ -241,7 +289,7 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { - completion: The CreateStateMachineOutput object or an error will be passed to this callback when the operation is complete. The CreateStateMachineOutput object will be validated before being returned to caller. - The possible errors are: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ public func createStateMachineAsync( input: StepFunctionsModel.CreateStateMachineInput, @@ -260,7 +308,7 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ public func createStateMachineSync( input: StepFunctionsModel.CreateStateMachineInput) throws -> StepFunctionsModel.CreateStateMachineOutput { @@ -271,6 +319,44 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { throw error } + /** + Invokes the CreateStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - completion: The CreateStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The CreateStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAliasAsync( + input: StepFunctionsModel.CreateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let createStateMachineAliasAsyncOverride = createStateMachineAliasAsyncOverride { + return try createStateMachineAliasAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the CreateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAliasSync( + input: StepFunctionsModel.CreateStateMachineAliasInput) throws -> StepFunctionsModel.CreateStateMachineAliasOutput { + if let createStateMachineAliasSyncOverride = createStateMachineAliasSyncOverride { + return try createStateMachineAliasSyncOverride(input) + } + + throw error + } + /** Invokes the DeleteActivity operation returning immediately and passing the response to a callback. @@ -347,6 +433,82 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { throw error } + /** + Invokes the DeleteStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - completion: The DeleteStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAliasAsync( + input: StepFunctionsModel.DeleteStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let deleteStateMachineAliasAsyncOverride = deleteStateMachineAliasAsyncOverride { + return try deleteStateMachineAliasAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DeleteStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAliasSync( + input: StepFunctionsModel.DeleteStateMachineAliasInput) throws -> StepFunctionsModel.DeleteStateMachineAliasOutput { + if let deleteStateMachineAliasSyncOverride = deleteStateMachineAliasSyncOverride { + return try deleteStateMachineAliasSyncOverride(input) + } + + throw error + } + + /** + Invokes the DeleteStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - completion: The DeleteStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The DeleteStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersionAsync( + input: StepFunctionsModel.DeleteStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws { + if let deleteStateMachineVersionAsyncOverride = deleteStateMachineVersionAsyncOverride { + return try deleteStateMachineVersionAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DeleteStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersionSync( + input: StepFunctionsModel.DeleteStateMachineVersionInput) throws -> StepFunctionsModel.DeleteStateMachineVersionOutput { + if let deleteStateMachineVersionSyncOverride = deleteStateMachineVersionSyncOverride { + return try deleteStateMachineVersionSyncOverride(input) + } + + throw error + } + /** Invokes the DescribeActivity operation returning immediately and passing the response to a callback. @@ -499,6 +661,44 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { throw error } + /** + Invokes the DescribeStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - completion: The DescribeStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The DescribeStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAliasAsync( + input: StepFunctionsModel.DescribeStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let describeStateMachineAliasAsyncOverride = describeStateMachineAliasAsyncOverride { + return try describeStateMachineAliasAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the DescribeStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAliasSync( + input: StepFunctionsModel.DescribeStateMachineAliasInput) throws -> StepFunctionsModel.DescribeStateMachineAliasOutput { + if let describeStateMachineAliasSyncOverride = describeStateMachineAliasSyncOverride { + return try describeStateMachineAliasSyncOverride(input) + } + + throw error + } + /** Invokes the DescribeStateMachineForExecution operation returning immediately and passing the response to a callback. @@ -727,6 +927,82 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { throw error } + /** + Invokes the ListStateMachineAliases operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - completion: The ListStateMachineAliasesOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineAliasesOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliasesAsync( + input: StepFunctionsModel.ListStateMachineAliasesInput, + completion: @escaping (Result) -> ()) throws { + if let listStateMachineAliasesAsyncOverride = listStateMachineAliasesAsyncOverride { + return try listStateMachineAliasesAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the ListStateMachineAliases operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliasesSync( + input: StepFunctionsModel.ListStateMachineAliasesInput) throws -> StepFunctionsModel.ListStateMachineAliasesOutput { + if let listStateMachineAliasesSyncOverride = listStateMachineAliasesSyncOverride { + return try listStateMachineAliasesSyncOverride(input) + } + + throw error + } + + /** + Invokes the ListStateMachineVersions operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - completion: The ListStateMachineVersionsOutput object or an error will be passed to this + callback when the operation is complete. The ListStateMachineVersionsOutput + object will be validated before being returned to caller. + The possible errors are: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersionsAsync( + input: StepFunctionsModel.ListStateMachineVersionsInput, + completion: @escaping (Result) -> ()) throws { + if let listStateMachineVersionsAsyncOverride = listStateMachineVersionsAsyncOverride { + return try listStateMachineVersionsAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the ListStateMachineVersions operation waiting for the response before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersionsSync( + input: StepFunctionsModel.ListStateMachineVersionsInput) throws -> StepFunctionsModel.ListStateMachineVersionsOutput { + if let listStateMachineVersionsSyncOverride = listStateMachineVersionsSyncOverride { + return try listStateMachineVersionsSyncOverride(input) + } + + throw error + } + /** Invokes the ListStateMachines operation returning immediately and passing the response to a callback. @@ -803,6 +1079,44 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { throw error } + /** + Invokes the PublishStateMachineVersion operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - completion: The PublishStateMachineVersionOutput object or an error will be passed to this + callback when the operation is complete. The PublishStateMachineVersionOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersionAsync( + input: StepFunctionsModel.PublishStateMachineVersionInput, + completion: @escaping (Result) -> ()) throws { + if let publishStateMachineVersionAsyncOverride = publishStateMachineVersionAsyncOverride { + return try publishStateMachineVersionAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the PublishStateMachineVersion operation waiting for the response before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersionSync( + input: StepFunctionsModel.PublishStateMachineVersionInput) throws -> StepFunctionsModel.PublishStateMachineVersionOutput { + if let publishStateMachineVersionSyncOverride = publishStateMachineVersionSyncOverride { + return try publishStateMachineVersionSyncOverride(input) + } + + throw error + } + /** Invokes the SendTaskFailure operation returning immediately and passing the response to a callback. @@ -1153,7 +1467,7 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { - completion: The UpdateStateMachineOutput object or an error will be passed to this callback when the operation is complete. The UpdateStateMachineOutput object will be validated before being returned to caller. - The possible errors are: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + The possible errors are: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ public func updateStateMachineAsync( input: StepFunctionsModel.UpdateStateMachineInput, @@ -1172,7 +1486,7 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ public func updateStateMachineSync( input: StepFunctionsModel.UpdateStateMachineInput) throws -> StepFunctionsModel.UpdateStateMachineOutput { @@ -1182,4 +1496,42 @@ public struct ThrowingStepFunctionsClient: StepFunctionsClientProtocol { throw error } + + /** + Invokes the UpdateStateMachineAlias operation returning immediately and passing the response to a callback. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - completion: The UpdateStateMachineAliasOutput object or an error will be passed to this + callback when the operation is complete. The UpdateStateMachineAliasOutput + object will be validated before being returned to caller. + The possible errors are: conflict, invalidArn, resourceNotFound, validation. + */ + public func updateStateMachineAliasAsync( + input: StepFunctionsModel.UpdateStateMachineAliasInput, + completion: @escaping (Result) -> ()) throws { + if let updateStateMachineAliasAsyncOverride = updateStateMachineAliasAsyncOverride { + return try updateStateMachineAliasAsyncOverride(input, completion) + } + + completion(.failure(error)) + } + + /** + Invokes the UpdateStateMachineAlias operation waiting for the response before returning. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func updateStateMachineAliasSync( + input: StepFunctionsModel.UpdateStateMachineAliasInput) throws -> StepFunctionsModel.UpdateStateMachineAliasOutput { + if let updateStateMachineAliasSyncOverride = updateStateMachineAliasSyncOverride { + return try updateStateMachineAliasSyncOverride(input) + } + + throw error + } } diff --git a/Sources/StepFunctionsClient/ThrowingStepFunctionsClientV2.swift b/Sources/StepFunctionsClient/ThrowingStepFunctionsClientV2.swift index b159507..48c09a5 100644 --- a/Sources/StepFunctionsClient/ThrowingStepFunctionsClientV2.swift +++ b/Sources/StepFunctionsClient/ThrowingStepFunctionsClientV2.swift @@ -33,20 +33,27 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { let error: StepFunctionsError let createActivityOverride: CreateActivityFunctionType? let createStateMachineOverride: CreateStateMachineFunctionType? + let createStateMachineAliasOverride: CreateStateMachineAliasFunctionType? let deleteActivityOverride: DeleteActivityFunctionType? let deleteStateMachineOverride: DeleteStateMachineFunctionType? + let deleteStateMachineAliasOverride: DeleteStateMachineAliasFunctionType? + let deleteStateMachineVersionOverride: DeleteStateMachineVersionFunctionType? let describeActivityOverride: DescribeActivityFunctionType? let describeExecutionOverride: DescribeExecutionFunctionType? let describeMapRunOverride: DescribeMapRunFunctionType? let describeStateMachineOverride: DescribeStateMachineFunctionType? + let describeStateMachineAliasOverride: DescribeStateMachineAliasFunctionType? let describeStateMachineForExecutionOverride: DescribeStateMachineForExecutionFunctionType? let getActivityTaskOverride: GetActivityTaskFunctionType? let getExecutionHistoryOverride: GetExecutionHistoryFunctionType? let listActivitiesOverride: ListActivitiesFunctionType? let listExecutionsOverride: ListExecutionsFunctionType? let listMapRunsOverride: ListMapRunsFunctionType? + let listStateMachineAliasesOverride: ListStateMachineAliasesFunctionType? + let listStateMachineVersionsOverride: ListStateMachineVersionsFunctionType? let listStateMachinesOverride: ListStateMachinesFunctionType? let listTagsForResourceOverride: ListTagsForResourceFunctionType? + let publishStateMachineVersionOverride: PublishStateMachineVersionFunctionType? let sendTaskFailureOverride: SendTaskFailureFunctionType? let sendTaskHeartbeatOverride: SendTaskHeartbeatFunctionType? let sendTaskSuccessOverride: SendTaskSuccessFunctionType? @@ -57,6 +64,7 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { let untagResourceOverride: UntagResourceFunctionType? let updateMapRunOverride: UpdateMapRunFunctionType? let updateStateMachineOverride: UpdateStateMachineFunctionType? + let updateStateMachineAliasOverride: UpdateStateMachineAliasFunctionType? /** Initializer that creates an instance of this clients. The behavior of individual @@ -65,20 +73,27 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { public init(error: StepFunctionsError, createActivity: CreateActivityFunctionType? = nil, createStateMachine: CreateStateMachineFunctionType? = nil, + createStateMachineAlias: CreateStateMachineAliasFunctionType? = nil, deleteActivity: DeleteActivityFunctionType? = nil, deleteStateMachine: DeleteStateMachineFunctionType? = nil, + deleteStateMachineAlias: DeleteStateMachineAliasFunctionType? = nil, + deleteStateMachineVersion: DeleteStateMachineVersionFunctionType? = nil, describeActivity: DescribeActivityFunctionType? = nil, describeExecution: DescribeExecutionFunctionType? = nil, describeMapRun: DescribeMapRunFunctionType? = nil, describeStateMachine: DescribeStateMachineFunctionType? = nil, + describeStateMachineAlias: DescribeStateMachineAliasFunctionType? = nil, describeStateMachineForExecution: DescribeStateMachineForExecutionFunctionType? = nil, getActivityTask: GetActivityTaskFunctionType? = nil, getExecutionHistory: GetExecutionHistoryFunctionType? = nil, listActivities: ListActivitiesFunctionType? = nil, listExecutions: ListExecutionsFunctionType? = nil, listMapRuns: ListMapRunsFunctionType? = nil, + listStateMachineAliases: ListStateMachineAliasesFunctionType? = nil, + listStateMachineVersions: ListStateMachineVersionsFunctionType? = nil, listStateMachines: ListStateMachinesFunctionType? = nil, listTagsForResource: ListTagsForResourceFunctionType? = nil, + publishStateMachineVersion: PublishStateMachineVersionFunctionType? = nil, sendTaskFailure: SendTaskFailureFunctionType? = nil, sendTaskHeartbeat: SendTaskHeartbeatFunctionType? = nil, sendTaskSuccess: SendTaskSuccessFunctionType? = nil, @@ -88,24 +103,32 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { tagResource: TagResourceFunctionType? = nil, untagResource: UntagResourceFunctionType? = nil, updateMapRun: UpdateMapRunFunctionType? = nil, - updateStateMachine: UpdateStateMachineFunctionType? = nil) { + updateStateMachine: UpdateStateMachineFunctionType? = nil, + updateStateMachineAlias: UpdateStateMachineAliasFunctionType? = nil) { self.error = error self.createActivityOverride = createActivity self.createStateMachineOverride = createStateMachine + self.createStateMachineAliasOverride = createStateMachineAlias self.deleteActivityOverride = deleteActivity self.deleteStateMachineOverride = deleteStateMachine + self.deleteStateMachineAliasOverride = deleteStateMachineAlias + self.deleteStateMachineVersionOverride = deleteStateMachineVersion self.describeActivityOverride = describeActivity self.describeExecutionOverride = describeExecution self.describeMapRunOverride = describeMapRun self.describeStateMachineOverride = describeStateMachine + self.describeStateMachineAliasOverride = describeStateMachineAlias self.describeStateMachineForExecutionOverride = describeStateMachineForExecution self.getActivityTaskOverride = getActivityTask self.getExecutionHistoryOverride = getExecutionHistory self.listActivitiesOverride = listActivities self.listExecutionsOverride = listExecutions self.listMapRunsOverride = listMapRuns + self.listStateMachineAliasesOverride = listStateMachineAliases + self.listStateMachineVersionsOverride = listStateMachineVersions self.listStateMachinesOverride = listStateMachines self.listTagsForResourceOverride = listTagsForResource + self.publishStateMachineVersionOverride = publishStateMachineVersion self.sendTaskFailureOverride = sendTaskFailure self.sendTaskHeartbeatOverride = sendTaskHeartbeat self.sendTaskSuccessOverride = sendTaskSuccess @@ -116,6 +139,7 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { self.untagResourceOverride = untagResource self.updateMapRunOverride = updateMapRun self.updateStateMachineOverride = updateStateMachine + self.updateStateMachineAliasOverride = updateStateMachineAlias } /** @@ -143,7 +167,7 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { - input: The validated CreateStateMachineInput object being passed to this operation. - Returns: The CreateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidName, invalidTracingConfiguration, stateMachineAlreadyExists, stateMachineDeleting, stateMachineLimitExceeded, stateMachineTypeNotSupported, tooManyTags, validation. */ public func createStateMachine( input: StepFunctionsModel.CreateStateMachineInput) async throws -> StepFunctionsModel.CreateStateMachineOutput { @@ -154,6 +178,24 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { throw error } + /** + Invokes the CreateStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated CreateStateMachineAliasInput object being passed to this operation. + - Returns: The CreateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, invalidName, resourceNotFound, serviceQuotaExceeded, stateMachineDeleting, validation. + */ + public func createStateMachineAlias( + input: StepFunctionsModel.CreateStateMachineAliasInput) async throws -> StepFunctionsModel.CreateStateMachineAliasOutput { + if let createStateMachineAliasOverride = createStateMachineAliasOverride { + return try await createStateMachineAliasOverride(input) + } + + throw error + } + /** Invokes the DeleteActivity operation suspending until the response is available before returning. @@ -190,6 +232,42 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { throw error } + /** + Invokes the DeleteStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineAliasInput object being passed to this operation. + - Returns: The DeleteStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func deleteStateMachineAlias( + input: StepFunctionsModel.DeleteStateMachineAliasInput) async throws -> StepFunctionsModel.DeleteStateMachineAliasOutput { + if let deleteStateMachineAliasOverride = deleteStateMachineAliasOverride { + return try await deleteStateMachineAliasOverride(input) + } + + throw error + } + + /** + Invokes the DeleteStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DeleteStateMachineVersionInput object being passed to this operation. + - Returns: The DeleteStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, validation. + */ + public func deleteStateMachineVersion( + input: StepFunctionsModel.DeleteStateMachineVersionInput) async throws -> StepFunctionsModel.DeleteStateMachineVersionOutput { + if let deleteStateMachineVersionOverride = deleteStateMachineVersionOverride { + return try await deleteStateMachineVersionOverride(input) + } + + throw error + } + /** Invokes the DescribeActivity operation suspending until the response is available before returning. @@ -262,6 +340,24 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { throw error } + /** + Invokes the DescribeStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated DescribeStateMachineAliasInput object being passed to this operation. + - Returns: The DescribeStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, resourceNotFound, validation. + */ + public func describeStateMachineAlias( + input: StepFunctionsModel.DescribeStateMachineAliasInput) async throws -> StepFunctionsModel.DescribeStateMachineAliasOutput { + if let describeStateMachineAliasOverride = describeStateMachineAliasOverride { + return try await describeStateMachineAliasOverride(input) + } + + throw error + } + /** Invokes the DescribeStateMachineForExecution operation suspending until the response is available before returning. @@ -370,6 +466,42 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { throw error } + /** + Invokes the ListStateMachineAliases operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineAliasesInput object being passed to this operation. + - Returns: The ListStateMachineAliasesOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, resourceNotFound, stateMachineDeleting, stateMachineDoesNotExist. + */ + public func listStateMachineAliases( + input: StepFunctionsModel.ListStateMachineAliasesInput) async throws -> StepFunctionsModel.ListStateMachineAliasesOutput { + if let listStateMachineAliasesOverride = listStateMachineAliasesOverride { + return try await listStateMachineAliasesOverride(input) + } + + throw error + } + + /** + Invokes the ListStateMachineVersions operation suspending until the response is available before returning. + + - Parameters: + - input: The validated ListStateMachineVersionsInput object being passed to this operation. + - Returns: The ListStateMachineVersionsOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: invalidArn, invalidToken, validation. + */ + public func listStateMachineVersions( + input: StepFunctionsModel.ListStateMachineVersionsInput) async throws -> StepFunctionsModel.ListStateMachineVersionsOutput { + if let listStateMachineVersionsOverride = listStateMachineVersionsOverride { + return try await listStateMachineVersionsOverride(input) + } + + throw error + } + /** Invokes the ListStateMachines operation suspending until the response is available before returning. @@ -406,6 +538,24 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { throw error } + /** + Invokes the PublishStateMachineVersion operation suspending until the response is available before returning. + + - Parameters: + - input: The validated PublishStateMachineVersionInput object being passed to this operation. + - Returns: The PublishStateMachineVersionOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. + */ + public func publishStateMachineVersion( + input: StepFunctionsModel.PublishStateMachineVersionInput) async throws -> StepFunctionsModel.PublishStateMachineVersionOutput { + if let publishStateMachineVersionOverride = publishStateMachineVersionOverride { + return try await publishStateMachineVersionOverride(input) + } + + throw error + } + /** Invokes the SendTaskFailure operation suspending until the response is available before returning. @@ -575,7 +725,7 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { - input: The validated UpdateStateMachineInput object being passed to this operation. - Returns: The UpdateStateMachineOutput object to be passed back from the caller of this operation. Will be validated before being returned to caller. - - Throws: invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, stateMachineDeleting, stateMachineDoesNotExist, validation. + - Throws: conflict, invalidArn, invalidDefinition, invalidLoggingConfiguration, invalidTracingConfiguration, missingRequiredParameter, serviceQuotaExceeded, stateMachineDeleting, stateMachineDoesNotExist, validation. */ public func updateStateMachine( input: StepFunctionsModel.UpdateStateMachineInput) async throws -> StepFunctionsModel.UpdateStateMachineOutput { @@ -585,5 +735,23 @@ public struct ThrowingStepFunctionsClientV2: StepFunctionsClientProtocolV2 { throw error } + + /** + Invokes the UpdateStateMachineAlias operation suspending until the response is available before returning. + + - Parameters: + - input: The validated UpdateStateMachineAliasInput object being passed to this operation. + - Returns: The UpdateStateMachineAliasOutput object to be passed back from the caller of this operation. + Will be validated before being returned to caller. + - Throws: conflict, invalidArn, resourceNotFound, validation. + */ + public func updateStateMachineAlias( + input: StepFunctionsModel.UpdateStateMachineAliasInput) async throws -> StepFunctionsModel.UpdateStateMachineAliasOutput { + if let updateStateMachineAliasOverride = updateStateMachineAliasOverride { + return try await updateStateMachineAliasOverride(input) + } + + throw error + } #endif } diff --git a/Sources/StepFunctionsModel/StepFunctionsModelDefaultInstances.swift b/Sources/StepFunctionsModel/StepFunctionsModelDefaultInstances.swift index c218679..4f9328b 100644 --- a/Sources/StepFunctionsModel/StepFunctionsModelDefaultInstances.swift +++ b/Sources/StepFunctionsModel/StepFunctionsModelDefaultInstances.swift @@ -189,6 +189,18 @@ public extension CloudWatchLogsLogGroup { }() } +public extension ConflictException { + /** + Default instance of the ConflictException structure. + */ + static let __default: StepFunctionsModel.ConflictException = { + let defaultInstance = StepFunctionsModel.ConflictException( + message: nil) + + return defaultInstance + }() +} + public extension CreateActivityInput { /** Default instance of the CreateActivityInput structure. @@ -215,6 +227,33 @@ public extension CreateActivityOutput { }() } +public extension CreateStateMachineAliasInput { + /** + Default instance of the CreateStateMachineAliasInput structure. + */ + static let __default: StepFunctionsModel.CreateStateMachineAliasInput = { + let defaultInstance = StepFunctionsModel.CreateStateMachineAliasInput( + description: nil, + name: "0", + routingConfiguration: [RoutingConfigurationListItem.__default]) + + return defaultInstance + }() +} + +public extension CreateStateMachineAliasOutput { + /** + Default instance of the CreateStateMachineAliasOutput structure. + */ + static let __default: StepFunctionsModel.CreateStateMachineAliasOutput = { + let defaultInstance = StepFunctionsModel.CreateStateMachineAliasOutput( + creationDate: 1.52953091375E9, + stateMachineAliasArn: "0") + + return defaultInstance + }() +} + public extension CreateStateMachineInput { /** Default instance of the CreateStateMachineInput structure. @@ -224,10 +263,12 @@ public extension CreateStateMachineInput { definition: "0", loggingConfiguration: nil, name: "0", + publish: nil, roleArn: "0", tags: nil, tracingConfiguration: nil, - type: nil) + type: nil, + versionDescription: nil) return defaultInstance }() @@ -240,7 +281,8 @@ public extension CreateStateMachineOutput { static let __default: StepFunctionsModel.CreateStateMachineOutput = { let defaultInstance = StepFunctionsModel.CreateStateMachineOutput( creationDate: 1.52953091375E9, - stateMachineArn: "0") + stateMachineArn: "0", + stateMachineVersionArn: nil) return defaultInstance }() @@ -269,6 +311,29 @@ public extension DeleteActivityOutput { }() } +public extension DeleteStateMachineAliasInput { + /** + Default instance of the DeleteStateMachineAliasInput structure. + */ + static let __default: StepFunctionsModel.DeleteStateMachineAliasInput = { + let defaultInstance = StepFunctionsModel.DeleteStateMachineAliasInput( + stateMachineAliasArn: "0") + + return defaultInstance + }() +} + +public extension DeleteStateMachineAliasOutput { + /** + Default instance of the DeleteStateMachineAliasOutput structure. + */ + static let __default: StepFunctionsModel.DeleteStateMachineAliasOutput = { + let defaultInstance = StepFunctionsModel.DeleteStateMachineAliasOutput() + + return defaultInstance + }() +} + public extension DeleteStateMachineInput { /** Default instance of the DeleteStateMachineInput structure. @@ -292,6 +357,29 @@ public extension DeleteStateMachineOutput { }() } +public extension DeleteStateMachineVersionInput { + /** + Default instance of the DeleteStateMachineVersionInput structure. + */ + static let __default: StepFunctionsModel.DeleteStateMachineVersionInput = { + let defaultInstance = StepFunctionsModel.DeleteStateMachineVersionInput( + stateMachineVersionArn: "0") + + return defaultInstance + }() +} + +public extension DeleteStateMachineVersionOutput { + /** + Default instance of the DeleteStateMachineVersionOutput structure. + */ + static let __default: StepFunctionsModel.DeleteStateMachineVersionOutput = { + let defaultInstance = StepFunctionsModel.DeleteStateMachineVersionOutput() + + return defaultInstance + }() +} + public extension DescribeActivityInput { /** Default instance of the DescribeActivityInput structure. @@ -346,7 +434,9 @@ public extension DescribeExecutionOutput { output: nil, outputDetails: nil, startDate: 1.52953091375E9, + stateMachineAliasArn: nil, stateMachineArn: "0", + stateMachineVersionArn: nil, status: .__default, stopDate: nil, traceHeader: nil) @@ -388,6 +478,35 @@ public extension DescribeMapRunOutput { }() } +public extension DescribeStateMachineAliasInput { + /** + Default instance of the DescribeStateMachineAliasInput structure. + */ + static let __default: StepFunctionsModel.DescribeStateMachineAliasInput = { + let defaultInstance = StepFunctionsModel.DescribeStateMachineAliasInput( + stateMachineAliasArn: "0") + + return defaultInstance + }() +} + +public extension DescribeStateMachineAliasOutput { + /** + Default instance of the DescribeStateMachineAliasOutput structure. + */ + static let __default: StepFunctionsModel.DescribeStateMachineAliasOutput = { + let defaultInstance = StepFunctionsModel.DescribeStateMachineAliasOutput( + creationDate: nil, + description: nil, + name: nil, + routingConfiguration: nil, + stateMachineAliasArn: nil, + updateDate: nil) + + return defaultInstance + }() +} + public extension DescribeStateMachineForExecutionInput { /** Default instance of the DescribeStateMachineForExecutionInput structure. @@ -411,6 +530,7 @@ public extension DescribeStateMachineForExecutionOutput { loggingConfiguration: nil, mapRunArn: nil, name: "0", + revisionId: nil, roleArn: "0", stateMachineArn: "0", tracingConfiguration: nil, @@ -440,9 +560,11 @@ public extension DescribeStateMachineOutput { let defaultInstance = StepFunctionsModel.DescribeStateMachineOutput( creationDate: 1.52953091375E9, definition: "0", + description: nil, label: nil, loggingConfiguration: nil, name: "0", + revisionId: nil, roleArn: "0", stateMachineArn: "0", status: nil, @@ -526,7 +648,9 @@ public extension ExecutionListItem { mapRunArn: nil, name: "0", startDate: 1.52953091375E9, + stateMachineAliasArn: nil, stateMachineArn: "0", + stateMachineVersionArn: nil, status: .__default, stopDate: nil) @@ -542,7 +666,9 @@ public extension ExecutionStartedEventDetails { let defaultInstance = StepFunctionsModel.ExecutionStartedEventDetails( input: nil, inputDetails: nil, - roleArn: nil) + roleArn: nil, + stateMachineAliasArn: nil, + stateMachineVersionArn: nil) return defaultInstance }() @@ -949,6 +1075,60 @@ public extension ListMapRunsOutput { }() } +public extension ListStateMachineAliasesInput { + /** + Default instance of the ListStateMachineAliasesInput structure. + */ + static let __default: StepFunctionsModel.ListStateMachineAliasesInput = { + let defaultInstance = StepFunctionsModel.ListStateMachineAliasesInput( + maxResults: nil, + nextToken: nil, + stateMachineArn: "0") + + return defaultInstance + }() +} + +public extension ListStateMachineAliasesOutput { + /** + Default instance of the ListStateMachineAliasesOutput structure. + */ + static let __default: StepFunctionsModel.ListStateMachineAliasesOutput = { + let defaultInstance = StepFunctionsModel.ListStateMachineAliasesOutput( + nextToken: nil, + stateMachineAliases: []) + + return defaultInstance + }() +} + +public extension ListStateMachineVersionsInput { + /** + Default instance of the ListStateMachineVersionsInput structure. + */ + static let __default: StepFunctionsModel.ListStateMachineVersionsInput = { + let defaultInstance = StepFunctionsModel.ListStateMachineVersionsInput( + maxResults: nil, + nextToken: nil, + stateMachineArn: "0") + + return defaultInstance + }() +} + +public extension ListStateMachineVersionsOutput { + /** + Default instance of the ListStateMachineVersionsOutput structure. + */ + static let __default: StepFunctionsModel.ListStateMachineVersionsOutput = { + let defaultInstance = StepFunctionsModel.ListStateMachineVersionsOutput( + nextToken: nil, + stateMachineVersions: []) + + return defaultInstance + }() +} + public extension ListStateMachinesInput { /** Default instance of the ListStateMachinesInput structure. @@ -1141,6 +1321,33 @@ public extension MissingRequiredParameter { }() } +public extension PublishStateMachineVersionInput { + /** + Default instance of the PublishStateMachineVersionInput structure. + */ + static let __default: StepFunctionsModel.PublishStateMachineVersionInput = { + let defaultInstance = StepFunctionsModel.PublishStateMachineVersionInput( + description: nil, + revisionId: nil, + stateMachineArn: "0") + + return defaultInstance + }() +} + +public extension PublishStateMachineVersionOutput { + /** + Default instance of the PublishStateMachineVersionOutput structure. + */ + static let __default: StepFunctionsModel.PublishStateMachineVersionOutput = { + let defaultInstance = StepFunctionsModel.PublishStateMachineVersionOutput( + creationDate: 1.52953091375E9, + stateMachineVersionArn: "0") + + return defaultInstance + }() +} + public extension ResourceNotFound { /** Default instance of the ResourceNotFound structure. @@ -1154,6 +1361,19 @@ public extension ResourceNotFound { }() } +public extension RoutingConfigurationListItem { + /** + Default instance of the RoutingConfigurationListItem structure. + */ + static let __default: StepFunctionsModel.RoutingConfigurationListItem = { + let defaultInstance = StepFunctionsModel.RoutingConfigurationListItem( + stateMachineVersionArn: "0", + weight: 0) + + return defaultInstance + }() +} + public extension SendTaskFailureInput { /** Default instance of the SendTaskFailureInput structure. @@ -1226,6 +1446,18 @@ public extension SendTaskSuccessOutput { }() } +public extension ServiceQuotaExceededException { + /** + Default instance of the ServiceQuotaExceededException structure. + */ + static let __default: StepFunctionsModel.ServiceQuotaExceededException = { + let defaultInstance = StepFunctionsModel.ServiceQuotaExceededException( + message: nil) + + return defaultInstance + }() +} + public extension StartExecutionInput { /** Default instance of the StartExecutionInput structure. @@ -1322,6 +1554,19 @@ public extension StateExitedEventDetails { }() } +public extension StateMachineAliasListItem { + /** + Default instance of the StateMachineAliasListItem structure. + */ + static let __default: StepFunctionsModel.StateMachineAliasListItem = { + let defaultInstance = StepFunctionsModel.StateMachineAliasListItem( + creationDate: 1.52953091375E9, + stateMachineAliasArn: "0") + + return defaultInstance + }() +} + public extension StateMachineAlreadyExists { /** Default instance of the StateMachineAlreadyExists structure. @@ -1397,6 +1642,19 @@ public extension StateMachineTypeNotSupported { }() } +public extension StateMachineVersionListItem { + /** + Default instance of the StateMachineVersionListItem structure. + */ + static let __default: StepFunctionsModel.StateMachineVersionListItem = { + let defaultInstance = StepFunctionsModel.StateMachineVersionListItem( + creationDate: 1.52953091375E9, + stateMachineVersionArn: "0") + + return defaultInstance + }() +} + public extension StopExecutionInput { /** Default instance of the StopExecutionInput structure. @@ -1692,6 +1950,32 @@ public extension UpdateMapRunOutput { }() } +public extension UpdateStateMachineAliasInput { + /** + Default instance of the UpdateStateMachineAliasInput structure. + */ + static let __default: StepFunctionsModel.UpdateStateMachineAliasInput = { + let defaultInstance = StepFunctionsModel.UpdateStateMachineAliasInput( + description: nil, + routingConfiguration: nil, + stateMachineAliasArn: "0") + + return defaultInstance + }() +} + +public extension UpdateStateMachineAliasOutput { + /** + Default instance of the UpdateStateMachineAliasOutput structure. + */ + static let __default: StepFunctionsModel.UpdateStateMachineAliasOutput = { + let defaultInstance = StepFunctionsModel.UpdateStateMachineAliasOutput( + updateDate: 1.52953091375E9) + + return defaultInstance + }() +} + public extension UpdateStateMachineInput { /** Default instance of the UpdateStateMachineInput structure. @@ -1700,9 +1984,11 @@ public extension UpdateStateMachineInput { let defaultInstance = StepFunctionsModel.UpdateStateMachineInput( definition: nil, loggingConfiguration: nil, + publish: nil, roleArn: nil, stateMachineArn: "0", - tracingConfiguration: nil) + tracingConfiguration: nil, + versionDescription: nil) return defaultInstance }() @@ -1714,6 +2000,8 @@ public extension UpdateStateMachineOutput { */ static let __default: StepFunctionsModel.UpdateStateMachineOutput = { let defaultInstance = StepFunctionsModel.UpdateStateMachineOutput( + revisionId: nil, + stateMachineVersionArn: nil, updateDate: 1.52953091375E9) return defaultInstance diff --git a/Sources/StepFunctionsModel/StepFunctionsModelErrors.swift b/Sources/StepFunctionsModel/StepFunctionsModelErrors.swift index 6944f30..996fc8b 100644 --- a/Sources/StepFunctionsModel/StepFunctionsModelErrors.swift +++ b/Sources/StepFunctionsModel/StepFunctionsModelErrors.swift @@ -36,6 +36,7 @@ public extension Swift.Error { private let activityDoesNotExistIdentity = "ActivityDoesNotExist" private let activityLimitExceededIdentity = "ActivityLimitExceeded" private let activityWorkerLimitExceededIdentity = "ActivityWorkerLimitExceeded" +private let conflictIdentity = "ConflictException" private let executionAlreadyExistsIdentity = "ExecutionAlreadyExists" private let executionDoesNotExistIdentity = "ExecutionDoesNotExist" private let executionLimitExceededIdentity = "ExecutionLimitExceeded" @@ -49,6 +50,7 @@ private let invalidTokenIdentity = "InvalidToken" private let invalidTracingConfigurationIdentity = "InvalidTracingConfiguration" private let missingRequiredParameterIdentity = "MissingRequiredParameter" private let resourceNotFoundIdentity = "ResourceNotFound" +private let serviceQuotaExceededIdentity = "ServiceQuotaExceededException" private let stateMachineAlreadyExistsIdentity = "StateMachineAlreadyExists" private let stateMachineDeletingIdentity = "StateMachineDeleting" private let stateMachineDoesNotExistIdentity = "StateMachineDoesNotExist" @@ -75,6 +77,7 @@ public enum StepFunctionsError: Swift.Error, Decodable { case activityDoesNotExist(ActivityDoesNotExist) case activityLimitExceeded(ActivityLimitExceeded) case activityWorkerLimitExceeded(ActivityWorkerLimitExceeded) + case conflict(ConflictException) case executionAlreadyExists(ExecutionAlreadyExists) case executionDoesNotExist(ExecutionDoesNotExist) case executionLimitExceeded(ExecutionLimitExceeded) @@ -88,6 +91,7 @@ public enum StepFunctionsError: Swift.Error, Decodable { case invalidTracingConfiguration(InvalidTracingConfiguration) case missingRequiredParameter(MissingRequiredParameter) case resourceNotFound(ResourceNotFound) + case serviceQuotaExceeded(ServiceQuotaExceededException) case stateMachineAlreadyExists(StateMachineAlreadyExists) case stateMachineDeleting(StateMachineDeleting) case stateMachineDoesNotExist(StateMachineDoesNotExist) @@ -126,6 +130,9 @@ public enum StepFunctionsError: Swift.Error, Decodable { case activityWorkerLimitExceededIdentity: let errorPayload = try ActivityWorkerLimitExceeded(from: decoder) self = StepFunctionsError.activityWorkerLimitExceeded(errorPayload) + case conflictIdentity: + let errorPayload = try ConflictException(from: decoder) + self = StepFunctionsError.conflict(errorPayload) case executionAlreadyExistsIdentity: let errorPayload = try ExecutionAlreadyExists(from: decoder) self = StepFunctionsError.executionAlreadyExists(errorPayload) @@ -165,6 +172,9 @@ public enum StepFunctionsError: Swift.Error, Decodable { case resourceNotFoundIdentity: let errorPayload = try ResourceNotFound(from: decoder) self = StepFunctionsError.resourceNotFound(errorPayload) + case serviceQuotaExceededIdentity: + let errorPayload = try ServiceQuotaExceededException(from: decoder) + self = StepFunctionsError.serviceQuotaExceeded(errorPayload) case stateMachineAlreadyExistsIdentity: let errorPayload = try StateMachineAlreadyExists(from: decoder) self = StepFunctionsError.stateMachineAlreadyExists(errorPayload) diff --git a/Sources/StepFunctionsModel/StepFunctionsModelOperations.swift b/Sources/StepFunctionsModel/StepFunctionsModelOperations.swift index 9ea915f..6576abe 100644 --- a/Sources/StepFunctionsModel/StepFunctionsModelOperations.swift +++ b/Sources/StepFunctionsModel/StepFunctionsModelOperations.swift @@ -28,20 +28,27 @@ import Foundation public enum StepFunctionsModelOperations: String, Hashable, CustomStringConvertible { case createActivity = "CreateActivity" case createStateMachine = "CreateStateMachine" + case createStateMachineAlias = "CreateStateMachineAlias" case deleteActivity = "DeleteActivity" case deleteStateMachine = "DeleteStateMachine" + case deleteStateMachineAlias = "DeleteStateMachineAlias" + case deleteStateMachineVersion = "DeleteStateMachineVersion" case describeActivity = "DescribeActivity" case describeExecution = "DescribeExecution" case describeMapRun = "DescribeMapRun" case describeStateMachine = "DescribeStateMachine" + case describeStateMachineAlias = "DescribeStateMachineAlias" case describeStateMachineForExecution = "DescribeStateMachineForExecution" case getActivityTask = "GetActivityTask" case getExecutionHistory = "GetExecutionHistory" case listActivities = "ListActivities" case listExecutions = "ListExecutions" case listMapRuns = "ListMapRuns" + case listStateMachineAliases = "ListStateMachineAliases" + case listStateMachineVersions = "ListStateMachineVersions" case listStateMachines = "ListStateMachines" case listTagsForResource = "ListTagsForResource" + case publishStateMachineVersion = "PublishStateMachineVersion" case sendTaskFailure = "SendTaskFailure" case sendTaskHeartbeat = "SendTaskHeartbeat" case sendTaskSuccess = "SendTaskSuccess" @@ -52,6 +59,7 @@ public enum StepFunctionsModelOperations: String, Hashable, CustomStringConverti case untagResource = "UntagResource" case updateMapRun = "UpdateMapRun" case updateStateMachine = "UpdateStateMachine" + case updateStateMachineAlias = "UpdateStateMachineAlias" public var description: String { return rawValue @@ -63,10 +71,16 @@ public enum StepFunctionsModelOperations: String, Hashable, CustomStringConverti return "/" case .createStateMachine: return "/" + case .createStateMachineAlias: + return "/" case .deleteActivity: return "/" case .deleteStateMachine: return "/" + case .deleteStateMachineAlias: + return "/" + case .deleteStateMachineVersion: + return "/" case .describeActivity: return "/" case .describeExecution: @@ -75,6 +89,8 @@ public enum StepFunctionsModelOperations: String, Hashable, CustomStringConverti return "/" case .describeStateMachine: return "/" + case .describeStateMachineAlias: + return "/" case .describeStateMachineForExecution: return "/" case .getActivityTask: @@ -87,10 +103,16 @@ public enum StepFunctionsModelOperations: String, Hashable, CustomStringConverti return "/" case .listMapRuns: return "/" + case .listStateMachineAliases: + return "/" + case .listStateMachineVersions: + return "/" case .listStateMachines: return "/" case .listTagsForResource: return "/" + case .publishStateMachineVersion: + return "/" case .sendTaskFailure: return "/" case .sendTaskHeartbeat: @@ -111,6 +133,8 @@ public enum StepFunctionsModelOperations: String, Hashable, CustomStringConverti return "/" case .updateStateMachine: return "/" + case .updateStateMachineAlias: + return "/" } } } diff --git a/Sources/StepFunctionsModel/StepFunctionsModelStructures.swift b/Sources/StepFunctionsModel/StepFunctionsModelStructures.swift index 586cbcf..4e7b98d 100644 --- a/Sources/StepFunctionsModel/StepFunctionsModelStructures.swift +++ b/Sources/StepFunctionsModel/StepFunctionsModelStructures.swift @@ -278,6 +278,21 @@ public struct CloudWatchLogsLogGroup: Codable, Equatable { } } +public struct ConflictException: Codable, Equatable { + public var message: ErrorMessage? + + public init(message: ErrorMessage? = nil) { + self.message = message + } + + enum CodingKeys: String, CodingKey { + case message + } + + public func validate() throws { + } +} + public struct CreateActivityInput: Codable, Equatable { public var name: Name public var tags: TagList? @@ -318,39 +333,93 @@ public struct CreateActivityOutput: Codable, Equatable { } } +public struct CreateStateMachineAliasInput: Codable, Equatable { + public var description: AliasDescription? + public var name: CharacterRestrictedName + public var routingConfiguration: RoutingConfigurationList + + public init(description: AliasDescription? = nil, + name: CharacterRestrictedName, + routingConfiguration: RoutingConfigurationList) { + self.description = description + self.name = name + self.routingConfiguration = routingConfiguration + } + + enum CodingKeys: String, CodingKey { + case description + case name + case routingConfiguration + } + + public func validate() throws { + try description?.validateAsAliasDescription() + try name.validateAsCharacterRestrictedName() + try routingConfiguration.validateAsRoutingConfigurationList() + } +} + +public struct CreateStateMachineAliasOutput: Codable, Equatable { + public var creationDate: Timestamp + public var stateMachineAliasArn: Arn + + public init(creationDate: Timestamp, + stateMachineAliasArn: Arn) { + self.creationDate = creationDate + self.stateMachineAliasArn = stateMachineAliasArn + } + + enum CodingKeys: String, CodingKey { + case creationDate + case stateMachineAliasArn + } + + public func validate() throws { + try stateMachineAliasArn.validateAsArn() + } +} + public struct CreateStateMachineInput: Codable, Equatable { public var definition: Definition public var loggingConfiguration: LoggingConfiguration? public var name: Name + public var publish: Publish? public var roleArn: Arn public var tags: TagList? public var tracingConfiguration: TracingConfiguration? public var type: StateMachineType? + public var versionDescription: VersionDescription? public init(definition: Definition, loggingConfiguration: LoggingConfiguration? = nil, name: Name, + publish: Publish? = nil, roleArn: Arn, tags: TagList? = nil, tracingConfiguration: TracingConfiguration? = nil, - type: StateMachineType? = nil) { + type: StateMachineType? = nil, + versionDescription: VersionDescription? = nil) { self.definition = definition self.loggingConfiguration = loggingConfiguration self.name = name + self.publish = publish self.roleArn = roleArn self.tags = tags self.tracingConfiguration = tracingConfiguration self.type = type + self.versionDescription = versionDescription } enum CodingKeys: String, CodingKey { case definition case loggingConfiguration case name + case publish case roleArn case tags case tracingConfiguration case type + case versionDescription } public func validate() throws { @@ -359,26 +428,32 @@ public struct CreateStateMachineInput: Codable, Equatable { try name.validateAsName() try roleArn.validateAsArn() try tracingConfiguration?.validate() + try versionDescription?.validateAsVersionDescription() } } public struct CreateStateMachineOutput: Codable, Equatable { public var creationDate: Timestamp public var stateMachineArn: Arn + public var stateMachineVersionArn: Arn? public init(creationDate: Timestamp, - stateMachineArn: Arn) { + stateMachineArn: Arn, + stateMachineVersionArn: Arn? = nil) { self.creationDate = creationDate self.stateMachineArn = stateMachineArn + self.stateMachineVersionArn = stateMachineVersionArn } enum CodingKeys: String, CodingKey { case creationDate case stateMachineArn + case stateMachineVersionArn } public func validate() throws { try stateMachineArn.validateAsArn() + try stateMachineVersionArn?.validateAsArn() } } @@ -407,6 +482,31 @@ public struct DeleteActivityOutput: Codable, Equatable { } } +public struct DeleteStateMachineAliasInput: Codable, Equatable { + public var stateMachineAliasArn: Arn + + public init(stateMachineAliasArn: Arn) { + self.stateMachineAliasArn = stateMachineAliasArn + } + + enum CodingKeys: String, CodingKey { + case stateMachineAliasArn + } + + public func validate() throws { + try stateMachineAliasArn.validateAsArn() + } +} + +public struct DeleteStateMachineAliasOutput: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + public struct DeleteStateMachineInput: Codable, Equatable { public var stateMachineArn: Arn @@ -432,6 +532,31 @@ public struct DeleteStateMachineOutput: Codable, Equatable { } } +public struct DeleteStateMachineVersionInput: Codable, Equatable { + public var stateMachineVersionArn: LongArn + + public init(stateMachineVersionArn: LongArn) { + self.stateMachineVersionArn = stateMachineVersionArn + } + + enum CodingKeys: String, CodingKey { + case stateMachineVersionArn + } + + public func validate() throws { + try stateMachineVersionArn.validateAsLongArn() + } +} + +public struct DeleteStateMachineVersionOutput: Codable, Equatable { + + public init() { + } + + public func validate() throws { + } +} + public struct DescribeActivityInput: Codable, Equatable { public var activityArn: Arn @@ -500,7 +625,9 @@ public struct DescribeExecutionOutput: Codable, Equatable { public var output: SensitiveData? public var outputDetails: CloudWatchEventsExecutionDataDetails? public var startDate: Timestamp + public var stateMachineAliasArn: Arn? public var stateMachineArn: Arn + public var stateMachineVersionArn: Arn? public var status: ExecutionStatus public var stopDate: Timestamp? public var traceHeader: TraceHeader? @@ -515,7 +642,9 @@ public struct DescribeExecutionOutput: Codable, Equatable { output: SensitiveData? = nil, outputDetails: CloudWatchEventsExecutionDataDetails? = nil, startDate: Timestamp, + stateMachineAliasArn: Arn? = nil, stateMachineArn: Arn, + stateMachineVersionArn: Arn? = nil, status: ExecutionStatus, stopDate: Timestamp? = nil, traceHeader: TraceHeader? = nil) { @@ -529,7 +658,9 @@ public struct DescribeExecutionOutput: Codable, Equatable { self.output = output self.outputDetails = outputDetails self.startDate = startDate + self.stateMachineAliasArn = stateMachineAliasArn self.stateMachineArn = stateMachineArn + self.stateMachineVersionArn = stateMachineVersionArn self.status = status self.stopDate = stopDate self.traceHeader = traceHeader @@ -546,7 +677,9 @@ public struct DescribeExecutionOutput: Codable, Equatable { case output case outputDetails case startDate + case stateMachineAliasArn case stateMachineArn + case stateMachineVersionArn case status case stopDate case traceHeader @@ -562,7 +695,9 @@ public struct DescribeExecutionOutput: Codable, Equatable { try name?.validateAsName() try output?.validateAsSensitiveData() try outputDetails?.validate() + try stateMachineAliasArn?.validateAsArn() try stateMachineArn.validateAsArn() + try stateMachineVersionArn?.validateAsArn() try traceHeader?.validateAsTraceHeader() } } @@ -641,6 +776,61 @@ public struct DescribeMapRunOutput: Codable, Equatable { } } +public struct DescribeStateMachineAliasInput: Codable, Equatable { + public var stateMachineAliasArn: Arn + + public init(stateMachineAliasArn: Arn) { + self.stateMachineAliasArn = stateMachineAliasArn + } + + enum CodingKeys: String, CodingKey { + case stateMachineAliasArn + } + + public func validate() throws { + try stateMachineAliasArn.validateAsArn() + } +} + +public struct DescribeStateMachineAliasOutput: Codable, Equatable { + public var creationDate: Timestamp? + public var description: AliasDescription? + public var name: Name? + public var routingConfiguration: RoutingConfigurationList? + public var stateMachineAliasArn: Arn? + public var updateDate: Timestamp? + + public init(creationDate: Timestamp? = nil, + description: AliasDescription? = nil, + name: Name? = nil, + routingConfiguration: RoutingConfigurationList? = nil, + stateMachineAliasArn: Arn? = nil, + updateDate: Timestamp? = nil) { + self.creationDate = creationDate + self.description = description + self.name = name + self.routingConfiguration = routingConfiguration + self.stateMachineAliasArn = stateMachineAliasArn + self.updateDate = updateDate + } + + enum CodingKeys: String, CodingKey { + case creationDate + case description + case name + case routingConfiguration + case stateMachineAliasArn + case updateDate + } + + public func validate() throws { + try description?.validateAsAliasDescription() + try name?.validateAsName() + try routingConfiguration?.validateAsRoutingConfigurationList() + try stateMachineAliasArn?.validateAsArn() + } +} + public struct DescribeStateMachineForExecutionInput: Codable, Equatable { public var executionArn: Arn @@ -663,6 +853,7 @@ public struct DescribeStateMachineForExecutionOutput: Codable, Equatable { public var loggingConfiguration: LoggingConfiguration? public var mapRunArn: LongArn? public var name: Name + public var revisionId: RevisionId? public var roleArn: Arn public var stateMachineArn: Arn public var tracingConfiguration: TracingConfiguration? @@ -673,6 +864,7 @@ public struct DescribeStateMachineForExecutionOutput: Codable, Equatable { loggingConfiguration: LoggingConfiguration? = nil, mapRunArn: LongArn? = nil, name: Name, + revisionId: RevisionId? = nil, roleArn: Arn, stateMachineArn: Arn, tracingConfiguration: TracingConfiguration? = nil, @@ -682,6 +874,7 @@ public struct DescribeStateMachineForExecutionOutput: Codable, Equatable { self.loggingConfiguration = loggingConfiguration self.mapRunArn = mapRunArn self.name = name + self.revisionId = revisionId self.roleArn = roleArn self.stateMachineArn = stateMachineArn self.tracingConfiguration = tracingConfiguration @@ -694,6 +887,7 @@ public struct DescribeStateMachineForExecutionOutput: Codable, Equatable { case loggingConfiguration case mapRunArn case name + case revisionId case roleArn case stateMachineArn case tracingConfiguration @@ -730,9 +924,11 @@ public struct DescribeStateMachineInput: Codable, Equatable { public struct DescribeStateMachineOutput: Codable, Equatable { public var creationDate: Timestamp public var definition: Definition + public var description: VersionDescription? public var label: MapRunLabel? public var loggingConfiguration: LoggingConfiguration? public var name: Name + public var revisionId: RevisionId? public var roleArn: Arn public var stateMachineArn: Arn public var status: StateMachineStatus? @@ -741,9 +937,11 @@ public struct DescribeStateMachineOutput: Codable, Equatable { public init(creationDate: Timestamp, definition: Definition, + description: VersionDescription? = nil, label: MapRunLabel? = nil, loggingConfiguration: LoggingConfiguration? = nil, name: Name, + revisionId: RevisionId? = nil, roleArn: Arn, stateMachineArn: Arn, status: StateMachineStatus? = nil, @@ -751,9 +949,11 @@ public struct DescribeStateMachineOutput: Codable, Equatable { type: StateMachineType) { self.creationDate = creationDate self.definition = definition + self.description = description self.label = label self.loggingConfiguration = loggingConfiguration self.name = name + self.revisionId = revisionId self.roleArn = roleArn self.stateMachineArn = stateMachineArn self.status = status @@ -764,9 +964,11 @@ public struct DescribeStateMachineOutput: Codable, Equatable { enum CodingKeys: String, CodingKey { case creationDate case definition + case description case label case loggingConfiguration case name + case revisionId case roleArn case stateMachineArn case status @@ -776,6 +978,7 @@ public struct DescribeStateMachineOutput: Codable, Equatable { public func validate() throws { try definition.validateAsDefinition() + try description?.validateAsVersionDescription() try loggingConfiguration?.validate() try name.validateAsName() try roleArn.validateAsArn() @@ -877,7 +1080,9 @@ public struct ExecutionListItem: Codable, Equatable { public var mapRunArn: LongArn? public var name: Name public var startDate: Timestamp + public var stateMachineAliasArn: Arn? public var stateMachineArn: Arn + public var stateMachineVersionArn: Arn? public var status: ExecutionStatus public var stopDate: Timestamp? @@ -886,7 +1091,9 @@ public struct ExecutionListItem: Codable, Equatable { mapRunArn: LongArn? = nil, name: Name, startDate: Timestamp, + stateMachineAliasArn: Arn? = nil, stateMachineArn: Arn, + stateMachineVersionArn: Arn? = nil, status: ExecutionStatus, stopDate: Timestamp? = nil) { self.executionArn = executionArn @@ -894,7 +1101,9 @@ public struct ExecutionListItem: Codable, Equatable { self.mapRunArn = mapRunArn self.name = name self.startDate = startDate + self.stateMachineAliasArn = stateMachineAliasArn self.stateMachineArn = stateMachineArn + self.stateMachineVersionArn = stateMachineVersionArn self.status = status self.stopDate = stopDate } @@ -905,7 +1114,9 @@ public struct ExecutionListItem: Codable, Equatable { case mapRunArn case name case startDate + case stateMachineAliasArn case stateMachineArn + case stateMachineVersionArn case status case stopDate } @@ -915,7 +1126,9 @@ public struct ExecutionListItem: Codable, Equatable { try itemCount?.validateAsUnsignedInteger() try mapRunArn?.validateAsLongArn() try name.validateAsName() + try stateMachineAliasArn?.validateAsArn() try stateMachineArn.validateAsArn() + try stateMachineVersionArn?.validateAsArn() } } @@ -923,25 +1136,35 @@ public struct ExecutionStartedEventDetails: Codable, Equatable { public var input: SensitiveData? public var inputDetails: HistoryEventExecutionDataDetails? public var roleArn: Arn? + public var stateMachineAliasArn: Arn? + public var stateMachineVersionArn: Arn? public init(input: SensitiveData? = nil, inputDetails: HistoryEventExecutionDataDetails? = nil, - roleArn: Arn? = nil) { + roleArn: Arn? = nil, + stateMachineAliasArn: Arn? = nil, + stateMachineVersionArn: Arn? = nil) { self.input = input self.inputDetails = inputDetails self.roleArn = roleArn + self.stateMachineAliasArn = stateMachineAliasArn + self.stateMachineVersionArn = stateMachineVersionArn } enum CodingKeys: String, CodingKey { case input case inputDetails case roleArn + case stateMachineAliasArn + case stateMachineVersionArn } public func validate() throws { try input?.validateAsSensitiveData() try inputDetails?.validate() try roleArn?.validateAsArn() + try stateMachineAliasArn?.validateAsArn() + try stateMachineVersionArn?.validateAsArn() } } @@ -1697,6 +1920,98 @@ public struct ListMapRunsOutput: Codable, Equatable { } } +public struct ListStateMachineAliasesInput: Codable, Equatable { + public var maxResults: PageSize? + public var nextToken: PageToken? + public var stateMachineArn: Arn + + public init(maxResults: PageSize? = nil, + nextToken: PageToken? = nil, + stateMachineArn: Arn) { + self.maxResults = maxResults + self.nextToken = nextToken + self.stateMachineArn = stateMachineArn + } + + enum CodingKeys: String, CodingKey { + case maxResults + case nextToken + case stateMachineArn + } + + public func validate() throws { + try maxResults?.validateAsPageSize() + try nextToken?.validateAsPageToken() + try stateMachineArn.validateAsArn() + } +} + +public struct ListStateMachineAliasesOutput: Codable, Equatable { + public var nextToken: PageToken? + public var stateMachineAliases: StateMachineAliasList + + public init(nextToken: PageToken? = nil, + stateMachineAliases: StateMachineAliasList) { + self.nextToken = nextToken + self.stateMachineAliases = stateMachineAliases + } + + enum CodingKeys: String, CodingKey { + case nextToken + case stateMachineAliases + } + + public func validate() throws { + try nextToken?.validateAsPageToken() + } +} + +public struct ListStateMachineVersionsInput: Codable, Equatable { + public var maxResults: PageSize? + public var nextToken: PageToken? + public var stateMachineArn: Arn + + public init(maxResults: PageSize? = nil, + nextToken: PageToken? = nil, + stateMachineArn: Arn) { + self.maxResults = maxResults + self.nextToken = nextToken + self.stateMachineArn = stateMachineArn + } + + enum CodingKeys: String, CodingKey { + case maxResults + case nextToken + case stateMachineArn + } + + public func validate() throws { + try maxResults?.validateAsPageSize() + try nextToken?.validateAsPageToken() + try stateMachineArn.validateAsArn() + } +} + +public struct ListStateMachineVersionsOutput: Codable, Equatable { + public var nextToken: PageToken? + public var stateMachineVersions: StateMachineVersionList + + public init(nextToken: PageToken? = nil, + stateMachineVersions: StateMachineVersionList) { + self.nextToken = nextToken + self.stateMachineVersions = stateMachineVersions + } + + enum CodingKeys: String, CodingKey { + case nextToken + case stateMachineVersions + } + + public func validate() throws { + try nextToken?.validateAsPageToken() + } +} + public struct ListStateMachinesInput: Codable, Equatable { public var maxResults: PageSize? public var nextToken: PageToken? @@ -2033,6 +2348,51 @@ public struct MissingRequiredParameter: Codable, Equatable { } } +public struct PublishStateMachineVersionInput: Codable, Equatable { + public var description: VersionDescription? + public var revisionId: RevisionId? + public var stateMachineArn: Arn + + public init(description: VersionDescription? = nil, + revisionId: RevisionId? = nil, + stateMachineArn: Arn) { + self.description = description + self.revisionId = revisionId + self.stateMachineArn = stateMachineArn + } + + enum CodingKeys: String, CodingKey { + case description + case revisionId + case stateMachineArn + } + + public func validate() throws { + try description?.validateAsVersionDescription() + try stateMachineArn.validateAsArn() + } +} + +public struct PublishStateMachineVersionOutput: Codable, Equatable { + public var creationDate: Timestamp + public var stateMachineVersionArn: Arn + + public init(creationDate: Timestamp, + stateMachineVersionArn: Arn) { + self.creationDate = creationDate + self.stateMachineVersionArn = stateMachineVersionArn + } + + enum CodingKeys: String, CodingKey { + case creationDate + case stateMachineVersionArn + } + + public func validate() throws { + try stateMachineVersionArn.validateAsArn() + } +} + public struct ResourceNotFound: Codable, Equatable { public var message: ErrorMessage? public var resourceName: Arn? @@ -2053,6 +2413,27 @@ public struct ResourceNotFound: Codable, Equatable { } } +public struct RoutingConfigurationListItem: Codable, Equatable { + public var stateMachineVersionArn: Arn + public var weight: VersionWeight + + public init(stateMachineVersionArn: Arn, + weight: VersionWeight) { + self.stateMachineVersionArn = stateMachineVersionArn + self.weight = weight + } + + enum CodingKeys: String, CodingKey { + case stateMachineVersionArn + case weight + } + + public func validate() throws { + try stateMachineVersionArn.validateAsArn() + try weight.validateAsVersionWeight() + } +} + public struct SendTaskFailureInput: Codable, Equatable { public var cause: SensitiveCause? public var error: SensitiveError? @@ -2143,6 +2524,21 @@ public struct SendTaskSuccessOutput: Codable, Equatable { } } +public struct ServiceQuotaExceededException: Codable, Equatable { + public var message: ErrorMessage? + + public init(message: ErrorMessage? = nil) { + self.message = message + } + + enum CodingKeys: String, CodingKey { + case message + } + + public func validate() throws { + } +} + public struct StartExecutionInput: Codable, Equatable { public var input: SensitiveData? public var name: Name? @@ -2355,6 +2751,26 @@ public struct StateExitedEventDetails: Codable, Equatable { } } +public struct StateMachineAliasListItem: Codable, Equatable { + public var creationDate: Timestamp + public var stateMachineAliasArn: LongArn + + public init(creationDate: Timestamp, + stateMachineAliasArn: LongArn) { + self.creationDate = creationDate + self.stateMachineAliasArn = stateMachineAliasArn + } + + enum CodingKeys: String, CodingKey { + case creationDate + case stateMachineAliasArn + } + + public func validate() throws { + try stateMachineAliasArn.validateAsLongArn() + } +} + public struct StateMachineAlreadyExists: Codable, Equatable { public var message: ErrorMessage? @@ -2459,6 +2875,26 @@ public struct StateMachineTypeNotSupported: Codable, Equatable { } } +public struct StateMachineVersionListItem: Codable, Equatable { + public var creationDate: Timestamp + public var stateMachineVersionArn: LongArn + + public init(creationDate: Timestamp, + stateMachineVersionArn: LongArn) { + self.creationDate = creationDate + self.stateMachineVersionArn = stateMachineVersionArn + } + + enum CodingKeys: String, CodingKey { + case creationDate + case stateMachineVersionArn + } + + public func validate() throws { + try stateMachineVersionArn.validateAsLongArn() + } +} + public struct StopExecutionInput: Codable, Equatable { public var cause: SensitiveCause? public var error: SensitiveError? @@ -2951,31 +3387,80 @@ public struct UpdateMapRunOutput: Codable, Equatable { } } +public struct UpdateStateMachineAliasInput: Codable, Equatable { + public var description: AliasDescription? + public var routingConfiguration: RoutingConfigurationList? + public var stateMachineAliasArn: Arn + + public init(description: AliasDescription? = nil, + routingConfiguration: RoutingConfigurationList? = nil, + stateMachineAliasArn: Arn) { + self.description = description + self.routingConfiguration = routingConfiguration + self.stateMachineAliasArn = stateMachineAliasArn + } + + enum CodingKeys: String, CodingKey { + case description + case routingConfiguration + case stateMachineAliasArn + } + + public func validate() throws { + try description?.validateAsAliasDescription() + try routingConfiguration?.validateAsRoutingConfigurationList() + try stateMachineAliasArn.validateAsArn() + } +} + +public struct UpdateStateMachineAliasOutput: Codable, Equatable { + public var updateDate: Timestamp + + public init(updateDate: Timestamp) { + self.updateDate = updateDate + } + + enum CodingKeys: String, CodingKey { + case updateDate + } + + public func validate() throws { + } +} + public struct UpdateStateMachineInput: Codable, Equatable { public var definition: Definition? public var loggingConfiguration: LoggingConfiguration? + public var publish: Publish? public var roleArn: Arn? public var stateMachineArn: Arn public var tracingConfiguration: TracingConfiguration? + public var versionDescription: VersionDescription? public init(definition: Definition? = nil, loggingConfiguration: LoggingConfiguration? = nil, + publish: Publish? = nil, roleArn: Arn? = nil, stateMachineArn: Arn, - tracingConfiguration: TracingConfiguration? = nil) { + tracingConfiguration: TracingConfiguration? = nil, + versionDescription: VersionDescription? = nil) { self.definition = definition self.loggingConfiguration = loggingConfiguration + self.publish = publish self.roleArn = roleArn self.stateMachineArn = stateMachineArn self.tracingConfiguration = tracingConfiguration + self.versionDescription = versionDescription } enum CodingKeys: String, CodingKey { case definition case loggingConfiguration + case publish case roleArn case stateMachineArn case tracingConfiguration + case versionDescription } public func validate() throws { @@ -2984,21 +3469,31 @@ public struct UpdateStateMachineInput: Codable, Equatable { try roleArn?.validateAsArn() try stateMachineArn.validateAsArn() try tracingConfiguration?.validate() + try versionDescription?.validateAsVersionDescription() } } public struct UpdateStateMachineOutput: Codable, Equatable { + public var revisionId: RevisionId? + public var stateMachineVersionArn: Arn? public var updateDate: Timestamp - public init(updateDate: Timestamp) { + public init(revisionId: RevisionId? = nil, + stateMachineVersionArn: Arn? = nil, + updateDate: Timestamp) { + self.revisionId = revisionId + self.stateMachineVersionArn = stateMachineVersionArn self.updateDate = updateDate } enum CodingKeys: String, CodingKey { + case revisionId + case stateMachineVersionArn case updateDate } public func validate() throws { + try stateMachineVersionArn?.validateAsArn() } } diff --git a/Sources/StepFunctionsModel/StepFunctionsModelTypes.swift b/Sources/StepFunctionsModel/StepFunctionsModelTypes.swift index 270b9d1..d30339c 100644 --- a/Sources/StepFunctionsModel/StepFunctionsModelTypes.swift +++ b/Sources/StepFunctionsModel/StepFunctionsModelTypes.swift @@ -27,6 +27,11 @@ import Foundation */ public typealias ActivityList = [ActivityListItem] +/** + Type definition for the AliasDescription field. + */ +public typealias AliasDescription = String + /** Type definition for the Arn field. */ @@ -42,6 +47,11 @@ public typealias BilledDuration = Int */ public typealias BilledMemoryUsed = Int +/** + Type definition for the CharacterRestrictedName field. + */ +public typealias CharacterRestrictedName = String + /** Type definition for the ConnectorParameters field. */ @@ -257,11 +267,26 @@ public typealias PageSize = Int */ public typealias PageToken = String +/** + Type definition for the Publish field. + */ +public typealias Publish = Bool + /** Type definition for the ReverseOrder field. */ public typealias ReverseOrder = Bool +/** + Type definition for the RevisionId field. + */ +public typealias RevisionId = String + +/** + Type definition for the RoutingConfigurationList field. + */ +public typealias RoutingConfigurationList = [RoutingConfigurationListItem] + /** Type definition for the SensitiveCause field. */ @@ -282,6 +307,11 @@ public typealias SensitiveDataJobInput = String */ public typealias SensitiveError = String +/** + Type definition for the StateMachineAliasList field. + */ +public typealias StateMachineAliasList = [StateMachineAliasListItem] + /** Type definition for the StateMachineList field. */ @@ -315,6 +345,11 @@ public enum StateMachineType: String, Codable, CustomStringConvertible { public static let __default: StateMachineType = .express } +/** + Type definition for the StateMachineVersionList field. + */ +public typealias StateMachineVersionList = [StateMachineVersionListItem] + /** Enumeration restricting the values of the SyncExecutionStatus field. */ @@ -396,6 +431,7 @@ public typealias UnsignedLong = Int public enum ValidationExceptionReason: String, Codable, CustomStringConvertible { case apiDoesNotSupportLabeledArns = "API_DOES_NOT_SUPPORT_LABELED_ARNS" case cannotUpdateCompletedMapRun = "CANNOT_UPDATE_COMPLETED_MAP_RUN" + case invalidRoutingConfiguration = "INVALID_ROUTING_CONFIGURATION" case missingRequiredParameter = "MISSING_REQUIRED_PARAMETER" public var description: String { @@ -405,6 +441,16 @@ public enum ValidationExceptionReason: String, Codable, CustomStringConvertible public static let __default: ValidationExceptionReason = .apiDoesNotSupportLabeledArns } +/** + Type definition for the VersionDescription field. + */ +public typealias VersionDescription = String + +/** + Type definition for the VersionWeight field. + */ +public typealias VersionWeight = Int + /** Type definition for the IncludedDetails field. */ @@ -415,6 +461,18 @@ public typealias IncludedDetails = Bool */ public typealias Truncated = Bool +/** + Validation for the AliasDescription field. +*/ +extension StepFunctionsModel.AliasDescription { + public func validateAsAliasDescription() throws { + + if self.count > 256 { + throw StepFunctionsError.validationError(reason: "The provided value to AliasDescription violated the maximum length constraint.") + } + } +} + /** Validation for the Arn field. */ @@ -454,6 +512,27 @@ extension StepFunctionsModel.BilledMemoryUsed { } } +/** + Validation for the CharacterRestrictedName field. +*/ +extension StepFunctionsModel.CharacterRestrictedName { + public func validateAsCharacterRestrictedName() throws { + if self.count < 1 { + throw StepFunctionsError.validationError(reason: "The provided value to CharacterRestrictedName violated the minimum length constraint.") + } + + if self.count > 80 { + throw StepFunctionsError.validationError(reason: "The provided value to CharacterRestrictedName violated the maximum length constraint.") + } + + guard let matchingRange = self.range(of: "^(?=.*[a-zA-Z_\\-\\.])[a-zA-Z0-9_\\-\\.]+$", options: .regularExpression), + matchingRange == startIndex.. 2 { + throw StepFunctionsError.validationError(reason: "The provided value to RoutingConfigurationList violated the maximum length constraint.") + } + } +} + /** Validation for the SensitiveCause field. */ @@ -753,3 +847,30 @@ extension StepFunctionsModel.UnsignedLong { } } + +/** + Validation for the VersionDescription field. +*/ +extension StepFunctionsModel.VersionDescription { + public func validateAsVersionDescription() throws { + + if self.count > 256 { + throw StepFunctionsError.validationError(reason: "The provided value to VersionDescription violated the maximum length constraint.") + } + } +} + +/** + Validation for the VersionWeight field. +*/ +extension StepFunctionsModel.VersionWeight { + public func validateAsVersionWeight() throws { + if self < 0 { + throw StepFunctionsError.validationError(reason: "The provided value to VersionWeight violated the minimum range constraint.") + } + + if self > 100 { + throw StepFunctionsError.validationError(reason: "The provided value to VersionWeight violated the maximum range constraint.") + } + } +}