Skip to content

Commit

Permalink
Update models from aws-sdk-go-v2 release-2023-06-23 (#675)
Browse files Browse the repository at this point in the history
Co-authored-by: adam-fowler <[email protected]>
  • Loading branch information
soto-automation[bot] and adam-fowler committed Jun 28, 2023
1 parent edfafcf commit fa95b44
Show file tree
Hide file tree
Showing 162 changed files with 40,876 additions and 4,780 deletions.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ let package = Package(
.library(name: "SotoCodeDeploy", targets: ["SotoCodeDeploy"]),
.library(name: "SotoCodeGuruProfiler", targets: ["SotoCodeGuruProfiler"]),
.library(name: "SotoCodeGuruReviewer", targets: ["SotoCodeGuruReviewer"]),
.library(name: "SotoCodeGuruSecurity", targets: ["SotoCodeGuruSecurity"]),
.library(name: "SotoCodePipeline", targets: ["SotoCodePipeline"]),
.library(name: "SotoCodeStar", targets: ["SotoCodeStar"]),
.library(name: "SotoCodeStarConnections", targets: ["SotoCodeStarConnections"]),
Expand Down Expand Up @@ -352,6 +353,7 @@ let package = Package(
.library(name: "SotoTransfer", targets: ["SotoTransfer"]),
.library(name: "SotoTranslate", targets: ["SotoTranslate"]),
.library(name: "SotoVPCLattice", targets: ["SotoVPCLattice"]),
.library(name: "SotoVerifiedPermissions", targets: ["SotoVerifiedPermissions"]),
.library(name: "SotoVoiceID", targets: ["SotoVoiceID"]),
.library(name: "SotoWAF", targets: ["SotoWAF"]),
.library(name: "SotoWAFRegional", targets: ["SotoWAFRegional"]),
Expand Down Expand Up @@ -434,6 +436,7 @@ let package = Package(
.target(name: "SotoCodeDeploy", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodeDeploy"),
.target(name: "SotoCodeGuruProfiler", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodeGuruProfiler"),
.target(name: "SotoCodeGuruReviewer", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodeGuruReviewer"),
.target(name: "SotoCodeGuruSecurity", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodeGuruSecurity"),
.target(name: "SotoCodePipeline", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodePipeline"),
.target(name: "SotoCodeStar", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodeStar"),
.target(name: "SotoCodeStarConnections", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/CodeStarConnections"),
Expand Down Expand Up @@ -703,6 +706,7 @@ let package = Package(
.target(name: "SotoTransfer", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/Transfer"),
.target(name: "SotoTranslate", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/Translate"),
.target(name: "SotoVPCLattice", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/VPCLattice"),
.target(name: "SotoVerifiedPermissions", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/VerifiedPermissions"),
.target(name: "SotoVoiceID", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/VoiceID"),
.target(name: "SotoWAF", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/WAF"),
.target(name: "SotoWAFRegional", dependencies: [.product(name: "SotoCore", package: "soto-core")], path: "./Sources/Soto/Services/WAFRegional"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension AmplifyUIBuilder {
return try await self.client.execute(operation: "CreateComponent", path: "/app/{appId}/environment/{environmentName}/components", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Creates a new form for an Amplify app.
/// Creates a new form for an Amplify.
public func createForm(_ input: CreateFormRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> CreateFormResponse {
return try await self.client.execute(operation: "CreateForm", path: "/app/{appId}/environment/{environmentName}/forms", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}
Expand Down Expand Up @@ -71,6 +71,11 @@ extension AmplifyUIBuilder {
return try await self.client.execute(operation: "ExportThemes", path: "/export/app/{appId}/environment/{environmentName}/themes", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Returns an existing code generation job.
public func getCodegenJob(_ input: GetCodegenJobRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> GetCodegenJobResponse {
return try await self.client.execute(operation: "GetCodegenJob", path: "/app/{appId}/environment/{environmentName}/codegen-jobs/{id}", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Returns an existing component for an Amplify app.
public func getComponent(_ input: GetComponentRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> GetComponentResponse {
return try await self.client.execute(operation: "GetComponent", path: "/app/{appId}/environment/{environmentName}/components/{id}", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
Expand All @@ -91,6 +96,11 @@ extension AmplifyUIBuilder {
return try await self.client.execute(operation: "GetTheme", path: "/app/{appId}/environment/{environmentName}/themes/{id}", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
public func listCodegenJobs(_ input: ListCodegenJobsRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> ListCodegenJobsResponse {
return try await self.client.execute(operation: "ListCodegenJobs", path: "/app/{appId}/environment/{environmentName}/codegen-jobs", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Retrieves a list of components for a specified Amplify app and backend environment.
public func listComponents(_ input: ListComponentsRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> ListComponentsResponse {
return try await self.client.execute(operation: "ListComponents", path: "/app/{appId}/environment/{environmentName}/components", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
Expand All @@ -116,6 +126,11 @@ extension AmplifyUIBuilder {
return try await self.client.execute(operation: "RefreshToken", path: "/tokens/{provider}/refresh", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Starts a code generation job for for a specified Amplify app and backend environment.
public func startCodegenJob(_ input: StartCodegenJobRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> StartCodegenJobResponse {
return try await self.client.execute(operation: "StartCodegenJob", path: "/app/{appId}/environment/{environmentName}/codegen-jobs", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Updates an existing component.
public func updateComponent(_ input: UpdateComponentRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) async throws -> UpdateComponentResponse {
return try await self.client.execute(operation: "UpdateComponent", path: "/app/{appId}/environment/{environmentName}/components/{id}", httpMethod: .PATCH, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
Expand Down Expand Up @@ -202,6 +217,28 @@ extension AmplifyUIBuilder {
)
}

/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// Return PaginatorSequence for operation.
///
/// - Parameters:
/// - input: Input for request
/// - logger: Logger used flot logging
/// - eventLoop: EventLoop to run this process on
public func listCodegenJobsPaginator(
_ input: ListCodegenJobsRequest,
logger: Logger = AWSClient.loggingDisabled,
on eventLoop: EventLoop? = nil
) -> AWSClient.PaginatorSequence<ListCodegenJobsRequest, ListCodegenJobsResponse> {
return .init(
input: input,
command: self.listCodegenJobs,
inputKey: \ListCodegenJobsRequest.nextToken,
outputKey: \ListCodegenJobsResponse.nextToken,
logger: logger,
on: eventLoop
)
}

/// Retrieves a list of components for a specified Amplify app and backend environment.
/// Return PaginatorSequence for operation.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public struct AmplifyUIBuilder: AWSService {
return self.client.execute(operation: "CreateComponent", path: "/app/{appId}/environment/{environmentName}/components", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Creates a new form for an Amplify app.
/// Creates a new form for an Amplify.
public func createForm(_ input: CreateFormRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<CreateFormResponse> {
return self.client.execute(operation: "CreateForm", path: "/app/{appId}/environment/{environmentName}/forms", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}
Expand Down Expand Up @@ -113,6 +113,11 @@ public struct AmplifyUIBuilder: AWSService {
return self.client.execute(operation: "ExportThemes", path: "/export/app/{appId}/environment/{environmentName}/themes", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Returns an existing code generation job.
public func getCodegenJob(_ input: GetCodegenJobRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<GetCodegenJobResponse> {
return self.client.execute(operation: "GetCodegenJob", path: "/app/{appId}/environment/{environmentName}/codegen-jobs/{id}", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Returns an existing component for an Amplify app.
public func getComponent(_ input: GetComponentRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<GetComponentResponse> {
return self.client.execute(operation: "GetComponent", path: "/app/{appId}/environment/{environmentName}/components/{id}", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
Expand All @@ -133,6 +138,11 @@ public struct AmplifyUIBuilder: AWSService {
return self.client.execute(operation: "GetTheme", path: "/app/{appId}/environment/{environmentName}/themes/{id}", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
public func listCodegenJobs(_ input: ListCodegenJobsRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<ListCodegenJobsResponse> {
return self.client.execute(operation: "ListCodegenJobs", path: "/app/{appId}/environment/{environmentName}/codegen-jobs", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Retrieves a list of components for a specified Amplify app and backend environment.
public func listComponents(_ input: ListComponentsRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<ListComponentsResponse> {
return self.client.execute(operation: "ListComponents", path: "/app/{appId}/environment/{environmentName}/components", httpMethod: .GET, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
Expand All @@ -158,6 +168,11 @@ public struct AmplifyUIBuilder: AWSService {
return self.client.execute(operation: "RefreshToken", path: "/tokens/{provider}/refresh", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Starts a code generation job for for a specified Amplify app and backend environment.
public func startCodegenJob(_ input: StartCodegenJobRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<StartCodegenJobResponse> {
return self.client.execute(operation: "StartCodegenJob", path: "/app/{appId}/environment/{environmentName}/codegen-jobs", httpMethod: .POST, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
}

/// Updates an existing component.
public func updateComponent(_ input: UpdateComponentRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<UpdateComponentResponse> {
return self.client.execute(operation: "UpdateComponent", path: "/app/{appId}/environment/{environmentName}/components/{id}", httpMethod: .PATCH, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
Expand Down Expand Up @@ -345,6 +360,59 @@ extension AmplifyUIBuilder {
)
}

/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
///
/// Provide paginated results to closure `onPage` for it to combine them into one result.
/// This works in a similar manner to `Array.reduce<Result>(_:_:) -> Result`.
///
/// Parameters:
/// - input: Input for request
/// - initialValue: The value to use as the initial accumulating value. `initialValue` is passed to `onPage` the first time it is called.
/// - logger: Logger used flot logging
/// - eventLoop: EventLoop to run this process on
/// - onPage: closure called with each paginated response. It combines an accumulating result with the contents of response. This combined result is then returned
/// along with a boolean indicating if the paginate operation should continue.
public func listCodegenJobsPaginator<Result>(
_ input: ListCodegenJobsRequest,
_ initialValue: Result,
logger: Logger = AWSClient.loggingDisabled,
on eventLoop: EventLoop? = nil,
onPage: @escaping (Result, ListCodegenJobsResponse, EventLoop) -> EventLoopFuture<(Bool, Result)>
) -> EventLoopFuture<Result> {
return self.client.paginate(
input: input,
initialValue: initialValue,
command: self.listCodegenJobs,
inputKey: \ListCodegenJobsRequest.nextToken,
outputKey: \ListCodegenJobsResponse.nextToken,
on: eventLoop,
onPage: onPage
)
}

/// Provide paginated results to closure `onPage`.
///
/// - Parameters:
/// - input: Input for request
/// - logger: Logger used flot logging
/// - eventLoop: EventLoop to run this process on
/// - onPage: closure called with each block of entries. Returns boolean indicating whether we should continue.
public func listCodegenJobsPaginator(
_ input: ListCodegenJobsRequest,
logger: Logger = AWSClient.loggingDisabled,
on eventLoop: EventLoop? = nil,
onPage: @escaping (ListCodegenJobsResponse, EventLoop) -> EventLoopFuture<Bool>
) -> EventLoopFuture<Void> {
return self.client.paginate(
input: input,
command: self.listCodegenJobs,
inputKey: \ListCodegenJobsRequest.nextToken,
outputKey: \ListCodegenJobsResponse.nextToken,
on: eventLoop,
onPage: onPage
)
}

/// Retrieves a list of components for a specified Amplify app and backend environment.
///
/// Provide paginated results to closure `onPage` for it to combine them into one result.
Expand Down Expand Up @@ -535,6 +603,17 @@ extension AmplifyUIBuilder.ExportThemesRequest: AWSPaginateToken {
}
}

extension AmplifyUIBuilder.ListCodegenJobsRequest: AWSPaginateToken {
public func usingPaginationToken(_ token: String) -> AmplifyUIBuilder.ListCodegenJobsRequest {
return .init(
appId: self.appId,
environmentName: self.environmentName,
maxResults: self.maxResults,
nextToken: token
)
}
}

extension AmplifyUIBuilder.ListComponentsRequest: AWSPaginateToken {
public func usingPaginationToken(_ token: String) -> AmplifyUIBuilder.ListComponentsRequest {
return .init(
Expand Down
Loading

0 comments on commit fa95b44

Please sign in to comment.