public TrustedAdvisorClient(String profile) { this(AWSSupportAsyncClientBuilder .standard() .withCredentials(CredentialsSupplier.getAWSCredentialsProvider(profile)) .withRegion(Regions.US_EAST_1.getName()) .build()); }
public static TrustedAdvisorClient withClient(AWSSupportAsync client) { if (client == null){ return new TrustedAdvisorClient( AWSSupportAsyncClientBuilder.standard() .withRegion(Regions.US_EAST_1.getName()) .build() ); } else { return new TrustedAdvisorClient(client); } }
public SupportClient(String profile) { this(AWSSupportAsyncClientBuilder .standard() .withCredentials(CredentialsSupplier.getAWSCredentialsProvider(profile)) .withRegion(Regions.US_EAST_1.getName()) .build()); }
public static SupportClient withClient(AWSSupportAsync client) { if (client == null){ return new SupportClient( AWSSupportAsyncClientBuilder.standard() .withRegion(Regions.US_EAST_1.getName()) .build() ); } else { return new SupportClient(client); } }