Skip to content

Commit

Permalink
Merge pull request #135 from amzn/code_generate_2_44_174
Browse files Browse the repository at this point in the history
Code generate with Go SDK v1.44.174 models.
  • Loading branch information
tachyonics authored Jan 6, 2023
2 parents 42b09ab + a0d006e commit 24c05c5
Show file tree
Hide file tree
Showing 136 changed files with 140,318 additions and 2,007 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,11 @@ jobs:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04]
swift: ["5.7"]
os: [ubuntu-22.04, ubuntu-20.04]
swift: ["5.7.2"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/[email protected]
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v2
- name: Build
run: swift build -c release
- name: Run tests
run: swift test
OlderVersionBuild:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
swift: ["5.5.3"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/[email protected]
- uses: swift-actions/[email protected]
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img src="https://github.com/amzn/smoke-aws/actions/workflows/swift.yml/badge.svg?branch=main" alt="Build - Main Branch">
</a>
<a href="http://swift.org">
<img src="https://img.shields.io/badge/swift-5.5|5.7-orange.svg?style=flat" alt="Swift 5.5 and 5.7 Tested">
<img src="https://img.shields.io/badge/swift-5.7-orange.svg?style=flat" alt="Swift 5.7 Tested">
</a>
<img src="https://img.shields.io/badge/ubuntu-18.04|20.04-yellow.svg?style=flat" alt="Ubuntu 18.04 and 20.04 Tested">
<img src="https://img.shields.io/badge/CentOS-8-yellow.svg?style=flat" alt="CentOS 8 Tested">
Expand Down
1,531 changes: 1,531 additions & 0 deletions Sources/AppConfigClient/AWSAppConfigClient.swift

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Sources/AppConfigClient/AppConfigClientProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import SmokeHTTPClient
/**
Client Protocol for the AppConfig service.
*/
public protocol AppConfigClientProtocol {
public protocol AppConfigClientProtocol: AppConfigClientProtocolV2 {
typealias CreateApplicationSyncType = (
_ input: AppConfigModel.CreateApplicationRequest) throws -> AppConfigModel.Application
typealias CreateApplicationAsyncType = (
Expand Down
616 changes: 616 additions & 0 deletions Sources/AppConfigClient/AppConfigClientProtocolV2.swift

Large diffs are not rendered by default.

914 changes: 914 additions & 0 deletions Sources/AppConfigClient/MockAppConfigClientV2.swift

Large diffs are not rendered by default.

926 changes: 926 additions & 0 deletions Sources/AppConfigClient/ThrowingAppConfigClientV2.swift

Large diffs are not rendered by default.

1,505 changes: 1,505 additions & 0 deletions Sources/CloudWatchClient/AWSCloudWatchClient.swift

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Sources/CloudWatchClient/CloudWatchClientProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import SmokeHTTPClient
/**
Client Protocol for the CloudWatch service.
*/
public protocol CloudWatchClientProtocol {
public protocol CloudWatchClientProtocol: CloudWatchClientProtocolV2 {
typealias DeleteAlarmsSyncType = (
_ input: CloudWatchModel.DeleteAlarmsInput) throws -> ()
typealias DeleteAlarmsAsyncType = (
Expand Down
548 changes: 548 additions & 0 deletions Sources/CloudWatchClient/CloudWatchClientProtocolV2.swift

Large diffs are not rendered by default.

814 changes: 814 additions & 0 deletions Sources/CloudWatchClient/MockCloudWatchClientV2.swift

Large diffs are not rendered by default.

823 changes: 823 additions & 0 deletions Sources/CloudWatchClient/ThrowingCloudWatchClientV2.swift

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1204,9 +1204,11 @@ public extension ListMetricsInput {
static let __default: CloudWatchModel.ListMetricsInput = {
let defaultInstance = CloudWatchModel.ListMetricsInput(
dimensions: nil,
includeLinkedAccounts: nil,
metricName: nil,
namespace: nil,
nextToken: nil,
owningAccount: nil,
recentlyActive: nil)

return defaultInstance
Expand All @@ -1220,7 +1222,8 @@ public extension ListMetricsOutput {
static let __default: CloudWatchModel.ListMetricsOutput = {
let defaultInstance = CloudWatchModel.ListMetricsOutput(
metrics: nil,
nextToken: nil)
nextToken: nil,
owningAccounts: nil)

return defaultInstance
}()
Expand Down Expand Up @@ -1359,6 +1362,7 @@ public extension MetricAlarm {
dimensions: nil,
evaluateLowSampleCountPercentile: nil,
evaluationPeriods: nil,
evaluationState: nil,
extendedStatistic: nil,
insufficientDataActions: nil,
metricName: nil,
Expand All @@ -1368,6 +1372,7 @@ public extension MetricAlarm {
period: nil,
stateReason: nil,
stateReasonData: nil,
stateTransitionedTimestamp: nil,
stateUpdatedTimestamp: nil,
stateValue: nil,
statistic: nil,
Expand Down
23 changes: 22 additions & 1 deletion Sources/CloudWatchModel/CloudWatchModelStructures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1933,51 +1933,64 @@ public struct ListMetricStreamsOutputForListMetricStreams: Codable, Equatable {

public struct ListMetricsInput: Codable, Equatable {
public var dimensions: DimensionFilters?
public var includeLinkedAccounts: IncludeLinkedAccounts?
public var metricName: MetricName?
public var namespace: Namespace?
public var nextToken: NextToken?
public var owningAccount: AccountId?
public var recentlyActive: RecentlyActive?

public init(dimensions: DimensionFilters? = nil,
includeLinkedAccounts: IncludeLinkedAccounts? = nil,
metricName: MetricName? = nil,
namespace: Namespace? = nil,
nextToken: NextToken? = nil,
owningAccount: AccountId? = nil,
recentlyActive: RecentlyActive? = nil) {
self.dimensions = dimensions
self.includeLinkedAccounts = includeLinkedAccounts
self.metricName = metricName
self.namespace = namespace
self.nextToken = nextToken
self.owningAccount = owningAccount
self.recentlyActive = recentlyActive
}

enum CodingKeys: String, CodingKey {
case dimensions = "Dimensions"
case includeLinkedAccounts = "IncludeLinkedAccounts"
case metricName = "MetricName"
case namespace = "Namespace"
case nextToken = "NextToken"
case owningAccount = "OwningAccount"
case recentlyActive = "RecentlyActive"
}

public func validate() throws {
try dimensions?.validateAsDimensionFilters()
try metricName?.validateAsMetricName()
try namespace?.validateAsNamespace()
try owningAccount?.validateAsAccountId()
}
}

public struct ListMetricsOutput: Codable, Equatable {
public var metrics: Metrics?
public var nextToken: NextToken?
public var owningAccounts: OwningAccounts?

public init(metrics: Metrics? = nil,
nextToken: NextToken? = nil) {
nextToken: NextToken? = nil,
owningAccounts: OwningAccounts? = nil) {
self.metrics = metrics
self.nextToken = nextToken
self.owningAccounts = owningAccounts
}

enum CodingKeys: String, CodingKey {
case metrics = "Metrics"
case nextToken = "NextToken"
case owningAccounts = "OwningAccounts"
}

public func validate() throws {
Expand Down Expand Up @@ -2176,6 +2189,7 @@ public struct MetricAlarm: Codable, Equatable {
public var dimensions: Dimensions?
public var evaluateLowSampleCountPercentile: EvaluateLowSampleCountPercentile?
public var evaluationPeriods: EvaluationPeriods?
public var evaluationState: EvaluationState?
public var extendedStatistic: ExtendedStatistic?
public var insufficientDataActions: ResourceList?
public var metricName: MetricName?
Expand All @@ -2185,6 +2199,7 @@ public struct MetricAlarm: Codable, Equatable {
public var period: Period?
public var stateReason: StateReason?
public var stateReasonData: StateReasonData?
public var stateTransitionedTimestamp: Timestamp?
public var stateUpdatedTimestamp: Timestamp?
public var stateValue: StateValue?
public var statistic: Statistic?
Expand All @@ -2204,6 +2219,7 @@ public struct MetricAlarm: Codable, Equatable {
dimensions: Dimensions? = nil,
evaluateLowSampleCountPercentile: EvaluateLowSampleCountPercentile? = nil,
evaluationPeriods: EvaluationPeriods? = nil,
evaluationState: EvaluationState? = nil,
extendedStatistic: ExtendedStatistic? = nil,
insufficientDataActions: ResourceList? = nil,
metricName: MetricName? = nil,
Expand All @@ -2213,6 +2229,7 @@ public struct MetricAlarm: Codable, Equatable {
period: Period? = nil,
stateReason: StateReason? = nil,
stateReasonData: StateReasonData? = nil,
stateTransitionedTimestamp: Timestamp? = nil,
stateUpdatedTimestamp: Timestamp? = nil,
stateValue: StateValue? = nil,
statistic: Statistic? = nil,
Expand All @@ -2231,6 +2248,7 @@ public struct MetricAlarm: Codable, Equatable {
self.dimensions = dimensions
self.evaluateLowSampleCountPercentile = evaluateLowSampleCountPercentile
self.evaluationPeriods = evaluationPeriods
self.evaluationState = evaluationState
self.extendedStatistic = extendedStatistic
self.insufficientDataActions = insufficientDataActions
self.metricName = metricName
Expand All @@ -2240,6 +2258,7 @@ public struct MetricAlarm: Codable, Equatable {
self.period = period
self.stateReason = stateReason
self.stateReasonData = stateReasonData
self.stateTransitionedTimestamp = stateTransitionedTimestamp
self.stateUpdatedTimestamp = stateUpdatedTimestamp
self.stateValue = stateValue
self.statistic = statistic
Expand All @@ -2261,6 +2280,7 @@ public struct MetricAlarm: Codable, Equatable {
case dimensions = "Dimensions"
case evaluateLowSampleCountPercentile = "EvaluateLowSampleCountPercentile"
case evaluationPeriods = "EvaluationPeriods"
case evaluationState = "EvaluationState"
case extendedStatistic = "ExtendedStatistic"
case insufficientDataActions = "InsufficientDataActions"
case metricName = "MetricName"
Expand All @@ -2270,6 +2290,7 @@ public struct MetricAlarm: Codable, Equatable {
case period = "Period"
case stateReason = "StateReason"
case stateReasonData = "StateReasonData"
case stateTransitionedTimestamp = "StateTransitionedTimestamp"
case stateUpdatedTimestamp = "StateUpdatedTimestamp"
case stateValue = "StateValue"
case statistic = "Statistic"
Expand Down
24 changes: 24 additions & 0 deletions Sources/CloudWatchModel/CloudWatchModelTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,19 @@ public typealias EvaluateLowSampleCountPercentile = String
*/
public typealias EvaluationPeriods = Int

/**
Enumeration restricting the values of the EvaluationState field.
*/
public enum EvaluationState: String, Codable, CustomStringConvertible {
case partialData = "PARTIAL_DATA"

public var description: String {
return rawValue
}

public static let __default: EvaluationState = .partialData
}

/**
Type definition for the ExceptionType field.
*/
Expand Down Expand Up @@ -384,6 +397,11 @@ public enum HistoryItemType: String, Codable, CustomStringConvertible {
*/
public typealias HistorySummary = String

/**
Type definition for the IncludeLinkedAccounts field.
*/
public typealias IncludeLinkedAccounts = Bool

/**
Type definition for the InsightRuleAggregationStatistic field.
*/
Expand Down Expand Up @@ -673,6 +691,11 @@ public typealias NextToken = String
*/
public typealias OutputFormat = String

/**
Type definition for the OwningAccounts field.
*/
public typealias OwningAccounts = [AccountId]

/**
Type definition for the Period field.
*/
Expand Down Expand Up @@ -831,6 +854,7 @@ public typealias Statistics = [Statistic]
*/
public enum StatusCode: String, Codable, CustomStringConvertible {
case complete = "Complete"
case forbidden = "Forbidden"
case internalerror = "InternalError"
case partialdata = "PartialData"

Expand Down
Loading

0 comments on commit 24c05c5

Please sign in to comment.