Skip to content

Commit

Permalink
chore: Release 0.9.0 (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored Jan 19, 2023
1 parent f786f18 commit 85065b7
Show file tree
Hide file tree
Showing 393 changed files with 42,538 additions and 26,735 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
chmod a+x builder.pyz
AWS_CRT_SWIFT_CI_DIR="${{ env.AWS_CRT_SWIFT_CI_DIR }}" AWS_SDK_SWIFT_CI_DIR="${{ env.AWS_SDK_SWIFT_CI_DIR }}" SMITHY_SWIFT_CI_DIR="${{ env.SMITHY_SWIFT_CI_DIR }}" ./builder.pyz build -p ${{ env.PACKAGE_NAME }} --target=ios-armv8
AWS_CRT_SWIFT_CI_DIR="${{ env.AWS_CRT_SWIFT_CI_DIR }}" AWS_SDK_SWIFT_CI_DIR="${{ env.AWS_SDK_SWIFT_CI_DIR }}" SMITHY_SWIFT_CI_DIR="${{ env.SMITHY_SWIFT_CI_DIR }}" AWS_SWIFT_SDK_USE_LOCAL_DEPS=1 ./builder.pyz build -p ${{ env.PACKAGE_NAME }} --target=ios-armv8
macos-compat:
runs-on: macos-11
env:
Expand All @@ -65,7 +65,7 @@ jobs:
run: |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
chmod a+x builder.pyz
AWS_CRT_SWIFT_CI_DIR="${{ env.AWS_CRT_SWIFT_CI_DIR }}" AWS_SDK_SWIFT_CI_DIR="${{ env.AWS_SDK_SWIFT_CI_DIR }}" SMITHY_SWIFT_CI_DIR="${{ env.SMITHY_SWIFT_CI_DIR }}" ./builder.pyz build -p ${{ env.PACKAGE_NAME }}
AWS_CRT_SWIFT_CI_DIR="${{ env.AWS_CRT_SWIFT_CI_DIR }}" AWS_SDK_SWIFT_CI_DIR="${{ env.AWS_SDK_SWIFT_CI_DIR }}" SMITHY_SWIFT_CI_DIR="${{ env.SMITHY_SWIFT_CI_DIR }}" AWS_SWIFT_SDK_USE_LOCAL_DEPS=1 ./builder.pyz build -p ${{ env.PACKAGE_NAME }}
linux-compat:
runs-on: ubuntu-latest
strategy:
Expand All @@ -92,5 +92,6 @@ jobs:
--env AWS_CRT_SWIFT_CI_DIR="/root/${{ env.PACKAGE_NAME }}/target/build/deps/aws-crt-swift" \
--env AWS_SDK_SWIFT_CI_DIR="/root/${{ env.PACKAGE_NAME }}" \
--env SMITHY_SWIFT_CI_DIR="/root/${{ env.PACKAGE_NAME }}/target/build/deps/smithy-swift" \
--env AWS_SWIFT_SDK_USE_LOCAL_DEPS=1 \
--env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_DEFAULT_REGION --env CXXFLAGS \
$DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --build-dir=/root/${{ env.PACKAGE_NAME }} --spec=downstream
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
./gradlew -p codegen/sdk-codegen stageSdks
./gradlew --stop
./scripts/mergeModels.sh Sources/Services
- name: Generate Package.swift
- name: Generate SDK and Swift package manifest
run: |
./scripts/generatePackageSwift.swift > Package.swift
cat Package.swift
swift build --build-tests
Expand All @@ -62,4 +63,4 @@ jobs:
author_name: AWS CI
author_email: [email protected]
message: 'aws-sdk-swift release build artifacts'
add: 'release Package.swift'
add: '["Sources/Services/*", "Tests/Services/*", "Package.swift"]'
8 changes: 7 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ let package = Package(
.library(name: "AWSChimeSDKMeetings", targets: ["AWSChimeSDKMeetings"]),
.library(name: "AWSChimeSDKMessaging", targets: ["AWSChimeSDKMessaging"]),
.library(name: "AWSChimeSDKVoice", targets: ["AWSChimeSDKVoice"]),
.library(name: "AWSCleanRooms", targets: ["AWSCleanRooms"]),
.library(name: "AWSCloud9", targets: ["AWSCloud9"]),
.library(name: "AWSCloudControl", targets: ["AWSCloudControl"]),
.library(name: "AWSCloudDirectory", targets: ["AWSCloudDirectory"]),
Expand Down Expand Up @@ -194,6 +195,7 @@ let package = Package(
.library(name: "AWSKafka", targets: ["AWSKafka"]),
.library(name: "AWSKafkaConnect", targets: ["AWSKafkaConnect"]),
.library(name: "AWSKendra", targets: ["AWSKendra"]),
.library(name: "AWSKendraRanking", targets: ["AWSKendraRanking"]),
.library(name: "AWSKeyspaces", targets: ["AWSKeyspaces"]),
.library(name: "AWSKinesis", targets: ["AWSKinesis"]),
.library(name: "AWSKinesisAnalytics", targets: ["AWSKinesisAnalytics"]),
Expand Down Expand Up @@ -414,6 +416,7 @@ let package = Package(
.target(name: "AWSChimeSDKMeetings", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSChimeSDKMeetings"),
.target(name: "AWSChimeSDKMessaging", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSChimeSDKMessaging"),
.target(name: "AWSChimeSDKVoice", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSChimeSDKVoice"),
.target(name: "AWSCleanRooms", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSCleanRooms"),
.target(name: "AWSCloud9", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSCloud9"),
.target(name: "AWSCloudControl", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSCloudControl"),
.target(name: "AWSCloudDirectory", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSCloudDirectory"),
Expand Down Expand Up @@ -541,6 +544,7 @@ let package = Package(
.target(name: "AWSKafka", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKafka"),
.target(name: "AWSKafkaConnect", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKafkaConnect"),
.target(name: "AWSKendra", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKendra"),
.target(name: "AWSKendraRanking", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKendraRanking"),
.target(name: "AWSKeyspaces", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKeyspaces"),
.target(name: "AWSKinesis", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKinesis"),
.target(name: "AWSKinesisAnalytics", dependencies: [clientRuntime, "AWSClientRuntime"], path: "./Sources/Services/AWSKinesisAnalytics"),
Expand Down Expand Up @@ -752,6 +756,7 @@ let package = Package(
// .testTarget(name: "AWSChimeSDKMeetingsTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSChimeSDKMeetings", smithyTestUtil], path: "./Tests/Services/AWSChimeSDKMeetingsTests"),
// .testTarget(name: "AWSChimeSDKMessagingTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSChimeSDKMessaging", smithyTestUtil], path: "./Tests/Services/AWSChimeSDKMessagingTests"),
// .testTarget(name: "AWSChimeSDKVoiceTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSChimeSDKVoice", smithyTestUtil], path: "./Tests/Services/AWSChimeSDKVoiceTests"),
// .testTarget(name: "AWSCleanRoomsTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSCleanRooms", smithyTestUtil], path: "./Tests/Services/AWSCleanRoomsTests"),
// .testTarget(name: "AWSCloud9Tests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSCloud9", smithyTestUtil], path: "./Tests/Services/AWSCloud9Tests"),
// .testTarget(name: "AWSCloudControlTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSCloudControl", smithyTestUtil], path: "./Tests/Services/AWSCloudControlTests"),
// .testTarget(name: "AWSCloudDirectoryTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSCloudDirectory", smithyTestUtil], path: "./Tests/Services/AWSCloudDirectoryTests"),
Expand Down Expand Up @@ -879,6 +884,7 @@ let package = Package(
// .testTarget(name: "AWSKafkaTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKafka", smithyTestUtil], path: "./Tests/Services/AWSKafkaTests"),
// .testTarget(name: "AWSKafkaConnectTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKafkaConnect", smithyTestUtil], path: "./Tests/Services/AWSKafkaConnectTests"),
// .testTarget(name: "AWSKendraTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKendra", smithyTestUtil], path: "./Tests/Services/AWSKendraTests"),
// .testTarget(name: "AWSKendraRankingTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKendraRanking", smithyTestUtil], path: "./Tests/Services/AWSKendraRankingTests"),
// .testTarget(name: "AWSKeyspacesTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKeyspaces", smithyTestUtil], path: "./Tests/Services/AWSKeyspacesTests"),
// .testTarget(name: "AWSKinesisTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKinesis", smithyTestUtil], path: "./Tests/Services/AWSKinesisTests"),
// .testTarget(name: "AWSKinesisAnalyticsTests", dependencies: [awsCommonRuntimeKit, clientRuntime, "AWSClientRuntime", "AWSKinesisAnalytics", smithyTestUtil], path: "./Tests/Services/AWSKinesisAnalyticsTests"),
Expand Down Expand Up @@ -1064,6 +1070,6 @@ case (false, true):
]
case (false, false):
package.dependencies += [
.package(url: "https://github.com/awslabs/smithy-swift", .exact("0.10.1"))
.package(url: "https://github.com/awslabs/smithy-swift", .exact("0.10.2"))
]
}
23 changes: 11 additions & 12 deletions Sources/Services/AWSACM/Paginators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

import ClientRuntime


/// Paginate over `[ListCertificatesOutputResponse]` 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`
extension ACMClient {
/// Paginate over `[ListCertificatesOutputResponse]` 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:))
}
Expand All @@ -29,10 +28,10 @@ extension ListCertificatesInput: ClientRuntime.PaginateToken {
)}
}

/// This paginator transforms the `AsyncSequence` returned by `listCertificatesPaginated`
/// to access the nested member `[ACMClientTypes.CertificateSummary]`
/// - Returns: `[ACMClientTypes.CertificateSummary]`
extension PaginatorSequence where Input == ListCertificatesInput, Output == ListCertificatesOutputResponse {
/// This paginator transforms the `AsyncSequence` returned by `listCertificatesPaginated`
/// to access the nested member `[ACMClientTypes.CertificateSummary]`
/// - Returns: `[ACMClientTypes.CertificateSummary]`
public func certificateSummaryList() async throws -> [ACMClientTypes.CertificateSummary] {
return try await self.asyncCompactMap { item in item.certificateSummaryList }
}
Expand Down
Loading

0 comments on commit 85065b7

Please sign in to comment.