AWSServiceClient
public protocol AWSServiceClient
The AWS service client, which can be used to interact with AWS via MongoDB Stitch.
-
Executes the AWS request.
Declaration
Swift
func execute(request: AWSRequest, _ completionHandler: @escaping (StitchResult<Void>) -> Void)Parameters
completionHandlerThe completion handler to call when the request is complete or the operation fails. This handler is executed on a non-main global
DispatchQueue. If the operation is successful, the result will be ignored. -
Executes the AWS request. Also accepts a timeout. Use this for functions that may run longer than the client-wide default timeout (15 seconds by default).
Declaration
Swift
func execute(request: AWSRequest, withRequestTimeout requestTimeout: TimeInterval, _ completionHandler: @escaping (StitchResult<Void>) -> Void)Parameters
withRequestTimeoutThe number of seconds the client should wait for a response from the server before failing with an error.
completionHandlerThe completion handler to call when the request is complete or the operation fails. This handler is executed on a non-main global
DispatchQueue. If the operation is successful, the result will be ignored.
AWSServiceClient Protocol Reference