11//===----------------------------------------------------------------------===//
22//
3- // This source file is part of the Swift AWS Lambda Runtime open source project
3+ // This source file is part of the SwiftAWSLambdaRuntime open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift AWS Lambda Runtime project authors
5+ // Copyright SwiftAWSLambdaRuntime project authors
6+ // Copyright (c) Amazon.com, Inc. or its affiliates.
67// Licensed under Apache License v2.0
78//
89// See LICENSE.txt for license information
9- // See CONTRIBUTORS.txt for the list of Swift AWS Lambda Runtime project authors
10+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
1011//
1112// SPDX-License-Identifier: Apache-2.0
1213//
@@ -60,7 +61,10 @@ public struct LambdaClient: AWSService, Sendable {
6061 /// - Parameter input: The request parameters.
6162 /// - Returns: The function configuration and code location.
6263 @discardableResult
63- public func getFunction( _ input: GetFunctionRequest , logger: Logger = AWSClient . loggingDisabled) async throws -> GetFunctionResponse {
64+ public func getFunction(
65+ _ input: GetFunctionRequest ,
66+ logger: Logger = AWSClient . loggingDisabled
67+ ) async throws -> GetFunctionResponse {
6468 try await self . client. execute (
6569 operation: " GetFunction " ,
6670 path: " /2015-03-31/functions/{FunctionName} " ,
@@ -75,7 +79,10 @@ public struct LambdaClient: AWSService, Sendable {
7579 /// - Parameter input: The request parameters.
7680 /// - Returns: The function configuration.
7781 @discardableResult
78- public func createFunction( _ input: CreateFunctionRequest , logger: Logger = AWSClient . loggingDisabled) async throws -> CreateFunctionResponse {
82+ public func createFunction(
83+ _ input: CreateFunctionRequest ,
84+ logger: Logger = AWSClient . loggingDisabled
85+ ) async throws -> CreateFunctionResponse {
7986 try await self . client. execute (
8087 operation: " CreateFunction " ,
8188 path: " /2015-03-31/functions " ,
@@ -90,7 +97,10 @@ public struct LambdaClient: AWSService, Sendable {
9097 /// - Parameter input: The request parameters.
9198 /// - Returns: The updated function configuration.
9299 @discardableResult
93- public func updateFunctionCode( _ input: UpdateFunctionCodeRequest , logger: Logger = AWSClient . loggingDisabled) async throws -> UpdateFunctionCodeResponse {
100+ public func updateFunctionCode(
101+ _ input: UpdateFunctionCodeRequest ,
102+ logger: Logger = AWSClient . loggingDisabled
103+ ) async throws -> UpdateFunctionCodeResponse {
94104 try await self . client. execute (
95105 operation: " UpdateFunctionCode " ,
96106 path: " /2015-03-31/functions/{FunctionName}/code " ,
@@ -103,7 +113,8 @@ public struct LambdaClient: AWSService, Sendable {
103113
104114 /// Deletes a Lambda function.
105115 /// - Parameter input: The request parameters.
106- public func deleteFunction( _ input: DeleteFunctionRequest , logger: Logger = AWSClient . loggingDisabled) async throws {
116+ public func deleteFunction( _ input: DeleteFunctionRequest , logger: Logger = AWSClient . loggingDisabled) async throws
117+ {
107118 try await self . client. execute (
108119 operation: " DeleteFunction " ,
109120 path: " /2015-03-31/functions/{FunctionName} " ,
@@ -118,7 +129,10 @@ public struct LambdaClient: AWSService, Sendable {
118129 /// - Parameter input: The request parameters.
119130 /// - Returns: The function URL configuration.
120131 @discardableResult
121- public func createFunctionUrlConfig( _ input: CreateFunctionUrlConfigRequest , logger: Logger = AWSClient . loggingDisabled) async throws -> CreateFunctionUrlConfigResponse {
132+ public func createFunctionUrlConfig(
133+ _ input: CreateFunctionUrlConfigRequest ,
134+ logger: Logger = AWSClient . loggingDisabled
135+ ) async throws -> CreateFunctionUrlConfigResponse {
122136 try await self . client. execute (
123137 operation: " CreateFunctionUrlConfig " ,
124138 path: " /2021-10-31/functions/{FunctionName}/url " ,
@@ -131,7 +145,10 @@ public struct LambdaClient: AWSService, Sendable {
131145
132146 /// Deletes a Lambda function URL.
133147 /// - Parameter input: The request parameters.
134- public func deleteFunctionUrlConfig( _ input: DeleteFunctionUrlConfigRequest , logger: Logger = AWSClient . loggingDisabled) async throws {
148+ public func deleteFunctionUrlConfig(
149+ _ input: DeleteFunctionUrlConfigRequest ,
150+ logger: Logger = AWSClient . loggingDisabled
151+ ) async throws {
135152 try await self . client. execute (
136153 operation: " DeleteFunctionUrlConfig " ,
137154 path: " /2021-10-31/functions/{FunctionName}/url " ,
@@ -146,7 +163,10 @@ public struct LambdaClient: AWSService, Sendable {
146163 /// - Parameter input: The request parameters.
147164 /// - Returns: The Function URL configuration including the URL endpoint.
148165 @discardableResult
149- public func getFunctionUrlConfig( _ input: GetFunctionUrlConfigRequest , logger: Logger = AWSClient . loggingDisabled) async throws -> GetFunctionUrlConfigResponse {
166+ public func getFunctionUrlConfig(
167+ _ input: GetFunctionUrlConfigRequest ,
168+ logger: Logger = AWSClient . loggingDisabled
169+ ) async throws -> GetFunctionUrlConfigResponse {
150170 try await self . client. execute (
151171 operation: " GetFunctionUrlConfig " ,
152172 path: " /2021-10-31/functions/{FunctionName}/url " ,
@@ -161,7 +181,10 @@ public struct LambdaClient: AWSService, Sendable {
161181 /// - Parameter input: The request parameters.
162182 /// - Returns: The permission statement added to the function policy.
163183 @discardableResult
164- public func addPermission( _ input: AddPermissionRequest , logger: Logger = AWSClient . loggingDisabled) async throws -> AddPermissionResponse {
184+ public func addPermission(
185+ _ input: AddPermissionRequest ,
186+ logger: Logger = AWSClient . loggingDisabled
187+ ) async throws -> AddPermissionResponse {
165188 try await self . client. execute (
166189 operation: " AddPermission " ,
167190 path: " /2015-03-31/functions/{FunctionName}/policy " ,
@@ -174,7 +197,10 @@ public struct LambdaClient: AWSService, Sendable {
174197
175198 /// Revokes function-use permission from an AWS service or another AWS account.
176199 /// - Parameter input: The request parameters.
177- public func removePermission( _ input: RemovePermissionRequest , logger: Logger = AWSClient . loggingDisabled) async throws {
200+ public func removePermission(
201+ _ input: RemovePermissionRequest ,
202+ logger: Logger = AWSClient . loggingDisabled
203+ ) async throws {
178204 try await self . client. execute (
179205 operation: " RemovePermission " ,
180206 path: " /2015-03-31/functions/{FunctionName}/policy/{StatementId} " ,
0 commit comments