public class ECSMetadataServiceCredentialsFetcher extends Object
| 构造器和说明 |
|---|
ECSMetadataServiceCredentialsFetcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
InstanceProfileCredentials |
fetch() |
InstanceProfileCredentials |
fetch(int retryTimes) |
String |
getMetadata() |
void |
setRoleName(String roleName) |
ECSMetadataServiceCredentialsFetcher |
withConnectionTimeout(int milliseconds) |
ECSMetadataServiceCredentialsFetcher |
withECSMetadataServiceHost(String host) |
public void setRoleName(String roleName)
public ECSMetadataServiceCredentialsFetcher withECSMetadataServiceHost(String host)
public ECSMetadataServiceCredentialsFetcher withConnectionTimeout(int milliseconds)
public String getMetadata() throws ClientException
ClientExceptionpublic InstanceProfileCredentials fetch() throws ClientException
ClientExceptionpublic InstanceProfileCredentials fetch(int retryTimes) throws ClientException
ClientExceptionCopyright © 2019. All rights reserved.