public class AWSClients extends Object
| Modifier and Type | Field and Description |
|---|---|
com.amazonaws.services.codedeploy.AmazonCodeDeployClient |
codedeploy |
com.amazonaws.services.s3.AmazonS3Client |
s3 |
| Constructor and Description |
|---|
AWSClients(String region,
com.amazonaws.auth.AWSCredentials credentials,
String proxyHost,
int proxyPort) |
| Modifier and Type | Method and Description |
|---|---|
static AWSClients |
fromBasicCredentials(String region,
String awsAccessKey,
String awsSecretKey,
String proxyHost,
int proxyPort) |
static AWSClients |
fromDefaultCredentialChain(String region,
String proxyHost,
int proxyPort) |
static AWSClients |
fromIAMRole(String region,
String iamRole,
String externalId,
String proxyHost,
int proxyPort) |
static String |
getAccountId(String proxyHost,
int proxyPort)
Via the default provider chain (i.e., global keys for this Jenkins instance), return the account ID for the
currently authenticated user.
|
String |
getProxyHost() |
int |
getProxyPort() |
void |
testConnection(String s3bucket,
String codeDeployApplication) |
public final com.amazonaws.services.codedeploy.AmazonCodeDeployClient codedeploy
public final com.amazonaws.services.s3.AmazonS3Client s3
public static AWSClients fromDefaultCredentialChain(String region, String proxyHost, int proxyPort)
public static AWSClients fromIAMRole(String region, String iamRole, String externalId, String proxyHost, int proxyPort)
public static AWSClients fromBasicCredentials(String region, String awsAccessKey, String awsSecretKey, String proxyHost, int proxyPort)
public static String getAccountId(String proxyHost, int proxyPort)
public void testConnection(String s3bucket, String codeDeployApplication) throws Exception
Exceptionpublic int getProxyPort()
public String getProxyHost()
Copyright © 2004-2016. All Rights Reserved.