with(patch:)
Return new version of serviceConfig with a modified parameters
func with(patch: AWSServiceConfig.Patch) -> AWSServiceConfig Parameters
- patch
parameters to patch service config
Returns
New AWSServiceConfig
Return new version of serviceConfig with a modified parameters
func with(patch: AWSServiceConfig.Patch) -> AWSServiceConfig parameters to patch service config
New AWSServiceConfig
import SotoCorefinal class AWSServiceConfigConfiguration class defining an AWS service
struct PatchService config parameters you can patch
init(region: Region?, partition: AWSPartition, amzTarget: String? = nil, serviceName: String, serviceIdentifier: String, signingName: String? = nil, serviceProtocol: ServiceProtocol, apiVersion: String, endpoint: String? = nil, serviceEndpoints: [String : String] = [:], partitionEndpoints: [AWSPartition : (endpoint: String, region: Region)] = [:], variantEndpoints: [EndpointVariantType : AWSServiceConfig.EndpointVariant] = [:], errorType: (any AWSErrorType.Type)? = nil, xmlNamespace: String? = nil, middleware: (any AWSMiddlewareProtocol)? = nil, timeout: TimeAmount? = nil, byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator(), options: AWSServiceConfig.Options = []) Create a ServiceConfig object
let amzTarget: String?The destination service of the request. Added as a header value, along with the operation name
let apiVersion: StringVersion of the Service API, added as a header in query protocol based services
let byteBufferAllocator: ByteBufferAllocatorByteBuffer allocator used by service
let endpoint: StringThe url to use in requests
let errorType: (any AWSErrorType.Type)?An array of the possible error types returned by the service
let middleware: (any AWSMiddlewareProtocol)?Middleware code specific to the service used to edit requests before they sent and responses before they are decoded
let options: AWSServiceConfig.Optionsoptions
let region: RegionRegion where service is running
let serviceIdentifier: StringIdentifier of service. Used in ARN and as endpoint prefix
let serviceName: StringName of service
let serviceProtocol: ServiceProtocolProtocol used by service json/xml/query
let signingName: StringName used to sign requests
let timeout: TimeAmounttimeout value for HTTP requests
let xmlNamespace: String?XML namespace to be applied to all request objects
func with(region: Region? = nil, middleware: (any AWSMiddlewareProtocol)? = nil, timeout: TimeAmount? = nil, byteBufferAllocator: ByteBufferAllocator? = nil, options: AWSServiceConfig.Options? = nil) -> AWSServiceConfig Return new version of Service with edited parameters
struct EndpointVariantDetails about endpoint variants eg fips, dualstack
struct OptionsOptions used by client when processing requests