-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
407 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Package: aws.iam | ||
Type: Package | ||
Title: AWS IAM Client Package | ||
Version: 0.1.6 | ||
Date: 2017-06-30 | ||
Version: 0.1.7 | ||
Date: 2017-07-01 | ||
Author: Thomas J. Leeper | ||
Maintainer: Thomas J. Leeper <[email protected]> | ||
Description: A simple client package for the Amazon Web Services (AWS) Identity | ||
and Access Management (IAM) API. | ||
Description: A simple client for the Amazon Web Services ('AWS') Identity | ||
and Access Management ('IAM') 'API' <https://aws.amazon.com/iam/>. | ||
License: GPL (>= 2) | ||
Imports: | ||
utils, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
#' @export | ||
print.iam_alias <- function(x, ...) { | ||
if (!is.null(x[["AliasName"]])) { | ||
cat("AliasName:", x[["AliasName"]], "\n") | ||
} | ||
invisible(x) | ||
} | ||
|
||
#' @export | ||
print.iam_group <- function(x, ...) { | ||
if (!is.null(x[["GroupId"]])) { | ||
cat("GroupId: ", x[["GroupId"]], "\n") | ||
} | ||
if (!is.null(x[["GroupName"]])) { | ||
cat("GroupName: ", paste0(x[["Path"]], x[["GroupName"]]), "\n") | ||
} | ||
if (!is.null(x[["Arn"]])) { | ||
cat("Arn: ", x[["Arn"]], "\n") | ||
} | ||
if (!is.null(x[["CreateDate"]])) { | ||
cat("CreateDate:", x[["CreateDate"]], "\n") | ||
} | ||
invisible(x) | ||
} | ||
|
||
#' @export | ||
print.iam_key <- function(x, ...) { | ||
if (!is.null(x[["AccessKeyId"]])) { | ||
cat("AccessKeyId:", x[["AccessKeyId"]], "\n") | ||
} | ||
if (!is.null(x[["CreateDate"]])) { | ||
cat("CreateDate: ", x[["CreateDate"]], "\n") | ||
} | ||
if (!is.null(x[["Status"]])) { | ||
cat("Status: ", x[["Status"]], "\n") | ||
} | ||
if (!is.null(x[["UserName"]])) { | ||
cat("UserName: ", x[["UserName"]], "\n") | ||
} | ||
invisible(x) | ||
} | ||
|
||
#' @export | ||
print.iam_policy <- function(x, ...) { | ||
if (!is.null(x[["PolicyName"]])) { | ||
cat("PolicyName:", x[["PolicyName"]], "\n") | ||
} | ||
if (!is.null(x[["RoleName"]])) { | ||
cat("RoleName: ", x[["RoleName"]], "\n") | ||
} | ||
if (!is.null(x[["UserName"]])) { | ||
cat("UserName: ", x[["UserName"]], "\n") | ||
} | ||
if (!is.null(x[["GroupName"]])) { | ||
cat("GroupName: ", x[["GroupName"]], "\n") | ||
} | ||
if (!is.null(x[["PolicyDocument"]])) { | ||
cat("policy: ", x[["PolicyDocument"]], "\n") | ||
} | ||
invisible(x) | ||
} | ||
|
||
#' @export | ||
print.iam_instance_profile <- function(x, ...) { | ||
if (!is.null(x[["InstanceProfileName"]])) { | ||
cat("InstanceProfileName: ", paste0(x[["Path"]], x[["InstanceProfileName"]]), "\n") | ||
} | ||
if (!is.null(x[["InstanceProfileId"]])) { | ||
cat("InstanceProfileId: ", x[["InstanceProfileId"]], "\n") | ||
} | ||
if (!is.null(x[["Arn"]])) { | ||
cat("Arn: ", x[["Arn"]], "\n") | ||
} | ||
if (!is.null(x[["CreateDate"]])) { | ||
cat("CreateDate: ", x[["CreateDate"]], "\n") | ||
} | ||
if (!is.null(x[["Roles"]])) { | ||
cat("Roles:\n") | ||
print(x[["Roles"]]) | ||
} | ||
invisible(x) | ||
} | ||
|
||
#' @export | ||
print.iam_role <- function(x, ...) { | ||
if (!is.null(x[["RoleName"]])) { | ||
cat("RoleName: ", paste0(x[["Path"]], x[["RoleName"]]), "\n") | ||
} | ||
if (!is.null(x[["RoleId"]])) { | ||
cat("RoleId: ", x[["RoleId"]], "\n") | ||
} | ||
if (!is.null(x[["Arn"]])) { | ||
cat("Arn: ", x[["Arn"]], "\n") | ||
} | ||
if (!is.null(x[["CreateDate"]])) { | ||
cat("CreateDate:", x[["CreateDate"]], "\n") | ||
} | ||
if (!is.null(x[["AssumeRolePolicyDocument"]])) { | ||
cat("policy: ", x[["AssumeRolePolicyDocument"]], "\n") | ||
} | ||
invisible(x) | ||
} | ||
|
||
#' @export | ||
print.iam_user <- function(x, ...) { | ||
if (!is.null(x[["UserName"]])) { | ||
cat("UserName: ", paste0(x[["Path"]], x[["UserName"]]), "\n") | ||
} | ||
if (!is.null(x[["UserId"]])) { | ||
cat("UserId: ", x[["UserId"]], "\n") | ||
} | ||
if (!is.null(x[["Arn"]])) { | ||
cat("Arn: ", x[["Arn"]], "\n") | ||
} | ||
if (!is.null(x[["CreateDate"]])) { | ||
cat("CreateDate:", x[["CreateDate"]], "\n") | ||
} | ||
invisible(x) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.