File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/SPI Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77
88import Foundation
99
10- private let ISO_PARTITION_BASE_DOMAIN : String = " csp.hci.ic.gov "
11- private let DEFAULT_BASE_DOMAIN : String = " amazonaws.com "
10+ private let isoPartitionBaseDomain : String = " csp.hci.ic.gov "
11+ private let defaultBaseDomain : String = " amazonaws.com "
1212
1313func streamingSessionURL( for region: String ) throws -> URL {
1414
1515 // Determine the base domain based on the region
1616 let baseDomain : String
1717 if region. lowercased ( ) . starts ( with: " us-isof " ) {
18- baseDomain = ISO_PARTITION_BASE_DOMAIN
18+ baseDomain = isoPartitionBaseDomain
1919 } else {
20- baseDomain = DEFAULT_BASE_DOMAIN
20+ baseDomain = defaultBaseDomain
2121 }
2222
2323 let urlString = " wss://streaming-rekognition. \( region) . \( baseDomain) /start-face-liveness-session-websocket "
You can’t perform that action at this time.
0 commit comments