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.
When running in an ECS container and AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is set, use the given end point to retrieve the credentials.
Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z
[Obsolete("ECSTaskCredentials only supports Amazon ECS, newer versions of the SDK use the GenericContainerCredentials provider (which also supports EKS Pod Identities)")]
public class ECSTaskCredentials : URIBasedRefreshingCredentialHelper IDisposable
The ECSTaskCredentials type exposes the following members
Name | Description | |
---|---|---|
ECSTaskCredentials() | ||
ECSTaskCredentials(IWebProxy) |
Name | Type | Description | |
---|---|---|---|
PreemptExpiryTime | System.TimeSpan | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
Name | Description | |
---|---|---|
ClearCredentials() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. | |
Dispose() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. | |
GetCredentials() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. | |
GetCredentialsAsync() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
Name | Type | Description | |
---|---|---|---|
ContainerCredentialsAuthorizationTokenEnvVariable | System.String | ||
ContainerCredentialsFullURIEnvVariable | System.String | ||
ContainerCredentialsURIEnvVariable | System.String |
These constants should not be consumed by client code. They are only relevant in the context of ECS container and, especially, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI, AWS_CONTAINER_CREDENTIALS_FULL_URI & AWS_CONTAINER_AUTHORIZATION_TOKEN environment variable should not be overriden by the client code. |
|
EndpointAddress | System.String |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5