├── tests
├── fps
│ ├── __init__.py
│ └── test_verify_signature.py
├── mturk
│ ├── __init__.py
│ ├── .gitignore
│ ├── support.py
│ ├── run-doctest.py
│ ├── test_disable_hit.py
│ ├── mocks.py
│ ├── search_hits.doctest
│ ├── create_hit_test.py
│ ├── all_tests.py
│ ├── hit_persistence.py
│ ├── create_hit_with_qualifications.py
│ ├── _init_environment.py
│ └── create_hit_external.py
├── devpay
│ └── __init__.py
├── unit
│ ├── auth
│ │ └── __init__.py
│ ├── ec2
│ │ ├── __init__.py
│ │ ├── elb
│ │ │ └── __init__.py
│ │ ├── autoscale
│ │ │ └── __init__.py
│ │ └── cloudwatch
│ │ │ └── __init__.py
│ ├── ecs
│ │ └── __init__.py
│ ├── iam
│ │ └── __init__.py
│ ├── logs
│ │ ├── __init__.py
│ │ └── test_layer1.py
│ ├── mturk
│ │ ├── __init__.py
│ │ └── test_connection.py
│ ├── mws
│ │ └── __init__.py
│ ├── rds
│ │ └── __init__.py
│ ├── rds2
│ │ └── __init__.py
│ ├── s3
│ │ └── __init__.py
│ ├── ses
│ │ └── __init__.py
│ ├── sns
│ │ └── __init__.py
│ ├── sqs
│ │ └── __init__.py
│ ├── sts
│ │ ├── __init__.py
│ │ └── test_credentials.py
│ ├── swf
│ │ ├── __init__.py
│ │ ├── test_layer2_base.py
│ │ └── test_layer1_decisions.py
│ ├── utils
│ │ └── __init__.py
│ ├── beanstalk
│ │ └── __init__.py
│ ├── cloudfront
│ │ ├── __init__.py
│ │ └── test_distribution.py
│ ├── cloudtrail
│ │ └── __init__.py
│ ├── dynamodb
│ │ └── __init__.py
│ ├── dynamodb2
│ │ └── __init__.py
│ ├── glacier
│ │ └── __init__.py
│ ├── kinesis
│ │ └── __init__.py
│ ├── manage
│ │ └── __init__.py
│ ├── provider
│ │ └── __init__.py
│ ├── route53
│ │ └── __init__.py
│ ├── cloudformation
│ │ └── __init__.py
│ ├── directconnect
│ │ └── __init__.py
│ ├── elasticache
│ │ ├── __init__.py
│ │ └── test_api_interface.py
│ ├── cloudsearch
│ │ ├── __init__.py
│ │ └── test_exceptions.py
│ ├── cloudsearchdomain
│ │ └── __init__.py
│ ├── vpc
│ │ └── __init__.py
│ ├── test_endpoints.json
│ ├── cloudsearch2
│ │ ├── __init__.py
│ │ └── test_exceptions.py
│ ├── kms
│ │ └── __init__.py
│ └── awslambda
│ │ └── __init__.py
├── integration
│ ├── gs
│ │ └── __init__.py
│ ├── mws
│ │ └── __init__.py
│ ├── ses
│ │ └── __init__.py
│ ├── swf
│ │ └── __init__.py
│ ├── ec2
│ │ ├── vpc
│ │ │ └── __init__.py
│ │ ├── __init__.py
│ │ ├── autoscale
│ │ │ └── __init__.py
│ │ ├── elb
│ │ │ └── __init__.py
│ │ └── cloudwatch
│ │ │ └── __init__.py
│ ├── kinesis
│ │ └── __init__.py
│ ├── logs
│ │ └── __init__.py
│ ├── opsworks
│ │ └── __init__.py
│ ├── redshift
│ │ ├── __init__.py
│ │ └── test_cert_verification.py
│ ├── support
│ │ ├── __init__.py
│ │ └── test_cert_verification.py
│ ├── cloudtrail
│ │ └── __init__.py
│ ├── datapipeline
│ │ └── __init__.py
│ ├── directconnect
│ │ └── __init__.py
│ ├── dynamodb2
│ │ └── __init__.py
│ ├── elasticache
│ │ └── __init__.py
│ ├── storage_uri
│ │ └── __init__.py
│ ├── elastictranscoder
│ │ └── __init__.py
│ ├── iam
│ │ └── __init__.py
│ ├── sts
│ │ └── __init__.py
│ ├── dynamodb
│ │ └── __init__.py
│ ├── emr
│ │ └── __init__.py
│ ├── s3
│ │ └── __init__.py
│ ├── sdb
│ │ └── __init__.py
│ ├── sns
│ │ └── __init__.py
│ ├── sqs
│ │ └── __init__.py
│ ├── awslambda
│ │ └── __init__.py
│ ├── cloudhsm
│ │ └── __init__.py
│ ├── codedeploy
│ │ └── __init__.py
│ ├── cognito
│ │ ├── sync
│ │ │ └── __init__.py
│ │ └── identity
│ │ │ └── __init__.py
│ ├── configservice
│ │ └── __init__.py
│ ├── route53
│ │ └── domains
│ │ │ └── __init__.py
│ ├── ec2containerservice
│ │ └── __init__.py
│ ├── glacier
│ │ └── __init__.py
│ ├── rds
│ │ └── __init__.py
│ ├── rds2
│ │ └── __init__.py
│ ├── cloudsearch
│ │ └── __init__.py
│ ├── cloudsearch2
│ │ └── __init__.py
│ └── cloudformation
│ │ └── __init__.py
└── __init__.py
├── boto
├── vendored
│ └── __init__.py
├── roboto
│ └── __init__.py
├── manage
│ ├── test_manage.py
│ └── __init__.py
├── cloudsearch2
│ └── exceptions.py
├── dynamodb2
│ └── types.py
├── swf
│ └── exceptions.py
├── gs
│ └── __init__.py
├── fps
│ └── __init__.py
├── mws
│ └── __init__.py
├── cacerts
│ └── __init__.py
├── sdb
│ ├── db
│ │ └── __init__.py
│ └── regioninfo.py
├── contrib
│ └── __init__.py
├── pyami
│ ├── __init__.py
│ ├── installers
│ │ └── ubuntu
│ │ │ └── __init__.py
│ ├── helloworld.py
│ └── scriptbase.py
├── mashups
│ └── __init__.py
├── mturk
│ └── __init__.py
├── beanstalk
│ └── wrapper.py
├── cognito
│ ├── __init__.py
│ └── identity
│ │ └── exceptions.py
├── services
│ └── __init__.py
├── cloudfront
│ └── exception.py
├── route53
│ └── exception.py
├── directconnect
│ └── exceptions.py
├── file
│ ├── __init__.py
│ ├── simpleresultset.py
│ └── connection.py
├── cloudsearchdomain
│ └── exceptions.py
├── ec2containerservice
│ └── exceptions.py
├── opsworks
│ └── exceptions.py
├── ec2
│ ├── cloudwatch
│ │ └── listelement.py
│ └── elb
│ │ └── listelement.py
├── cloudhsm
│ └── exceptions.py
├── awslambda
│ └── exceptions.py
├── rds
│ └── regioninfo.py
├── requestlog.py
├── datapipeline
│ └── exceptions.py
└── sqs
│ └── regioninfo.py
├── setup.cfg
├── requirements-py26.txt
├── docs
├── source
│ ├── boto_theme
│ │ └── theme.conf
│ ├── releasenotes
│ │ ├── v2.31.1.rst
│ │ ├── v2.2.1.rst
│ │ ├── v2.5.1.rst
│ │ ├── v2.1.1.rst
│ │ ├── v2.31.0.rst
│ │ ├── v2.5.2.rst
│ │ ├── v2.21.2.rst
│ │ ├── v2.9.2.rst
│ │ ├── dev.rst
│ │ ├── releasenotes_template.rst
│ │ ├── v2.35.1.rst
│ │ ├── v2.26.1.rst
│ │ ├── v2.20.1.rst
│ │ ├── v2.29.1.rst
│ │ ├── v2.13.3.rst
│ │ ├── v2.0b1.rst
│ │ ├── v2.35.2.rst
│ │ ├── v2.17.0.rst
│ │ ├── v2.21.1.rst
│ │ ├── v2.19.0.rst
│ │ ├── v2.22.1.rst
│ │ ├── v2.2.2.rst
│ │ ├── v2.34.0.rst
│ │ ├── v2.9.4.rst
│ │ ├── v2.22.0.rst
│ │ ├── v2.5.0.rst
│ │ ├── v2.8.0.rst
│ │ ├── v2.12.0.rst
│ │ ├── v2.9.5.rst
│ │ ├── v2.36.0.rst
│ │ ├── v2.9.8.rst
│ │ ├── v2.9.0.rst
│ │ ├── v2.3.0.rst
│ │ ├── v2.13.2.rst
│ │ ├── v2.4.0.rst
│ │ ├── v2.32.1.rst
│ │ ├── v2.9.7.rst
│ │ ├── v2.13.0.rst
│ │ └── v2.27.0.rst
│ ├── _templates
│ │ └── layout.html
│ ├── ref
│ │ ├── sns.rst
│ │ ├── ecs.rst
│ │ ├── fps.rst
│ │ ├── ses.rst
│ │ ├── contrib.rst
│ │ ├── elasticache.rst
│ │ ├── sts.rst
│ │ ├── kms.rst
│ │ ├── rds2.rst
│ │ ├── iam.rst
│ │ ├── kinesis.rst
│ │ ├── support.rst
│ │ ├── cloudhsm.rst
│ │ ├── logs.rst
│ │ ├── redshift.rst
│ │ ├── opsworks.rst
│ │ ├── awslamba.rst
│ │ ├── codedeploy.rst
│ │ ├── cloudtrail.rst
│ │ ├── beanstalk.rst
│ │ ├── configservice.rst
│ │ ├── cognito-sync.rst
│ │ ├── datapipeline.rst
│ │ ├── swf.rst
│ │ ├── emr.rst
│ │ ├── mws.rst
│ │ ├── route53domains.rst
│ │ ├── index.rst
│ │ ├── cognito-identity.rst
│ │ ├── cloudsearchdomain.rst
│ │ ├── elastictranscoder.rst
│ │ ├── file.rst
│ │ ├── ec2containerservice.rst
│ │ ├── cloudformation.rst
│ │ ├── cloudwatch.rst
│ │ ├── boto.rst
│ │ ├── rds.rst
│ │ ├── manage.rst
│ │ ├── sdb.rst
│ │ ├── mturk.rst
│ │ ├── route53.rst
│ │ ├── sqs.rst
│ │ ├── cloudsearch2.rst
│ │ ├── dynamodb.rst
│ │ ├── dynamodb2.rst
│ │ ├── glacier.rst
│ │ ├── services.rst
│ │ ├── cloudsearch.rst
│ │ ├── vpc.rst
│ │ ├── elb.rst
│ │ ├── sdb_db.rst
│ │ ├── cloudfront.rst
│ │ ├── gs.rst
│ │ └── autoscale.rst
│ └── conf.py
└── BotoCheatSheet.pdf
├── requirements-docs.txt
├── .gitignore
├── requirements.txt
├── MANIFEST.in
├── .travis.yml
├── LICENSE
├── tox.ini
├── bin
├── kill_instance
└── bundle_image
├── scripts
└── rebuild_endpoints.py
└── CONTRIBUTING
/tests/fps/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/mturk/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/boto/vendored/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/devpay/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/auth/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/ec2/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/ecs/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/iam/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/logs/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/mturk/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/mws/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/rds/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/rds2/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/s3/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/ses/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/sns/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/sqs/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/sts/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/swf/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/utils/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/boto/roboto/__init__.py:
--------------------------------------------------------------------------------
1 | #
2 |
--------------------------------------------------------------------------------
/tests/integration/gs/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/mws/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/ses/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/swf/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/beanstalk/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/cloudfront/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/cloudtrail/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/dynamodb/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/dynamodb2/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/ec2/elb/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/glacier/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/kinesis/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/manage/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/provider/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/route53/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/ec2/vpc/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/kinesis/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/logs/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/opsworks/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/redshift/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/support/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/mturk/.gitignore:
--------------------------------------------------------------------------------
1 | local.py
2 |
--------------------------------------------------------------------------------
/tests/unit/cloudformation/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/directconnect/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/ec2/autoscale/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/ec2/cloudwatch/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/elasticache/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/cloudtrail/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/datapipeline/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/directconnect/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/dynamodb2/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/elasticache/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/integration/storage_uri/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/unit/cloudsearch/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tests/unit/cloudsearchdomain/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/setup.cfg:
--------------------------------------------------------------------------------
1 | [bdist_wheel]
2 | universal = 1
3 |
--------------------------------------------------------------------------------
/tests/integration/elastictranscoder/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/requirements-py26.txt:
--------------------------------------------------------------------------------
1 | unittest2==0.5.1
2 | ordereddict==1.1
3 |
--------------------------------------------------------------------------------
/tests/unit/vpc/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | Test package for VPC
3 | """
4 |
--------------------------------------------------------------------------------
/docs/source/boto_theme/theme.conf:
--------------------------------------------------------------------------------
1 | [theme]
2 | inherit = basic
3 | stylesheet = boto.css
--------------------------------------------------------------------------------
/docs/BotoCheatSheet.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alex/boto/develop/docs/BotoCheatSheet.pdf
--------------------------------------------------------------------------------
/tests/unit/test_endpoints.json:
--------------------------------------------------------------------------------
1 | {
2 | "ec2": {
3 | "test-1": "ec2.test-1.amazonaws.com"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.31.1.rst:
--------------------------------------------------------------------------------
1 | boto v2.31.1
2 | ============
3 |
4 | :date: 2014/07/10
5 |
6 | This release fixes an installation bug in the 2.31.0 release.
7 |
--------------------------------------------------------------------------------
/requirements-docs.txt:
--------------------------------------------------------------------------------
1 | requests>=1.2.3,<=2.0.1
2 | rsa==3.1.4
3 | Sphinx>=1.1.3,<1.3
4 | simplejson==3.5.2
5 | argparse==1.2.1
6 | paramiko>=1.10.0
7 | PyYAML>=3.10
8 |
--------------------------------------------------------------------------------
/docs/source/_templates/layout.html:
--------------------------------------------------------------------------------
1 | {% extends '!layout.html' %}
2 |
3 | {% block sidebarsearch %}{{ super() }}
{% endblock %}
4 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.2.1.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.2.1
3 | ===========
4 |
5 | The 2.2.1 release fixes a packaging problem that was causing problems when
6 | installing via pip.
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.5.1.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.5.1
3 | ===========
4 |
5 | Release 2.5.1 is a bugfix release. It fixes the following critical issues:
6 | * :issue:`819`
7 |
--------------------------------------------------------------------------------
/tests/mturk/support.py:
--------------------------------------------------------------------------------
1 | import sys
2 |
3 | # use unittest2 under Python 2.6 and earlier.
4 | if sys.version_info >= (2, 7):
5 | import unittest
6 | else:
7 | import unittest2 as unittest
8 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.1.1.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.1.1
3 | ===========
4 |
5 | The 2.1.1 release fixes one serious issue with the RDS module.
6 |
7 | https://github.com/boto/boto/issues/382
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | .*.swp
3 | *.log
4 | *~
5 | boto.egg-info
6 | build/
7 | dist/
8 | MANIFEST
9 | .DS_Store
10 | .idea
11 | .tox
12 | .coverage
13 | *flymake.py
14 | venv
15 | venv-2.5
16 | env-2.5
17 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | nose==1.3.3
2 | requests>=1.2.3,<=2.0.1
3 | rsa==3.1.4
4 | simplejson==3.5.2
5 | argparse==1.2.1
6 | httpretty>=0.7.0
7 | paramiko>=1.10.0
8 | PyYAML>=3.10
9 | coverage==3.7.1
10 | mock==1.0.1
11 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.31.0.rst:
--------------------------------------------------------------------------------
1 | boto v2.31.0
2 | ============
3 |
4 | :date: 2014/07/10
5 |
6 | This release adds support for Amazon CloudWatch Logs.
7 |
8 |
9 | Changes
10 | -------
11 | * Add support for Amazon CloudWatch Logs. (:sha:`125c94d`)
12 |
--------------------------------------------------------------------------------
/docs/source/ref/sns.rst:
--------------------------------------------------------------------------------
1 | .. ref-sns
2 |
3 | ===
4 | SNS
5 | ===
6 |
7 | boto.sns
8 | --------
9 |
10 | .. automodule:: boto.sns
11 | :members:
12 | :undoc-members:
13 |
14 | .. autoclass:: boto.sns.SNSConnection
15 | :members:
16 | :undoc-members:
17 |
18 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.5.2.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.5.2
3 | ===========
4 |
5 | Release 2.5.2 is a bugfix release. It fixes the following critical issues:
6 | * :issue:`830`
7 |
8 | This issue only affects you if you are using DynamoDB on an EC2 instance with
9 | IAM Roles.
--------------------------------------------------------------------------------
/docs/source/ref/ecs.rst:
--------------------------------------------------------------------------------
1 | .. ref-ecs
2 |
3 | ===
4 | ECS
5 | ===
6 |
7 | boto.ecs
8 | --------
9 |
10 | .. automodule:: boto.ecs
11 | :members:
12 | :undoc-members:
13 |
14 | boto.ecs.item
15 | ----------------------------
16 |
17 | .. automodule:: boto.ecs.item
18 | :members:
19 | :undoc-members:
20 |
--------------------------------------------------------------------------------
/docs/source/ref/fps.rst:
--------------------------------------------------------------------------------
1 | .. ref-fps
2 |
3 | ===
4 | fps
5 | ===
6 |
7 | boto.fps
8 | --------
9 |
10 | .. automodule:: boto.fps
11 | :members:
12 | :undoc-members:
13 |
14 | boto.fps.connection
15 | -------------------
16 |
17 | .. automodule:: boto.fps.connection
18 | :members:
19 | :undoc-members:
20 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.21.2.rst:
--------------------------------------------------------------------------------
1 | boto v2.21.2
2 | ============
3 |
4 | :date: 2013/12/24
5 |
6 | This release is a bugfix release which corrects one more bug in the Mechanical
7 | Turk objects.
8 |
9 |
10 | Bugfixes
11 | --------
12 |
13 | * Fixed a missed inheritance bug in mturk. (:issue:`1936`, :sha:`0137f29`)
14 |
--------------------------------------------------------------------------------
/docs/source/ref/ses.rst:
--------------------------------------------------------------------------------
1 | .. ref-ses
2 |
3 | ===
4 | SES
5 | ===
6 |
7 |
8 | boto.ses
9 | ------------
10 |
11 | .. automodule:: boto.ses
12 | :members:
13 | :undoc-members:
14 |
15 | boto.ses.connection
16 | ---------------------
17 |
18 | .. automodule:: boto.ses.connection
19 | :members:
20 | :undoc-members:
21 |
22 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.9.2.rst:
--------------------------------------------------------------------------------
1 | boto v2.9.2
2 | ===========
3 |
4 | :date: 2013/04/30
5 |
6 | A hotfix release that adds the ``boto.support`` into ``setup.py``.
7 |
8 |
9 | Features
10 | --------
11 |
12 | * None.
13 |
14 |
15 | Bugfixes
16 | --------
17 |
18 | * Fixed the missing ``boto.support`` in ``setup.py``. (:sha:`9ac196`)
19 |
--------------------------------------------------------------------------------
/tests/mturk/run-doctest.py:
--------------------------------------------------------------------------------
1 | import argparse
2 | import doctest
3 |
4 | parser = argparse.ArgumentParser(
5 | description="Run a test by name"
6 | )
7 | parser.add_argument('test_name')
8 | args = parser.parse_args()
9 |
10 | doctest.testfile(
11 | args.test_name,
12 | optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
13 | )
14 |
--------------------------------------------------------------------------------
/docs/source/ref/contrib.rst:
--------------------------------------------------------------------------------
1 | .. ref-contrib
2 |
3 | =======
4 | contrib
5 | =======
6 |
7 | boto.contrib
8 | ------------
9 |
10 | .. automodule:: boto.contrib
11 | :members:
12 | :undoc-members:
13 |
14 | boto.contrib.ymlmessage
15 | -----------------------
16 |
17 | .. automodule:: boto.contrib.ymlmessage
18 | :members:
19 | :undoc-members:
--------------------------------------------------------------------------------
/docs/source/releasenotes/dev.rst:
--------------------------------------------------------------------------------
1 | boto v2.xx.x
2 | ============
3 |
4 | :date: 2013/xx/xx
5 |
6 | This release adds ____.
7 |
8 |
9 | Features
10 | --------
11 |
12 | * . (:issue:``, :sha:``)
13 |
14 |
15 | Bugfixes
16 | --------
17 |
18 | * (:issue:``, :sha:``)
19 | * Several documentation improvements/fixes:
20 |
21 | * (:issue:``, :sha:``)
22 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/releasenotes_template.rst:
--------------------------------------------------------------------------------
1 | boto v2.xx.x
2 | ============
3 |
4 | :date: 2013/xx/xx
5 |
6 | This release adds ____.
7 |
8 |
9 | Features
10 | --------
11 |
12 | * . (:issue:``, :sha:``)
13 |
14 |
15 | Bugfixes
16 | --------
17 |
18 | * (:issue:``, :sha:``)
19 | * Several documentation improvements/fixes:
20 |
21 | * (:issue:``, :sha:``)
22 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.35.1.rst:
--------------------------------------------------------------------------------
1 | boto v2.35.1
2 | ============
3 |
4 | :date: 2015/01/09
5 |
6 | This release fixes a regression which results in an infinite while loop of
7 | requests if you query an empty Amazon DynamoDB table.
8 |
9 |
10 | Changes
11 | -------
12 | * Check for results left after computing self._keys_left (:issue:`2871`, :sha:`d3c2595`)
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/mturk/test_disable_hit.py:
--------------------------------------------------------------------------------
1 | from tests.mturk.support import unittest
2 |
3 | from common import MTurkCommon
4 | from boto.mturk.connection import MTurkRequestError
5 |
6 | class TestDisableHITs(MTurkCommon):
7 | def test_disable_invalid_hit(self):
8 | self.assertRaises(MTurkRequestError, self.conn.disable_hit, 'foo')
9 |
10 | if __name__ == '__main__':
11 | unittest.main()
12 |
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include boto/cacerts/cacerts.txt
2 | include README.rst
3 | include boto/file/README
4 | include .gitignore
5 | include pylintrc
6 | include boto/endpoints.json
7 | include boto/pyami/copybot.cfg
8 | include boto/services/sonofmmm.cfg
9 | include boto/mturk/test/*.doctest
10 | include boto/mturk/test/.gitignore
11 | recursive-include tests *.json *.py *.txt
12 | recursive-include docs *
13 |
--------------------------------------------------------------------------------
/docs/source/ref/elasticache.rst:
--------------------------------------------------------------------------------
1 | .. ref-elasticache
2 |
3 | ==================
4 | Amazon ElastiCache
5 | ==================
6 |
7 | boto.elasticache
8 | ----------------
9 |
10 | .. automodule:: boto.elasticache
11 | :members:
12 | :undoc-members:
13 |
14 | boto.elasticache.layer1
15 | -----------------------
16 |
17 | .. automodule:: boto.elasticache.layer1
18 | :members:
19 | :undoc-members:
20 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.26.1.rst:
--------------------------------------------------------------------------------
1 | boto v2.26.1
2 | ============
3 |
4 | :date: 2014/03/03
5 |
6 | This release fixes an issue with the newly-added ``boto.rds2`` module when
7 | trying to use ``boto.connect_rds2``. Parameters were not being passed correctly,
8 | which would cause an immediate error.
9 |
10 |
11 | Changes
12 | -------
13 |
14 | * Fixed ``boto.connect_rds2`` to use kwargs. (:sha:`3828ece`)
15 |
--------------------------------------------------------------------------------
/docs/source/ref/sts.rst:
--------------------------------------------------------------------------------
1 | .. ref-sts
2 |
3 | ===
4 | STS
5 | ===
6 |
7 | boto.sts
8 | --------
9 |
10 | .. automodule:: boto.sts
11 | :members:
12 | :undoc-members:
13 |
14 | .. autoclass:: boto.sts.STSConnection
15 | :members:
16 | :undoc-members:
17 |
18 | boto.sts.credentials
19 | --------------------
20 |
21 | .. automodule:: boto.sts.credentials
22 | :members:
23 | :undoc-members:
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.20.1.rst:
--------------------------------------------------------------------------------
1 | boto v2.20.1
2 | ============
3 |
4 | :date: 2013/12/13
5 |
6 | This release fixes an important Amazon EC2 bug related to fetching security credentials via the meta-data service. It is recommended that users of boto-2.20.0 upgrade to boto-2.20.1.
7 |
8 |
9 | Bugfixes
10 | --------
11 | * Bug fix for IAM security credentials metadata URL. (:issue:`1912`, :issue:`1908`, :issue:`1907`, :sha:`f82e7a5`)
12 |
--------------------------------------------------------------------------------
/docs/source/ref/kms.rst:
--------------------------------------------------------------------------------
1 | .. ref-kms
2 |
3 | ===
4 | KMS
5 | ===
6 |
7 | boto.kms
8 | --------
9 |
10 | .. automodule:: boto.kms
11 | :members:
12 | :undoc-members:
13 |
14 | boto.kms.layer1
15 | ---------------
16 |
17 | .. automodule:: boto.kms.layer1
18 | :members:
19 | :undoc-members:
20 |
21 | boto.kms.exceptions
22 | -----------------------
23 |
24 | .. automodule:: boto.kms.exceptions
25 | :members:
26 | :undoc-members:
27 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.29.1.rst:
--------------------------------------------------------------------------------
1 | boto v2.29.1
2 | ============
3 |
4 | :date: 2014/05/30
5 |
6 | This release fixes a critical bug when the provider is not set to ``aws``, e.g. for Google Storage. It also fixes a problem with connection pooling in Amazon CloudSearch.
7 |
8 | Changes
9 | -------
10 | * Fix crash when provider is google. (:issue:`2302`, :sha:`33329d5888`)
11 | * Fix connection pooling issue with CloudSearch (:sha:`82e83be12a`)
12 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.13.3.rst:
--------------------------------------------------------------------------------
1 | boto v2.13.3
2 | ============
3 |
4 | :date: 2013/09/16
5 |
6 | This release fixes a packaging error with the previous version of boto.
7 | The version ``v2.13.2`` was provided instead of ``2.13.2``, causing things
8 | like ``pip`` to incorrectly resolve the latest release.
9 |
10 | That release was only available for several minutes & was removed from PyPI
11 | due to the way it would break installation for users.
12 |
--------------------------------------------------------------------------------
/docs/source/ref/rds2.rst:
--------------------------------------------------------------------------------
1 | .. ref-rds2
2 |
3 | ====
4 | RDS2
5 | ====
6 |
7 | boto.rds2
8 | ---------
9 |
10 | .. automodule:: boto.rds2
11 | :members:
12 | :undoc-members:
13 |
14 | boto.rds2.exceptions
15 | --------------------
16 |
17 | .. automodule:: boto.rds2.exceptions
18 | :members:
19 | :undoc-members:
20 |
21 | boto.rds2.layer1
22 | ----------------
23 |
24 | .. automodule:: boto.rds2.layer1
25 | :members:
26 | :undoc-members:
27 |
--------------------------------------------------------------------------------
/docs/source/ref/iam.rst:
--------------------------------------------------------------------------------
1 | .. ref-iam
2 |
3 | ===
4 | IAM
5 | ===
6 |
7 | boto.iam
8 | --------
9 |
10 | .. automodule:: boto.iam
11 | :members:
12 | :undoc-members:
13 |
14 | boto.iam.connection
15 | -------------------
16 |
17 | .. automodule:: boto.iam.connection
18 | :members:
19 | :undoc-members:
20 |
21 | boto.iam.summarymap
22 | -------------------
23 |
24 | .. automodule:: boto.iam.summarymap
25 | :members:
26 | :undoc-members:
27 |
28 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: python
2 | python:
3 | - "2.6"
4 | - "2.7"
5 | - "3.3"
6 | - "3.4"
7 | - "pypy"
8 | before_install:
9 | - sudo apt-get update
10 | - sudo apt-get --reinstall install -qq language-pack-en language-pack-de
11 | - sudo apt-get install swig
12 | install:
13 | - if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then travis_retry pip install -r requirements-py26.txt; fi
14 | - travis_retry pip install -r requirements.txt
15 | script: python tests/test.py default
16 |
--------------------------------------------------------------------------------
/tests/mturk/mocks.py:
--------------------------------------------------------------------------------
1 | from boto.mturk.connection import MTurkConnection as RealMTurkConnection
2 |
3 | class MTurkConnection(RealMTurkConnection):
4 | """
5 | Mock MTurkConnection that doesn't connect, but instead just prepares
6 | the request and captures information about its usage.
7 | """
8 |
9 | def _process_request(self, *args, **kwargs):
10 | saved_args = self.__dict__.setdefault('_mock_saved_args', dict())
11 | saved_args['_process_request'] = (args, kwargs)
12 |
--------------------------------------------------------------------------------
/tests/mturk/search_hits.doctest:
--------------------------------------------------------------------------------
1 | >>> from _init_environment import MTurkConnection, mturk_host
2 | >>> conn = MTurkConnection(host=mturk_host)
3 |
4 | # should have some HIT's returned by a search (but only if your account has existing HIT's)
5 | >>> search_rs = conn.search_hits()
6 |
7 | # this is a valid request
8 | >>> search_rs.status
9 | True
10 |
11 | >>> len(search_rs) > 1
12 | True
13 |
14 | >>> search_rs # doctest: +ELLIPSIS
15 | [` (Maintained, but little documentation)
11 |
12 | boto.sdb
13 | --------
14 |
15 | .. automodule:: boto.sdb
16 | :members:
17 | :undoc-members:
18 |
19 | boto.sdb.connection
20 | -------------------
21 |
22 | .. automodule:: boto.sdb.connection
23 | :members:
24 | :undoc-members:
25 |
26 | boto.sdb.domain
27 | ---------------
28 |
29 | .. automodule:: boto.sdb.domain
30 | :members:
31 | :undoc-members:
32 |
33 | boto.sdb.item
34 | -------------
35 |
36 | .. automodule:: boto.sdb.item
37 | :members:
38 | :undoc-members:
39 |
40 | boto.sdb.queryresultset
41 | -----------------------
42 |
43 | .. automodule:: boto.sdb.queryresultset
44 | :members:
45 | :undoc-members:
46 |
--------------------------------------------------------------------------------
/boto/manage/test_manage.py:
--------------------------------------------------------------------------------
1 | from boto.manage.server import Server
2 | from boto.manage.volume import Volume
3 | import time
4 |
5 | print('--> Creating New Volume')
6 | volume = Volume.create()
7 | print(volume)
8 |
9 | print('--> Creating New Server')
10 | server_list = Server.create()
11 | server = server_list[0]
12 | print(server)
13 |
14 | print('----> Waiting for Server to start up')
15 | while server.status != 'running':
16 | print('*')
17 | time.sleep(10)
18 | print('----> Server is running')
19 |
20 | print('--> Run "df -k" on Server')
21 | status = server.run('df -k')
22 | print(status[1])
23 |
24 | print('--> Now run volume.make_ready to make the volume ready to use on server')
25 | volume.make_ready(server)
26 |
27 | print('--> Run "df -k" on Server')
28 | status = server.run('df -k')
29 | print(status[1])
30 |
31 | print('--> Do an "ls -al" on the new filesystem')
32 | status = server.run('ls -al %s' % volume.mount_point)
33 | print(status[1])
34 |
35 |
--------------------------------------------------------------------------------
/tests/unit/mturk/test_connection.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | from tests.unit import AWSMockServiceTestCase
4 |
5 | from boto.mturk.connection import MTurkConnection
6 |
7 |
8 | GET_FILE_UPLOAD_URL = b"""
9 |
10 |
11 | True
12 |
13 | http://s3.amazonaws.com/myawsbucket/puppy.jpg
14 | """
15 |
16 |
17 | class TestMTurkConnection(AWSMockServiceTestCase):
18 | connection_class = MTurkConnection
19 |
20 | def setUp(self):
21 | super(TestMTurkConnection, self).setUp()
22 |
23 | def test_get_file_upload_url_success(self):
24 | self.set_http_response(status_code=200, body=GET_FILE_UPLOAD_URL)
25 | rset = self.service_connection.get_file_upload_url('aid', 'qid')
26 | self.assertEquals(len(rset), 1)
27 | self.assertEquals(rset[0].FileUploadURL,
28 | 'http://s3.amazonaws.com/myawsbucket/puppy.jpg')
29 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.9.4.rst:
--------------------------------------------------------------------------------
1 | boto v2.9.4
2 | ===========
3 |
4 | :date: 2013/05/20
5 |
6 | This release adds updated Elastic Transcoder support & fixes several bugs
7 | from recent releases & API updates.
8 |
9 |
10 | Features
11 | --------
12 |
13 | * Updated Elastic Transcoder support - It now supports HLS, WebM, MPEG2-TS & a
14 | host of `other features`_. (:sha:`89196a`)
15 |
16 | .. _`other features`: http://aws.typepad.com/aws/2013/05/new-features-for-the-amazon-elastic-transcoder.html
17 |
18 |
19 | Bugfixes
20 | --------
21 |
22 | * Fixed a bug in the canonicalization of URLs on Windows. (:sha:`09ef8c`)
23 | * Fixed glacier part size bug (:issue:`1478`, :sha:`9e04171`)
24 | * Fixed a bug in the bucket regex for S3 involving capital letters.
25 | (:sha:`950031`)
26 | * Fixed a bug where timestamps from Cloudformation would fail to be parsed.
27 | (:sha:`b40542`)
28 | * Several documentation improvements/fixes:
29 |
30 | * Added autodocs for many of the EC2 apis. (:sha:`79f939`)
31 |
--------------------------------------------------------------------------------
/tests/fps/test_verify_signature.py:
--------------------------------------------------------------------------------
1 | from boto.fps.connection import FPSConnection
2 |
3 | def test():
4 | conn = FPSConnection()
5 | # example response from the docs
6 | params = 'expiry=08%2F2015&signature=ynDukZ9%2FG77uSJVb5YM0cadwHVwYKPMKOO3PNvgADbv6VtymgBxeOWEhED6KGHsGSvSJnMWDN%2FZl639AkRe9Ry%2F7zmn9CmiM%2FZkp1XtshERGTqi2YL10GwQpaH17MQqOX3u1cW4LlyFoLy4celUFBPq1WM2ZJnaNZRJIEY%2FvpeVnCVK8VIPdY3HMxPAkNi5zeF2BbqH%2BL2vAWef6vfHkNcJPlOuOl6jP4E%2B58F24ni%2B9ek%2FQH18O4kw%2FUJ7ZfKwjCCI13%2BcFybpofcKqddq8CuUJj5Ii7Pdw1fje7ktzHeeNhF0r9siWcYmd4JaxTP3NmLJdHFRq2T%2FgsF3vK9m3gw%3D%3D&signatureVersion=2&signatureMethod=RSA-SHA1&certificateUrl=https%3A%2F%2Ffps.sandbox.amazonaws.com%2Fcerts%2F090909%2FPKICert.pem&tokenID=A5BB3HUNAZFJ5CRXIPH72LIODZUNAUZIVP7UB74QNFQDSQ9MN4HPIKISQZWPLJXF&status=SC&callerReference=callerReferenceMultiUse1'
7 | endpoint = 'http://vamsik.desktop.amazon.com:8080/ipn.jsp'
8 | conn.verify_signature(endpoint, params)
9 |
10 |
11 | if __name__ == '__main__':
12 | test()
13 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.22.0.rst:
--------------------------------------------------------------------------------
1 | boto v2.22.0
2 | ============
3 |
4 | :date: 2014/01/02
5 |
6 | This release updates the Auto Scaling to support the latest API, the ability
7 | to control the response sizes in Amazon DynamoDB queries/scans & a number of
8 | bugfixes as well.
9 |
10 |
11 | Features
12 | --------
13 |
14 | * Updated Auto Scaling to support the latest API. (:sha:`9984c4f`)
15 | * Added the ability to alter response sizes in DynamoDB queries/scans.
16 | (:issue:`1949`, :sha:`6761b01`)
17 |
18 |
19 | Bugfixes
20 | --------
21 |
22 | * Fix string instance tests. (:issue:`1959`, :sha:`ee203bf`)
23 | * Add missing parameters to ``get_spot_price_history method``. (:issue:`1958`,
24 | :sha:`f635474`)
25 | * Fix unicode string parameter handling in S3Connection. (:issue:`1954`,
26 | :issue:`1952`, :sha:`12e6b0c`)
27 | * Fix typo in docstring for SSHClient.run. (:issue:`1953`, :sha:`5263b20`)
28 | * Properly handle getopt long options in s3put. (:issue:`1950`, :issue:`1946`,
29 | :sha:`cf693ff`)
30 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.5.0.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.5.0
3 | ===========
4 |
5 | The 2.5.0 release of boto is now available on `PyPI`_.
6 |
7 | .. _`PyPI`: http://pypi.python.org/pypi/boto
8 |
9 | You can get a comprehensive list of all commits made between the 2.4.1 release
10 | and the 2.5.0 release at https://github.com/boto/boto/compare/2.4.1...2.5.0.
11 |
12 | This release includes:
13 |
14 | * Support for IAM Roles for EC2 Instances
15 | * Added support for Capabilities in CloudFormation
16 | * Spot instances in autoscaling groups
17 | * Internal ELB's
18 | * Added tenancy option to run_instances
19 |
20 | There were 77 commits in this release from 18 different authors. The authors
21 | are listed below, in no particular order:
22 |
23 | * jimbrowne
24 | * cosmin
25 | * gtaylor
26 | * garnaat
27 | * brianjaystanley
28 | * jamesls
29 | * trevorsummerssmith
30 | * Bryan Donlan
31 | * davidmarble
32 | * jtriley
33 | * rdodev
34 | * toby
35 | * tpodowd
36 | * srs81
37 | * mfschwartz
38 | * rdegges
39 | * gholms
40 |
--------------------------------------------------------------------------------
/tests/mturk/create_hit_with_qualifications.py:
--------------------------------------------------------------------------------
1 | from boto.mturk.connection import MTurkConnection
2 | from boto.mturk.question import ExternalQuestion
3 | from boto.mturk.qualification import Qualifications, PercentAssignmentsApprovedRequirement
4 |
5 | def test():
6 | q = ExternalQuestion(external_url="http://websort.net/s/F3481C", frame_height=800)
7 | conn = MTurkConnection(host='mechanicalturk.sandbox.amazonaws.com')
8 | keywords=['boto', 'test', 'doctest']
9 | qualifications = Qualifications()
10 | qualifications.add(PercentAssignmentsApprovedRequirement(comparator="GreaterThan", integer_value="95"))
11 | create_hit_rs = conn.create_hit(question=q, lifetime=60*65, max_assignments=2, title="Boto External Question Test", keywords=keywords, reward = 0.05, duration=60*6, approval_delay=60*60, annotation='An annotation from boto external question test', qualifications=qualifications)
12 | assert(create_hit_rs.status == True)
13 | print create_hit_rs.HITTypeId
14 |
15 | if __name__ == "__main__":
16 | test()
17 |
--------------------------------------------------------------------------------
/boto/cloudsearch2/exceptions.py:
--------------------------------------------------------------------------------
1 | """
2 | Exceptions that are specific to the cloudsearch2 module.
3 | """
4 | from boto.exception import BotoServerError
5 |
6 |
7 | class InvalidTypeException(BotoServerError):
8 | """
9 | Raised when an invalid record type is passed to CloudSearch.
10 | """
11 | pass
12 |
13 |
14 | class LimitExceededException(BotoServerError):
15 | """
16 | Raised when a limit has been exceeded.
17 | """
18 | pass
19 |
20 |
21 | class InternalException(BotoServerError):
22 | """
23 | A generic server-side error.
24 | """
25 | pass
26 |
27 |
28 | class DisabledOperationException(BotoServerError):
29 | """
30 | Raised when an operation has been disabled.
31 | """
32 | pass
33 |
34 |
35 | class ResourceNotFoundException(BotoServerError):
36 | """
37 | Raised when a requested resource does not exist.
38 | """
39 | pass
40 |
41 |
42 | class BaseException(BotoServerError):
43 | """
44 | A generic server-side error.
45 | """
46 | pass
47 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Permission is hereby granted, free of charge, to any person obtaining a
2 | copy of this software and associated documentation files (the
3 | "Software"), to deal in the Software without restriction, including
4 | without limitation the rights to use, copy, modify, merge, publish, dis-
5 | tribute, sublicense, and/or sell copies of the Software, and to permit
6 | persons to whom the Software is furnished to do so, subject to the fol-
7 | lowing conditions:
8 |
9 | The above copyright notice and this permission notice shall be included
10 | in all copies or substantial portions of the Software.
11 |
12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
13 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
14 | ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
15 | SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
16 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 | IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.8.0.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.8.0
3 | ===========
4 |
5 | The 2.8.0 release of boto is now available on `PyPI`_.
6 |
7 | .. _`PyPI`: http://pypi.python.org/pypi/boto
8 |
9 | You can get a comprehensive list of all commits made between the 2.7.0 release
10 | and the 2.8.0 release at https://github.com/boto/boto/compare/2.7.0...2.8.0.
11 |
12 | This release includes:
13 |
14 | * Added support for Amazon Elasticache
15 | * Added support for Amazon Elastic Transcoding Service
16 |
17 | As well as numerous bug fixes and improvements.
18 |
19 | Commits
20 | =======
21 |
22 | There were 115 commits in this release from 21 different authors. The authors
23 | are listed below, in alphabetical order:
24 |
25 | * conorbranagan
26 | * dkavanagh
27 | * gaige
28 | * garnaat
29 | * halfaleague
30 | * jamesls
31 | * jjhooper
32 | * jordansissel
33 | * jterrace
34 | * Kodiologist
35 | * kopertop
36 | * mfschwartz
37 | * nathan11g
38 | * pasc
39 | * phobologic
40 | * schworer
41 | * seandst
42 | * SirAlvarex
43 | * Yaniv Ovadia
44 | * yig
45 | * yovadia12
46 |
--------------------------------------------------------------------------------
/tests/mturk/_init_environment.py:
--------------------------------------------------------------------------------
1 | import os
2 | import functools
3 |
4 | live_connection = False
5 | mturk_host = 'mechanicalturk.sandbox.amazonaws.com'
6 | external_url = 'http://www.example.com/'
7 |
8 |
9 | SetHostMTurkConnection = None
10 |
11 | def config_environment():
12 | global SetHostMTurkConnection
13 | try:
14 | local = os.path.join(os.path.dirname(__file__), 'local.py')
15 | execfile(local)
16 | except:
17 | pass
18 |
19 | if live_connection:
20 | #TODO: you must set the auth credentials to something valid
21 | from boto.mturk.connection import MTurkConnection
22 | else:
23 | # Here the credentials must be set, but it doesn't matter what
24 | # they're set to.
25 | os.environ.setdefault('AWS_ACCESS_KEY_ID', 'foo')
26 | os.environ.setdefault('AWS_SECRET_ACCESS_KEY', 'bar')
27 | from mocks import MTurkConnection
28 | SetHostMTurkConnection = functools.partial(MTurkConnection, host=mturk_host)
29 |
--------------------------------------------------------------------------------
/tests/mturk/create_hit_external.py:
--------------------------------------------------------------------------------
1 | import unittest
2 | import uuid
3 | import datetime
4 | from boto.mturk.question import ExternalQuestion
5 |
6 | from _init_environment import SetHostMTurkConnection, external_url, \
7 | config_environment
8 |
9 | class Test(unittest.TestCase):
10 | def setUp(self):
11 | config_environment()
12 |
13 | def test_create_hit_external(self):
14 | q = ExternalQuestion(external_url=external_url, frame_height=800)
15 | conn = SetHostMTurkConnection()
16 | keywords=['boto', 'test', 'doctest']
17 | create_hit_rs = conn.create_hit(question=q, lifetime=60*65, max_assignments=2, title="Boto External Question Test", keywords=keywords, reward = 0.05, duration=60*6, approval_delay=60*60, annotation='An annotation from boto external question test', response_groups=['Minimal', 'HITDetail', 'HITQuestion', 'HITAssignmentSummary',])
18 | assert(create_hit_rs.status == True)
19 |
20 | if __name__ == "__main__":
21 | unittest.main()
22 |
--------------------------------------------------------------------------------
/tox.ini:
--------------------------------------------------------------------------------
1 | [tox]
2 | envlist = py26,py27,py33,py34,pypy
3 |
4 | # Comment to build sdist and install into virtualenv
5 | # This is helpful to test installation but takes extra time
6 | skipsdist = True
7 |
8 | [testenv:py26]
9 | # Python 2.6 requires two extra test dependencies
10 | deps =
11 | unittest2
12 | ordereddict
13 | -rrequirements.txt
14 | # Some tests expect specific ordering, so we set the hash
15 | # seed for Python 2.x until all tests are updated for Python 3.
16 | # Hash seed affects ordering of certain objects like dict keys
17 | # Set it to a constant so that tests are consistent across
18 | # runs and versions of Python.
19 | setenv =
20 | PYTHONHASHSEED = 0
21 |
22 | [testenv:py27]
23 | deps =
24 | -rrequirements.txt
25 | # See comment above in py26 about hash seed.
26 | setenv =
27 | PYTHONHASHSEED = 0
28 |
29 | [testenv:pypy]
30 | # See comment above in py26 about hash seed.
31 | setenv =
32 | PYTHONHASHSEED = 0
33 |
34 | [testenv]
35 | deps = -rrequirements.txt
36 | commands =
37 | python tests/test.py {posargs:default}
38 |
--------------------------------------------------------------------------------
/bin/kill_instance:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | import sys
4 | from optparse import OptionParser
5 |
6 | import boto
7 | from boto.ec2 import regions
8 |
9 |
10 |
11 | def kill_instance(region, ids):
12 | """Kill an instances given it's instance IDs"""
13 | # Connect the region
14 | ec2 = boto.connect_ec2(region=region)
15 | for instance_id in ids:
16 | print("Stopping instance: %s" % instance_id)
17 | ec2.terminate_instances([instance_id])
18 |
19 |
20 | if __name__ == "__main__":
21 | parser = OptionParser(usage="kill_instance [-r] id [id ...]")
22 | parser.add_option("-r", "--region", help="Region (default us-east-1)", dest="region", default="us-east-1")
23 | (options, args) = parser.parse_args()
24 | if not args:
25 | parser.print_help()
26 | sys.exit(1)
27 | for r in regions():
28 | if r.name == options.region:
29 | region = r
30 | break
31 | else:
32 | print("Region %s not found." % options.region)
33 | sys.exit(1)
34 |
35 | kill_instance(region, args)
36 |
--------------------------------------------------------------------------------
/docs/source/ref/mturk.rst:
--------------------------------------------------------------------------------
1 | .. ref-mturk
2 |
3 | =====
4 | mturk
5 | =====
6 |
7 | boto.mturk
8 | ------------
9 |
10 | .. automodule:: boto.mturk
11 | :members:
12 | :undoc-members:
13 |
14 | boto.mturk.connection
15 | ---------------------
16 |
17 | .. automodule:: boto.mturk.connection
18 | :members:
19 | :undoc-members:
20 |
21 | boto.mturk.layoutparam
22 | ----------------------
23 |
24 | .. automodule:: boto.mturk.layoutparam
25 | :members:
26 | :undoc-members:
27 |
28 | boto.mturk.notification
29 | -----------------------
30 |
31 | .. automodule:: boto.mturk.notification
32 | :members:
33 | :undoc-members:
34 |
35 | boto.mturk.price
36 | ----------------
37 |
38 | .. automodule:: boto.mturk.price
39 | :members:
40 | :undoc-members:
41 |
42 | boto.mturk.qualification
43 | ------------------------
44 |
45 | .. automodule:: boto.mturk.qualification
46 | :members:
47 | :undoc-members:
48 |
49 | boto.mturk.question
50 | -------------------
51 |
52 | .. automodule:: boto.mturk.question
53 | :members:
54 | :undoc-members:
55 |
--------------------------------------------------------------------------------
/docs/source/conf.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | import os
4 | import boto
5 | import sys
6 |
7 | sys.path.append(os.path.join(os.path.dirname(__file__), 'extensions'))
8 |
9 | extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
10 | 'githublinks']
11 | autoclass_content = "both"
12 | templates_path = ['_templates']
13 | source_suffix = '.rst'
14 | master_doc = 'index'
15 | project = u'boto'
16 | copyright = u'2009,2010, Mitch Garnaat'
17 | version = boto.__version__
18 | exclude_trees = []
19 | pygments_style = 'sphinx'
20 | html_theme = 'boto_theme'
21 | html_theme_path = ["."]
22 | html_static_path = ['_static']
23 | htmlhelp_basename = 'botodoc'
24 | latex_documents = [
25 | ('index', 'boto.tex', u'boto Documentation',
26 | u'Mitch Garnaat', 'manual'),
27 | ]
28 | intersphinx_mapping = {'http://docs.python.org/': None}
29 | github_project_url = 'https://github.com/boto/boto/'
30 |
31 | try:
32 | release = os.environ.get('SVN_REVISION', 'HEAD')
33 | print release
34 | except Exception, e:
35 | print e
36 |
37 | html_title = "boto v%s" % version
38 |
--------------------------------------------------------------------------------
/docs/source/ref/route53.rst:
--------------------------------------------------------------------------------
1 | .. ref-route53
2 |
3 | =======
4 | route53
5 | =======
6 |
7 |
8 | boto.route53.connection
9 | -----------------------
10 |
11 | .. automodule:: boto.route53.connection
12 | :members:
13 | :undoc-members:
14 |
15 | boto.route53.exception
16 | ----------------------
17 |
18 | .. automodule:: boto.route53.exception
19 | :members:
20 | :undoc-members:
21 |
22 | boto.route53.healthcheck
23 | ------------------------
24 |
25 | .. automodule:: boto.route53.healthcheck
26 | :members:
27 | :undoc-members:
28 |
29 | boto.route53.hostedzone
30 | -----------------------
31 |
32 | .. automodule:: boto.route53.hostedzone
33 | :members:
34 | :undoc-members:
35 |
36 | boto.route53.record
37 | -------------------
38 |
39 | .. automodule:: boto.route53.record
40 | :members:
41 | :undoc-members:
42 |
43 | boto.route53.status
44 | -------------------
45 |
46 | .. automodule:: boto.route53.status
47 | :members:
48 | :undoc-members:
49 |
50 | boto.route53.zone
51 | -----------------
52 |
53 | .. automodule:: boto.route53.zone
54 | :members:
55 | :undoc-members:
56 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.12.0.rst:
--------------------------------------------------------------------------------
1 | boto v2.12.0
2 | ============
3 |
4 | :date: 2013/09/04
5 |
6 | This release adds support for Redis & replication groups to Elasticache as
7 | well as several bug fixes.
8 |
9 |
10 | Features
11 | --------
12 |
13 | * Added support for Redis & replication groups to Elasticache. (:sha:`f744ff6`)
14 |
15 |
16 | Bugfixes
17 | --------
18 |
19 | * Boto's User-Agent string has changed. Mostly additive to include more
20 | information. (:sha:`edb038a`)
21 | * Headers that are part of S3's signing are now correctly coerced to the proper
22 | case. (:issue:`1687`, :sha:`89eae8c`)
23 | * Altered S3 so that it's possible to track what portions of a multipart upload
24 | succeeded. (:issue:`1305`, :issue:`1675`, :sha:`e9a2c59`)
25 | * Added ``create_lb_policy`` & ``set_lb_policies_of_backend_server`` to ELB.
26 | (:issue:`1695`, :sha:`77a9458`)
27 | * Fixed pagination when listing vaults in Glacier. (:issue:`1699`,
28 | :sha:`9afecca`)
29 | * Several documentation improvements/fixes:
30 |
31 | * Added some docs about what command-line utilities ship with boto.
32 | (:sha:`5d7d54d`)
33 |
--------------------------------------------------------------------------------
/boto/dynamodb2/types.py:
--------------------------------------------------------------------------------
1 | # Shadow the DynamoDB v1 bits.
2 | # This way, no end user should have to cross-import between versions & we
3 | # reserve the namespace to extend v2 if it's ever needed.
4 | from boto.dynamodb.types import NonBooleanDynamizer, Dynamizer
5 |
6 |
7 | # Some constants for our use.
8 | STRING = 'S'
9 | NUMBER = 'N'
10 | BINARY = 'B'
11 | STRING_SET = 'SS'
12 | NUMBER_SET = 'NS'
13 | BINARY_SET = 'BS'
14 | NULL = 'NULL'
15 | BOOLEAN = 'BOOL'
16 | MAP = 'M'
17 | LIST = 'L'
18 |
19 | QUERY_OPERATORS = {
20 | 'eq': 'EQ',
21 | 'lte': 'LE',
22 | 'lt': 'LT',
23 | 'gte': 'GE',
24 | 'gt': 'GT',
25 | 'beginswith': 'BEGINS_WITH',
26 | 'between': 'BETWEEN',
27 | }
28 |
29 | FILTER_OPERATORS = {
30 | 'eq': 'EQ',
31 | 'ne': 'NE',
32 | 'lte': 'LE',
33 | 'lt': 'LT',
34 | 'gte': 'GE',
35 | 'gt': 'GT',
36 | # FIXME: Is this necessary? i.e. ``whatever__null=False``
37 | 'nnull': 'NOT_NULL',
38 | 'null': 'NULL',
39 | 'contains': 'CONTAINS',
40 | 'ncontains': 'NOT_CONTAINS',
41 | 'beginswith': 'BEGINS_WITH',
42 | 'in': 'IN',
43 | 'between': 'BETWEEN',
44 | }
45 |
--------------------------------------------------------------------------------
/boto/swf/exceptions.py:
--------------------------------------------------------------------------------
1 | """
2 | Exceptions that are specific to the swf module.
3 |
4 | This module subclasses the base SWF response exception,
5 | boto.exceptions.SWFResponseError, for some of the SWF specific faults.
6 | """
7 | from boto.exception import SWFResponseError
8 |
9 |
10 | class SWFDomainAlreadyExistsError(SWFResponseError):
11 | """
12 | Raised when when the domain already exists.
13 | """
14 | pass
15 |
16 |
17 | class SWFLimitExceededError(SWFResponseError):
18 | """
19 | Raised when when a system imposed limitation has been reached.
20 | """
21 | pass
22 |
23 |
24 | class SWFOperationNotPermittedError(SWFResponseError):
25 | """
26 | Raised when (reserved for future use).
27 | """
28 |
29 |
30 | class SWFTypeAlreadyExistsError(SWFResponseError):
31 | """
32 | Raised when when the workflow type or activity type already exists.
33 | """
34 | pass
35 |
36 |
37 | class SWFWorkflowExecutionAlreadyStartedError(SWFResponseError):
38 | """
39 | Raised when an open execution with the same workflow_id is already running
40 | in the specified domain.
41 | """
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/boto/gs/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2010 Google Inc.
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
--------------------------------------------------------------------------------
/docs/source/ref/sqs.rst:
--------------------------------------------------------------------------------
1 | .. ref-sqs
2 |
3 | ====
4 | SQS
5 | ====
6 |
7 | boto.sqs
8 | --------
9 |
10 | .. automodule:: boto.sqs
11 | :members:
12 | :undoc-members:
13 |
14 | boto.sqs.attributes
15 | -------------------
16 |
17 | .. automodule:: boto.sqs.attributes
18 | :members:
19 | :undoc-members:
20 |
21 | boto.sqs.connection
22 | -------------------
23 |
24 | .. automodule:: boto.sqs.connection
25 | :members:
26 | :undoc-members:
27 |
28 | boto.sqs.jsonmessage
29 | --------------------
30 |
31 | .. automodule:: boto.sqs.jsonmessage
32 | :members:
33 | :undoc-members:
34 |
35 | boto.sqs.message
36 | ----------------
37 |
38 | .. automodule:: boto.sqs.message
39 | :members:
40 | :undoc-members:
41 |
42 | boto.sqs.queue
43 | --------------
44 |
45 | .. automodule:: boto.sqs.queue
46 | :members:
47 | :undoc-members:
48 |
49 | boto.sqs.regioninfo
50 | -------------------
51 |
52 | .. automodule:: boto.sqs.regioninfo
53 | :members:
54 | :undoc-members:
55 |
56 | boto.sqs.batchresults
57 | ---------------------
58 |
59 | .. automodule:: boto.sqs.batchresults
60 | :members:
61 | :undoc-members:
62 |
--------------------------------------------------------------------------------
/tests/unit/swf/test_layer2_base.py:
--------------------------------------------------------------------------------
1 | import boto.swf.layer2
2 | from boto.swf.layer2 import SWFBase
3 | from tests.unit import unittest
4 | from mock import Mock
5 |
6 |
7 | MOCK_DOMAIN = 'Mock'
8 | MOCK_ACCESS_KEY = 'inheritable access key'
9 | MOCK_SECRET_KEY = 'inheritable secret key'
10 | MOCK_REGION = 'Mock Region'
11 |
12 |
13 | class TestBase(unittest.TestCase):
14 | """
15 | Test for SWFBase.
16 | """
17 | def setUp(self):
18 | boto.swf.layer2.Layer1 = Mock()
19 | self.swf_base = SWFBase(
20 | domain=MOCK_DOMAIN, aws_access_key_id=MOCK_ACCESS_KEY,
21 | aws_secret_access_key=MOCK_SECRET_KEY, region=MOCK_REGION
22 | )
23 |
24 | def test_instantiation(self):
25 | self.assertEquals(MOCK_DOMAIN, self.swf_base.domain)
26 | self.assertEquals(MOCK_ACCESS_KEY, self.swf_base.aws_access_key_id)
27 | self.assertEquals(MOCK_SECRET_KEY,
28 | self.swf_base.aws_secret_access_key)
29 | self.assertEquals(MOCK_REGION, self.swf_base.region)
30 | boto.swf.layer2.Layer1.assert_called_with(
31 | MOCK_ACCESS_KEY, MOCK_SECRET_KEY, region=MOCK_REGION)
32 |
--------------------------------------------------------------------------------
/tests/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/boto/fps/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2008, Chris Moyer http://coredumped.org
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/boto/mws/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2008, Chris Moyer http://coredumped.org
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.9.5.rst:
--------------------------------------------------------------------------------
1 | boto v2.9.5
2 | ===========
3 |
4 | :date: 2013/05/28
5 |
6 | This release adds support for `web identity federation`_ within the Secure
7 | Token Service (STS) & fixes several bugs.
8 |
9 | .. _`web identity federation`: http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingWIF.html
10 |
11 | Features
12 | --------
13 |
14 | * Added support for web identity federation - You can now delegate token access
15 | via either an Oauth 2.0 or OpenID provider. (:sha:`9bd0a3`)
16 |
17 |
18 | Bugfixes
19 | --------
20 |
21 | * Altered the S3 key buffer to be a configurable value. (:issue:`1506`,
22 | :sha:`8e3e36`)
23 | * Added Sphinx extension for better release notes. (:issue:`1511`,
24 | :sha:`e2e32d` & :sha:`3d998b`)
25 | * Fixed a bug where DynamoDB v2 would only ever connect to the default endpoint.
26 | (:issue:`1508`, :sha:`139912`)
27 | * Fixed a iteration/empty results bug & a ``between`` bug in DynamoDB v2.
28 | (:issue:`1512`, :sha:`d109b6`)
29 | * Fixed an issue with ``EbsOptimized`` in EC2 Autoscale. (:issue:`1513`,
30 | :sha:`424c41`)
31 | * Fixed a missing instance variable bug in DynamoDB v2. (:issue:`1516`,
32 | :sha:`6fa8bf`)
33 |
--------------------------------------------------------------------------------
/boto/cacerts/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2010 Google Inc.
2 | # All rights reserved.
3 | #
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 | #
23 |
--------------------------------------------------------------------------------
/boto/sdb/db/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/iam/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/sts/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/boto/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/docs/source/ref/cloudsearch2.rst:
--------------------------------------------------------------------------------
1 | .. ref-cloudsearch2
2 |
3 | ===========
4 | Cloudsearch
5 | ===========
6 |
7 | boto.cloudsearch2
8 | -----------------
9 |
10 | .. automodule:: boto.cloudsearch2
11 | :members:
12 | :undoc-members:
13 |
14 | boto.cloudsearch2.domain
15 | ------------------------
16 |
17 | .. automodule:: boto.cloudsearch2.domain
18 | :members:
19 | :undoc-members:
20 |
21 | boto.cloudsearch2.layer1
22 | ------------------------
23 |
24 | .. automodule:: boto.cloudsearch2.layer1
25 | :members:
26 | :undoc-members:
27 |
28 | boto.cloudsearch2.layer2
29 | ------------------------
30 |
31 | .. automodule:: boto.cloudsearch2.layer2
32 | :members:
33 | :undoc-members:
34 |
35 | boto.cloudsearch2.optionstatus
36 | ------------------------------
37 |
38 | .. automodule:: boto.cloudsearch2.optionstatus
39 | :members:
40 | :undoc-members:
41 |
42 | boto.cloudsearch2.search
43 | ------------------------
44 |
45 | .. automodule:: boto.cloudsearch2.search
46 | :members:
47 | :undoc-members:
48 |
49 | boto.cloudsearch2.document
50 | --------------------------
51 |
52 | .. automodule:: boto.cloudsearch2.document
53 | :members:
54 | :undoc-members:
55 |
--------------------------------------------------------------------------------
/tests/integration/dynamodb/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/ec2/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/emr/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/s3/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/sdb/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/sns/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/sqs/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/boto/pyami/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
--------------------------------------------------------------------------------
/tests/integration/ec2/autoscale/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2011 Reza Lotun http://reza.lotun.name
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/tests/integration/ec2/elb/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/boto/manage/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
24 |
--------------------------------------------------------------------------------
/boto/mashups/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
24 |
--------------------------------------------------------------------------------
/boto/mturk/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
24 |
--------------------------------------------------------------------------------
/docs/source/ref/dynamodb.rst:
--------------------------------------------------------------------------------
1 | .. ref-dynamodb
2 |
3 | ========
4 | DynamoDB
5 | ========
6 |
7 | boto.dynamodb
8 | -------------
9 |
10 | .. automodule:: boto.dynamodb
11 | :members:
12 | :undoc-members:
13 |
14 | boto.dynamodb.layer1
15 | --------------------
16 |
17 | .. automodule:: boto.dynamodb.layer1
18 | :members:
19 | :undoc-members:
20 |
21 | boto.dynamodb.layer2
22 | --------------------
23 |
24 | .. automodule:: boto.dynamodb.layer2
25 | :members:
26 | :undoc-members:
27 |
28 | boto.dynamodb.table
29 | -------------------
30 |
31 | .. automodule:: boto.dynamodb.table
32 | :members:
33 | :undoc-members:
34 |
35 | boto.dynamodb.schema
36 | --------------------
37 |
38 | .. automodule:: boto.dynamodb.schema
39 | :members:
40 | :undoc-members:
41 |
42 | boto.dynamodb.item
43 | ------------------
44 |
45 | .. automodule:: boto.dynamodb.item
46 | :members:
47 | :undoc-members:
48 |
49 | boto.dynamodb.batch
50 | -------------------
51 |
52 | .. automodule:: boto.dynamodb.batch
53 | :members:
54 | :undoc-members:
55 |
56 | boto.dynamodb.types
57 | -------------------
58 |
59 | .. automodule:: boto.dynamodb.types
60 | :members:
61 | :undoc-members:
62 |
--------------------------------------------------------------------------------
/docs/source/ref/dynamodb2.rst:
--------------------------------------------------------------------------------
1 | .. ref-dynamodb2
2 |
3 | =========
4 | DynamoDB2
5 | =========
6 |
7 | High-Level API
8 | ==============
9 |
10 | boto.dynamodb2.fields
11 | ---------------------
12 |
13 | .. automodule:: boto.dynamodb2.fields
14 | :members:
15 | :undoc-members:
16 |
17 | boto.dynamodb2.items
18 | --------------------
19 |
20 | .. automodule:: boto.dynamodb2.items
21 | :members:
22 | :undoc-members:
23 |
24 | boto.dynamodb2.results
25 | ----------------------
26 |
27 | .. automodule:: boto.dynamodb2.results
28 | :members:
29 | :undoc-members:
30 |
31 | boto.dynamodb2.table
32 | --------------------
33 |
34 | .. automodule:: boto.dynamodb2.table
35 | :members:
36 | :undoc-members:
37 |
38 |
39 | Low-Level API
40 | =============
41 |
42 | boto.dynamodb2
43 | --------------
44 |
45 | .. automodule:: boto.dynamodb2
46 | :members:
47 | :undoc-members:
48 |
49 | boto.dynamodb2.layer1
50 | ---------------------
51 |
52 | .. automodule:: boto.dynamodb2.layer1
53 | :members:
54 | :undoc-members:
55 |
56 | boto.dynamodb2.exceptions
57 | -------------------------
58 |
59 | .. automodule:: boto.dynamodb2.exceptions
60 | :members:
61 | :undoc-members:
62 |
--------------------------------------------------------------------------------
/tests/integration/ec2/cloudwatch/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/boto/beanstalk/wrapper.py:
--------------------------------------------------------------------------------
1 | """Wraps layer1 api methods and converts layer1 dict responses to objects."""
2 | from boto.beanstalk.layer1 import Layer1
3 | import boto.beanstalk.response
4 | from boto.exception import BotoServerError
5 | import boto.beanstalk.exception as exception
6 |
7 |
8 | def beanstalk_wrapper(func, name):
9 | def _wrapped_low_level_api(*args, **kwargs):
10 | try:
11 | response = func(*args, **kwargs)
12 | except BotoServerError as e:
13 | raise exception.simple(e)
14 | # Turn 'this_is_a_function_name' into 'ThisIsAFunctionNameResponse'.
15 | cls_name = ''.join([part.capitalize() for part in name.split('_')]) + 'Response'
16 | cls = getattr(boto.beanstalk.response, cls_name)
17 | return cls(response)
18 | return _wrapped_low_level_api
19 |
20 |
21 | class Layer1Wrapper(object):
22 | def __init__(self, *args, **kwargs):
23 | self.api = Layer1(*args, **kwargs)
24 |
25 | def __getattr__(self, name):
26 | try:
27 | return beanstalk_wrapper(getattr(self.api, name), name)
28 | except AttributeError:
29 | raise AttributeError("%s has no attribute %r" % (self, name))
30 |
--------------------------------------------------------------------------------
/boto/cognito/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/boto/services/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
24 |
--------------------------------------------------------------------------------
/docs/source/ref/glacier.rst:
--------------------------------------------------------------------------------
1 | .. ref-glacier
2 |
3 | =======
4 | Glacier
5 | =======
6 |
7 | boto.glacier
8 | ------------
9 |
10 | .. automodule:: boto.glacier
11 | :members:
12 | :undoc-members:
13 |
14 | boto.glacier.layer1
15 | -------------------
16 |
17 | .. automodule:: boto.glacier.layer1
18 | :members:
19 | :undoc-members:
20 |
21 | boto.glacier.layer2
22 | -------------------
23 |
24 | .. automodule:: boto.glacier.layer2
25 | :members:
26 | :undoc-members:
27 |
28 | boto.glacier.vault
29 | ------------------
30 |
31 | .. automodule:: boto.glacier.vault
32 | :members:
33 | :undoc-members:
34 |
35 | boto.glacier.job
36 | ----------------
37 |
38 | .. automodule:: boto.glacier.job
39 | :members:
40 | :undoc-members:
41 |
42 | boto.glacier.writer
43 | -------------------
44 |
45 | .. automodule:: boto.glacier.writer
46 | :members:
47 | :undoc-members:
48 |
49 | boto.glacier.concurrent
50 | -----------------------
51 |
52 | .. automodule:: boto.glacier.concurrent
53 | :members:
54 | :undoc-members:
55 |
56 | boto.glacier.exceptions
57 | -----------------------
58 |
59 | .. automodule:: boto.glacier.exceptions
60 | :members:
61 | :undoc-members:
62 |
63 |
64 |
--------------------------------------------------------------------------------
/tests/unit/kms/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/boto/pyami/installers/ubuntu/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
--------------------------------------------------------------------------------
/tests/unit/awslambda/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/awslambda/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/cloudhsm/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/codedeploy/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/cognito/sync/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/configservice/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/route53/domains/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/cognito/identity/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/ec2containerservice/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
--------------------------------------------------------------------------------
/tests/integration/glacier/__init__.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | # Copyright (c) 2012 Thomas Parslow http://almostobsolete.net/
3 | #
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 | #
23 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.36.0.rst:
--------------------------------------------------------------------------------
1 | boto v2.36.0
2 | ============
3 |
4 | :date: 2015/01/27
5 |
6 | This release adds support for AWS Key Management Service (KMS), AWS Lambda,
7 | AWS CodeDeploy, AWS Config, AWS CloudHSM, Amazon EC2 Container Service (ECS),
8 | Amazon DynamoDB online indexing, and fixes a few issues.
9 |
10 |
11 | Changes
12 | -------
13 | * Add Amazon DynamoDB online indexing support.
14 | * Allow for binary to be passed to sqs message (:issue:`2913`, :sha:`8af9b42`)
15 | * Kinesis update (:issue:`2891`, :sha:`4874e19`)
16 | * Fixed spelling of boto.awslambda package. (:issue:`2914`, :sha:`de769ac`)
17 | * Add support for Amazon EC2 Container Service (:issue:`2908`, :sha:`4480fb4`)
18 | * Add support for CloudHSM (:issue:`2905`, :sha:`6055a35`)
19 | * Add support for AWS Config (:issue:`2904`, :sha:`51e9221`)
20 | * Add support for AWS CodeDeploy (:issue:`2899`, :sha:`d935356`)
21 | * Add support for AWS Lambda (:issue:`2896`, :sha:`6748016`)
22 | * Update both Cognito's to the latest APIs (:issue:`2909`, :sha:`18c1251`)
23 | * Add sts for eu-central-1. (:issue:`2906`, :sha:`54714ff`)
24 | * Update opsworks to latest API (:issue:`2892`, :sha:`aed3302`)
25 | * Add AWS Key Managment Support (:issue:`2894`, :sha:`ef7d2cd`)
26 |
27 |
28 |
--------------------------------------------------------------------------------
/docs/source/ref/services.rst:
--------------------------------------------------------------------------------
1 | .. ref-services
2 |
3 | ========
4 | services
5 | ========
6 |
7 | boto.services
8 | -------------
9 |
10 | .. automodule:: boto.services
11 | :members:
12 | :undoc-members:
13 |
14 | boto.services.bs
15 | ----------------
16 |
17 | .. automodule:: boto.services.bs
18 | :members:
19 | :undoc-members:
20 |
21 | boto.services.message
22 | ---------------------
23 |
24 | .. automodule:: boto.services.message
25 | :members:
26 | :undoc-members:
27 |
28 | boto.services.result
29 | --------------------
30 |
31 | .. automodule:: boto.services.result
32 | :members:
33 | :undoc-members:
34 |
35 | boto.services.service
36 | ---------------------
37 |
38 | .. automodule:: boto.services.service
39 | :members:
40 | :undoc-members:
41 |
42 | boto.services.servicedef
43 | ------------------------
44 |
45 | .. automodule:: boto.services.servicedef
46 | :members:
47 | :undoc-members:
48 |
49 | boto.services.sonofmmm
50 | ----------------------
51 |
52 | .. automodule:: boto.services.sonofmmm
53 | :members:
54 | :undoc-members:
55 |
56 | boto.services.submit
57 | --------------------
58 |
59 | .. automodule:: boto.services.submit
60 | :members:
61 | :undoc-members:
62 |
--------------------------------------------------------------------------------
/tests/unit/sts/test_credentials.py:
--------------------------------------------------------------------------------
1 | import unittest
2 |
3 | from boto.sts.credentials import Credentials
4 |
5 |
6 | class STSCredentialsTest(unittest.TestCase):
7 | sts = True
8 |
9 | def setUp(self):
10 | super(STSCredentialsTest, self).setUp()
11 | self.creds = Credentials()
12 |
13 | def test_to_dict(self):
14 | # This would fail miserably if ``Credentials.request_id`` hadn't been
15 | # explicitly set (no default).
16 | # Default.
17 | self.assertEqual(self.creds.to_dict(), {
18 | 'access_key': None,
19 | 'expiration': None,
20 | 'request_id': None,
21 | 'secret_key': None,
22 | 'session_token': None
23 | })
24 |
25 | # Override.
26 | creds = Credentials()
27 | creds.access_key = 'something'
28 | creds.secret_key = 'crypto'
29 | creds.session_token = 'this'
30 | creds.expiration = 'way'
31 | creds.request_id = 'comes'
32 | self.assertEqual(creds.to_dict(), {
33 | 'access_key': 'something',
34 | 'expiration': 'way',
35 | 'request_id': 'comes',
36 | 'secret_key': 'crypto',
37 | 'session_token': 'this'
38 | })
39 |
--------------------------------------------------------------------------------
/tests/integration/rds/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
3 | # All Rights Reserved
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tests/integration/rds2/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
3 | # All Rights Reserved
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tests/integration/cloudsearch/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
3 | # All Rights Reserved
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tests/integration/cloudsearch2/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
3 | # All Rights Reserved
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tests/integration/cloudformation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
3 | # All Rights Reserved
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/boto/cloudfront/exception.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
22 | from boto.exception import BotoServerError
23 |
24 | class CloudFrontServerError(BotoServerError):
25 |
26 | pass
27 |
--------------------------------------------------------------------------------
/boto/cognito/identity/exceptions.py:
--------------------------------------------------------------------------------
1 | # The above copyright notice and this permission notice shall be included
2 | # in all copies or substantial portions of the Software.
3 | #
4 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
5 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
6 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
7 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
8 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
10 | # IN THE SOFTWARE.
11 | #
12 | from boto.exception import BotoServerError
13 |
14 |
15 | class LimitExceededException(BotoServerError):
16 | pass
17 |
18 |
19 | class ResourceConflictException(BotoServerError):
20 | pass
21 |
22 |
23 | class DeveloperUserAlreadyRegisteredException(BotoServerError):
24 | pass
25 |
26 |
27 | class TooManyRequestsException(BotoServerError):
28 | pass
29 |
30 |
31 | class InvalidParameterException(BotoServerError):
32 | pass
33 |
34 |
35 | class ResourceNotFoundException(BotoServerError):
36 | pass
37 |
38 |
39 | class InternalErrorException(BotoServerError):
40 | pass
41 |
42 |
43 | class NotAuthorizedException(BotoServerError):
44 | pass
45 |
--------------------------------------------------------------------------------
/docs/source/ref/cloudsearch.rst:
--------------------------------------------------------------------------------
1 | .. ref-cloudsearch
2 |
3 | ===========
4 | Cloudsearch
5 | ===========
6 |
7 | boto.cloudsearch
8 | ----------------
9 |
10 | .. automodule:: boto.cloudsearch
11 | :members:
12 | :undoc-members:
13 |
14 | boto.cloudsearch.domain
15 | -----------------------
16 |
17 | .. automodule:: boto.cloudsearch.domain
18 | :members:
19 | :undoc-members:
20 |
21 | boto.cloudsearch.exceptions
22 | -----------------------
23 |
24 | .. automodule:: boto.cloudsearch.exceptions
25 | :members:
26 | :undoc-members:
27 |
28 | boto.cloudsearch.layer1
29 | -----------------------
30 |
31 | .. automodule:: boto.cloudsearch.layer1
32 | :members:
33 | :undoc-members:
34 |
35 | boto.cloudsearch.layer2
36 | -----------------------
37 |
38 | .. automodule:: boto.cloudsearch.layer2
39 | :members:
40 | :undoc-members:
41 |
42 | boto.cloudsearch.optionstatus
43 | -----------------------------
44 |
45 | .. automodule:: boto.cloudsearch.optionstatus
46 | :members:
47 | :undoc-members:
48 |
49 | boto.cloudsearch.search
50 | -----------------------
51 |
52 | .. automodule:: boto.cloudsearch.search
53 | :members:
54 | :undoc-members:
55 |
56 | boto.cloudsearch.document
57 | -------------------------
58 |
59 | .. automodule:: boto.cloudsearch.document
60 | :members:
61 | :undoc-members:
62 |
--------------------------------------------------------------------------------
/docs/source/ref/vpc.rst:
--------------------------------------------------------------------------------
1 | .. _ref-vpc:
2 |
3 | ====
4 | VPC
5 | ====
6 |
7 | boto.vpc
8 | --------
9 |
10 | .. automodule:: boto.vpc
11 | :members:
12 | :undoc-members:
13 |
14 | boto.vpc.customergateway
15 | ------------------------
16 |
17 | .. automodule:: boto.vpc.customergateway
18 | :members:
19 | :undoc-members:
20 |
21 | boto.vpc.dhcpoptions
22 | --------------------
23 |
24 | .. automodule:: boto.vpc.dhcpoptions
25 | :members:
26 | :undoc-members:
27 |
28 | boto.vpc.internetgateway
29 | ------------------------
30 |
31 | .. automodule:: boto.vpc.internetgateway
32 | :members:
33 | :undoc-members:
34 |
35 | boto.vpc.routetable
36 | -------------------
37 |
38 | .. automodule:: boto.vpc.routetable
39 | :members:
40 | :undoc-members:
41 |
42 | boto.vpc.subnet
43 | ---------------
44 |
45 | .. automodule:: boto.vpc.subnet
46 | :members:
47 | :undoc-members:
48 |
49 | boto.vpc.vpc
50 | ------------
51 |
52 | .. automodule:: boto.vpc.vpc
53 | :members:
54 | :undoc-members:
55 |
56 | boto.vpc.vpnconnection
57 | ----------------------
58 |
59 | .. automodule:: boto.vpc.vpnconnection
60 | :members:
61 | :undoc-members:
62 |
63 | boto.vpc.vpngateway
64 | -------------------
65 |
66 | .. automodule:: boto.vpc.vpngateway
67 | :members:
68 | :undoc-members:
69 |
--------------------------------------------------------------------------------
/boto/pyami/helloworld.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | from boto.pyami.scriptbase import ScriptBase
23 |
24 | class HelloWorld(ScriptBase):
25 |
26 | def main(self):
27 | self.log('Hello World!!!')
28 |
--------------------------------------------------------------------------------
/tests/unit/swf/test_layer1_decisions.py:
--------------------------------------------------------------------------------
1 | from tests.unit import unittest
2 |
3 | import boto.swf.layer1_decisions
4 |
5 |
6 | class TestDecisions(unittest.TestCase):
7 |
8 | def setUp(self):
9 | self.decisions = boto.swf.layer1_decisions.Layer1Decisions()
10 |
11 | def assert_data(self, *data):
12 | self.assertEquals(self.decisions._data, list(data))
13 |
14 | def test_continue_as_new_workflow_execution(self):
15 | self.decisions.continue_as_new_workflow_execution(
16 | child_policy='TERMINATE',
17 | execution_start_to_close_timeout='10',
18 | input='input',
19 | tag_list=['t1', 't2'],
20 | task_list='tasklist',
21 | start_to_close_timeout='20',
22 | workflow_type_version='v2'
23 | )
24 | self.assert_data({
25 | 'decisionType': 'ContinueAsNewWorkflowExecution',
26 | 'continueAsNewWorkflowExecutionDecisionAttributes': {
27 | 'childPolicy': 'TERMINATE',
28 | 'executionStartToCloseTimeout': '10',
29 | 'input': 'input',
30 | 'tagList': ['t1', 't2'],
31 | 'taskList': {'name': 'tasklist'},
32 | 'taskStartToCloseTimeout': '20',
33 | 'workflowTypeVersion': 'v2',
34 | }
35 | })
36 |
--------------------------------------------------------------------------------
/boto/route53/exception.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2010 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2010, Eucalyptus Systems, Inc.
3 | #
4 | # Permission is hereby granted, free of charge, to any person obtaining a
5 | # copy of this software and associated documentation files (the
6 | # "Software"), to deal in the Software without restriction, including
7 | # without limitation the rights to use, copy, modify, merge, publish, dis-
8 | # tribute, sublicense, and/or sell copies of the Software, and to permit
9 | # persons to whom the Software is furnished to do so, subject to the fol-
10 | # lowing conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included
13 | # in all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | # IN THE SOFTWARE.
22 |
23 | from boto.exception import BotoServerError
24 |
25 |
26 | class DNSServerError(BotoServerError):
27 | pass
28 |
--------------------------------------------------------------------------------
/boto/directconnect/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 |
24 | class DirectConnectClientException(Exception):
25 | pass
26 |
27 |
28 | class DirectConnectServerException(Exception):
29 | pass
30 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.9.8.rst:
--------------------------------------------------------------------------------
1 | boto v2.9.8
2 | ===========
3 |
4 | :date: 2013/07/18
5 |
6 | This release is adds new methods in AWS Security Token Service (STS), AWS
7 | CloudFormation, updates AWS Relational Database Service (RDS) & Google Storage.
8 | It also has several bugfixes & documentation improvements.
9 |
10 |
11 | Features
12 | --------
13 |
14 | * Added support for the ``DecodeAuthorizationMessage`` in STS (:sha:`1ada5ac`).
15 | * Added support for creating/deleting/describing ``OptionGroup`` in RDS.
16 | (:sha:`d629228` & :sha:`d059a3b`)
17 | * Added ``CancelUpdateStack`` to CloudFormation. (:issue:`1476`, :sha:`5bae130`)
18 | * Added support for getting/setting lifecycle configurations on GS buckets.
19 | (:issue:`1604`, :sha:`652fc81`)
20 |
21 |
22 | Bugfixes
23 | --------
24 |
25 | * Added region support to ``bin/elbadmin``. (:issue:`1586`,
26 | :sha:`2ffbc60`)
27 | * Changed the mock storage to use case-insensitive headers. (:issue:`1594`,
28 | :sha:`71849cb`)
29 | * Added ``complex_listeners`` to ELB. (:issue:`1048`, :sha:`b782ce2`)
30 | * Added tests for Route53's ``ResourceRecordSets``. (:sha:`fad5bde`)
31 | * Several documentation improvements/fixes:
32 |
33 | * Updated CloudFront docs. (:issue:`1546`, :sha:`a811197`)
34 | * Updated the URL explaining the use of base64 in SQS messages.
35 | (:issue:`1596`, :sha:`00de3a2`)
36 |
--------------------------------------------------------------------------------
/boto/file/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2010 Google Inc.
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
22 | import boto
23 |
24 | from boto.file.connection import FileConnection as Connection
25 | from boto.file.key import Key
26 | from boto.file.bucket import Bucket
27 |
28 | __all__ = ['Connection', 'Key', 'Bucket']
29 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.9.0.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.9.0
3 | ===========
4 |
5 | The 2.9.0 release of boto is now available on `PyPI`_.
6 |
7 | .. _`PyPI`: http://pypi.python.org/pypi/boto
8 |
9 | You can get a comprehensive list of all commits made between the 2.8.0 release
10 | and the 2.9.0 release at https://github.com/boto/boto/compare/2.8.0...2.9.0.
11 |
12 | This release includes:
13 |
14 | * Support for Amazon Redshift
15 | * Support for Amazon DynamoDB's new API
16 | * Support for AWS Opsworks
17 | * Add `copy_image` to EC2 (AMI copy)
18 | * Add `describe_account_attributes` and `describe_vpc_attribute`, and
19 | `modify_vpc_attribute` operations to EC2.
20 |
21 | There were 240 commits made by 34 different authors:
22 |
23 | * g2harris
24 | * Michael Barrett
25 | * Pascal Hakim
26 | * James Saryerwinnie
27 | * Mitch Garnaat
28 | * ChangMin Jeon
29 | * Mike Schwartz
30 | * Jeremy Katz
31 | * Alex Schoof
32 | * reinhillmann
33 | * Travis Hobrla
34 | * Zach Wilt
35 | * Daniel Lindsley
36 | * ksacry
37 | * Michael Wirth
38 | * Eric Smalling
39 | * pingwin
40 | * Chris Moyer
41 | * Olivier Hervieu
42 | * Iuri de Silvio
43 | * Joe Sondow
44 | * Max Noel
45 | * Nate
46 | * Chris Moyer
47 | * Lars Otten
48 | * Nathan Grigg
49 | * Rein Hillmann
50 | * Øyvind Saltvik
51 | * Rayson HO
52 | * Martin Matusiak
53 | * Royce Remer
54 | * Jeff Terrace
55 | * Yaniv Ovadia
56 | * Eduardo S. Klein
57 |
--------------------------------------------------------------------------------
/boto/cloudsearchdomain/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | from boto.exception import BotoServerError
23 |
24 |
25 | class SearchException(BotoServerError):
26 | pass
27 |
28 |
29 | class DocumentServiceException(BotoServerError):
30 | pass
31 |
--------------------------------------------------------------------------------
/boto/ec2containerservice/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 | from boto.exception import BotoServerError
24 |
25 |
26 | class ServerException(BotoServerError):
27 | pass
28 |
29 |
30 | class ClientException(BotoServerError):
31 | pass
32 |
--------------------------------------------------------------------------------
/boto/opsworks/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | from boto.exception import JSONResponseError
23 |
24 |
25 | class ResourceNotFoundException(JSONResponseError):
26 | pass
27 |
28 |
29 | class ValidationException(JSONResponseError):
30 | pass
31 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.3.0.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.3.0
3 | ===========
4 |
5 | The 2.3.0 release of boto is now available on `PyPI`_.
6 |
7 | .. _`PyPI`: http://pypi.python.org/pypi/boto
8 |
9 | You can view a list of issues that have been closed in this release at
10 | https://github.com/boto/boto/issues?milestone=6&state=closed.
11 |
12 | You can get a comprehensive list of all commits made between the 2.2.2 release
13 | and the 2.3.0 release at https://github.com/boto/boto/compare/2.2.2...2.3.0.
14 |
15 | This release includes initial support for Amazon Simple Workflow Service.
16 |
17 | The API version of the FPS module was updated to 2010-08-28.
18 |
19 | This release also includes many bug fixes and improvements in the Amazon
20 | DynamoDB module. One change of particular note is the behavior of the
21 | ``new_item`` method of the ``Table`` object. See http://readthedocs.org/docs/boto/en/2.3.0/ref/dynamodb.html#module-boto.dynamodb.table
22 | for more details.
23 |
24 | There were 109 commits in this release from 21 different authors.
25 | The authors are listed below, in no particular order:
26 |
27 | * theju
28 | * garnaat
29 | * rdodev
30 | * mfschwartz
31 | * kopertop
32 | * tpodowd
33 | * gtaylor
34 | * kachok
35 | * croach
36 | * tmorgan
37 | * Erick Fejta
38 | * dherbst
39 | * marccohen
40 | * Arif Amirani
41 | * yuzeh
42 | * Roguelazer
43 | * awblocker
44 | * blinsay
45 | * Peter Broadwell
46 | * tierney
47 | * georgekola
48 |
--------------------------------------------------------------------------------
/boto/ec2/cloudwatch/listelement.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
22 |
23 | class ListElement(list):
24 |
25 | def startElement(self, name, attrs, connection):
26 | pass
27 |
28 | def endElement(self, name, value, connection):
29 | if name == 'member':
30 | self.append(value)
31 |
--------------------------------------------------------------------------------
/docs/source/ref/elb.rst:
--------------------------------------------------------------------------------
1 | .. ref-elb
2 |
3 | =============
4 | ELB Reference
5 | =============
6 |
7 | boto.ec2.elb
8 | ------------
9 |
10 | .. automodule:: boto.ec2.elb
11 | :members:
12 | :undoc-members:
13 |
14 | boto.ec2.elb.healthcheck
15 | ------------------------
16 |
17 | .. automodule:: boto.ec2.elb.healthcheck
18 | :members:
19 | :undoc-members:
20 |
21 | boto.ec2.elb.instancestate
22 | --------------------------
23 |
24 | .. automodule:: boto.ec2.elb.instancestate
25 | :members:
26 | :undoc-members:
27 |
28 | boto.ec2.elb.listelement
29 | ------------------------
30 |
31 | .. automodule:: boto.ec2.elb.listelement
32 | :members:
33 | :undoc-members:
34 |
35 | boto.ec2.elb.listener
36 | ---------------------
37 |
38 | .. automodule:: boto.ec2.elb.listener
39 | :members:
40 | :undoc-members:
41 |
42 | boto.ec2.elb.loadbalancer
43 | -------------------------
44 |
45 | .. automodule:: boto.ec2.elb.loadbalancer
46 | :members:
47 | :undoc-members:
48 |
49 | boto.ec2.elb.policies
50 | ---------------------
51 |
52 | .. automodule:: boto.ec2.elb.policies
53 | :members:
54 | :undoc-members:
55 |
56 | boto.ec2.elb.securitygroup
57 | --------------------------
58 |
59 | .. automodule:: boto.ec2.elb.securitygroup
60 | :members:
61 | :undoc-members:
62 |
63 | boto.ec2.elb.attributes
64 | -----------------------
65 | .. automodule:: boto.ec2.elb.attributes
66 | :members:
67 | :undoc-members:
68 |
--------------------------------------------------------------------------------
/boto/file/simpleresultset.py:
--------------------------------------------------------------------------------
1 | # Copyright 2010 Google Inc.
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
22 | class SimpleResultSet(list):
23 | """
24 | ResultSet facade built from a simple list, rather than via XML parsing.
25 | """
26 |
27 | def __init__(self, input_list):
28 | for x in input_list:
29 | self.append(x)
30 | self.is_truncated = False
31 |
--------------------------------------------------------------------------------
/docs/source/ref/sdb_db.rst:
--------------------------------------------------------------------------------
1 | .. ref-sdbdb
2 |
3 | ================
4 | SDB DB Reference
5 | ================
6 |
7 | This module offers an ORM-like layer on top of SimpleDB.
8 |
9 | boto.sdb.db
10 | -----------
11 |
12 | .. automodule:: boto.sdb.db
13 | :members:
14 | :undoc-members:
15 |
16 | boto.sdb.db.blob
17 | ----------------
18 |
19 | .. automodule:: boto.sdb.db.blob
20 | :members:
21 | :undoc-members:
22 |
23 | boto.sdb.db.key
24 | ---------------
25 |
26 | .. automodule:: boto.sdb.db.key
27 | :members:
28 | :undoc-members:
29 |
30 | boto.sdb.db.manager
31 | -------------------
32 |
33 | .. automodule:: boto.sdb.db.manager
34 | :members:
35 | :undoc-members:
36 |
37 | boto.sdb.db.manager.sdbmanager
38 | ------------------------------
39 |
40 | .. automodule:: boto.sdb.db.manager.sdbmanager
41 | :members:
42 | :undoc-members:
43 |
44 | boto.sdb.db.manager.xmlmanager
45 | ------------------------------
46 |
47 | .. automodule:: boto.sdb.db.manager.xmlmanager
48 | :members:
49 | :undoc-members:
50 |
51 | boto.sdb.db.model
52 | -----------------
53 |
54 | .. automodule:: boto.sdb.db.model
55 | :members:
56 | :undoc-members:
57 |
58 | boto.sdb.db.property
59 | --------------------
60 |
61 | .. automodule:: boto.sdb.db.property
62 | :members:
63 | :undoc-members:
64 |
65 | boto.sdb.db.query
66 | -----------------
67 |
68 | .. automodule:: boto.sdb.db.query
69 | :members:
70 | :undoc-members:
71 |
--------------------------------------------------------------------------------
/docs/source/ref/cloudfront.rst:
--------------------------------------------------------------------------------
1 | .. ref-cloudfront
2 |
3 | ==========
4 | CloudFront
5 | ==========
6 |
7 | boto.cloudfront
8 | ---------------
9 |
10 | .. automodule:: boto.cloudfront
11 | :members:
12 | :undoc-members:
13 |
14 | boto.cloudfront.distribution
15 | ----------------------------
16 |
17 | .. automodule:: boto.cloudfront.distribution
18 | :members:
19 | :undoc-members:
20 |
21 | boto.cloudfront.origin
22 | ----------------------
23 |
24 | .. automodule:: boto.cloudfront.origin
25 | :members:
26 | :undoc-members:
27 |
28 | boto.cloudfront.identity
29 | ------------------------
30 |
31 | .. automodule:: boto.cloudfront.identity
32 | :members:
33 | :undoc-members:
34 |
35 | boto.cloudfront.signers
36 | -----------------------
37 |
38 | .. automodule:: boto.cloudfront.signers
39 | :members:
40 | :undoc-members:
41 |
42 | boto.cloudfront.invalidation
43 | ----------------------------
44 |
45 | .. automodule:: boto.cloudfront.invalidation
46 | :members:
47 | :undoc-members:
48 |
49 | boto.cloudfront.object
50 | ----------------------
51 |
52 | .. automodule:: boto.cloudfront.object
53 | :members:
54 | :undoc-members:
55 |
56 | boto.cloudfront.logging
57 | -----------------------
58 |
59 | .. automodule:: boto.cloudfront.logging
60 | :members:
61 | :undoc-members:
62 |
63 | boto.cloudfront.exception
64 | -------------------------
65 |
66 | .. automodule:: boto.cloudfront.exception
67 | :members:
68 | :undoc-members:
69 |
--------------------------------------------------------------------------------
/boto/cloudhsm/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 |
23 | from boto.exception import BotoServerError
24 |
25 |
26 | class InvalidRequestException(BotoServerError):
27 | pass
28 |
29 |
30 | class CloudHsmServiceException(BotoServerError):
31 | pass
32 |
33 |
34 | class CloudHsmInternalException(BotoServerError):
35 | pass
36 |
--------------------------------------------------------------------------------
/scripts/rebuild_endpoints.py:
--------------------------------------------------------------------------------
1 | import json
2 | from pyquery import PyQuery as pq
3 | import requests
4 |
5 |
6 | class FetchError(Exception):
7 | pass
8 |
9 |
10 | def fetch_endpoints():
11 | # We utilize what the Java SDK publishes as a baseline.
12 | resp = requests.get('https://raw2.github.com/aws/aws-sdk-java/master/src/main/resources/etc/regions.xml')
13 |
14 | if int(resp.status_code) != 200:
15 | raise FetchError("Failed to fetch the endpoints. Got {0}: {1}".format(
16 | resp.status,
17 | resp.body
18 | ))
19 |
20 | return resp.text
21 |
22 |
23 | def parse_xml(raw_xml):
24 | return pq(raw_xml, parser='xml')
25 |
26 |
27 | def build_data(doc):
28 | data = {}
29 |
30 | # Run through all the regions. These have all the data we need.
31 | for region_elem in doc('Regions').find('Region'):
32 | region = pq(region_elem, parser='xml')
33 | region_name = region.find('Name').text()
34 |
35 | for endp in region.find('Endpoint'):
36 | service_name = endp.find('ServiceName').text
37 | endpoint = endp.find('Hostname').text
38 |
39 | data.setdefault(service_name, {})
40 | data[service_name][region_name] = endpoint
41 |
42 | return data
43 |
44 |
45 | def main():
46 | raw_xml = fetch_endpoints()
47 | doc = parse_xml(raw_xml)
48 | data = build_data(doc)
49 | print(json.dumps(data, indent=4, sort_keys=True))
50 |
51 |
52 | if __name__ == '__main__':
53 | main()
54 |
--------------------------------------------------------------------------------
/CONTRIBUTING:
--------------------------------------------------------------------------------
1 | ============
2 | Contributing
3 | ============
4 |
5 | For more information, please see the official contribution docs at
6 | http://docs.pythonboto.org/en/latest/contributing.html.
7 |
8 |
9 | Contributing Code
10 | =================
11 |
12 | * A good patch:
13 |
14 | * is clear.
15 | * works across all supported versions of Python.
16 | * follows the existing style of the code base (PEP-8).
17 | * has comments included as needed.
18 |
19 | * A test case that demonstrates the previous flaw that now passes
20 | with the included patch.
21 | * If it adds/changes a public API, it must also include documentation
22 | for those changes.
23 | * Must be appropriately licensed (New BSD).
24 |
25 |
26 | Reporting An Issue/Feature
27 | ==========================
28 |
29 | * Check to see if there's an existing issue/pull request for the
30 | bug/feature. All issues are at https://github.com/boto/boto/issues
31 | and pull reqs are at https://github.com/boto/boto/pulls.
32 | * If there isn't an existing issue there, please file an issue. The ideal
33 | report includes:
34 |
35 | * A description of the problem/suggestion.
36 | * How to recreate the bug.
37 | * If relevant, including the versions of your:
38 |
39 | * Python interpreter
40 | * boto
41 | * Optionally of the other dependencies involved
42 |
43 | * If possible, create a pull request with a (failing) test case demonstrating
44 | what's wrong. This makes the process for fixing bugs quicker & gets issues
45 | resolved sooner.
46 |
47 |
48 |
--------------------------------------------------------------------------------
/docs/source/ref/gs.rst:
--------------------------------------------------------------------------------
1 | .. ref-gs:
2 |
3 | ==
4 | GS
5 | ==
6 |
7 | boto.gs.acl
8 | -----------
9 |
10 | .. automodule:: boto.gs.acl
11 | :members:
12 | :inherited-members:
13 | :undoc-members:
14 |
15 | boto.gs.bucket
16 | --------------
17 |
18 | .. automodule:: boto.gs.bucket
19 | :members:
20 | :inherited-members:
21 | :undoc-members:
22 | :exclude-members: BucketPaymentBody, LoggingGroup, MFADeleteRE, VersionRE,
23 | VersioningBody, WebsiteBody, WebsiteErrorFragment,
24 | WebsiteMainPageFragment, startElement, endElement
25 |
26 | boto.gs.bucketlistresultset
27 | ---------------------------
28 |
29 | .. automodule:: boto.gs.bucketlistresultset
30 | :members:
31 | :inherited-members:
32 | :undoc-members:
33 |
34 | boto.gs.connection
35 | ------------------
36 |
37 | .. automodule:: boto.gs.connection
38 | :members:
39 | :inherited-members:
40 | :undoc-members:
41 |
42 | boto.gs.cors
43 | ------------
44 |
45 | .. automodule:: boto.gs.cors
46 | :members:
47 | :undoc-members:
48 |
49 | boto.gs.key
50 | -----------
51 |
52 | .. automodule:: boto.gs.key
53 | :members:
54 | :inherited-members:
55 | :undoc-members:
56 |
57 | boto.gs.user
58 | ------------
59 |
60 | .. automodule:: boto.gs.user
61 | :members:
62 | :inherited-members:
63 | :undoc-members:
64 |
65 | boto.gs.resumable_upload_handler
66 | --------------------------------
67 |
68 | .. automodule:: boto.gs.resumable_upload_handler
69 | :members:
70 | :inherited-members:
71 | :undoc-members:
72 |
73 |
--------------------------------------------------------------------------------
/boto/awslambda/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | from boto.exception import BotoServerError
23 |
24 |
25 | class InvalidRequestContentException(BotoServerError):
26 | pass
27 |
28 |
29 | class ResourceNotFoundException(BotoServerError):
30 | pass
31 |
32 |
33 | class InvalidParameterValueException(BotoServerError):
34 | pass
35 |
36 |
37 | class ServiceException(BotoServerError):
38 | pass
39 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.13.2.rst:
--------------------------------------------------------------------------------
1 | boto v2.13.2
2 | ============
3 |
4 | :date: 2013/09/16
5 |
6 | This release is a bugfix-only release, correcting several problems in EC2 as
7 | well as S3, DynamoDB v2 & SWF.
8 |
9 | .. note::
10 |
11 | There was no v2.13.1 release made public. There was a packaging error that
12 | was discovered before it was published to PyPI.
13 |
14 | We apologise for the fault in the releases. Those responsible have been
15 | sacked.
16 |
17 |
18 | Bugfixes
19 | --------
20 |
21 | * Fixed test fallout from the EC2 dry-run change. (:sha:`2159456`)
22 | * Added tests for more of SWF's ``layer2``. (:issue:`1718`, :sha:`35fb741`,
23 | :sha:`a84d401`, :sha:`1cf1641`, :sha:`a36429c`)
24 | * Changed EC2 to allow ``name`` to be optional in calls to ``copy_image``.
25 | (:issue:`1672`, :sha:` 26285aa`)
26 | * Added ``billingProducts`` support to EC2 ``Image``. (:issue:`1703`,
27 | :sha:`cccadaf`, :sha:`3914e91`)
28 | * Fixed a place where ``dry_run`` was handled in EC2. (:issue:`1722`,
29 | :sha:`0a52c82`)
30 | * Fixed ``run_instances`` with a block device mapping. (:issue:`1723`,
31 | :sha:`974743f`, :sha:`9049f05`, :sha:`d7edafc`)
32 | * Fixed ``s3put`` to accept headers with a ``=`` in them. (:issue:`1700`,
33 | :sha:`7958c70`)
34 | * Fixed a bug in DynamoDB v2 where scans with filters over large sets may not
35 | return all values. (:issue:`1713`, :sha:`02893e1`)
36 | * Cloudsearch now uses SigV4. (:sha:`b2bdbf5`)
37 | * Several documentation improvements/fixes:
38 |
39 | * Added the "Apps Built On Boto" doc. (:sha:`3bd628c`)
40 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.4.0.rst:
--------------------------------------------------------------------------------
1 | ===========
2 | boto v2.4.0
3 | ===========
4 |
5 | The 2.4.0 release of boto is now available on `PyPI`_.
6 |
7 | .. _`PyPI`: http://pypi.python.org/pypi/boto
8 |
9 | You can get a comprehensive list of all commits made between the 2.3.0 release
10 | and the 2.4.0 release at https://github.com/boto/boto/compare/2.3.0...2.4.0.
11 |
12 | This release includes:
13 |
14 | * Initial support for Amazon Cloudsearch Service.
15 | * Support for Amazon's Marketplace Web Service.
16 | * Latency-based routing for Route53
17 | * Support for new domain verification features of SES.
18 | * A full rewrite of the FPS module.
19 | * Support for BatchWriteItem in DynamoDB.
20 | * Additional EMR steps for installing and running Pig scripts.
21 | * Support for additional batch operations in SQS.
22 | * Better support for VPC group-ids.
23 | * Many, many bugfixes from the community. Thanks for the reports and pull
24 | requests!
25 |
26 | There were 175 commits in this release from 32 different authors. The authors
27 | are listed below, in no particular order:
28 |
29 | * estebistec
30 | * tpodowd
31 | * Max Noel
32 | * garnaat
33 | * mfschwartz
34 | * jtriley
35 | * akoumjian
36 | * jreese
37 | * mulka
38 | * Nuutti Kotivuori
39 | * mboersma
40 | * ryansb
41 | * dampier
42 | * crschmidt
43 | * nithint
44 | * sievlev
45 | * eckamm
46 | * imlucas
47 | * disruptek
48 | * trevorsummerssmith
49 | * tmorgan
50 | * evanworley
51 | * iandanforth
52 | * oozie
53 | * aedeph
54 | * alexanderdean
55 | * abrinsmead
56 | * dlecocq
57 | * bsimpson63
58 | * jamesls
59 | * cosmin
60 | * gtaylor
61 |
--------------------------------------------------------------------------------
/tests/integration/support/test_cert_verification.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | import unittest
23 |
24 | from tests.integration import ServiceCertVerificationTest
25 |
26 | import boto.support
27 |
28 |
29 | class SupportCertVerificationTest(unittest.TestCase, ServiceCertVerificationTest):
30 | support = True
31 | regions = boto.support.regions()
32 |
33 | def sample_service_call(self, conn):
34 | conn.describe_services()
35 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.32.1.rst:
--------------------------------------------------------------------------------
1 | boto v2.32.1
2 | ============
3 |
4 | :date: 2014/08/04
5 |
6 | This release fixes an incorrect Amazon VPC peering connection call, and fixes
7 | several minor issues related to Python 3 support including a regression when
8 | pickling authentication information.
9 |
10 |
11 | Fixes
12 | -----
13 | * Fix bin scripts for Python 3. (:issue:`2502`, :issue:`2490`, :sha:`cb78c52`)
14 | * Fix parsing of EMR step summary response. (:issue:`2456`, :sha:`2ffb00a`)
15 | * Update wheel to be universal for py2/py3. (:issue:`2478`, :sha:`e872d94`)
16 | * Add pypy to tox config. (:issue:`2458`, :sha:`16c6fbe`)
17 | * Fix Glacier file object hash calculation. (:issue:`2489`, :issue:`2488`,
18 | :sha:`a9463c5`)
19 | * PEP8 fixes for Glacier. (:issue:`2469`, :sha:`0575a54`)
20 | * Use ConfigParser for Python 3 and SafeConfigParser for Python 2.
21 | (:issue:`2498`, :issue:`2497`, :sha:`f580f73`)
22 | * Remove redundant __future__ imports. (:issue:`2496`, :sha:`e59e199`)
23 | * Fix dynamodb.types.Binary non-ASCII handling. (:issue:`2492`, :issue:`2491`,
24 | :sha:`16284ea`)
25 | * Add missing dependency to requirements.txt. (:issue:`2494`, :sha:`33db71a`)
26 | * Fix TypeError when getting instance metadata under Python 3. (:issue:`2486`,
27 | :issue:`2485`, :sha:`6ff525e`)
28 | * Handle Cloudsearch indexing errors. (:issue:`2370`, :sha:`494a091`)
29 | * Remove obsolete md5 import routine. (:issue:`2468`, :sha:`9808a77`)
30 | * Use encodebytes instead of encodestring. (:issue:`2484`, :issue:`2483`,
31 | :sha:`984c5ff`)
32 | * Fix an auth class pickling bug. (:issue:`2479`, :sha:`07d6424`)
33 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.9.7.rst:
--------------------------------------------------------------------------------
1 | boto v2.9.7
2 | ===========
3 |
4 | :date: 2013/07/08
5 |
6 | This release is primarily a bugfix release, but also inludes support for
7 | Elastic Transcoder updates (variable bit rate, max frame rate & watermark
8 | features).
9 |
10 |
11 | Features
12 | --------
13 |
14 | * Added support for selecting specific attributes in DynamoDB v2.
15 | (:issue:`1567`, :sha:`d9e5c2`)
16 | * Added support for variable bit rate, max frame rate & watermark features in
17 | Elastic Transcoder. (:sha:`3791c9`)
18 |
19 |
20 | Bugfixes
21 | --------
22 |
23 | * Altered RDS to now use SigV4. (:sha:`be1633`)
24 | * Removed parsing check in ``StorageUri``. (:sha:`21bc8f`)
25 | * More information returned about GS key generation. (:issue:`1571`,
26 | :sha:`6d5e3a`)
27 | * Upload handling headers now case-insensitive. (:issue:`1575`, :sha:`60383d`)
28 | * Several CloudFormation timestamp updates. (:issue:`1582`, :issue:`1583`,
29 | :issue:`1588`, :sha:`0a23d34`, :sha:`6d4209`)
30 | * Corrected a bug in how limits are handled in DynamoDB v2. (:issue:`1590`,
31 | :sha:`710a62`)
32 | * Several documentation improvements/fixes:
33 |
34 | * Typo in ``boto.connection`` fixed. (:issue:`1569`, :sha:`cf39fd`)
35 | * All previous release notes added to the docs. (:sha:`165596`)
36 | * Corrected error in ``get_all_tags`` docs. (:sha:`4bca5d`)
37 | * Corrected a typo in the S3 tutorial. (:sha:`f0cef8`)
38 | * Corrected several import errors in the DDBv2 tutorial. (:sha:`5401a3`)
39 | * Fixed an error in the ``get_key_pair`` docstring. (:issue:`1590`,
40 | :sha:`a9cb8d`)
41 |
--------------------------------------------------------------------------------
/boto/pyami/scriptbase.py:
--------------------------------------------------------------------------------
1 | import os
2 | import sys
3 | from boto.utils import ShellCommand, get_ts
4 | import boto
5 | import boto.utils
6 |
7 | class ScriptBase(object):
8 |
9 | def __init__(self, config_file=None):
10 | self.instance_id = boto.config.get('Instance', 'instance-id', 'default')
11 | self.name = self.__class__.__name__
12 | self.ts = get_ts()
13 | if config_file:
14 | boto.config.read(config_file)
15 |
16 | def notify(self, subject, body=''):
17 | boto.utils.notify(subject, body)
18 |
19 | def mkdir(self, path):
20 | if not os.path.isdir(path):
21 | try:
22 | os.mkdir(path)
23 | except:
24 | boto.log.error('Error creating directory: %s' % path)
25 |
26 | def umount(self, path):
27 | if os.path.ismount(path):
28 | self.run('umount %s' % path)
29 |
30 | def run(self, command, notify=True, exit_on_error=False, cwd=None):
31 | self.last_command = ShellCommand(command, cwd=cwd)
32 | if self.last_command.status != 0:
33 | boto.log.error('Error running command: "%s". Output: "%s"' % (command, self.last_command.output))
34 | if notify:
35 | self.notify('Error encountered',
36 | 'Error running the following command:\n\t%s\n\nCommand output:\n\t%s' % \
37 | (command, self.last_command.output))
38 | if exit_on_error:
39 | sys.exit(-1)
40 | return self.last_command.status
41 |
42 | def main(self):
43 | pass
44 |
--------------------------------------------------------------------------------
/docs/source/ref/autoscale.rst:
--------------------------------------------------------------------------------
1 | .. ref-autoscale
2 |
3 | ======================
4 | Auto Scaling Reference
5 | ======================
6 |
7 | boto.ec2.autoscale
8 | ------------------
9 |
10 | .. automodule:: boto.ec2.autoscale
11 | :members:
12 | :undoc-members:
13 |
14 | boto.ec2.autoscale.activity
15 | ---------------------------
16 |
17 | .. automodule:: boto.ec2.autoscale.activity
18 | :members:
19 | :undoc-members:
20 |
21 | boto.ec2.autoscale.group
22 | ------------------------
23 |
24 | .. automodule:: boto.ec2.autoscale.group
25 | :members:
26 | :undoc-members:
27 |
28 |
29 | boto.ec2.autoscale.instance
30 | ---------------------------
31 |
32 | .. automodule:: boto.ec2.autoscale.instance
33 | :members:
34 | :undoc-members:
35 |
36 | boto.ec2.autoscale.launchconfig
37 | -------------------------------
38 |
39 | .. automodule:: boto.ec2.autoscale.launchconfig
40 | :members:
41 | :undoc-members:
42 |
43 | boto.ec2.autoscale.policy
44 | --------------------------
45 |
46 | .. automodule:: boto.ec2.autoscale.policy
47 | :members:
48 | :undoc-members:
49 |
50 | boto.ec2.autoscale.request
51 | --------------------------
52 |
53 | .. automodule:: boto.ec2.autoscale.request
54 | :members:
55 | :undoc-members:
56 |
57 | boto.ec2.autoscale.scheduled
58 | ----------------------------
59 |
60 | .. automodule:: boto.ec2.autoscale.scheduled
61 | :members:
62 | :undoc-members:
63 |
64 |
65 | boto.ec2.autoscale.tag
66 | ----------------------------
67 |
68 | .. automodule:: boto.ec2.autoscale.tag
69 | :members:
70 | :undoc-members:
71 |
--------------------------------------------------------------------------------
/tests/integration/redshift/test_cert_verification.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | import unittest
23 |
24 | from tests.integration import ServiceCertVerificationTest
25 |
26 | import boto.redshift
27 |
28 |
29 | class RedshiftCertVerificationTest(unittest.TestCase, ServiceCertVerificationTest):
30 | redshift = True
31 | regions = boto.redshift.regions()
32 |
33 | def sample_service_call(self, conn):
34 | conn.describe_cluster_versions()
35 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.13.0.rst:
--------------------------------------------------------------------------------
1 | boto v2.13.0
2 | ============
3 |
4 | :date: 2013/09/12
5 |
6 | This release adds support for VPC within AWS Opsworks, added dry-run support &
7 | the ability to modify reserved instances in EC2 as well as several important
8 | bugfixes for EC2, SNS & DynamoDBv2.
9 |
10 |
11 | Features
12 | --------
13 |
14 | * Added support for VPC within Opsworks. (:sha:`56e1df3`)
15 | * Added support for ``dry_run`` within EC2. (:sha:`dd7774c`)
16 | * Added support for ``modify_reserved_instances`` &
17 | ``describe_reserved_instances_modifications`` within EC2. (:sha:`7a08672`)
18 |
19 |
20 | Bugfixes
21 | --------
22 |
23 | * Fixed EC2's ``associate_public_ip`` to work correctly. (:sha:`9db6101`)
24 | * Fixed a bug with ``dynamodb_load`` when working with sets. (:issue:`1664`,
25 | :sha:`ef2d28b`)
26 | * Changed SNS ``publish`` to use POST. (:sha:`9c11772`)
27 | * Fixed inability to create LaunchConfigurations when using Block Device
28 | Mappings. (:issue:`1709`, :issue:`1710`, :sha:`5fd728e`)
29 | * Fixed DynamoDBv2's ``batch_write`` to appropriately handle
30 | ``UnprocessedItems``. (:issue:`1566`, :issue:`1679`, :issue:`1714`,
31 | :sha:`2fc2369`)
32 | * Several documentation improvements/fixes:
33 |
34 | * Added Opsworks docs to the index. (:sha:`5d48763`)
35 | * Added docs on the correct string values for ``get_all_images``.
36 | (:issue:`1674`, :sha:`1e4ed2e`)
37 | * Removed a duplicate ``boto.s3.prefix`` entry from the docs.
38 | (:issue:`1707`, :sha:`b42d34c`)
39 | * Added an API reference for ``boto.swf.layer2``. (:issue:`1712`,
40 | :sha:`9f7b15f`)
41 |
--------------------------------------------------------------------------------
/boto/file/connection.py:
--------------------------------------------------------------------------------
1 | # Copyright 2010 Google Inc.
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 |
22 | # File representation of connection, for use with "file://" URIs.
23 |
24 | from boto.file.bucket import Bucket
25 |
26 | class FileConnection(object):
27 |
28 | def __init__(self, file_storage_uri):
29 | # FileConnections are per-file storage URI.
30 | self.file_storage_uri = file_storage_uri
31 |
32 | def get_bucket(self, bucket_name, validate=True, headers=None):
33 | return Bucket(bucket_name, self.file_storage_uri.object_name)
34 |
--------------------------------------------------------------------------------
/tests/unit/cloudsearch/test_exceptions.py:
--------------------------------------------------------------------------------
1 | from boto.compat import json
2 | from tests.compat import mock, unittest
3 |
4 | from tests.unit.cloudsearch.test_search import HOSTNAME, \
5 | CloudSearchSearchBaseTest
6 | from boto.cloudsearch.search import SearchConnection, SearchServiceException
7 |
8 |
9 | def fake_loads_value_error(content, *args, **kwargs):
10 | """Callable to generate a fake ValueError"""
11 | raise ValueError("HAHAHA! Totally not simplejson & you gave me bad JSON.")
12 |
13 |
14 | def fake_loads_json_error(content, *args, **kwargs):
15 | """Callable to generate a fake JSONDecodeError"""
16 | raise json.JSONDecodeError('Using simplejson & you gave me bad JSON.',
17 | '', 0)
18 |
19 |
20 | class CloudSearchJSONExceptionTest(CloudSearchSearchBaseTest):
21 | response = b'{}'
22 |
23 | def test_no_simplejson_value_error(self):
24 | with mock.patch.object(json, 'loads', fake_loads_value_error):
25 | search = SearchConnection(endpoint=HOSTNAME)
26 |
27 | with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
28 | search.search(q='test')
29 |
30 | @unittest.skipUnless(hasattr(json, 'JSONDecodeError'),
31 | 'requires simplejson')
32 | def test_simplejson_jsondecodeerror(self):
33 | with mock.patch.object(json, 'loads', fake_loads_json_error):
34 | search = SearchConnection(endpoint=HOSTNAME)
35 |
36 | with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
37 | search.search(q='test')
38 |
--------------------------------------------------------------------------------
/tests/unit/cloudsearch2/test_exceptions.py:
--------------------------------------------------------------------------------
1 | from boto.compat import json
2 | from tests.compat import mock, unittest
3 |
4 | from tests.unit.cloudsearch2.test_search import HOSTNAME, \
5 | CloudSearchSearchBaseTest
6 | from boto.cloudsearch2.search import SearchConnection, SearchServiceException
7 |
8 |
9 | def fake_loads_value_error(content, *args, **kwargs):
10 | """Callable to generate a fake ValueError"""
11 | raise ValueError("HAHAHA! Totally not simplejson & you gave me bad JSON.")
12 |
13 |
14 | def fake_loads_json_error(content, *args, **kwargs):
15 | """Callable to generate a fake JSONDecodeError"""
16 | raise json.JSONDecodeError('Using simplejson & you gave me bad JSON.',
17 | '', 0)
18 |
19 |
20 | class CloudSearchJSONExceptionTest(CloudSearchSearchBaseTest):
21 | response = b'{}'
22 |
23 | def test_no_simplejson_value_error(self):
24 | with mock.patch.object(json, 'loads', fake_loads_value_error):
25 | search = SearchConnection(endpoint=HOSTNAME)
26 |
27 | with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
28 | search.search(q='test')
29 |
30 | @unittest.skipUnless(hasattr(json, 'JSONDecodeError'),
31 | 'requires simplejson')
32 | def test_simplejson_jsondecodeerror(self):
33 | with mock.patch.object(json, 'loads', fake_loads_json_error):
34 | search = SearchConnection(endpoint=HOSTNAME)
35 |
36 | with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
37 | search.search(q='test')
38 |
--------------------------------------------------------------------------------
/boto/rds/regioninfo.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2010, Eucalyptus Systems, Inc.
3 | # All rights reserved.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a
6 | # copy of this software and associated documentation files (the
7 | # "Software"), to deal in the Software without restriction, including
8 | # without limitation the rights to use, copy, modify, merge, publish, dis-
9 | # tribute, sublicense, and/or sell copies of the Software, and to permit
10 | # persons to whom the Software is furnished to do so, subject to the fol-
11 | # lowing conditions:
12 | #
13 | # The above copyright notice and this permission notice shall be included
14 | # in all copies or substantial portions of the Software.
15 | #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
18 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
19 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 | # IN THE SOFTWARE.
23 | #
24 |
25 | from boto.regioninfo import RegionInfo
26 |
27 | class RDSRegionInfo(RegionInfo):
28 |
29 | def __init__(self, connection=None, name=None, endpoint=None,
30 | connection_cls=None):
31 | from boto.rds import RDSConnection
32 | super(RDSRegionInfo, self).__init__(connection, name, endpoint,
33 | RDSConnection)
34 |
--------------------------------------------------------------------------------
/boto/requestlog.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from datetime import datetime
3 | from threading import Thread
4 | import Queue
5 |
6 | from boto.utils import RequestHook
7 | from boto.compat import long_type
8 |
9 |
10 | class RequestLogger(RequestHook):
11 | """
12 | This class implements a request logger that uses a single thread to
13 | write to a log file.
14 | """
15 | def __init__(self, filename='/tmp/request_log.csv'):
16 | self.request_log_file = open(filename, 'w')
17 | self.request_log_queue = Queue.Queue(100)
18 | Thread(target=self._request_log_worker).start()
19 |
20 | def handle_request_data(self, request, response, error=False):
21 | len = 0 if error else response.getheader('Content-Length')
22 | now = datetime.now()
23 | time = now.strftime('%Y-%m-%d %H:%M:%S')
24 | td = (now - request.start_time)
25 | duration = (td.microseconds + long_type(td.seconds + td.days * 24 * 3600) * 1e6) / 1e6
26 |
27 | # write output including timestamp, status code, response time, response size, request action
28 | self.request_log_queue.put("'%s', '%s', '%s', '%s', '%s'\n" % (time, response.status, duration, len, request.params['Action']))
29 |
30 | def _request_log_worker(self):
31 | while True:
32 | try:
33 | item = self.request_log_queue.get(True)
34 | self.request_log_file.write(item)
35 | self.request_log_file.flush()
36 | self.request_log_queue.task_done()
37 | except:
38 | import traceback
39 | traceback.print_exc(file=sys.stdout)
40 |
--------------------------------------------------------------------------------
/bin/bundle_image:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | from boto.manage.server import Server
3 | if __name__ == "__main__":
4 | from optparse import OptionParser
5 | parser = OptionParser(version="%prog 1.0", usage="Usage: %prog [options] instance-id [instance-id-2]")
6 |
7 | # Commands
8 | parser.add_option("-b", "--bucket", help="Destination Bucket", dest="bucket", default=None)
9 | parser.add_option("-p", "--prefix", help="AMI Prefix", dest="prefix", default=None)
10 | parser.add_option("-k", "--key", help="Private Key File", dest="key_file", default=None)
11 | parser.add_option("-c", "--cert", help="Public Certificate File", dest="cert_file", default=None)
12 | parser.add_option("-s", "--size", help="AMI Size", dest="size", default=None)
13 | parser.add_option("-i", "--ssh-key", help="SSH Keyfile", dest="ssh_key", default=None)
14 | parser.add_option("-u", "--user-name", help="SSH Username", dest="uname", default="root")
15 | parser.add_option("-n", "--name", help="Name of Image", dest="name")
16 | (options, args) = parser.parse_args()
17 |
18 | for instance_id in args:
19 | try:
20 | s = Server.find(instance_id=instance_id).next()
21 | print "Found old server object"
22 | except StopIteration:
23 | print "New Server Object Created"
24 | s = Server.create_from_instance_id(instance_id, options.name)
25 | assert(s.hostname is not None)
26 | b = s.get_bundler(uname=options.uname)
27 | b.bundle(bucket=options.bucket,prefix=options.prefix,key_file=options.key_file,cert_file=options.cert_file,size=int(options.size),ssh_key=options.ssh_key)
28 |
--------------------------------------------------------------------------------
/docs/source/releasenotes/v2.27.0.rst:
--------------------------------------------------------------------------------
1 | boto v2.27.0
2 | ============
3 |
4 | :date: 2014/03/06
5 |
6 | This release adds support for configuring access logs on Elastic Load Balancing
7 | (including what Amazon Simple Storage Service (S3) bucket to use & how
8 | frequently logs should be added to the bucket), adds request hook documentation
9 | & a host of doc updates/bugfixes.
10 |
11 |
12 | Changes
13 | -------
14 |
15 | * Added support for ``AccessLog`` in ELB (:issue:`2150`, :sha:`7aa35ea`)
16 | * Added better BlockDeviceType deserialization in Autoscaling. (:issue:`2149`,
17 | :sha:`04d29a5`)
18 | * Updated CloudFormation documentation (:issue:`2147`, :sha:`2535aca`)
19 | * Updated Kinesis documentation (:issue:`2146`, :sha:`01425dc`)
20 | * Add optional bucket tags to `lss3` output. (:issue:`2132`, :sha:`0f35924`)
21 | * Fix getting instance types for Eucalyptus 4.0. (:issue:`2118`, :sha:`18dc07d`)
22 | * Fixed how quoted strings are handled in SigV4 (:issue:`2142`, :sha:`2467547`)
23 | * Use system supplied certs without a bundle file (:issue:`2139`,
24 | :sha:`70d15b8`)
25 | * Fixed incorrect test failures in EC2 ``trim_snapshots`` (:sha:`1fa9df7`)
26 | * Raise any exceptions that are tagSet not found (:sha:`56d7d3e`)
27 | * Added request hook docs (:issue:`2129`, :sha:`64eedce`)
28 | * Fixed Route53 ``alias-healthcheck`` (:issue:`2126`, :sha:`141077f`)
29 | * Fixed Elastic IP association in EC2 (:issue:`2131`, :issue:`1310`,
30 | :sha:`d75fdfa`)
31 | * Fixed builds on Travis for installing dependencies (:sha:`5e84e30`)
32 | * Support printing tags on buckets when listing buckets (:sha:`c42a5dd`)
33 | * PEP8/pyflakes/(some)pylint (:sha:`149175e`)
34 |
--------------------------------------------------------------------------------
/boto/datapipeline/exceptions.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 | #
3 | # Permission is hereby granted, free of charge, to any person obtaining a
4 | # copy of this software and associated documentation files (the
5 | # "Software"), to deal in the Software without restriction, including
6 | # without limitation the rights to use, copy, modify, merge, publish, dis-
7 | # tribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the fol-
9 | # lowing conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included
12 | # in all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | # IN THE SOFTWARE.
21 | #
22 | from boto.exception import JSONResponseError
23 |
24 |
25 | class PipelineDeletedException(JSONResponseError):
26 | pass
27 |
28 |
29 | class InvalidRequestException(JSONResponseError):
30 | pass
31 |
32 |
33 | class TaskNotFoundException(JSONResponseError):
34 | pass
35 |
36 |
37 | class PipelineNotFoundException(JSONResponseError):
38 | pass
39 |
40 |
41 | class InternalServiceError(JSONResponseError):
42 | pass
43 |
--------------------------------------------------------------------------------
/boto/sdb/regioninfo.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2010, Eucalyptus Systems, Inc.
3 | # All rights reserved.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a
6 | # copy of this software and associated documentation files (the
7 | # "Software"), to deal in the Software without restriction, including
8 | # without limitation the rights to use, copy, modify, merge, publish, dis-
9 | # tribute, sublicense, and/or sell copies of the Software, and to permit
10 | # persons to whom the Software is furnished to do so, subject to the fol-
11 | # lowing conditions:
12 | #
13 | # The above copyright notice and this permission notice shall be included
14 | # in all copies or substantial portions of the Software.
15 | #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
18 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
19 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 | # IN THE SOFTWARE.
23 | #
24 |
25 | from boto.regioninfo import RegionInfo
26 |
27 | class SDBRegionInfo(RegionInfo):
28 |
29 | def __init__(self, connection=None, name=None, endpoint=None,
30 | connection_cls=None):
31 | from boto.sdb.connection import SDBConnection
32 | super(SDBRegionInfo, self).__init__(connection, name, endpoint,
33 | SDBConnection)
34 |
--------------------------------------------------------------------------------
/boto/sqs/regioninfo.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2010, Eucalyptus Systems, Inc.
3 | # All rights reserved.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a
6 | # copy of this software and associated documentation files (the
7 | # "Software"), to deal in the Software without restriction, including
8 | # without limitation the rights to use, copy, modify, merge, publish, dis-
9 | # tribute, sublicense, and/or sell copies of the Software, and to permit
10 | # persons to whom the Software is furnished to do so, subject to the fol-
11 | # lowing conditions:
12 | #
13 | # The above copyright notice and this permission notice shall be included
14 | # in all copies or substantial portions of the Software.
15 | #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
18 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
19 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 | # IN THE SOFTWARE.
23 | #
24 |
25 | from boto.regioninfo import RegionInfo
26 |
27 | class SQSRegionInfo(RegionInfo):
28 |
29 | def __init__(self, connection=None, name=None, endpoint=None,
30 | connection_cls=None):
31 | from boto.sqs.connection import SQSConnection
32 | super(SQSRegionInfo, self).__init__(connection, name, endpoint,
33 | SQSConnection)
34 |
--------------------------------------------------------------------------------
/boto/ec2/elb/listelement.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
2 | # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
3 | # All Rights Reserved
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a
6 | # copy of this software and associated documentation files (the
7 | # "Software"), to deal in the Software without restriction, including
8 | # without limitation the rights to use, copy, modify, merge, publish, dis-
9 | # tribute, sublicense, and/or sell copies of the Software, and to permit
10 | # persons to whom the Software is furnished to do so, subject to the fol-
11 | # lowing conditions:
12 | #
13 | # The above copyright notice and this permission notice shall be included
14 | # in all copies or substantial portions of the Software.
15 | #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
18 | # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
19 | # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 | # IN THE SOFTWARE.
23 |
24 |
25 | class ListElement(list):
26 | """
27 | A :py:class:`list` subclass that has some additional methods
28 | for interacting with Amazon's XML API.
29 | """
30 |
31 | def startElement(self, name, attrs, connection):
32 | pass
33 |
34 | def endElement(self, name, value, connection):
35 | if name == 'member':
36 | self.append(value)
37 |
--------------------------------------------------------------------------------