Skip to content

Commit

Permalink
Add s3 dual stack and accelerated transfer options
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 28, 2020
1 parent b6cb204 commit 6f96ce9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/SotoCore/AWSServiceConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ public final class AWSServiceConfig {
/// If you set a custom endpoint, s3 will choose path style addressing. With this paramteter you can force
/// it to use virtual host style addressing
public static let s3ForceVirtualHost = Options(rawValue: 1 << 0)

/// Use a dual stack S3 endpoint. WHen you make a request to a dual-stack endpoint the bucket URL resolves
/// to an IPv6 or an IPv4 address
public static let s3UseDualStackEndpoint = Options(rawValue: 1 << 1)

/// Use S3 transfer accelerated endpoint. You need to enable transfer acceleration on the bucket for this to work
public static let s3UseTransferAcceleratedEndpoint = Options(rawValue: 1 << 2)
}

private init(
Expand Down

0 comments on commit 6f96ce9

Please sign in to comment.