List of usage examples for com.amazonaws.services.config AmazonConfigClient AmazonConfigClient
@Deprecated
public AmazonConfigClient()
From source file:com.vb.aws.services.mt.config.EBSVolumesAvailable.java
public void handle(ConfigEvent event, Context context) throws IOException { Regions region = Regions.fromName(System.getenv(AWS_REGION_PROPERTY)); // AWS Config client. AmazonConfig awsConfig = new AmazonConfigClient().withRegion(region); EC2UtilsImpl ec2UtilsImpl = new EC2UtilsImpl(region); doHandle(event, context, awsConfig, ec2UtilsImpl); }
From source file:com.vb.aws.services.mt.config.MFANotEnabledUsers.java
public void handle(ConfigEvent event, Context context) throws IOException { Regions region = Regions.fromName(System.getenv(AWS_REGION_PROPERTY)); // AWS Config client. AmazonConfig awsConfig = new AmazonConfigClient().withRegion(region); IamUtilsImpl iamUtilsImpl = new IamUtilsImpl(region); doHandle(event, context, awsConfig, iamUtilsImpl); }