Example usage for com.amazonaws.services.identitymanagement.model Role getCreateDate

List of usage examples for com.amazonaws.services.identitymanagement.model Role getCreateDate

Introduction

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

Prototype


public java.util.Date getCreateDate() 

Source Link

Document

<p> The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the role was created.

Usage

From source file:com.denismo.aws.iam.LDAPIAMPoller.java

License:Apache License

private Entry getOrCreateRoleGroup(Role role) throws Exception {
    Group group = new Group(role.getPath(), role.getRoleName(), role.getRoleId(), role.getArn(),
            role.getCreateDate());
    return addGroup(group);
}

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

License:Open Source License

private void buildUI(GetRoleResult detail) {

    this.add(primaryScrollPane, BorderLayout.CENTER);

    if (detail.getRole() != null) {

        Role role = detail.getRole();

        if (role.getCreateDate() != null) {
            primaryTableModel.addRow(new Object[] { "Created", getDateString(role.getCreateDate()) });
        }/*from w w  w .ja  v  a 2  s . co  m*/
        if (role.getArn() != null) {
            primaryTableModel.addRow(new Object[] { "Arn", role.getArn() });
        }
        if (role.getAssumeRolePolicyDocument() != null) {
            primaryTableModel
                    .addRow(new Object[] { "Assume Role Policy Document", role.getAssumeRolePolicyDocument() });
        }
        if (role.getPath() != null) {
            primaryTableModel.addRow(new Object[] { "Path", role.getPath() });
        }
        if (role.getRoleId() != null) {
            primaryTableModel.addRow(new Object[] { "Role Id", role.getRoleId() });
        }
        if (role.getRoleName() != null) {
            primaryTableModel.addRow(new Object[] { "Role Name", role.getRoleName() });
        }

    }

}