Example usage for com.amazonaws.services.config AmazonConfigClient AmazonConfigClient

List of usage examples for com.amazonaws.services.config AmazonConfigClient AmazonConfigClient

Introduction

In this page you can find the example usage for com.amazonaws.services.config AmazonConfigClient AmazonConfigClient.

Prototype

@Deprecated
public AmazonConfigClient() 

Source Link

Document

Constructs a new client to invoke service methods on Config Service.

Usage

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);

}