-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
ksAwsConst.pas
75 lines (63 loc) · 3.32 KB
/
ksAwsConst.pas
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{*******************************************************************************
* *
* ksAwsConst - Amazon Web Service Constants *
* *
* https://github.com/gmurt/ksAws *
* *
* Copyright 2020 Graham Murt *
* *
* email: [email protected] *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
*******************************************************************************}
unit ksAwsConst;
interface
const
C_SERVICE_S3 = 's3';
C_SERVICE_SES = 'ses';
C_SERVICE_EC2 = 'ec2';
C_SERVICE_RDS = 'rds';
C_SERVICE_SNS = 'sns';
C_EC2_API_VERSION = '2016-11-15';
C_RDS_API_VERSION = '2014-10-31';
C_SNS_API_VERSION = '2010-03-31';
C_GET = 'GET';
C_HEAD = 'HEAD';
C_PUT = 'PUT';
C_POST = 'POST';
C_DELETE = 'DELETE';
C_AWS_DOMAIN = 'amazonaws.com';
C_EMPTY_HASH = 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855';
C_LF = #10;
C_AMZ_DATE_FORMAT = 'yyyymmdd"T"hhnnss"Z"';
C_SHORT_DATE_FORMAT = 'yyyymmdd';
C_AMAZON_DOMAIN = 'amazonaws.com';
C_HASH_ALGORITHM = 'AWS4-HMAC-SHA256';
C_PROTOCOL = 'https';
C_RGN_EU_CENTRAL_1 = 'eu-central-1';
C_RGN_EU_NORTH_1 = 'eu-north-1';
C_RGN_EU_SOUTH_1 = 'eu-south-1';
C_RGN_EU_WEST_1 = 'eu-west-1';
C_RGN_EU_WEST_2 = 'eu-west-2';
C_RGN_EU_WEST_3 = 'eu-west-3';
C_RGN_US_EAST_1 = 'us-east-1';
C_RGN_US_EAST_2 = 'us-east-2';
C_RGN_US_WEST_1 = 'us-west-1';
C_RGN_US_WEST_2 = 'us-west-2';
// payloads...
C_S3_XML_NS = 'http://s3.amazonaws.com/doc/2006-03-01/';
C_REGION = '%REGION%';
C_PAYLOAD_CREATE_BUCKET = '<CreateBucketConfiguration xmlns="'+C_S3_XML_NS+'"><LocationConstraint>'+C_REGION+'</LocationConstraint></CreateBucketConfiguration >';
implementation
end.