Example usage for com.amazonaws.services.identitymanagement.model GetGroupRequest setGroupName

List of usage examples for com.amazonaws.services.identitymanagement.model GetGroupRequest setGroupName

Introduction

In this page you can find the example usage for com.amazonaws.services.identitymanagement.model GetGroupRequest setGroupName.

Prototype


public void setGroupName(String groupName) 

Source Link

Document

The name of the group.

Usage

From source file:com.haskins.cloudtrailviewer.dialog.resourcedetail.detailpanels.IamGroupDetail.java

License:Open Source License

@Override
public String retrieveDetails(ResourceDetailRequest detailRequest) {

    String response = null;/*from  w  w w  . ja v  a 2  s . c  o m*/

    try {

        AmazonIdentityManagement client = new AmazonIdentityManagementClient(credentials);

        GetGroupRequest request = new GetGroupRequest();
        request.setGroupName(detailRequest.getResourceName());

        GetGroupResult result = client.getGroup(request);
        buildUI(result);

    } catch (IllegalArgumentException | AmazonClientException e) {
        response = e.getMessage();
        LOGGER.log(Level.WARNING, "Problem retrieving IAM Group details from AWS", e);
    }

    return response;
}