Skip to content

Commit

Permalink
Merge pull request #93 from amzn/code_generate_2_39_0
Browse files Browse the repository at this point in the history
Code generate with Go SDK v1.39.0 models.
  • Loading branch information
tachyonics authored Jul 2, 2021
2 parents 31a1cd5 + bf9ea27 commit 770dfce
Show file tree
Hide file tree
Showing 28 changed files with 5,250 additions and 11 deletions.
624 changes: 624 additions & 0 deletions Sources/CloudformationClient/AWSCloudformationClient.swift

Large diffs are not rendered by default.

248 changes: 248 additions & 0 deletions Sources/CloudformationClient/CloudformationClientProtocol.swift

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,23 @@ import CloudformationModel
Invocations reporting for the CloudformationModel.
*/
public struct CloudformationInvocationsReporting<InvocationReportingType: HTTPClientCoreInvocationReporting> {
public let activateType: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let batchDescribeTypeConfigurations: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let cancelUpdateStack: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let continueUpdateRollback: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let createChangeSet: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let createStack: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let createStackInstances: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let createStackSet: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let deactivateType: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let deleteChangeSet: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let deleteStack: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let deleteStackInstances: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let deleteStackSet: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let deregisterType: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let describeAccountLimits: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let describeChangeSet: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let describePublisher: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let describeStackDriftDetectionStatus: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let describeStackEvents: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let describeStackInstance: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
Expand Down Expand Up @@ -73,19 +77,27 @@ public struct CloudformationInvocationsReporting<InvocationReportingType: HTTPCl
public let listTypeRegistrations: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let listTypeVersions: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let listTypes: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let publishType: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let recordHandlerProgress: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let registerPublisher: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let registerType: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let setStackPolicy: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let setTypeConfiguration: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let setTypeDefaultVersion: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let signalResource: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let stopStackSetOperation: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let testType: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let updateStack: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let updateStackInstances: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let updateStackSet: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let updateTerminationProtection: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>
public let validateTemplate: SmokeAWSHTTPClientInvocationReporting<InvocationReportingType>

public init(reporting: InvocationReportingType, operationsReporting: CloudformationOperationsReporting) {
self.activateType = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.activateType)
self.batchDescribeTypeConfigurations = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.batchDescribeTypeConfigurations)
self.cancelUpdateStack = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.cancelUpdateStack)
self.continueUpdateRollback = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
Expand All @@ -98,6 +110,8 @@ public struct CloudformationInvocationsReporting<InvocationReportingType: HTTPCl
smokeAWSOperationReporting: operationsReporting.createStackInstances)
self.createStackSet = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.createStackSet)
self.deactivateType = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.deactivateType)
self.deleteChangeSet = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.deleteChangeSet)
self.deleteStack = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
Expand All @@ -112,6 +126,8 @@ public struct CloudformationInvocationsReporting<InvocationReportingType: HTTPCl
smokeAWSOperationReporting: operationsReporting.describeAccountLimits)
self.describeChangeSet = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.describeChangeSet)
self.describePublisher = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.describePublisher)
self.describeStackDriftDetectionStatus = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.describeStackDriftDetectionStatus)
self.describeStackEvents = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
Expand Down Expand Up @@ -174,18 +190,26 @@ public struct CloudformationInvocationsReporting<InvocationReportingType: HTTPCl
smokeAWSOperationReporting: operationsReporting.listTypeVersions)
self.listTypes = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.listTypes)
self.publishType = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.publishType)
self.recordHandlerProgress = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.recordHandlerProgress)
self.registerPublisher = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.registerPublisher)
self.registerType = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.registerType)
self.setStackPolicy = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.setStackPolicy)
self.setTypeConfiguration = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.setTypeConfiguration)
self.setTypeDefaultVersion = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.setTypeDefaultVersion)
self.signalResource = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.signalResource)
self.stopStackSetOperation = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.stopStackSetOperation)
self.testType = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.testType)
self.updateStack = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
smokeAWSOperationReporting: operationsReporting.updateStack)
self.updateStackInstances = SmokeAWSHTTPClientInvocationReporting(smokeAWSInvocationReporting: reporting,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ import Foundation
import SmokeHTTPClient
import CloudformationModel

/**
Type to handle the input to the ActivateType operation in a HTTP client.
*/
public typealias ActivateTypeOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the BatchDescribeTypeConfigurations operation in a HTTP client.
*/
public typealias BatchDescribeTypeConfigurationsOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the CancelUpdateStack operation in a HTTP client.
*/
Expand Down Expand Up @@ -54,6 +64,11 @@ public typealias CreateStackInstancesOperationHTTPRequestInput = QueryHTTPReques
*/
public typealias CreateStackSetOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the DeactivateType operation in a HTTP client.
*/
public typealias DeactivateTypeOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the DeleteChangeSet operation in a HTTP client.
*/
Expand Down Expand Up @@ -89,6 +104,11 @@ public typealias DescribeAccountLimitsOperationHTTPRequestInput = QueryHTTPReque
*/
public typealias DescribeChangeSetOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the DescribePublisher operation in a HTTP client.
*/
public typealias DescribePublisherOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the DescribeStackDriftDetectionStatus operation in a HTTP client.
*/
Expand Down Expand Up @@ -244,11 +264,21 @@ public typealias ListTypeVersionsOperationHTTPRequestInput = QueryHTTPRequestInp
*/
public typealias ListTypesOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the PublishType operation in a HTTP client.
*/
public typealias PublishTypeOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the RecordHandlerProgress operation in a HTTP client.
*/
public typealias RecordHandlerProgressOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the RegisterPublisher operation in a HTTP client.
*/
public typealias RegisterPublisherOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the RegisterType operation in a HTTP client.
*/
Expand All @@ -259,6 +289,11 @@ public typealias RegisterTypeOperationHTTPRequestInput = QueryHTTPRequestInput
*/
public typealias SetStackPolicyOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the SetTypeConfiguration operation in a HTTP client.
*/
public typealias SetTypeConfigurationOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the SetTypeDefaultVersion operation in a HTTP client.
*/
Expand All @@ -274,6 +309,11 @@ public typealias SignalResourceOperationHTTPRequestInput = QueryHTTPRequestInput
*/
public typealias StopStackSetOperationOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the TestType operation in a HTTP client.
*/
public typealias TestTypeOperationHTTPRequestInput = QueryHTTPRequestInput

/**
Type to handle the input to the UpdateStack operation in a HTTP client.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,32 @@ import Foundation
import SmokeHTTPClient
import CloudformationModel

/**
Type to handle the output from the ActivateType operation in a HTTP client.
*/
extension ActivateTypeOutputForActivateType: HTTPResponseOutputProtocol {
public typealias BodyType = ActivateTypeOutputForActivateType
public typealias HeadersType = ActivateTypeOutputForActivateType

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> ActivateTypeOutputForActivateType {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the BatchDescribeTypeConfigurations operation in a HTTP client.
*/
extension BatchDescribeTypeConfigurationsOutputForBatchDescribeTypeConfigurations: HTTPResponseOutputProtocol {
public typealias BodyType = BatchDescribeTypeConfigurationsOutputForBatchDescribeTypeConfigurations
public typealias HeadersType = BatchDescribeTypeConfigurationsOutputForBatchDescribeTypeConfigurations

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> BatchDescribeTypeConfigurationsOutputForBatchDescribeTypeConfigurations {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the ContinueUpdateRollback operation in a HTTP client.
*/
Expand Down Expand Up @@ -89,6 +115,19 @@ extension CreateStackSetOutputForCreateStackSet: HTTPResponseOutputProtocol {
}
}

/**
Type to handle the output from the DeactivateType operation in a HTTP client.
*/
extension DeactivateTypeOutputForDeactivateType: HTTPResponseOutputProtocol {
public typealias BodyType = DeactivateTypeOutputForDeactivateType
public typealias HeadersType = DeactivateTypeOutputForDeactivateType

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> DeactivateTypeOutputForDeactivateType {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the DeleteChangeSet operation in a HTTP client.
*/
Expand Down Expand Up @@ -167,6 +206,19 @@ extension DescribeChangeSetOutputForDescribeChangeSet: HTTPResponseOutputProtoco
}
}

/**
Type to handle the output from the DescribePublisher operation in a HTTP client.
*/
extension DescribePublisherOutputForDescribePublisher: HTTPResponseOutputProtocol {
public typealias BodyType = DescribePublisherOutputForDescribePublisher
public typealias HeadersType = DescribePublisherOutputForDescribePublisher

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> DescribePublisherOutputForDescribePublisher {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the DescribeStackDriftDetectionStatus operation in a HTTP client.
*/
Expand Down Expand Up @@ -570,6 +622,19 @@ extension ListTypesOutputForListTypes: HTTPResponseOutputProtocol {
}
}

/**
Type to handle the output from the PublishType operation in a HTTP client.
*/
extension PublishTypeOutputForPublishType: HTTPResponseOutputProtocol {
public typealias BodyType = PublishTypeOutputForPublishType
public typealias HeadersType = PublishTypeOutputForPublishType

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> PublishTypeOutputForPublishType {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the RecordHandlerProgress operation in a HTTP client.
*/
Expand All @@ -583,6 +648,19 @@ extension RecordHandlerProgressOutputForRecordHandlerProgress: HTTPResponseOutpu
}
}

/**
Type to handle the output from the RegisterPublisher operation in a HTTP client.
*/
extension RegisterPublisherOutputForRegisterPublisher: HTTPResponseOutputProtocol {
public typealias BodyType = RegisterPublisherOutputForRegisterPublisher
public typealias HeadersType = RegisterPublisherOutputForRegisterPublisher

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> RegisterPublisherOutputForRegisterPublisher {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the RegisterType operation in a HTTP client.
*/
Expand All @@ -596,6 +674,19 @@ extension RegisterTypeOutputForRegisterType: HTTPResponseOutputProtocol {
}
}

/**
Type to handle the output from the SetTypeConfiguration operation in a HTTP client.
*/
extension SetTypeConfigurationOutputForSetTypeConfiguration: HTTPResponseOutputProtocol {
public typealias BodyType = SetTypeConfigurationOutputForSetTypeConfiguration
public typealias HeadersType = SetTypeConfigurationOutputForSetTypeConfiguration

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> SetTypeConfigurationOutputForSetTypeConfiguration {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the SetTypeDefaultVersion operation in a HTTP client.
*/
Expand All @@ -622,6 +713,19 @@ extension StopStackSetOperationOutputForStopStackSetOperation: HTTPResponseOutpu
}
}

/**
Type to handle the output from the TestType operation in a HTTP client.
*/
extension TestTypeOutputForTestType: HTTPResponseOutputProtocol {
public typealias BodyType = TestTypeOutputForTestType
public typealias HeadersType = TestTypeOutputForTestType

public static func compose(bodyDecodableProvider: () throws -> BodyType,
headersDecodableProvider: () throws -> HeadersType) throws -> TestTypeOutputForTestType {
return try bodyDecodableProvider()
}
}

/**
Type to handle the output from the UpdateStack operation in a HTTP client.
*/
Expand Down
Loading

0 comments on commit 770dfce

Please sign in to comment.