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.
Namespace: Amazon.Util
Assembly: AWSSDK.dll
Version: (assembly version)
public static class AWSSDKUtils : Object
The AWSSDKUtils type exposes the following members
| Name | Type | Description | |
|---|---|---|---|
|
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. |
|
FormattedCurrentTimestampGMT | System.String | Formats the current date as a GMT timestamp |
|
FormattedCurrentTimestampISO8601 | System.String | Formats the current date as ISO 8601 timestamp |
|
FormattedCurrentTimestampRFC822 | System.String | Formats the current date as ISO 8601 timestamp |
|
SDKUserAgent | System.String | The AWS SDK User Agent |
| Name | Description | |
|---|---|---|
|
ConvertFromUnixEpochSeconds(int) | Utility method for converting Unix epoch seconds to DateTime structure. |
|
ConvertToUnixEpochMilliSeconds(DateTime) | |
|
ConvertToUnixEpochSeconds(DateTime) | |
|
DetermineRegion(string) | Attempt to infer the region for a service request based on the endpoint |
|
DetermineService(string) | Attempt to infer the service name for a request (in short form, eg 'iam') from the service endpoint. |
|
GetFormattedTimestampISO8601(int) | Gets the ISO8601 formatted timestamp that is minutesFromNow in the future. |
|
GetFormattedTimestampRFC822(int) | Gets the RFC822 formatted timestamp that is minutesFromNow in the future. |
|
SetUserAgent(string, string) | |
|
SetUserAgent(string, string, string) | |
|
Sleep(int) | |
|
Sleep(TimeSpan) | |
|
UrlEncode(string, bool) | URL encodes a string per RFC3986. If the path property is specified, the accepted path characters {/+:} are not encoded. |
| Name | Type | Description | |
|---|---|---|---|
|
GMTDateFormat | System.String | The GMT Date Format string. Used when parsing date objects |
|
ISO8601BasicDateFormat | System.String | The ISO8601 basic date format. Used during AWS4 signature computation. |
|
ISO8601BasicDateTimeFormat | System.String | The ISO8601 Basic date/time format string. Used when parsing date objects |
|
ISO8601DateFormat | System.String | The ISO8601Date Format string. Used when parsing date objects |
|
ISO8601DateFormatNoMS | System.String | The ISO8601Date Format string. Used when parsing date objects |
|
RFC822DateFormat | System.String | The RFC822Date Format string. Used when parsing date objects |
|
UrlEncodedContent | System.String | The string representing Url Encoded Content in HTTP requests |
|
UserAgentHeader | System.String | The user agent string header |
|
ValidUrlCharacters | System.String | The Set of accepted and valid Url characters per RFC3986. Characters outside of this set will be encoded. |
|
ValidUrlCharactersRFC1738 | System.String | The Set of accepted and valid Url characters per RFC1738. Characters outside of this set will be encoded. |
.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