Skip to content

Commit

Permalink
chore: Updates version to 0.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 12, 2023
1 parent e2c3de2 commit 3c5aeac
Show file tree
Hide file tree
Showing 1,387 changed files with 512,495 additions and 462,254 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func addProtocolTests() {
// MARK: - Generated

addDependencies(
clientRuntimeVersion: "0.31.0",
clientRuntimeVersion: "0.32.0",
crtVersion: "0.13.0"
)

Expand Down Expand Up @@ -283,6 +283,7 @@ let serviceTargets: [String] = [
"AWSDataExchange",
"AWSDataPipeline",
"AWSDataSync",
"AWSDataZone",
"AWSDatabaseMigrationService",
"AWSDetective",
"AWSDevOpsGuru",
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.27.0
0.28.0
390 changes: 195 additions & 195 deletions Sources/Services/AWSACM/ACMClient.swift

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions Sources/Services/AWSACM/ACMClientProtocol.swift

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Sources/Services/AWSACM/Paginators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import ClientRuntime

extension ACMClient {
/// Paginate over `[ListCertificatesOutputResponse]` results.
/// Paginate over `[ListCertificatesOutput]` results.
///
/// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service
/// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid
/// until then. If there are errors in your request, you will see the failures only after you start iterating.
/// - Parameters:
/// - input: A `[ListCertificatesInput]` to start pagination
/// - Returns: An `AsyncSequence` that can iterate over `ListCertificatesOutputResponse`
public func listCertificatesPaginated(input: ListCertificatesInput) -> ClientRuntime.PaginatorSequence<ListCertificatesInput, ListCertificatesOutputResponse> {
return ClientRuntime.PaginatorSequence<ListCertificatesInput, ListCertificatesOutputResponse>(input: input, inputKey: \ListCertificatesInput.nextToken, outputKey: \ListCertificatesOutputResponse.nextToken, paginationFunction: self.listCertificates(input:))
/// - Returns: An `AsyncSequence` that can iterate over `ListCertificatesOutput`
public func listCertificatesPaginated(input: ListCertificatesInput) -> ClientRuntime.PaginatorSequence<ListCertificatesInput, ListCertificatesOutput> {
return ClientRuntime.PaginatorSequence<ListCertificatesInput, ListCertificatesOutput>(input: input, inputKey: \ListCertificatesInput.nextToken, outputKey: \ListCertificatesOutput.nextToken, paginationFunction: self.listCertificates(input:))
}
}

Expand All @@ -28,7 +28,7 @@ extension ListCertificatesInput: ClientRuntime.PaginateToken {
)}
}

extension PaginatorSequence where Input == ListCertificatesInput, Output == ListCertificatesOutputResponse {
extension PaginatorSequence where Input == ListCertificatesInput, Output == ListCertificatesOutput {
/// This paginator transforms the `AsyncSequence` returned by `listCertificatesPaginated`
/// to access the nested member `[ACMClientTypes.CertificateSummary]`
/// - Returns: `[ACMClientTypes.CertificateSummary]`
Expand Down
16 changes: 8 additions & 8 deletions Sources/Services/AWSACM/Waiters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import ClientRuntime

extension ACMClientProtocol {

static func certificateValidatedWaiterConfig() throws -> WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutputResponse> {
let acceptors: [WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutputResponse>.Acceptor] = [
.init(state: .success, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
static func certificateValidatedWaiterConfig() throws -> WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutput> {
let acceptors: [WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutput>.Acceptor] = [
.init(state: .success, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutput, Error>) -> Bool in
// JMESPath expression: "Certificate.DomainValidationOptions[].ValidationStatus"
// JMESPath comparator: "allStringEquals"
// JMESPath expected value: "SUCCESS"
Expand All @@ -19,7 +19,7 @@ extension ACMClientProtocol {
}
return (projection?.count ?? 0) > 1 && (projection?.allSatisfy { JMESUtils.compare($0, ==, "SUCCESS") } ?? false)
}),
.init(state: .retry, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
.init(state: .retry, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutput, Error>) -> Bool in
// JMESPath expression: "Certificate.DomainValidationOptions[].ValidationStatus"
// JMESPath comparator: "anyStringEquals"
// JMESPath expected value: "PENDING_VALIDATION"
Expand All @@ -32,7 +32,7 @@ extension ACMClientProtocol {
}
return projection?.contains(where: { JMESUtils.compare($0, ==, "PENDING_VALIDATION") }) ?? false
}),
.init(state: .failure, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
.init(state: .failure, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutput, Error>) -> Bool in
// JMESPath expression: "Certificate.Status"
// JMESPath comparator: "stringEquals"
// JMESPath expected value: "FAILED"
Expand All @@ -41,12 +41,12 @@ extension ACMClientProtocol {
let status = certificate?.status
return JMESUtils.compare(status, ==, "FAILED")
}),
.init(state: .failure, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutputResponse, Error>) -> Bool in
.init(state: .failure, matcher: { (input: DescribeCertificateInput, result: Result<DescribeCertificateOutput, Error>) -> Bool in
guard case .failure(let error) = result else { return false }
return (error as? ServiceError)?.typeName == "ResourceNotFoundException"
}),
]
return try WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutputResponse>(acceptors: acceptors, minDelay: 60.0, maxDelay: 120.0)
return try WaiterConfiguration<DescribeCertificateInput, DescribeCertificateOutput>(acceptors: acceptors, minDelay: 60.0, maxDelay: 120.0)
}

/// Initiates waiting for the CertificateValidated event on the describeCertificate operation.
Expand All @@ -60,7 +60,7 @@ extension ACMClientProtocol {
/// - Throws: `WaiterFailureError` if the waiter fails due to matching an `Acceptor` with state `failure`
/// or there is an error not handled by any `Acceptor.`
/// `WaiterTimeoutError` if the waiter times out.
public func waitUntilCertificateValidated(options: WaiterOptions, input: DescribeCertificateInput) async throws -> WaiterOutcome<DescribeCertificateOutputResponse> {
public func waitUntilCertificateValidated(options: WaiterOptions, input: DescribeCertificateInput) async throws -> WaiterOutcome<DescribeCertificateOutput> {
let waiter = Waiter(config: try Self.certificateValidatedWaiterConfig(), operation: self.describeCertificate(input:))
return try await waiter.waitUntil(options: options, input: input)
}
Expand Down
Loading

0 comments on commit 3c5aeac

Please sign in to comment.