Skip to content

Commit 02a2a4c

Browse files
Ed PauloskyAWS CI
andauthored
aws-sdk-swift release build artifacts
* chore: update client runtime version to 0.7.0 * aws-sdk-swift release build artifacts Co-authored-by: AWS CI <[email protected]>
1 parent 9269bed commit 02a2a4c

File tree

814 files changed

+62028
-26359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

814 files changed

+62028
-26359
lines changed

Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ let package = Package(
197197
.library(name: "AWSKinesisVideoArchivedMedia", targets: ["AWSKinesisVideoArchivedMedia"]),
198198
.library(name: "AWSKinesisVideoMedia", targets: ["AWSKinesisVideoMedia"]),
199199
.library(name: "AWSKinesisVideoSignaling", targets: ["AWSKinesisVideoSignaling"]),
200+
.library(name: "AWSKinesisVideoWebRTCStorage", targets: ["AWSKinesisVideoWebRTCStorage"]),
200201
.library(name: "AWSLakeFormation", targets: ["AWSLakeFormation"]),
201202
.library(name: "AWSLambda", targets: ["AWSLambda"]),
202203
.library(name: "AWSLexModelBuildingService", targets: ["AWSLexModelBuildingService"]),
@@ -309,6 +310,7 @@ let package = Package(
309310
.library(name: "AWSSageMakerA2IRuntime", targets: ["AWSSageMakerA2IRuntime"]),
310311
.library(name: "AWSSageMakerFeatureStoreRuntime", targets: ["AWSSageMakerFeatureStoreRuntime"]),
311312
.library(name: "AWSSageMakerGeospatial", targets: ["AWSSageMakerGeospatial"]),
313+
.library(name: "AWSSageMakerMetrics", targets: ["AWSSageMakerMetrics"]),
312314
.library(name: "AWSSageMakerRuntime", targets: ["AWSSageMakerRuntime"]),
313315
.library(name: "AWSSagemakerEdge", targets: ["AWSSagemakerEdge"]),
314316
.library(name: "AWSSavingsplans", targets: ["AWSSavingsplans"]),
@@ -353,7 +355,7 @@ let package = Package(
353355
.library(name: "AWSXRay", targets: ["AWSXRay"]),
354356
],
355357
dependencies: [
356-
.package(url: "https://github.com/awslabs/smithy-swift", .exact("0.6.0")),
358+
.package(url: "https://github.com/awslabs/smithy-swift", .exact("0.7.0")),
357359
.package(url: "https://github.com/awslabs/aws-crt-swift", .exact("0.4.0"))
358360
],
359361
targets: [
@@ -551,6 +553,7 @@ let package = Package(
551553
.target(name: "AWSKinesisVideoArchivedMedia", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSKinesisVideoArchivedMedia"),
552554
.target(name: "AWSKinesisVideoMedia", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSKinesisVideoMedia"),
553555
.target(name: "AWSKinesisVideoSignaling", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSKinesisVideoSignaling"),
556+
.target(name: "AWSKinesisVideoWebRTCStorage", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSKinesisVideoWebRTCStorage"),
554557
.target(name: "AWSLakeFormation", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSLakeFormation"),
555558
.target(name: "AWSLambda", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSLambda"),
556559
.target(name: "AWSLexModelBuildingService", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSLexModelBuildingService"),
@@ -663,6 +666,7 @@ let package = Package(
663666
.target(name: "AWSSageMakerA2IRuntime", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSageMakerA2IRuntime"),
664667
.target(name: "AWSSageMakerFeatureStoreRuntime", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSageMakerFeatureStoreRuntime"),
665668
.target(name: "AWSSageMakerGeospatial", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSageMakerGeospatial"),
669+
.target(name: "AWSSageMakerMetrics", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSageMakerMetrics"),
666670
.target(name: "AWSSageMakerRuntime", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSageMakerRuntime"),
667671
.target(name: "AWSSagemakerEdge", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSagemakerEdge"),
668672
.target(name: "AWSSavingsplans", dependencies: [.product(name: "ClientRuntime", package: "smithy-swift"), "AWSClientRuntime"], path: "./release/AWSSavingsplans"),

packageDependencies.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>clientRuntimeVersion</key>
6-
<string>0.6.0</string>
6+
<string>0.7.0</string>
77
<key>awsCRTSwiftVersion</key>
88
<string>0.4.0</string>
99
<key>clientRuntimeBranch</key>

release/AWSACM/ACMClient.swift

Lines changed: 14 additions & 14 deletions
Large diffs are not rendered by default.

release/AWSACM/Waiters.swift

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Code generated by smithy-swift-codegen. DO NOT EDIT!
2+
3+
import ClientRuntime
4+
5+
extension ACMClientProtocol {
6+
7+
static func certificateValidatedWaiterConfig() throws -> WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutputResponse> {
8+
let acceptors: [WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutputResponse>.Acceptor] = [
9+
.init(state: .success, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
10+
// JMESPath expression: "Certificate.DomainValidationOptions[].ValidationStatus"
11+
// JMESPath comparator: "allStringEquals"
12+
// JMESPath expected value: "SUCCESS"
13+
guard case .success(let output) = result else { return false }
14+
let certificate = output.certificate
15+
let domainValidationOptions = certificate?.domainValidationOptions
16+
let projection: [ACMClientTypes.DomainStatus]? = domainValidationOptions?.compactMap { original in
17+
let validationStatus = original.validationStatus
18+
return validationStatus
19+
}
20+
return (projection?.count ?? 0) > 1 && (projection?.allSatisfy { JMESUtils.compare($0, ==, "SUCCESS") } ?? false)
21+
}),
22+
.init(state: .retry, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
23+
// JMESPath expression: "Certificate.DomainValidationOptions[].ValidationStatus"
24+
// JMESPath comparator: "anyStringEquals"
25+
// JMESPath expected value: "PENDING_VALIDATION"
26+
guard case .success(let output) = result else { return false }
27+
let certificate = output.certificate
28+
let domainValidationOptions = certificate?.domainValidationOptions
29+
let projection: [ACMClientTypes.DomainStatus]? = domainValidationOptions?.compactMap { original in
30+
let validationStatus = original.validationStatus
31+
return validationStatus
32+
}
33+
return projection?.contains(where: { JMESUtils.compare($0, ==, "PENDING_VALIDATION") }) ?? false
34+
}),
35+
.init(state: .failure, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
36+
// JMESPath expression: "Certificate.Status"
37+
// JMESPath comparator: "stringEquals"
38+
// JMESPath expected value: "FAILED"
39+
guard case .success(let output) = result else { return false }
40+
let certificate = output.certificate
41+
let status = certificate?.status
42+
return JMESUtils.compare(status, ==, "FAILED")
43+
}),
44+
.init(state: .failure, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
45+
guard case .failure(let error) = result else { return false }
46+
return (error as? WaiterTypedError)?.waiterErrorType == "ResourceNotFoundException"
47+
}),
48+
]
49+
return try WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutputResponse>(acceptors: acceptors, minDelay: 60.0, maxDelay: 120.0)
50+
}
51+
52+
/// Initiates waiting for the CertificateValidated event on the describeCertificate operation.
53+
/// The operation will be tried and (if necessary) retried until the wait succeeds, fails, or times out.
54+
/// Returns a `WaiterOutcome` asynchronously on waiter success, throws an error asynchronously on
55+
/// waiter failure or timeout.
56+
/// - Parameters:
57+
/// - options: `WaiterOptions` to be used to configure this wait.
58+
/// - input: The `DescribeCertificateInput` object to be used as a parameter when performing the operation.
59+
/// - Returns: A `WaiterOutcome` with the result of the final, successful performance of the operation.
60+
/// - Throws: `WaiterFailureError` if the waiter fails due to matching an `Acceptor` with state `failure`
61+
/// or there is an error not handled by any `Acceptor.`
62+
/// `WaiterTimeoutError` if the waiter times out.
63+
public func waitUntilCertificateValidated(options: WaiterOptions, input: DescribeCertificateInput) async throws -> WaiterOutcome<DescribeCertificateOutputResponse> {
64+
let waiter = Waiter(config: try Self.certificateValidatedWaiterConfig(), operation: self.describeCertificate(input:))
65+
return try await waiter.waitUntil(options: options, input: input)
66+
}
67+
}

0 commit comments

Comments
 (0)