View on GitHub

Automation for AWS VPC management, built on top of boto.

 
 
veep.IAM
index
/Users/mghali/work/veep/veep/IAM.py

 
Modules
       
boto
datetime
json
uuid

 
Classes
       
__builtin__.dict(__builtin__.object)
Condition
P_aws
Policy
Statement
__builtin__.object
Certificate
Profile
Role
__builtin__.str(__builtin__.basestring)
P_any
boto.iam.connection.IAMConnection(boto.connection.AWSQueryConnection)
IAMConnection

 
class Certificate(__builtin__.object)
    Object returned by get_certificates(), with expiration date
converted into a datetime.datetime() object.
 
  Methods defined here:
__init__(self, connection, **kwargs)
__repr__(self)
__str__(self)
delete(self)
Deletes the certificate from the IAM cert store.
update(self, **kwargs)
Updates the name and/or path attribute of an existing certificate.
 
**kwargs:
    name (str): New name for certificate. (optional)
    path (str): New path for certificate. (optional)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Condition(__builtin__.dict)
    Instance defines a condition applied to a Statement.
 
Args:
    cond_test (str): An IAM condition.
    val_type (str): Key for value from request
    val_data (str): Value for comparison
 
 
Method resolution order:
Condition
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, cond_test, val_type, val_data)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.dict:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__contains__(...)
D.__contains__(k) -> True if D has a key k, else False
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__gt__(...)
x.__gt__(y) <==> x>y
__iter__(...)
x.__iter__() <==> iter(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__ne__(...)
x.__ne__(y) <==> x!=y
__repr__(...)
x.__repr__() <==> repr(x)
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__sizeof__(...)
D.__sizeof__() -> size of D in memory, in bytes
clear(...)
D.clear() -> None.  Remove all items from D.
copy(...)
D.copy() -> a shallow copy of D
fromkeys(...)
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
get(...)
D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.
has_key(...)
D.has_key(k) -> True if D has a key k, else False
items(...)
D.items() -> list of D's (key, value) pairs, as 2-tuples
iteritems(...)
D.iteritems() -> an iterator over the (key, value) items of D
iterkeys(...)
D.iterkeys() -> an iterator over the keys of D
itervalues(...)
D.itervalues() -> an iterator over the values of D
keys(...)
D.keys() -> list of D's keys
pop(...)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
popitem(...)
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
setdefault(...)
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
update(...)
D.update([E, ]**F) -> None.  Update D from dict/iterable E and F.
If E present and has a .keys() method, does:     for k in E: D[k] = E[k]
If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
values(...)
D.values() -> list of D's values
viewitems(...)
D.viewitems() -> a set-like object providing a view on D's items
viewkeys(...)
D.viewkeys() -> a set-like object providing a view on D's keys
viewvalues(...)
D.viewvalues() -> an object providing a view on D's values

Data and other attributes inherited from __builtin__.dict:
__hash__ = None
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class IAMConnection(boto.iam.connection.IAMConnection)
    
Method resolution order:
IAMConnection
boto.iam.connection.IAMConnection
boto.connection.AWSQueryConnection
boto.connection.AWSAuthConnection
__builtin__.object

Methods defined here:
__init__(self, aws_access_key_id=None, aws_secret_access_key=None, **kwargs)
create_instance_profile(self, name, **kwargs)
Create an instance profile.
 
args:
    name (str): Name of profile to create.
 
**kwargs:
    path (str): Optional path for profile.
 
Returns:
    instance of Profile
create_role(self, name, **kwargs)
Create a role.
 
args:
    name (str): Name of role to create.
 
**kwargs:
    path (str): Optional path for role.
    assume_role_policy_document (str): A polcy document.
 
Returns:
    instance of Role
get_instance_profile(self, name)
Find an instance profile by name.
 
args:
    name (str): Name of profile to select.
 
Returns:
    instance of Profile
get_role(self, name)
Find role by name.
 
args:
    name (str): Name of role to select.
 
Returns:
    instance of Role
get_user_arn(self)
Returns arn for effective IAM user
 
Returns:
    (str) AWS account arn
list_server_certs(self)
Yields a list of server certificates stored in the account as
Certificate object instances.
 
Returns:
    iterator of Certificate instances.

Methods inherited from boto.iam.connection.IAMConnection:
add_role_to_instance_profile(self, instance_profile_name, role_name)
Adds the specified role to the specified instance profile.
 
:type instance_profile_name: string
:param instance_profile_name: Name of the instance profile to update.
 
:type role_name: string
:param role_name: Name of the role to add.
add_user_to_group(self, group_name, user_name)
Add a user to a group
 
:type group_name: string
:param group_name: The name of the group
 
:type user_name: string
:param user_name: The to be added to the group.
create_access_key(self, user_name=None)
Create a new AWS Secret Access Key and corresponding AWS Access Key ID
for the specified user.  The default status for new keys is Active
 
If the user_name is not specified, the user_name is determined
implicitly based on the AWS Access Key ID used to sign the request.
 
:type user_name: string
:param user_name: The username of the user
create_account_alias(self, alias)
Creates a new alias for the AWS account.
 
For more information on account id aliases, please see
http://goo.gl/ToB7G
 
:type alias: string
:param alias: The alias to attach to the account.
create_group(self, group_name, path='/')
Create a group.
 
:type group_name: string
:param group_name: The name of the new group
 
:type path: string
:param path: The path to the group (Optional).  Defaults to /.
create_login_profile(self, user_name, password)
Creates a login profile for the specified user, give the user the
ability to access AWS services and the AWS Management Console.
 
:type user_name: string
:param user_name: The name of the user
 
:type password: string
:param password: The new password for the user
create_saml_provider(self, saml_metadata_document, name)
Creates an IAM entity to describe an identity provider (IdP)
that supports SAML 2.0.
 
The SAML provider that you create with this operation can be
used as a principal in a role's trust policy to establish a
trust relationship between AWS and a SAML identity provider.
You can create an IAM role that supports Web-based single
sign-on (SSO) to the AWS Management Console or one that
supports API access to AWS.
 
When you create the SAML provider, you upload an a SAML
metadata document that you get from your IdP and that includes
the issuer's name, expiration information, and keys that can
be used to validate the SAML authentication response
(assertions) that are received from the IdP. You must generate
the metadata document using the identity management software
that is used as your organization's IdP.
This operation requires `Signature Version 4`_.
For more information, see `Giving Console Access Using SAML`_
and `Creating Temporary Security Credentials for SAML
Federation`_ in the Using Temporary Credentials guide.
 
:type saml_metadata_document: string
:param saml_metadata_document: An XML document generated by an identity
    provider (IdP) that supports SAML 2.0. The document includes the
    issuer's name, expiration information, and keys that can be used to
    validate the SAML authentication response (assertions) that are
    received from the IdP. You must generate the metadata document
    using the identity management software that is used as your
    organization's IdP.
For more information, see `Creating Temporary Security Credentials for
    SAML Federation`_ in the Using Temporary Security Credentials
    guide.
 
:type name: string
:param name: The name of the provider to create.
create_user(self, user_name, path='/')
Create a user.
 
:type user_name: string
:param user_name: The name of the new user
 
:type path: string
:param path: The path in which the user will be created.
    Defaults to /.
create_virtual_mfa_device(self, path, device_name)
Creates a new virtual MFA device for the AWS account.
 
After creating the virtual MFA, use enable-mfa-device to
attach the MFA device to an IAM user.
 
:type path: string
:param path: The path for the virtual MFA device.
 
:type device_name: string
:param device_name: The name of the virtual MFA device.
    Used with path to uniquely identify a virtual MFA device.
deactivate_mfa_device(self, user_name, serial_number)
Deactivates the specified MFA device and removes it from
association with the user.
 
:type user_name: string
:param user_name: The username of the user
 
:type serial_number: string
:param serial_number: The serial number which uniquely identifies
    the MFA device.
delete_access_key(self, access_key_id, user_name=None)
Delete an access key associated with a user.
 
If the user_name is not specified, it is determined implicitly based
on the AWS Access Key ID used to sign the request.
 
:type access_key_id: string
:param access_key_id: The ID of the access key to be deleted.
 
:type user_name: string
:param user_name: The username of the user
delete_account_alias(self, alias)
Deletes an alias for the AWS account.
 
For more information on account id aliases, please see
http://goo.gl/ToB7G
 
:type alias: string
:param alias: The alias to remove from the account.
delete_account_password_policy(self)
Delete the password policy currently set for the AWS account.
delete_group(self, group_name)
Delete a group. The group must not contain any Users or
have any attached policies
 
:type group_name: string
:param group_name: The name of the group to delete.
delete_group_policy(self, group_name, policy_name)
Deletes the specified policy document for the specified group.
 
:type group_name: string
:param group_name: The name of the group the policy is associated with.
 
:type policy_name: string
:param policy_name: The policy document to delete.
delete_instance_profile(self, instance_profile_name)
Deletes the specified instance profile. The instance profile must not
have an associated role.
 
:type instance_profile_name: string
:param instance_profile_name: Name of the instance profile to delete.
delete_login_profile(self, user_name)
Deletes the login profile associated with the specified user.
 
:type user_name: string
:param user_name: The name of the user to delete.
delete_role(self, role_name)
Deletes the specified role. The role must not have any policies
attached.
 
:type role_name: string
:param role_name: Name of the role to delete.
delete_role_policy(self, role_name, policy_name)
Deletes the specified policy associated with the specified role.
 
:type role_name: string
:param role_name: Name of the role associated with the policy.
 
:type policy_name: string
:param policy_name: Name of the policy to delete.
delete_saml_provider(self, saml_provider_arn)
Deletes a SAML provider.
 
Deleting the provider does not update any roles that reference
the SAML provider as a principal in their trust policies. Any
attempt to assume a role that references a SAML provider that
has been deleted will fail.
This operation requires `Signature Version 4`_.
 
:type saml_provider_arn: string
:param saml_provider_arn: The Amazon Resource Name (ARN) of the SAML
    provider to delete.
delete_server_cert(self, cert_name)
Delete the specified server certificate.
 
:type cert_name: string
:param cert_name: The name of the server certificate you want
    to delete.
delete_signing_cert(self, cert_id, user_name=None)
Delete a signing certificate associated with a user.
 
If the user_name is not specified, it is determined implicitly based
on the AWS Access Key ID used to sign the request.
 
:type user_name: string
:param user_name: The username of the user
 
:type cert_id: string
:param cert_id: The ID of the certificate.
delete_user(self, user_name)
Delete a user including the user's path, GUID and ARN.
 
If the user_name is not specified, the user_name is determined
implicitly based on the AWS Access Key ID used to sign the request.
 
:type user_name: string
:param user_name: The name of the user to delete.
delete_user_policy(self, user_name, policy_name)
Deletes the specified policy document for the specified user.
 
:type user_name: string
:param user_name: The name of the user the policy is associated with.
 
:type policy_name: string
:param policy_name: The policy document to delete.
enable_mfa_device(self, user_name, serial_number, auth_code_1, auth_code_2)
Enables the specified MFA device and associates it with the
specified user.
 
:type user_name: string
:param user_name: The username of the user
 
:type serial_number: string
:param serial_number: The serial number which uniquely identifies
    the MFA device.
 
:type auth_code_1: string
:param auth_code_1: An authentication code emitted by the device.
 
:type auth_code_2: string
:param auth_code_2: A subsequent authentication code emitted
    by the device.
generate_credential_report(self)
Generates a credential report for an account
 
A new credential report can only be generated every 4 hours. If one
hasn't been generated in the last 4 hours then get_credential_report
will error when called
get_account_alias(self)
Get the alias for the current account.
 
This is referred to in the docs as list_account_aliases,
but it seems you can only have one account alias currently.
 
For more information on account id aliases, please see
http://goo.gl/ToB7G
get_account_password_policy(self)
Returns the password policy for the AWS account.
get_account_summary(self)
Get the alias for the current account.
 
This is referred to in the docs as list_account_aliases,
but it seems you can only have one account alias currently.
 
For more information on account id aliases, please see
http://goo.gl/ToB7G
get_all_access_keys(self, user_name, marker=None, max_items=None)
Get all access keys associated with an account.
 
:type user_name: string
:param user_name: The username of the user
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_all_group_policies(self, group_name, marker=None, max_items=None)
List the names of the policies associated with the specified group.
 
:type group_name: string
:param group_name: The name of the group the policy is associated with.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_all_groups(self, path_prefix='/', marker=None, max_items=None)
List the groups that have the specified path prefix.
 
:type path_prefix: string
:param path_prefix: If provided, only groups whose paths match
    the provided prefix will be returned.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_all_mfa_devices(self, user_name, marker=None, max_items=None)
Get all MFA devices associated with an account.
 
:type user_name: string
:param user_name: The username of the user
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_all_server_certs = list_server_certs(self, path_prefix='/', marker=None, max_items=None)
Lists the server certificates that have the specified path prefix.
If none exist, the action returns an empty list.
 
:type path_prefix: string
:param path_prefix: If provided, only certificates whose paths match
    the provided prefix will be returned.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_all_signing_certs(self, marker=None, max_items=None, user_name=None)
Get all signing certificates associated with an account.
 
If the user_name is not specified, it is determined implicitly based
on the AWS Access Key ID used to sign the request.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
 
:type user_name: string
:param user_name: The username of the user
get_all_user_policies(self, user_name, marker=None, max_items=None)
List the names of the policies associated with the specified user.
 
:type user_name: string
:param user_name: The name of the user the policy is associated with.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_all_users(self, path_prefix='/', marker=None, max_items=None)
List the users that have the specified path prefix.
 
:type path_prefix: string
:param path_prefix: If provided, only users whose paths match
    the provided prefix will be returned.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_credential_report(self)
Retrieves a credential report for an account
 
A report must have been generated in the last 4 hours to succeed.
The report is returned as a base64 encoded blob within the response.
get_group(self, group_name, marker=None, max_items=None)
Return a list of users that are in the specified group.
 
:type group_name: string
:param group_name: The name of the group whose information should
                   be returned.
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_group_policy(self, group_name, policy_name)
Retrieves the specified policy document for the specified group.
 
:type group_name: string
:param group_name: The name of the group the policy is associated with.
 
:type policy_name: string
:param policy_name: The policy document to get.
get_groups_for_user(self, user_name, marker=None, max_items=None)
List the groups that a specified user belongs to.
 
:type user_name: string
:param user_name: The name of the user to list groups for.
 
:type marker: string
:param marker: Use this only when paginating results and only
    in follow-up request after you've received a response
    where the results are truncated.  Set this to the value of
    the Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this only when paginating results to indicate
    the maximum number of groups you want in the response.
get_login_profiles(self, user_name)
Retrieves the login profile for the specified user.
 
:type user_name: string
:param user_name: The username of the user
get_response(self, action, params, path='/', parent=None, verb='POST', list_marker='Set')
Utility method to handle calls to IAM and parsing of responses.
get_role_policy(self, role_name, policy_name)
Retrieves the specified policy document for the specified role.
 
:type role_name: string
:param role_name: Name of the role associated with the policy.
 
:type policy_name: string
:param policy_name: Name of the policy to get.
get_saml_provider(self, saml_provider_arn)
Returns the SAML provider metadocument that was uploaded when
the provider was created or updated.
This operation requires `Signature Version 4`_.
 
:type saml_provider_arn: string
:param saml_provider_arn: The Amazon Resource Name (ARN) of the SAML
    provider to get information about.
get_server_certificate(self, cert_name)
Retrieves information about the specified server certificate.
 
:type cert_name: string
:param cert_name: The name of the server certificate you want
    to retrieve information about.
get_signin_url(self, service='ec2')
Get the URL where IAM users can use their login profile to sign in
to this account's console.
 
:type service: string
:param service: Default service to go to in the console.
get_user(self, user_name=None)
Retrieve information about the specified user.
 
If the user_name is not specified, the user_name is determined
implicitly based on the AWS Access Key ID used to sign the request.
 
:type user_name: string
:param user_name: The name of the user to retrieve.
    If not specified, defaults to user making request.
get_user_policy(self, user_name, policy_name)
Retrieves the specified policy document for the specified user.
 
:type user_name: string
:param user_name: The name of the user the policy is associated with.
 
:type policy_name: string
:param policy_name: The policy document to get.
list_instance_profiles(self, path_prefix=None, marker=None, max_items=None)
Lists the instance profiles that have the specified path prefix. If
there are none, the action returns an empty list.
 
:type path_prefix: string
:param path_prefix: The path prefix for filtering the results. For
    example: /application_abc/component_xyz/, which would get all
    instance profiles whose path starts with
    /application_abc/component_xyz/.
 
:type marker: string
:param marker: Use this parameter only when paginating results, and
    only in a subsequent request after you've received a response
    where the results are truncated. Set it to the value of the
    Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this parameter only when paginating results to
    indicate the maximum number of user names you want in the response.
list_instance_profiles_for_role(self, role_name, marker=None, max_items=None)
Lists the instance profiles that have the specified associated role. If
there are none, the action returns an empty list.
 
:type role_name: string
:param role_name: The name of the role to list instance profiles for.
 
:type marker: string
:param marker: Use this parameter only when paginating results, and
    only in a subsequent request after you've received a response
    where the results are truncated. Set it to the value of the
    Marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this parameter only when paginating results to
    indicate the maximum number of user names you want in the response.
list_role_policies(self, role_name, marker=None, max_items=None)
Lists the names of the policies associated with the specified role. If
there are none, the action returns an empty list.
 
:type role_name: string
:param role_name: The name of the role to list policies for.
 
:type marker: string
:param marker: Use this parameter only when paginating results, and
    only in a subsequent request after you've received a response
    where the results are truncated. Set it to the value of the
    marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this parameter only when paginating results to
    indicate the maximum number of user names you want in the response.
list_roles(self, path_prefix=None, marker=None, max_items=None)
Lists the roles that have the specified path prefix. If there are none,
the action returns an empty list.
 
:type path_prefix: string
:param path_prefix: The path prefix for filtering the results.
 
:type marker: string
:param marker: Use this parameter only when paginating results, and
    only in a subsequent request after you've received a response
    where the results are truncated. Set it to the value of the
    marker element in the response you just received.
 
:type max_items: int
:param max_items: Use this parameter only when paginating results to
    indicate the maximum number of user names you want in the response.
list_saml_providers(self)
Lists the SAML providers in the account.
This operation requires `Signature Version 4`_.
put_group_policy(self, group_name, policy_name, policy_json)
Adds or updates the specified policy document for the specified group.
 
:type group_name: string
:param group_name: The name of the group the policy is associated with.
 
:type policy_name: string
:param policy_name: The policy document to get.
 
:type policy_json: string
:param policy_json: The policy document.
put_role_policy(self, role_name, policy_name, policy_document)
Adds (or updates) a policy document associated with the specified role.
 
:type role_name: string
:param role_name: Name of the role to associate the policy with.
 
:type policy_name: string
:param policy_name: Name of the policy document.
 
:type policy_document: string
:param policy_document: The policy document.
put_user_policy(self, user_name, policy_name, policy_json)
Adds or updates the specified policy document for the specified user.
 
:type user_name: string
:param user_name: The name of the user the policy is associated with.
 
:type policy_name: string
:param policy_name: The policy document to get.
 
:type policy_json: string
:param policy_json: The policy document.
remove_role_from_instance_profile(self, instance_profile_name, role_name)
Removes the specified role from the specified instance profile.
 
:type instance_profile_name: string
:param instance_profile_name: Name of the instance profile to update.
 
:type role_name: string
:param role_name: Name of the role to remove.
remove_user_from_group(self, group_name, user_name)
Remove a user from a group.
 
:type group_name: string
:param group_name: The name of the group
 
:type user_name: string
:param user_name: The user to remove from the group.
resync_mfa_device(self, user_name, serial_number, auth_code_1, auth_code_2)
Syncronizes the specified MFA device with the AWS servers.
 
:type user_name: string
:param user_name: The username of the user
 
:type serial_number: string
:param serial_number: The serial number which uniquely identifies
    the MFA device.
 
:type auth_code_1: string
:param auth_code_1: An authentication code emitted by the device.
 
:type auth_code_2: string
:param auth_code_2: A subsequent authentication code emitted
    by the device.
update_access_key(self, access_key_id, status, user_name=None)
Changes the status of the specified access key from Active to Inactive
or vice versa.  This action can be used to disable a user's key as
part of a key rotation workflow.
 
If the user_name is not specified, the user_name is determined
implicitly based on the AWS Access Key ID used to sign the request.
 
:type access_key_id: string
:param access_key_id: The ID of the access key.
 
:type status: string
:param status: Either Active or Inactive.
 
:type user_name: string
:param user_name: The username of user (optional).
update_account_password_policy(self, allow_users_to_change_password=None, hard_expiry=None, max_password_age=None, minimum_password_length=None, password_reuse_prevention=None, require_lowercase_characters=None, require_numbers=None, require_symbols=None, require_uppercase_characters=None)
Update the password policy for the AWS account.
 
Notes: unset parameters will be reset to Amazon default settings!
    Most of the password policy settings are enforced the next time your users
    change their passwords. When you set minimum length and character type
    requirements, they are enforced the next time your users change their
    passwords - users are not forced to change their existing passwords, even
    if the pre-existing passwords do not adhere to the updated password
    policy. When you set a password expiration period, the expiration period
    is enforced immediately.
 
:type allow_users_to_change_password: bool
:param allow_users_to_change_password: Allows all IAM users in your account
    to use the AWS Management Console to change their own passwords.
 
:type hard_expiry: bool
:param hard_expiry: Prevents IAM users from setting a new password after
    their password has expired.
 
:type max_password_age: int
:param max_password_age: The number of days that an IAM user password is valid.
 
:type minimum_password_length: int
:param minimum_password_length: The minimum number of characters allowed in
    an IAM user password.
 
:type password_reuse_prevention: int
:param password_reuse_prevention: Specifies the number of previous passwords
    that IAM users are prevented from reusing.
 
:type require_lowercase_characters: bool
:param require_lowercase_characters: Specifies whether IAM user passwords
    must contain at least one lowercase character from the ISO basic Latin
    alphabet (``a`` to ``z``).
 
:type require_numbers: bool
:param require_numbers: Specifies whether IAM user passwords must contain at
    least one numeric character (``0`` to ``9``).
 
:type require_symbols: bool
:param require_symbols: Specifies whether IAM user passwords must contain at
    least one of the following non-alphanumeric characters:
    ``! @ # $ % ^ & * ( ) _ + - = [ ] { } | '``
 
:type require_uppercase_characters: bool
:param require_uppercase_characters: Specifies whether IAM user passwords
    must contain at least one uppercase character from the ISO basic Latin
    alphabet (``A`` to ``Z``).
update_assume_role_policy(self, role_name, policy_document)
Updates the policy that grants an entity permission to assume a role.
Currently, only an Amazon EC2 instance can assume a role.
 
:type role_name: string
:param role_name: Name of the role to update.
 
:type policy_document: string
:param policy_document: The policy that grants an entity permission to
    assume the role.
update_group(self, group_name, new_group_name=None, new_path=None)
Updates name and/or path of the specified group.
 
:type group_name: string
:param group_name: The name of the new group
 
:type new_group_name: string
:param new_group_name: If provided, the name of the group will be
    changed to this name.
 
:type new_path: string
:param new_path: If provided, the path of the group will be
    changed to this path.
update_login_profile(self, user_name, password)
Resets the password associated with the user's login profile.
 
:type user_name: string
:param user_name: The name of the user
 
:type password: string
:param password: The new password for the user
update_saml_provider(self, saml_provider_arn, saml_metadata_document)
Updates the metadata document for an existing SAML provider.
This operation requires `Signature Version 4`_.
 
:type saml_provider_arn: string
:param saml_provider_arn: The Amazon Resource Name (ARN) of the SAML
    provider to update.
 
:type saml_metadata_document: string
:param saml_metadata_document: An XML document generated by an identity
    provider (IdP) that supports SAML 2.0. The document includes the
    issuer's name, expiration information, and keys that can be used to
    validate the SAML authentication response (assertions) that are
    received from the IdP. You must generate the metadata document
    using the identity management software that is used as your
    organization's IdP.
update_server_cert(self, cert_name, new_cert_name=None, new_path=None)
Updates the name and/or the path of the specified server certificate.
 
:type cert_name: string
:param cert_name: The name of the server certificate that you want
    to update.
 
:type new_cert_name: string
:param new_cert_name: The new name for the server certificate.
    Include this only if you are updating the
    server certificate's name.
 
:type new_path: string
:param new_path: If provided, the path of the certificate will be
                 changed to this path.
update_signing_cert(self, cert_id, status, user_name=None)
Change the status of the specified signing certificate from
Active to Inactive or vice versa.
 
If the user_name is not specified, it is determined implicitly based
on the AWS Access Key ID used to sign the request.
 
:type cert_id: string
:param cert_id: The ID of the signing certificate
 
:type status: string
:param status: Either Active or Inactive.
 
:type user_name: string
:param user_name: The username of the user
update_user(self, user_name, new_user_name=None, new_path=None)
Updates name and/or path of the specified user.
 
:type user_name: string
:param user_name: The name of the user
 
:type new_user_name: string
:param new_user_name: If provided, the username of the user will be
    changed to this username.
 
:type new_path: string
:param new_path: If provided, the path of the user will be
    changed to this path.
upload_server_cert(self, cert_name, cert_body, private_key, cert_chain=None, path=None)
Uploads a server certificate entity for the AWS Account.
The server certificate entity includes a public key certificate,
a private key, and an optional certificate chain, which should
all be PEM-encoded.
 
:type cert_name: string
:param cert_name: The name for the server certificate. Do not
    include the path in this value.
 
:type cert_body: string
:param cert_body: The contents of the public key certificate
    in PEM-encoded format.
 
:type private_key: string
:param private_key: The contents of the private key in
    PEM-encoded format.
 
:type cert_chain: string
:param cert_chain: The contents of the certificate chain. This
    is typically a concatenation of the PEM-encoded
    public key certificates of the chain.
 
:type path: string
:param path: The path for the server certificate.
upload_signing_cert(self, cert_body, user_name=None)
Uploads an X.509 signing certificate and associates it with
the specified user.
 
If the user_name is not specified, it is determined implicitly based
on the AWS Access Key ID used to sign the request.
 
:type cert_body: string
:param cert_body: The body of the signing certificate.
 
:type user_name: string
:param user_name: The username of the user

Data and other attributes inherited from boto.iam.connection.IAMConnection:
APIVersion = '2010-05-08'

Methods inherited from boto.connection.AWSQueryConnection:
build_complex_list_params(self, params, items, label, names)
Serialize a list of structures.
 
For example::
 
    items = [('foo', 'bar', 'baz'), ('foo2', 'bar2', 'baz2')]
    label = 'ParamName.member'
    names = ('One', 'Two', 'Three')
    build_complex_list_params(params, items, label, names)
 
would result in the params dict being updated with these params::
 
    ParamName.member.1.One = foo
    ParamName.member.1.Two = bar
    ParamName.member.1.Three = baz
 
    ParamName.member.2.One = foo2
    ParamName.member.2.Two = bar2
    ParamName.member.2.Three = baz2
 
:type params: dict
:param params: The params dict.  The complex list params
    will be added to this dict.
 
:type items: list of tuples
:param items: The list to serialize.
 
:type label: string
:param label: The prefix to apply to the parameter.
 
:type names: tuple of strings
:param names: The names associated with each tuple element.
build_list_params(self, params, items, label)
get_list(self, action, params, markers, path='/', parent=None, verb='GET')
get_object(self, action, params, cls, path='/', parent=None, verb='GET')
get_status(self, action, params, path='/', parent=None, verb='GET')
get_utf8_value(self, value)
make_request(self, action, params=None, path='/', verb='GET')

Data and other attributes inherited from boto.connection.AWSQueryConnection:
ResponseError = <class 'boto.exception.BotoServerError'>

Methods inherited from boto.connection.AWSAuthConnection:
__repr__(self)
build_base_http_request(self, method, path, auth_path, params=None, headers=None, data='', host=None)
close(self)
(Optional) Close any open HTTP connections.  This is non-destructive,
and making a new request will open a connection again.
get_http_connection(self, host, port, is_secure)
get_path(self, path='/')
get_proxy_auth_header(self)
get_proxy_url_with_auth(self)
# For passing proxy information to other connection libraries, e.g. cloudsearch2
handle_proxy(self, proxy, proxy_port, proxy_user, proxy_pass)
new_http_connection(self, host, port, is_secure)
prefix_proxy_to_path(self, path, host=None)
proxy_ssl(self, host=None, port=None)
put_http_connection(self, host, port, is_secure, connection)
server_name(self, port=None)
set_host_header(self, request)
set_request_hook(self, hook)
skip_proxy(self, host)

Data descriptors inherited from boto.connection.AWSAuthConnection:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
access_key
auth_region_name
auth_service_name
aws_access_key_id
aws_secret_access_key
connection
gs_access_key_id
gs_secret_access_key
profile_name
secret_key

 
class P_any(__builtin__.str)
    Instances of this object are used to define Principals in a Statement.
This object takes no arguments at constuction and creates the special
Principal type of `*` (any).
 
Args: None.
 
 
Method resolution order:
P_any
__builtin__.str
__builtin__.basestring
__builtin__.object

Static methods defined here:
__new__(cls)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)

