-
Notifications
You must be signed in to change notification settings - Fork 862
/
Enumerations.cs
180 lines (170 loc) · 5.12 KB
/
Enumerations.cs
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.Runtime
{
/// <summary>
/// The valid hashing algorithm supported by the sdk for request signing.
/// </summary>
public enum SigningAlgorithm
{
HmacSHA1,
HmacSHA256
};
/// <summary>
/// Which end of a request was responsible for a service error response.
/// </summary>
public enum ErrorType
{
/// <summary>
/// The sender was responsible for the error, i.e. the client
/// request failed validation or was improperly formatted.
/// </summary>
Sender,
/// <summary>
/// The error occured within the service.
/// </summary>
Receiver,
/// <summary>
/// An unrecognized error type was returned.
/// </summary>
Unknown
}
/// <summary>
/// Sts Regional Endpoints Value determines whether or not
/// to send the sts request to the regional endpoint or to
/// the global sts endpoint
/// </summary>
public enum StsRegionalEndpointsValue
{
/// <summary>
/// Send the request to the global sts endpoint
/// if the region is a legacy global region
/// </summary>
Legacy,
/// <summary>
/// Send the request to the regional endpoint
/// </summary>
Regional
}
/// <summary>
/// S3 US East 1 endpoint value determines wheter or not
/// to send the us-east-1 s3 requests to the regional endpoint or to
/// the legacy global endpoint
/// </summary>
public enum S3UsEast1RegionalEndpointValue
{
/// <summary>
/// Sends the requests to the legacy global s3 endpoint for us-east-1
/// </summary>
Legacy,
/// <summary>
/// Sends the request to the regional s3 endpoint for us-east-1
/// </summary>
Regional
}
/// <summary>
/// RetryMode determines which request retry mode is used for requests that do
/// not complete successfully.
/// </summary>
public enum RequestRetryMode
{
/// <summary>
/// Legacy request retry strategy.
/// </summary>
Legacy,
/// <summary>
/// Standardized request retry strategy that is consistent across all SDKs.
/// </summary>
Standard,
/// <summary>
/// An experimental request retry strategy that builds on the Standard strategy
/// and introduces congestion control through client side rate limiting.
/// </summary>
Adaptive
}
/// <summary>
/// EC2MetadataServiceEndpointMode determines the internet protocol version
/// to be used for communicating with the EC2 Instance Metadata Service
/// </summary>
public enum EC2MetadataServiceEndpointMode
{
/// <summary>
/// Internet Protocol version 4
/// </summary>
IPv4,
/// <summary>
/// Internet Protocol version 6
/// </summary>
IPv6
}
/// <summary>
/// SignatureVersion determines which signature version is used for the request
/// </summary>
public enum SignatureVersion
{
/// <summary>
/// Signature Version 2
/// </summary>
SigV2,
/// <summary>
/// Signature Version 4
/// </summary>
SigV4,
/// <summary>
/// Asymmetric Signature Version 4
/// </summary>
SigV4a
}
/// <summary>
/// Algorithms for validating request and response integrity for supported operations.
/// These are the algorithms support by the .NET SDK, a given service may
/// only use a subset of these.
/// </summary>
public enum CoreChecksumAlgorithm
{
NONE,
CRC32C,
CRC32,
SHA256,
SHA1
}
/// <summary>
/// Supported algorithms for compressing request payloads.
/// A given request payload will be compressed by one of the algorithms below.
/// </summary>
public enum CompressionEncodingAlgorithm
{
NONE,
gzip
}
/// <summary>
/// Behavior to be used for verifying the checksum of response content
/// that may be returned by supported service operations.
/// </summary>
public enum CoreChecksumResponseBehavior
{
/// <summary>
/// The SDK will not attempt to verify the response checksum
/// </summary>
DISABLED,
/// <summary>
/// The SDK will attempt to verify the response checksum
/// </summary>
ENABLED
}
}