Skip to content

Commit

Permalink
chore: Updates version to 0.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Nov 7, 2023
1 parent f3c1413 commit 387016f
Show file tree
Hide file tree
Showing 140 changed files with 20,609 additions and 935 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.34.0",
clientRuntimeVersion: "0.35.0",
crtVersion: "0.17.0"
)

Expand Down Expand Up @@ -379,6 +379,7 @@ let serviceTargets: [String] = [
"AWSKinesisVideoWebRTCStorage",
"AWSLakeFormation",
"AWSLambda",
"AWSLaunchWizard",
"AWSLexModelBuildingService",
"AWSLexModelsV2",
"AWSLexRuntimeService",
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.30.0
0.31.0
6 changes: 3 additions & 3 deletions Sources/Services/AWSAmplify/AmplifyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ extension AmplifyClient: AmplifyClientProtocol {
return result
}

/// Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository.
/// Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail.
///
/// - Parameter CreateDeploymentInput : The request structure for the create a new deployment request.
///
Expand Down Expand Up @@ -674,7 +674,7 @@ extension AmplifyClient: AmplifyClientProtocol {
return result
}

/// Returns an existing Amplify app by appID.
/// Returns an existing Amplify app specified by an app ID.
///
/// - Parameter GetAppInput : The request structure for the get app request.
///
Expand Down Expand Up @@ -1339,7 +1339,7 @@ extension AmplifyClient: AmplifyClientProtocol {
return result
}

/// Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository.
/// Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail.
///
/// - Parameter StartDeploymentInput : The request structure for the start a deployment request.
///
Expand Down
8 changes: 4 additions & 4 deletions Sources/Services/AWSAmplify/AmplifyClientProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import ClientRuntime

/// Amplify enables developers to develop and deploy cloud-powered mobile and web apps. The Amplify Console provides a continuous delivery and hosting service for web applications. For more information, see the [Amplify Console User Guide](https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html). The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation for client app development. For more information, see the [Amplify Framework.](https://docs.amplify.aws/)
/// Amplify enables developers to develop and deploy cloud-powered mobile and web apps. Amplify Hosting provides a continuous delivery and hosting service for web applications. For more information, see the [Amplify Hosting User Guide](https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html). The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation for client app development. For more information, see the [Amplify Framework.](https://docs.amplify.aws/)
public protocol AmplifyClientProtocol {
/// Creates a new Amplify app.
///
Expand Down Expand Up @@ -50,7 +50,7 @@ public protocol AmplifyClientProtocol {
/// - `NotFoundException` : An entity was not found during an operation.
/// - `UnauthorizedException` : An operation failed due to a lack of access.
func createBranch(input: CreateBranchInput) async throws -> CreateBranchOutput
/// Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository.
/// Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail.
///
/// - Parameter CreateDeploymentInput : The request structure for the create a new deployment request.
///
Expand Down Expand Up @@ -200,7 +200,7 @@ public protocol AmplifyClientProtocol {
/// - `NotFoundException` : An entity was not found during an operation.
/// - `UnauthorizedException` : An operation failed due to a lack of access.
func generateAccessLogs(input: GenerateAccessLogsInput) async throws -> GenerateAccessLogsOutput
/// Returns an existing Amplify app by appID.
/// Returns an existing Amplify app specified by an app ID.
///
/// - Parameter GetAppInput : The request structure for the get app request.
///
Expand Down Expand Up @@ -408,7 +408,7 @@ public protocol AmplifyClientProtocol {
/// - `LimitExceededException` : A resource could not be created because service quotas were exceeded.
/// - `UnauthorizedException` : An operation failed due to a lack of access.
func listWebhooks(input: ListWebhooksInput) async throws -> ListWebhooksOutput
/// Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository.
/// Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail.
///
/// - Parameter StartDeploymentInput : The request structure for the start a deployment request.
///
Expand Down
128 changes: 128 additions & 0 deletions Sources/Services/AWSAmplify/Paginators.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
// Code generated by smithy-swift-codegen. DO NOT EDIT!

import ClientRuntime

extension AmplifyClient {
/// Paginate over `[ListAppsOutput]` 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 `[ListAppsInput]` to start pagination
/// - Returns: An `AsyncSequence` that can iterate over `ListAppsOutput`
public func listAppsPaginated(input: ListAppsInput) -> ClientRuntime.PaginatorSequence<ListAppsInput, ListAppsOutput> {
return ClientRuntime.PaginatorSequence<ListAppsInput, ListAppsOutput>(input: input, inputKey: \ListAppsInput.nextToken, outputKey: \ListAppsOutput.nextToken, paginationFunction: self.listApps(input:))
}
}

extension ListAppsInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListAppsInput {
return ListAppsInput(
maxResults: self.maxResults,
nextToken: token
)}
}

extension PaginatorSequence where Input == ListAppsInput, Output == ListAppsOutput {
/// This paginator transforms the `AsyncSequence` returned by `listAppsPaginated`
/// to access the nested member `[AmplifyClientTypes.App]`
/// - Returns: `[AmplifyClientTypes.App]`
public func apps() async throws -> [AmplifyClientTypes.App] {
return try await self.asyncCompactMap { item in item.apps }
}
}
extension AmplifyClient {
/// Paginate over `[ListBranchesOutput]` 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 `[ListBranchesInput]` to start pagination
/// - Returns: An `AsyncSequence` that can iterate over `ListBranchesOutput`
public func listBranchesPaginated(input: ListBranchesInput) -> ClientRuntime.PaginatorSequence<ListBranchesInput, ListBranchesOutput> {
return ClientRuntime.PaginatorSequence<ListBranchesInput, ListBranchesOutput>(input: input, inputKey: \ListBranchesInput.nextToken, outputKey: \ListBranchesOutput.nextToken, paginationFunction: self.listBranches(input:))
}
}

extension ListBranchesInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListBranchesInput {
return ListBranchesInput(
appId: self.appId,
maxResults: self.maxResults,
nextToken: token
)}
}

extension PaginatorSequence where Input == ListBranchesInput, Output == ListBranchesOutput {
/// This paginator transforms the `AsyncSequence` returned by `listBranchesPaginated`
/// to access the nested member `[AmplifyClientTypes.Branch]`
/// - Returns: `[AmplifyClientTypes.Branch]`
public func branches() async throws -> [AmplifyClientTypes.Branch] {
return try await self.asyncCompactMap { item in item.branches }
}
}
extension AmplifyClient {
/// Paginate over `[ListDomainAssociationsOutput]` 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 `[ListDomainAssociationsInput]` to start pagination
/// - Returns: An `AsyncSequence` that can iterate over `ListDomainAssociationsOutput`
public func listDomainAssociationsPaginated(input: ListDomainAssociationsInput) -> ClientRuntime.PaginatorSequence<ListDomainAssociationsInput, ListDomainAssociationsOutput> {
return ClientRuntime.PaginatorSequence<ListDomainAssociationsInput, ListDomainAssociationsOutput>(input: input, inputKey: \ListDomainAssociationsInput.nextToken, outputKey: \ListDomainAssociationsOutput.nextToken, paginationFunction: self.listDomainAssociations(input:))
}
}

extension ListDomainAssociationsInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListDomainAssociationsInput {
return ListDomainAssociationsInput(
appId: self.appId,
maxResults: self.maxResults,
nextToken: token
)}
}

extension PaginatorSequence where Input == ListDomainAssociationsInput, Output == ListDomainAssociationsOutput {
/// This paginator transforms the `AsyncSequence` returned by `listDomainAssociationsPaginated`
/// to access the nested member `[AmplifyClientTypes.DomainAssociation]`
/// - Returns: `[AmplifyClientTypes.DomainAssociation]`
public func domainAssociations() async throws -> [AmplifyClientTypes.DomainAssociation] {
return try await self.asyncCompactMap { item in item.domainAssociations }
}
}
extension AmplifyClient {
/// Paginate over `[ListJobsOutput]` 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 `[ListJobsInput]` to start pagination
/// - Returns: An `AsyncSequence` that can iterate over `ListJobsOutput`
public func listJobsPaginated(input: ListJobsInput) -> ClientRuntime.PaginatorSequence<ListJobsInput, ListJobsOutput> {
return ClientRuntime.PaginatorSequence<ListJobsInput, ListJobsOutput>(input: input, inputKey: \ListJobsInput.nextToken, outputKey: \ListJobsOutput.nextToken, paginationFunction: self.listJobs(input:))
}
}

extension ListJobsInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListJobsInput {
return ListJobsInput(
appId: self.appId,
branchName: self.branchName,
maxResults: self.maxResults,
nextToken: token
)}
}

extension PaginatorSequence where Input == ListJobsInput, Output == ListJobsOutput {
/// This paginator transforms the `AsyncSequence` returned by `listJobsPaginated`
/// to access the nested member `[AmplifyClientTypes.JobSummary]`
/// - Returns: `[AmplifyClientTypes.JobSummary]`
public func jobSummaries() async throws -> [AmplifyClientTypes.JobSummary] {
return try await self.asyncCompactMap { item in item.jobSummaries }
}
}
Loading

0 comments on commit 387016f

Please sign in to comment.