Module Expr Str ImportFrom alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str NameLoad Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Str Assign NameStore Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list
N/A N/A 
.. module: security_monkey.common.sts_connect
    :platform: Unix

.. version:: $$VERSION$$
.. moduleauthor:: Patrick Kelley <pkelley@netflix.com> @monkeysecurity

 security_monkey.datastore Account N/A botocore.session N/A boto3 N/A boto connect N/A N/A account_name connection_type N/A args N/A N/A 

    Examples of use:
    ec2 = sts_connect.connect(environment, 'ec2', region=region, validate_certs=False)
    ec2 = sts_connect.connect(environment, 'ec2', validate_certs=False, debug=1000)
    ec2 = sts_connect.connect(environment, 'ec2')
    where environment is ( test, prod, dev )
    s3  = sts_connect.connect(environment, 's3')
    ses = sts_connect.connect(environment, 'ses')

    :param account: Account to connect with (i.e. test, prod, dev)

    :raises Exception: RDS Region not valid
                       AWS Tech not supported.

    :returns: STS Connection Object for given tech

    :note: To use this method a SecurityMonkey role must be created
            in the target account with full read only privileges.
     N/A account N/A N/A N/A N/A N/A Account query filter N/A N/A Account name account_name first N/A sts N/A N/A boto connect_sts N/A role_name SecurityMonkey N/A N/A N/A account role_name N/A N/A account role_name N/A N/A role_name N/A account role_name N/A role N/A N/A sts assume_role N/A N/A N/A arn:aws:iam:: N/A account number :role/ role_name secmonkey N/A N/A connection_type botocore N/A N/A botocore_session N/A N/A N/A botocore session get_session N/A N/A N/A botocore_session set_credentials N/A N/A role credentials access_key N/A N/A role credentials secret_key token N/A N/A role credentials session_token N/A botocore_session N/A N/A connection_type iam_boto3 N/A N/A session N/A N/A boto3 Session aws_access_key_id N/A N/A role credentials access_key aws_secret_access_key N/A N/A role credentials secret_key aws_session_token N/A N/A role credentials session_token N/A N/A N/A session resource iam N/A region us-east-1 N/A N/A N/A args has_key region N/A N/A region N/A N/A args pop region N/A N/A hasattr region name N/A N/A region N/A region name N/A N/A connection_type es N/A N/A session N/A N/A boto3 Session aws_access_key_id N/A N/A role credentials access_key aws_secret_access_key N/A N/A role credentials secret_key aws_session_token N/A N/A role credentials session_token region_name region N/A N/A N/A session client es N/A module N/A __import__ N/A N/A boto.{} format connection_type N/A subm N/A N/A connection_type split . N/A N/A module N/A getattr module subm N/A N/A N/A module connect_to_region region aws_access_key_id N/A N/A role credentials access_key aws_secret_access_key N/A N/A role credentials secret_key security_token N/A N/A role credentials session_token N/A