AWS SDK Version 4 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.

An implementation of the Amazon.Runtime.Internal.StandardRetryPolicy that retries certain additional STS errors when doing AssumeRoleWithWebIdentity requests.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.RetryPolicy
    Amazon.Runtime.Internal.StandardRetryPolicy
      Amazon.SecurityToken.SecurityTokenServiceStandardRetryPolicy

Namespace: Amazon.SecurityToken
Assembly: AWSSDK.SecurityToken.dll
Version: 3.x.y.z

Syntax

C#
public class SecurityTokenServiceStandardRetryPolicy : StandardRetryPolicy

The SecurityTokenServiceStandardRetryPolicy type exposes the following members

Constructors

NameDescription
Public Method SecurityTokenServiceStandardRetryPolicy(IClientConfig)

Constructor for SecurityTokenServiceStandardRetryPolicy.

Properties

NameTypeDescription
Public Property ErrorCodesToRetryOn System.Collections.Generic.ICollection<System.String> Inherited from Amazon.Runtime.RetryPolicy.
Public Property HttpStatusCodesToRetryOn System.Collections.Generic.ICollection<System.Net.HttpStatusCode> Inherited from Amazon.Runtime.RetryPolicy.
Public Property Logger Amazon.Runtime.Internal.Util.ILogger Inherited from Amazon.Runtime.RetryPolicy.
Public Property MaxBackoffInMilliseconds System.Int32 Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Property MaxRetries System.Int32 Inherited from Amazon.Runtime.RetryPolicy.
Public Property ThrottlingErrorCodes System.Collections.Generic.ICollection<System.String> Inherited from Amazon.Runtime.RetryPolicy.
Public Property TimeoutErrorCodesToRetryOn System.Collections.Generic.ICollection<System.String> Inherited from Amazon.Runtime.RetryPolicy.
Public Property WebExceptionStatusesToRetryOn System.Collections.Generic.ICollection<System.Net.WebExceptionStatus> Inherited from Amazon.Runtime.RetryPolicy.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method CanRetry(IExecutionContext) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method IsServiceTimeoutError(Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method IsThrottlingError(Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method IsTransientError(IExecutionContext, Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method NotifySuccess(IExecutionContext) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method ObtainSendToken(IExecutionContext, Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method ObtainSendTokenAsync(IExecutionContext, Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method OnRetry(IExecutionContext) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method OnRetry(IExecutionContext, bool) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method OnRetry(IExecutionContext, bool, bool) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method Retry(IExecutionContext, Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method RetryAsync(IExecutionContext, Exception) Inherited from Amazon.Runtime.RetryPolicy.
Public Method RetryForException(IExecutionContext, Exception)

Returns true if the request should be retried.

Public Method RetryForExceptionAsync(IExecutionContext, Exception)

Returns true if the request should be retried.

Public Method RetryLimitReached(IExecutionContext) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method WaitBeforeRetry(IExecutionContext) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.
Public Method WaitBeforeRetryAsync(IExecutionContext) Inherited from Amazon.Runtime.Internal.StandardRetryPolicy.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer