Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves Issue #112 #113

Merged
1 commit merged into from Feb 20, 2011
Merged

Resolves Issue #112 #113

1 commit merged into from Feb 20, 2011

Conversation

imlucas
Copy link
Contributor

@imlucas imlucas commented Feb 20, 2011

Adds 4 new defs to iam.connection.

  • create_account_alias
  • delete_account_alias
  • get_account_alias
  • get_signin_url

Example usage:

import boto

AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
ALIAS_NAME = u'somealias'

iam = boto.connect_iam(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
alias = iam.get_account_alias()
print "Got account alias `%s`" % alias
if alias and alias != ALIAS_NAME:
    iam.delete_account_alias(alias)
    print "- Deleted old account alias `%s`" % alias
elif not alias:
    iam.create_account_alias(ALIAS_NAME)
    print "- Created account alias `%s`" % (ALIAS_NAME)

print "Users can sign in to the S3 console at: %s" % iam.get_signin_url(service='s3')

@garnaat
Copy link
Member

garnaat commented Feb 20, 2011

Made a couple of very minor changes, mainly just for code formatting purposes. Thanks for the patch!

dyzsasd pushed a commit to dailymotion/boto that referenced this pull request May 9, 2017
We currently have the ability to inspect what resources are available to
a session, but not what subresources are available to a resource. This
adds a method to do that on each resource class.

Resolves boto#113
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants