-
Notifications
You must be signed in to change notification settings - Fork 29
/
Constants.swift
executable file
·57 lines (46 loc) · 1.56 KB
/
Constants.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import Foundation
import AWSCognitoIdentityProvider
// Cognito constants
let awsCognitoUserPoolsSignInProviderKey = "UserPool"
let cognitoIdentityUserPoolRegion = AWSRegionType.Unknown // <- REPLACE ME!
let cognitoIdentityUserPoolId = "REPLACEME"
let cognitoIdentityUserPoolAppClientId = "REPLACEME"
let cognitoIdentityUserPoolAppClientSecret = "REPLACEME"
let cognitoIdentityPoolId = "REPLACEME"
// App constants
let appName = "aws-kvs-webrtc-ios-client"
let appVersion = "1.0.0"
// KinesisVideo constants
let awsKinesisVideoKey = "kinesisvideo"
let videoProtocols = ["WSS", "HTTPS"]
// Connection constants
let connectAsMasterKey = "connect-as-master"
let connectAsViewerKey = "connect-as-viewer"
let masterRole = "MASTER"
let viewerRole = "VIEWER"
let connectAsViewClientId = "ConsumerViewer"
let userAgentHeader = "User-Agent"
// AWSv4 signer constants
let signerAlgorithm = "AWS4-HMAC-SHA256"
let awsRequestTypeKey = "aws4_request"
let xAmzAlgorithm = "X-Amz-Algorithm"
let xAmzCredential = "X-Amz-Credential"
let xAmzDate = "X-Amz-Date"
let xAmzExpiresKey = "X-Amz-Expires"
let xAmzExpiresValue = "299"
let xAmzSecurityToken = "X-Amz-Security-Token"
let xAmzSignature = "X-Amz-Signature"
let xAmzSignedHeaders = "X-Amz-SignedHeaders"
let newlineDelimiter = "\n"
let slashDelimiter = "/"
let colonDelimiter = ":"
let plusDelimiter = "+"
let equalsDelimiter = "="
let ampersandDelimiter = "&"
let restMethod = "GET"
let utcDateFormatter = "yyyyMMdd'T'HHmmss'Z'"
let utcTimezone = "UTC"
let hostKey = "host"
let wssKey = "wss"
let plusEncoding = "%2B"
let equalsEncoding = "%3D"