Methods inherited from __builtin__.str:
__add__(...)
x.__add__(y) <==> x+y
__contains__(...)
x.__contains__(y) <==> y in x
__eq__(...)
x.__eq__(y) <==> x==y
__format__(...)
S.__format__(format_spec) -> string
 
Return a formatted version of S as described by format_spec.
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getnewargs__(...)
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__gt__(...)
x.__gt__(y) <==> x>y
__hash__(...)
x.__hash__() <==> hash(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__mod__(...)
x.__mod__(y) <==> x%y
__mul__(...)
x.__mul__(n) <==> x*n
__ne__(...)
x.__ne__(y) <==> x!=y
__repr__(...)
x.__repr__() <==> repr(x)
__rmod__(...)
x.__rmod__(y) <==> y%x
__rmul__(...)
x.__rmul__(n) <==> n*x
__sizeof__(...)
S.__sizeof__() -> size of S in memory, in bytes
__str__(...)
x.__str__() <==> str(x)
capitalize(...)
S.capitalize() -> string
 
Return a copy of the string S with only its first character
capitalized.
center(...)
S.center(width[, fillchar]) -> string
 
Return S centered in a string of length width. Padding is
done using the specified fill character (default is a space)
count(...)
S.count(sub[, start[, end]]) -> int
 
Return the number of non-overlapping occurrences of substring sub in
string S[start:end].  Optional arguments start and end are interpreted
as in slice notation.
decode(...)
S.decode([encoding[,errors]]) -> object
 
Decodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
as well as any other name registered with codecs.register_error that is
able to handle UnicodeDecodeErrors.
encode(...)
S.encode([encoding[,errors]]) -> object
 
Encodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
'xmlcharrefreplace' as well as any other name registered with
codecs.register_error that is able to handle UnicodeEncodeErrors.
endswith(...)
S.endswith(suffix[, start[, end]]) -> bool
 
Return True if S ends with the specified suffix, False otherwise.
With optional start, test S beginning at that position.
With optional end, stop comparing S at that position.
suffix can also be a tuple of strings to try.
expandtabs(...)
S.expandtabs([tabsize]) -> string
 
Return a copy of S where all tab characters are expanded using spaces.
If tabsize is not given, a tab size of 8 characters is assumed.
find(...)
S.find(sub [,start [,end]]) -> int
 
Return the lowest index in S where substring sub is found,
such that sub is contained within S[start:end].  Optional
arguments start and end are interpreted as in slice notation.
 
Return -1 on failure.
format(...)
S.format(*args, **kwargs) -> string
 
Return a formatted version of S, using substitutions from args and kwargs.
The substitutions are identified by braces ('{' and '}').
index(...)
S.index(sub [,start [,end]]) -> int
 
Like S.find() but raise ValueError when the substring is not found.
isalnum(...)
S.isalnum() -> bool
 
Return True if all characters in S are alphanumeric
and there is at least one character in S, False otherwise.
isalpha(...)
S.isalpha() -> bool
 
Return True if all characters in S are alphabetic
and there is at least one character in S, False otherwise.
isdigit(...)
S.isdigit() -> bool
 
Return True if all characters in S are digits
and there is at least one character in S, False otherwise.
islower(...)
S.islower() -> bool
 
Return True if all cased characters in S are lowercase and there is
at least one cased character in S, False otherwise.
isspace(...)
S.isspace() -> bool
 
Return True if all characters in S are whitespace
and there is at least one character in S, False otherwise.
istitle(...)
S.istitle() -> bool
 
Return True if S is a titlecased string and there is at least one
character in S, i.e. uppercase characters may only follow uncased
characters and lowercase characters only cased ones. Return False
otherwise.
isupper(...)
S.isupper() -> bool
 
Return True if all cased characters in S are uppercase and there is
at least one cased character in S, False otherwise.
join(...)
S.join(iterable) -> string
 
Return a string which is the concatenation of the strings in the
iterable.  The separator between elements is S.
ljust(...)
S.ljust(width[, fillchar]) -> string
 
Return S left-justified in a string of length width. Padding is
done using the specified fill character (default is a space).
lower(...)
S.lower() -> string
 
Return a copy of the string S converted to lowercase.
lstrip(...)
S.lstrip([chars]) -> string or unicode
 
Return a copy of the string S with leading whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
partition(...)
S.partition(sep) -> (head, sep, tail)
 
Search for the separator sep in S, and return the part before it,
the separator itself, and the part after it.  If the separator is not
found, return S and two empty strings.
replace(...)
S.replace(old, new[, count]) -> string
 
Return a copy of string S with all occurrences of substring
old replaced by new.  If the optional argument count is
given, only the first count occurrences are replaced.
rfind(...)
S.rfind(sub [,start [,end]]) -> int
 
Return the highest index in S where substring sub is found,
such that sub is contained within S[start:end].  Optional
arguments start and end are interpreted as in slice notation.
 
Return -1 on failure.
rindex(...)
S.rindex(sub [,start [,end]]) -> int
 
Like S.rfind() but raise ValueError when the substring is not found.
rjust(...)
S.rjust(width[, fillchar]) -> string
 
Return S right-justified in a string of length width. Padding is
done using the specified fill character (default is a space)
rpartition(...)
S.rpartition(sep) -> (head, sep, tail)
 
Search for the separator sep in S, starting at the end of S, and return
the part before it, the separator itself, and the part after it.  If the
separator is not found, return two empty strings and S.
rsplit(...)
S.rsplit([sep [,maxsplit]]) -> list of strings
 
Return a list of the words in the string S, using sep as the
delimiter string, starting at the end of the string and working
to the front.  If maxsplit is given, at most maxsplit splits are
done. If sep is not specified or is None, any whitespace string
is a separator.
rstrip(...)
S.rstrip([chars]) -> string or unicode
 
Return a copy of the string S with trailing whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
split(...)
S.split([sep [,maxsplit]]) -> list of strings
 
Return a list of the words in the string S, using sep as the
delimiter string.  If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or is None, any
whitespace string is a separator and empty strings are removed
from the result.
splitlines(...)
S.splitlines(keepends=False) -> list of strings
 
Return a list of the lines in S, breaking at line boundaries.
Line breaks are not included in the resulting list unless keepends
is given and true.
startswith(...)
S.startswith(prefix[, start[, end]]) -> bool
 
Return True if S starts with the specified prefix, False otherwise.
With optional start, test S beginning at that position.
With optional end, stop comparing S at that position.
prefix can also be a tuple of strings to try.
strip(...)
S.strip([chars]) -> string or unicode
 
Return a copy of the string S with leading and trailing
whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
swapcase(...)
S.swapcase() -> string
 
Return a copy of the string S with uppercase characters
converted to lowercase and vice versa.
title(...)
S.title() -> string
 
Return a titlecased version of S, i.e. words start with uppercase
characters, all remaining cased characters have lowercase.
translate(...)
S.translate(table [,deletechars]) -> string
 
Return a copy of the string S, where all characters occurring
in the optional argument deletechars are removed, and the
remaining characters have been mapped through the given
translation table, which must be a string of length 256 or None.
If the table argument is None, no translation is applied and
the operation simply removes the characters in deletechars.
upper(...)
S.upper() -> string
 
Return a copy of the string S converted to uppercase.
zfill(...)
S.zfill(width) -> string
 
Pad a numeric string S with zeros on the left, to fill a field
of the specified width.  The string S is never truncated.

 
class P_aws(__builtin__.dict)
    Instances of this object are used to define Principals in a Statement.
This object takes an arn argument at construction and creates a Principal
type of "AWS": <arn>.
 
Args:
    param1  (str or list) One or more ARNs.
 
 
Method resolution order:
P_aws
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, args)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.dict:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__contains__(...)
D.__contains__(k) -> True if D has a key k, else False
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__gt__(...)
x.__gt__(y) <==> x>y
__iter__(...)
x.__iter__() <==> iter(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__ne__(...)
x.__ne__(y) <==> x!=y
__repr__(...)
x.__repr__() <==> repr(x)
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__sizeof__(...)
D.__sizeof__() -> size of D in memory, in bytes
clear(...)
D.clear() -> None.  Remove all items from D.
copy(...)
D.copy() -> a shallow copy of D
fromkeys(...)
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
get(...)
D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.
has_key(...)
D.has_key(k) -> True if D has a key k, else False
items(...)
D.items() -> list of D's (key, value) pairs, as 2-tuples
iteritems(...)
D.iteritems() -> an iterator over the (key, value) items of D
iterkeys(...)
D.iterkeys() -> an iterator over the keys of D
itervalues(...)
D.itervalues() -> an iterator over the values of D
keys(...)
D.keys() -> list of D's keys
pop(...)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
popitem(...)
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
setdefault(...)
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
update(...)
D.update([E, ]**F) -> None.  Update D from dict/iterable E and F.
If E present and has a .keys() method, does:     for k in E: D[k] = E[k]
If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
values(...)
D.values() -> list of D's values
viewitems(...)
D.viewitems() -> a set-like object providing a view on D's items
viewkeys(...)
D.viewkeys() -> a set-like object providing a view on D's keys
viewvalues(...)
D.viewvalues() -> an object providing a view on D's values

Data and other attributes inherited from __builtin__.dict:
__hash__ = None
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Policy(__builtin__.dict)
    Contains one or more Statement objects and returns an object
suitable for passing as a policy to IAM api calls.
 
**kwargs:
    id (str): Policy ID (optional)
    version (str): Policy version (optional)
    statements (list): one or more Statement instances
 
 
Method resolution order:
Policy
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, **kwargs)
__repr__(self)
__str__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.dict:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__contains__(...)
D.__contains__(k) -> True if D has a key k, else False
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__gt__(...)
x.__gt__(y) <==> x>y
__iter__(...)
x.__iter__() <==> iter(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__ne__(...)
x.__ne__(y) <==> x!=y
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__sizeof__(...)
D.__sizeof__() -> size of D in memory, in bytes
clear(...)
D.clear() -> None.  Remove all items from D.
copy(...)
D.copy() -> a shallow copy of D
fromkeys(...)
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
get(...)
D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.
has_key(...)
D.has_key(k) -> True if D has a key k, else False
items(...)
D.items() -> list of D's (key, value) pairs, as 2-tuples
iteritems(...)
D.iteritems() -> an iterator over the (key, value) items of D
iterkeys(...)
D.iterkeys() -> an iterator over the keys of D
itervalues(...)
D.itervalues() -> an iterator over the values of D
keys(...)
D.keys() -> list of D's keys
pop(...)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
popitem(...)
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
setdefault(...)
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
update(...)
D.update([E, ]**F) -> None.  Update D from dict/iterable E and F.
If E present and has a .keys() method, does:     for k in E: D[k] = E[k]
If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
values(...)
D.values() -> list of D's values
viewitems(...)
D.viewitems() -> a set-like object providing a view on D's items
viewkeys(...)
D.viewkeys() -> a set-like object providing a view on D's keys
viewvalues(...)
D.viewvalues() -> an object providing a view on D's values

Data and other attributes inherited from __builtin__.dict:
__hash__ = None
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Profile(__builtin__.object)
    Object returned by create_profile() and get_profile(), with creation
date converted into a datetime.datetime() object.
 
  Methods defined here:
__init__(self, connection, **kwargs)
__repr__(self)
__str__(self)
add_role(self, role)
Add a Role to this Profile
 
Args:
    role (Role): Instance of Role object to attach to profile.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Role(__builtin__.object)
    Object returned by create_role() and get_role(), with creation
date converted into a datetime.datetime() object.
 
  Methods defined here:
__init__(self, connection, **kwargs)
__repr__(self)
__str__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Statement(__builtin__.dict)
    Container assembling principals, condtions, actions and resources.
 
**kwargs:
    sid (str): Statement ID (optional)
    effect (str): Effect- Allow/Deny (optional)
    principal (str): instance of Principal object (optional)
    actions (list): one or more actions
    resources (list): one or more resource ARNs
 
 
Method resolution order:
Statement
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, **kwargs)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.dict:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__contains__(...)
D.__contains__(k) -> True if D has a key k, else False
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__gt__(...)
x.__gt__(y) <==> x>y
__iter__(...)
x.__iter__() <==> iter(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__ne__(...)
x.__ne__(y) <==> x!=y
__repr__(...)
x.__repr__() <==> repr(x)
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__sizeof__(...)
D.__sizeof__() -> size of D in memory, in bytes
clear(...)
D.clear() -> None.  Remove all items from D.
copy(...)
D.copy() -> a shallow copy of D
fromkeys(...)
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
get(...)
D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.
has_key(...)
D.has_key(k) -> True if D has a key k, else False
items(...)
D.items() -> list of D's (key, value) pairs, as 2-tuples
iteritems(...)
D.iteritems() -> an iterator over the (key, value) items of D
iterkeys(...)
D.iterkeys() -> an iterator over the keys of D
itervalues(...)
D.itervalues() -> an iterator over the values of D
keys(...)
D.keys() -> list of D's keys
pop(...)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
popitem(...)
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
setdefault(...)
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
update(...)
D.update([E, ]**F) -> None.  Update D from dict/iterable E and F.
If E present and has a .keys() method, does:     for k in E: D[k] = E[k]
If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
values(...)
D.values() -> list of D's values
viewitems(...)
D.viewitems() -> a set-like object providing a view on D's items
viewkeys(...)
D.viewkeys() -> a set-like object providing a view on D's keys
viewvalues(...)
D.viewvalues() -> an object providing a view on D's values

Data and other attributes inherited from __builtin__.dict:
__hash__ = None
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
Functions
       
connect(**kwargs)
Create veep.IAM connection object
 
Returns:
    instance of veep.IAM.IAMConnection
connect_to_region(region, **kwargs)
Create veep.IAM connection object
 
Returns:
    instance of veep.IAM.IAMConnection