/*
* 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
{
///
/// The valid hashing algorithm supported by the sdk for request signing.
///
public enum SigningAlgorithm
{
HmacSHA1,
HmacSHA256
};
///
/// Which end of a request was responsible for a service error response.
///
public enum ErrorType
{
///
/// The sender was responsible for the error, i.e. the client
/// request failed validation or was improperly formatted.
///
Sender,
///
/// The error occured within the service.
///
Receiver,
///
/// An unrecognized error type was returned.
///
Unknown
}
///
/// Sts Regional Endpoints Value determines whether or not
/// to send the sts request to the regional endpoint or to
/// the global sts endpoint
///
public enum StsRegionalEndpointsValue
{
///
/// Send the request to the global sts endpoint
/// if the region is a legacy global region
///
Legacy,
///
/// Send the request to the regional endpoint
///
Regional
}
///
/// 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
///
public enum S3UsEast1RegionalEndpointValue
{
///
/// Sends the requests to the legacy global s3 endpoint for us-east-1
///
Legacy,
///
/// Sends the request to the regional s3 endpoint for us-east-1
///
Regional
}
///
/// RetryMode determines which request retry mode is used for requests that do
/// not complete successfully.
///
public enum RequestRetryMode
{
///
/// Legacy request retry strategy.
///
Legacy,
///
/// Standardized request retry strategy that is consistent across all SDKs.
///
Standard,
///
/// An experimental request retry strategy that builds on the Standard strategy
/// and introduces congestion control through client side rate limiting.
///
Adaptive
}
///
/// EC2MetadataServiceEndpointMode determines the internet protocol version
/// to be used for communicating with the EC2 Instance Metadata Service
///
public enum EC2MetadataServiceEndpointMode
{
///
/// Internet Protocol version 4
///
IPv4,
///
/// Internet Protocol version 6
///
IPv6
}
///
/// SignatureVersion determines which signature version is used for the request
///
public enum SignatureVersion
{
///
/// Signature Version 2
///
SigV2,
///
/// Signature Version 4
///
SigV4,
///
/// Asymmetric Signature Version 4
///
SigV4a
}
///
/// 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.
///
public enum CoreChecksumAlgorithm
{
NONE,
CRC32C,
CRC32,
SHA256,
SHA1
}
///
/// Behavior to be used for verifying the checksum of response content
/// that may be returned by supported service operations.
///
public enum CoreChecksumResponseBehavior
{
///
/// The SDK will not attempt to verify the response checksum
///
DISABLED,
///
/// The SDK will attempt to verify the response checksum
///
ENABLED
}
}