Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID

:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key

:rtype: :class:`boto.sts.STSConnection`
:return: A connection to Amazon's STS

        def connect_sts(aws_access_key_id=None, aws_secret_access_key=None, **kwargs):
    """
    :type aws_access_key_id: string
    :param aws_access_key_id: Your AWS Access Key ID

    :type aws_secret_access_key: string
    :param aws_secret_access_key: Your AWS Secret Access Key

    :rtype: :class:`boto.sts.STSConnection`
    :return: A connection to Amazon's STS
    """
    from boto.sts import STSConnection
    return STSConnection(aws_access_key_id, aws_secret_access_key, **kwargs)
        


src/b/o/botornado-0.0.3/boto/dynamodb/layer1.py   botornado(Download)
    def _get_session_token(self):
        boto.log.debug('Creating new Session Token')
        sts = boto.connect_sts(self._passed_access_key,
                               self._passed_secret_key)
        return sts.get_session_token()

src/b/o/botornado-HEAD/boto/dynamodb/layer1.py   botornado(Download)
    def _get_session_token(self):
        boto.log.debug('Creating new Session Token')
        sts = boto.connect_sts(self._passed_access_key,
                               self._passed_secret_key)
        return sts.get_session_token()

src/s/t/storyboard-HEAD/boto/dynamodb/layer1.py   storyboard(Download)
    def _get_session_token(self):
        boto.log.debug('Creating new Session Token')
        sts = boto.connect_sts(self._passed_access_key,
                               self._passed_secret_key)
        return sts.get_session_token()

src/m/o/moto-HEAD/tests/test_sts/test_sts.py   moto(Download)
def test_get_session_token():
    conn = boto.connect_sts()
    token = conn.get_session_token(duration=123)
 
    token.expiration.should.equal('2012-01-01T12:02:03Z')
def test_get_federation_token():
    conn = boto.connect_sts()
    token = conn.get_federation_token(duration=123, name="Bob")
 
    token.credentials.expiration.should.equal('2012-01-01T12:02:03Z')
def test_assume_role():
    conn = boto.connect_sts()
 
    policy = json.dumps({
        "Statement": [

src/e/u/eutester-HEAD/eucaops/stsops.py   eutester(Download)
                                    'region' : sts_region}
            self.debug("Attempting to create STS connection to " + sts_region.endpoint + ':' + str(port) + path)
            self.tokens = boto.connect_sts(**sts_connection_args)
        except Exception, e:
            self.critical("Was unable to create STS connection because of exception: " + str(e))

src/e/u/eutester-0.0.9/eucaops/stsops.py   eutester(Download)
                                    'region' : sts_region}
            self.debug("Attempting to create STS connection to " + self.get_ec2_ip() + ':' + str(port) + path)
            self.tokens = boto.connect_sts(**sts_connection_args)
        except Exception, e:
            self.critical("Was unable to create STS connection because of exception: " + str(e))