use of com.sequenceiq.cloudbreak.cloud.aws.common.tracing.AwsTracingRequestHandler in project cloudbreak by hortonworks.
the class AwsClient method createS3Client.
public AmazonS3Client createS3Client(AwsCredentialView awsCredential) {
String regionName = awsDefaultZoneProvider.getDefaultZone(awsCredential);
AmazonS3 client = proxy(AmazonS3ClientBuilder.standard().withRequestHandlers(new AwsTracingRequestHandler(tracer)).withCredentials(getCredentialProvider(awsCredential)).withRegion(regionName).withForceGlobalBucketAccessEnabled(Boolean.TRUE).build(), awsCredential, regionName);
return new AmazonS3Client(client);
}
use of com.sequenceiq.cloudbreak.cloud.aws.common.tracing.AwsTracingRequestHandler in project cloudbreak by hortonworks.
the class AwsClient method createAmazonIdentityManagement.
public AmazonIdentityManagementClient createAmazonIdentityManagement(AwsCredentialView awsCredential) {
String region = awsDefaultZoneProvider.getDefaultZone(awsCredential);
AmazonIdentityManagement client = proxy(AmazonIdentityManagementClientBuilder.standard().withRequestHandlers(new AwsTracingRequestHandler(tracer)).withRegion(region).withClientConfiguration(getDefaultClientConfiguration()).withCredentials(getCredentialProvider(awsCredential)).build(), awsCredential, region);
return new AmazonIdentityManagementClient(client);
}
use of com.sequenceiq.cloudbreak.cloud.aws.common.tracing.AwsTracingRequestHandler in project cloudbreak by hortonworks.
the class AwsClient method createCdpSecurityTokenServiceClient.
public AmazonSecurityTokenServiceClient createCdpSecurityTokenServiceClient(AwsCredentialView awsCredential) {
String region = awsDefaultZoneProvider.getDefaultZone(awsCredential);
AWSSecurityTokenService client = proxy(com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.builder().withCredentials(DefaultAWSCredentialsProviderChain.getInstance()).withClientConfiguration(getDefaultClientConfiguration()).withRequestHandlers(new AwsTracingRequestHandler(tracer)).withRegion(region).build(), awsCredential, region);
return new AmazonSecurityTokenServiceClient(client);
}
Aggregations