public class AWSClients extends Object
Modifier and Type | Field and Description |
---|---|
com.amazonaws.services.codedeploy.AmazonCodeDeploy |
codedeploy |
com.amazonaws.services.s3.AmazonS3 |
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.AmazonCodeDeploy codedeploy
public final com.amazonaws.services.s3.AmazonS3 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)
proxyHost
- hostname of the proxy to use (if any)proxyPort
- port of the proxy to use (if any)public void testConnection(String s3bucket, String codeDeployApplication) throws Exception
Exception
public int getProxyPort()
public String getProxyHost()
Copyright © 2016–2020. All rights reserved.