AWSRequestBuilder

public class AWSRequestBuilder

A builder that can build an AWSRequest

  • Initializes a new builder for an AWS request.

    Declaration

    Swift

    public init()
  • Sets the service that the action in the request will be performed against.

    Declaration

    Swift

    @discardableResult
    public func with(service: String) -> Self
  • Sets the action within the AWS service to perform.

    Declaration

    Swift

    @discardableResult
    public func with(action: String) -> Self
  • Sets the region that service in this request should be scoped to.

    Declaration

    Swift

    @discardableResult
    public func with(region: String) -> Self
  • Sets the arguments that will be used in the action.

    Declaration

    Swift

    @discardableResult
    public func with(arguments: Document) -> <<error type>>
  • Builds, validates, and returns the AWSRequest.

    Declaration

    Swift

    public func build() throws -> AWSRequest