コード例 #1
0
  /**
   * Constructs a new asynchronous client to invoke service methods on CloudTrail using the
   * specified AWS account credentials provider and executor service. Default client settings will
   * be used.
   *
   * @param awsCredentialsProvider The AWS credentials provider which will provide credentials to
   *     authenticate requests with AWS services.
   * @param executorService The executor service by which all asynchronous requests will be
   *     executed.
   */
  public AWSCloudTrailAsyncClient(
      com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
      java.util.concurrent.ExecutorService executorService) {

    this(
        awsCredentialsProvider,
        com.amazonaws.PredefinedClientConfigurations.defaultConfig(),
        executorService);
  }
コード例 #2
0
 /**
  * Constructs a new client to invoke service methods on AWS CloudFormation. A credentials provider
  * chain will be used that searches for credentials in this order:
  *
  * <ul>
  *   <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  *   <li>Java System Properties - aws.accessKeyId and aws.secretKey
  *   <li>Instance profile credentials delivered through the Amazon EC2 metadata service
  * </ul>
  *
  * <p>All service calls made using this new client object are blocking, and will not return until
  * the service call completes.
  *
  * @see DefaultAWSCredentialsProviderChain
  */
 public AmazonCloudFormationClient() {
   this(
       new DefaultAWSCredentialsProviderChain(),
       com.amazonaws.PredefinedClientConfigurations.defaultConfig());
 }
コード例 #3
0
 /**
  * Constructs a new client to invoke service methods on AWS CloudFormation using the specified AWS
  * account credentials provider.
  *
  * <p>All service calls made using this new client object are blocking, and will not return until
  * the service call completes.
  *
  * @param awsCredentialsProvider The AWS credentials provider which will provide credentials to
  *     authenticate requests with AWS services.
  */
 public AmazonCloudFormationClient(AWSCredentialsProvider awsCredentialsProvider) {
   this(awsCredentialsProvider, com.amazonaws.PredefinedClientConfigurations.defaultConfig());
 }