AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
This class defines utilities and constants that can be used by all the client libraries of the SDK.

Inheritance Hierarchy

System.Object
  Amazon.Util.AWSSDKUtils

Namespace: Amazon.Util
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public static class AWSSDKUtils : Object

The AWSSDKUtils type exposes the following members

Properties

NameTypeDescription
Public Property Static Property CorrectedUtcNow System.DateTime Returns DateTime.UtcNow + ClockOffset when Amazon.AWSConfigs.CorrectForClockSkew is true. This value should be used when constructing requests, as it will represent accurate time w.r.t. AWS servers.
Public Property Static Property FormattedCurrentTimestampGMT System.String Formats the current date as a GMT timestamp
Public Property Static Property FormattedCurrentTimestampISO8601 System.String Formats the current date as ISO 8601 timestamp
Public Property Static Property FormattedCurrentTimestampRFC822 System.String Formats the current date as ISO 8601 timestamp
Public Property Static Property SDKUserAgent System.String The AWS SDK User Agent

Methods

NameDescription
Public Method Static Method ConvertFromUnixEpochSeconds(int) Utility method for converting Unix epoch seconds to DateTime structure.
Public Method Static Method ConvertToUnixEpochMilliSeconds(DateTime)
Public Method Static Method ConvertToUnixEpochSeconds(DateTime)
Public Method Static Method DetermineRegion(string) Attempt to infer the region for a service request based on the endpoint
Public Method Static Method DetermineService(string) Attempt to infer the service name for a request (in short form, eg 'iam') from the service endpoint.
Public Method Static Method GetFormattedTimestampISO8601(int) Gets the ISO8601 formatted timestamp that is minutesFromNow in the future.
Public Method Static Method GetFormattedTimestampRFC822(int) Gets the RFC822 formatted timestamp that is minutesFromNow in the future.
Public Method Static Method SetUserAgent(string, string)
Public Method Static Method SetUserAgent(string, string, string)
Public Method Static Method Sleep(int)
Public Method Static Method Sleep(TimeSpan)
Public Method Static Method UrlEncode(string, bool) URL encodes a string per RFC3986. If the path property is specified, the accepted path characters {/+:} are not encoded.

Fields

NameTypeDescription
Field Static Field GMTDateFormat System.String The GMT Date Format string. Used when parsing date objects
Field Static Field ISO8601BasicDateFormat System.String The ISO8601 basic date format. Used during AWS4 signature computation.
Field Static Field ISO8601BasicDateTimeFormat System.String The ISO8601 Basic date/time format string. Used when parsing date objects
Field Static Field ISO8601DateFormat System.String The ISO8601Date Format string. Used when parsing date objects
Field Static Field ISO8601DateFormatNoMS System.String The ISO8601Date Format string. Used when parsing date objects
Field Static Field RFC822DateFormat System.String The RFC822Date Format string. Used when parsing date objects
Field Static Field UrlEncodedContent System.String The string representing Url Encoded Content in HTTP requests
Field Static Field UserAgentHeader System.String The user agent string header
Field Static Field ValidUrlCharacters System.String The Set of accepted and valid Url characters per RFC3986. Characters outside of this set will be encoded.
Field Static Field ValidUrlCharactersRFC1738 System.String The Set of accepted and valid Url characters per RFC1738. Characters outside of this set will be encoded.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8