Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #8642, IAM: AWS Identity and Access Management support, ELB: API…
… 2010-07-01 support (SSL + listeners creation/removal)
- Loading branch information
konstantin
committed
Jan 18, 2011
1 parent
e0d31f5
commit 84440ae
Showing
25 changed files
with
1,030 additions
and
48 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
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
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,71 @@ | ||
module RightAws | ||
|
||
class IamInterface < RightAwsBase | ||
|
||
#----------------------------------------------------------------- | ||
# Access Keys | ||
#----------------------------------------------------------------- | ||
|
||
# Returns information about the Access Key IDs associated with the specified User. | ||
# | ||
# Options: :user_name, :max_items, :marker | ||
# | ||
# iam.list_access_keys #=> | ||
# [{:create_date=>"2007-01-09T06:16:30Z", | ||
# :status=>"Active", | ||
# :access_key_id=>"00000000000000000000"}] | ||
# | ||
def list_access_keys(options={}, &block) | ||
incrementally_list_iam_resources('ListAccessKeys', options, &block) | ||
end | ||
|
||
# Creates a new AWS Secret Access Key and corresponding AWS Access Key ID for the specified User. | ||
# | ||
# Options: :user_name | ||
# | ||
# iam.create_access_key(:user_name => 'kd1') #=> | ||
# {:access_key_id=>"AK0000000000000000ZQ", | ||
# :status=>"Active", | ||
# :secret_access_key=>"QXN0000000000000000000000000000000000Ioj", | ||
# :create_date=>"2010-10-29T07:16:32.210Z", | ||
# :user_name=>"kd1"} | ||
# | ||
def create_access_key(options={}) | ||
request_hash = {} | ||
request_hash['UserName'] = options[:user_name] unless options[:user_name].right_blank? | ||
link = generate_request("CreateAccessKey", request_hash) | ||
request_info(link, CreateAccessKeyParser.new(:logger => @logger)) | ||
end | ||
|
||
# Deletes the access key associated with the specified User. | ||
# | ||
# Options: :user_name | ||
# | ||
# iam.delete_access_key('AK00000000000000006A', :user_name => 'kd1') #=> true | ||
# | ||
def delete_access_key(access_key_id, options={}) | ||
request_hash = { 'AccessKeyId' => access_key_id } | ||
request_hash['UserName'] = options[:user_name] unless options[:user_name].right_blank? | ||
link = generate_request("DeleteAccessKey", request_hash) | ||
request_info(link, RightHttp2xxParser.new(:logger => @logger)) | ||
end | ||
|
||
#----------------------------------------------------------------- | ||
# PARSERS | ||
#----------------------------------------------------------------- | ||
|
||
class ListAccessKeysParser < BasicIamListParser #:nodoc: | ||
def reset | ||
@expected_tags = %w{ AccessKeyId CreateDate Status UserName } | ||
end | ||
end | ||
|
||
class CreateAccessKeyParser < BasicIamParser #:nodoc: | ||
def reset | ||
@expected_tags = %w{ AccessKeyId CreateDate SecretAccessKey Status UserName } | ||
end | ||
end | ||
|
||
end | ||
|
||
end |
Oops, something went wrong.