gcloud 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +4 -0
- data/Makefile +4 -0
- data/Manifest +760 -1
- data/bin/gcloud +7 -0
- data/bin/{gcutil → gcutil.symlink} +0 -0
- data/bin/gsutil-symlink +377 -0
- data/gcloud.gemspec +5 -5
- data/packages/gsutil/CHECKSUM +1 -0
- data/packages/gsutil/COPYING +202 -0
- data/packages/gsutil/LICENSE.third_party +295 -0
- data/packages/gsutil/MANIFEST.in +5 -0
- data/packages/gsutil/README +38 -0
- data/packages/gsutil/README.pkg +49 -0
- data/packages/gsutil/ReleaseNotes.txt +780 -0
- data/packages/gsutil/VERSION +1 -0
- data/packages/gsutil/boto/Changelog.rst +35 -0
- data/packages/gsutil/boto/LICENSE +18 -0
- data/packages/gsutil/boto/MANIFEST.in +12 -0
- data/packages/gsutil/boto/README.rst +163 -0
- data/packages/gsutil/boto/bin/asadmin +290 -0
- data/packages/gsutil/boto/bin/bundle_image +27 -0
- data/packages/gsutil/boto/bin/cfadmin +108 -0
- data/packages/gsutil/boto/bin/cq +89 -0
- data/packages/gsutil/boto/bin/cwutil +140 -0
- data/packages/gsutil/boto/bin/elbadmin +284 -0
- data/packages/gsutil/boto/bin/fetch_file +43 -0
- data/packages/gsutil/boto/bin/glacier +154 -0
- data/packages/gsutil/boto/bin/instance_events +145 -0
- data/packages/gsutil/boto/bin/kill_instance +35 -0
- data/packages/gsutil/boto/bin/launch_instance +252 -0
- data/packages/gsutil/boto/bin/list_instances +90 -0
- data/packages/gsutil/boto/bin/lss3 +77 -0
- data/packages/gsutil/boto/bin/mturk +465 -0
- data/packages/gsutil/boto/bin/pyami_sendmail +52 -0
- data/packages/gsutil/boto/bin/route53 +205 -0
- data/packages/gsutil/boto/bin/s3put +374 -0
- data/packages/gsutil/boto/bin/sdbadmin +194 -0
- data/packages/gsutil/boto/bin/taskadmin +116 -0
- data/packages/gsutil/boto/boto/__init__.py +793 -0
- data/packages/gsutil/boto/boto/__init__.pyc +0 -0
- data/packages/gsutil/boto/boto/auth.py +682 -0
- data/packages/gsutil/boto/boto/auth.pyc +0 -0
- data/packages/gsutil/boto/boto/auth_handler.py +58 -0
- data/packages/gsutil/boto/boto/auth_handler.pyc +0 -0
- data/packages/gsutil/boto/boto/beanstalk/__init__.py +65 -0
- data/packages/gsutil/boto/boto/beanstalk/exception.py +64 -0
- data/packages/gsutil/boto/boto/beanstalk/layer1.py +1153 -0
- data/packages/gsutil/boto/boto/beanstalk/response.py +703 -0
- data/packages/gsutil/boto/boto/beanstalk/wrapper.py +29 -0
- data/packages/gsutil/boto/boto/cacerts/__init__.py +22 -0
- data/packages/gsutil/boto/boto/cacerts/__init__.pyc +0 -0
- data/packages/gsutil/boto/boto/cacerts/cacerts.txt +633 -0
- data/packages/gsutil/boto/boto/cloudformation/__init__.py +68 -0
- data/packages/gsutil/boto/boto/cloudformation/connection.py +364 -0
- data/packages/gsutil/boto/boto/cloudformation/stack.py +360 -0
- data/packages/gsutil/boto/boto/cloudformation/template.py +43 -0
- data/packages/gsutil/boto/boto/cloudfront/__init__.py +324 -0
- data/packages/gsutil/boto/boto/cloudfront/distribution.py +745 -0
- data/packages/gsutil/boto/boto/cloudfront/exception.py +26 -0
- data/packages/gsutil/boto/boto/cloudfront/identity.py +122 -0
- data/packages/gsutil/boto/boto/cloudfront/invalidation.py +216 -0
- data/packages/gsutil/boto/boto/cloudfront/logging.py +38 -0
- data/packages/gsutil/boto/boto/cloudfront/object.py +48 -0
- data/packages/gsutil/boto/boto/cloudfront/origin.py +150 -0
- data/packages/gsutil/boto/boto/cloudfront/signers.py +60 -0
- data/packages/gsutil/boto/boto/cloudsearch/__init__.py +45 -0
- data/packages/gsutil/boto/boto/cloudsearch/document.py +265 -0
- data/packages/gsutil/boto/boto/cloudsearch/domain.py +394 -0
- data/packages/gsutil/boto/boto/cloudsearch/layer1.py +738 -0
- data/packages/gsutil/boto/boto/cloudsearch/layer2.py +67 -0
- data/packages/gsutil/boto/boto/cloudsearch/optionstatus.py +248 -0
- data/packages/gsutil/boto/boto/cloudsearch/search.py +365 -0
- data/packages/gsutil/boto/boto/cloudsearch/sourceattribute.py +75 -0
- data/packages/gsutil/boto/boto/compat.py +28 -0
- data/packages/gsutil/boto/boto/compat.pyc +0 -0
- data/packages/gsutil/boto/boto/connection.py +1081 -0
- data/packages/gsutil/boto/boto/connection.pyc +0 -0
- data/packages/gsutil/boto/boto/contrib/__init__.py +22 -0
- data/packages/gsutil/boto/boto/contrib/ymlmessage.py +52 -0
- data/packages/gsutil/boto/boto/core/README +58 -0
- data/packages/gsutil/boto/boto/core/__init__.py +23 -0
- data/packages/gsutil/boto/boto/core/auth.py +78 -0
- data/packages/gsutil/boto/boto/core/credentials.py +154 -0
- data/packages/gsutil/boto/boto/core/dictresponse.py +178 -0
- data/packages/gsutil/boto/boto/core/service.py +67 -0
- data/packages/gsutil/boto/boto/datapipeline/__init__.py +0 -0
- data/packages/gsutil/boto/boto/datapipeline/exceptions.py +42 -0
- data/packages/gsutil/boto/boto/datapipeline/layer1.py +546 -0
- data/packages/gsutil/boto/boto/dynamodb/__init__.py +66 -0
- data/packages/gsutil/boto/boto/dynamodb/batch.py +262 -0
- data/packages/gsutil/boto/boto/dynamodb/condition.py +170 -0
- data/packages/gsutil/boto/boto/dynamodb/exceptions.py +64 -0
- data/packages/gsutil/boto/boto/dynamodb/item.py +196 -0
- data/packages/gsutil/boto/boto/dynamodb/layer1.py +575 -0
- data/packages/gsutil/boto/boto/dynamodb/layer2.py +798 -0
- data/packages/gsutil/boto/boto/dynamodb/schema.py +112 -0
- data/packages/gsutil/boto/boto/dynamodb/table.py +540 -0
- data/packages/gsutil/boto/boto/dynamodb/types.py +326 -0
- data/packages/gsutil/boto/boto/ec2/__init__.py +96 -0
- data/packages/gsutil/boto/boto/ec2/address.py +103 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/__init__.py +781 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/activity.py +74 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/group.py +337 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/instance.py +60 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/launchconfig.py +209 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/policy.py +166 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/request.py +38 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/scheduled.py +60 -0
- data/packages/gsutil/boto/boto/ec2/autoscale/tag.py +84 -0
- data/packages/gsutil/boto/boto/ec2/blockdevicemapping.py +141 -0
- data/packages/gsutil/boto/boto/ec2/bundleinstance.py +78 -0
- data/packages/gsutil/boto/boto/ec2/buyreservation.py +84 -0
- data/packages/gsutil/boto/boto/ec2/cloudwatch/__init__.py +603 -0
- data/packages/gsutil/boto/boto/ec2/cloudwatch/alarm.py +316 -0
- data/packages/gsutil/boto/boto/ec2/cloudwatch/datapoint.py +40 -0
- data/packages/gsutil/boto/boto/ec2/cloudwatch/dimension.py +38 -0
- data/packages/gsutil/boto/boto/ec2/cloudwatch/listelement.py +31 -0
- data/packages/gsutil/boto/boto/ec2/cloudwatch/metric.py +175 -0
- data/packages/gsutil/boto/boto/ec2/connection.py +3409 -0
- data/packages/gsutil/boto/boto/ec2/ec2object.py +107 -0
- data/packages/gsutil/boto/boto/ec2/elb/__init__.py +553 -0
- data/packages/gsutil/boto/boto/ec2/elb/healthcheck.py +89 -0
- data/packages/gsutil/boto/boto/ec2/elb/instancestate.py +62 -0
- data/packages/gsutil/boto/boto/ec2/elb/listelement.py +36 -0
- data/packages/gsutil/boto/boto/ec2/elb/listener.py +75 -0
- data/packages/gsutil/boto/boto/ec2/elb/loadbalancer.py +324 -0
- data/packages/gsutil/boto/boto/ec2/elb/policies.py +89 -0
- data/packages/gsutil/boto/boto/ec2/elb/securitygroup.py +38 -0
- data/packages/gsutil/boto/boto/ec2/group.py +39 -0
- data/packages/gsutil/boto/boto/ec2/image.py +350 -0
- data/packages/gsutil/boto/boto/ec2/instance.py +661 -0
- data/packages/gsutil/boto/boto/ec2/instanceinfo.py +51 -0
- data/packages/gsutil/boto/boto/ec2/instancestatus.py +207 -0
- data/packages/gsutil/boto/boto/ec2/keypair.py +113 -0
- data/packages/gsutil/boto/boto/ec2/launchspecification.py +105 -0
- data/packages/gsutil/boto/boto/ec2/networkinterface.py +247 -0
- data/packages/gsutil/boto/boto/ec2/placementgroup.py +51 -0
- data/packages/gsutil/boto/boto/ec2/regioninfo.py +34 -0
- data/packages/gsutil/boto/boto/ec2/reservedinstance.py +227 -0
- data/packages/gsutil/boto/boto/ec2/securitygroup.py +357 -0
- data/packages/gsutil/boto/boto/ec2/snapshot.py +170 -0
- data/packages/gsutil/boto/boto/ec2/spotdatafeedsubscription.py +63 -0
- data/packages/gsutil/boto/boto/ec2/spotinstancerequest.py +188 -0
- data/packages/gsutil/boto/boto/ec2/spotpricehistory.py +55 -0
- data/packages/gsutil/boto/boto/ec2/tag.py +87 -0
- data/packages/gsutil/boto/boto/ec2/vmtype.py +58 -0
- data/packages/gsutil/boto/boto/ec2/volume.py +293 -0
- data/packages/gsutil/boto/boto/ec2/volumestatus.py +200 -0
- data/packages/gsutil/boto/boto/ec2/zone.py +80 -0
- data/packages/gsutil/boto/boto/ecs/__init__.py +90 -0
- data/packages/gsutil/boto/boto/ecs/item.py +153 -0
- data/packages/gsutil/boto/boto/elasticache/__init__.py +62 -0
- data/packages/gsutil/boto/boto/elasticache/layer1.py +1252 -0
- data/packages/gsutil/boto/boto/elastictranscoder/__init__.py +62 -0
- data/packages/gsutil/boto/boto/elastictranscoder/exceptions.py +46 -0
- data/packages/gsutil/boto/boto/elastictranscoder/layer1.py +509 -0
- data/packages/gsutil/boto/boto/emr/__init__.py +73 -0
- data/packages/gsutil/boto/boto/emr/bootstrap_action.py +44 -0
- data/packages/gsutil/boto/boto/emr/connection.py +531 -0
- data/packages/gsutil/boto/boto/emr/emrobject.py +176 -0
- data/packages/gsutil/boto/boto/emr/instance_group.py +43 -0
- data/packages/gsutil/boto/boto/emr/step.py +281 -0
- data/packages/gsutil/boto/boto/exception.py +476 -0
- data/packages/gsutil/boto/boto/exception.pyc +0 -0
- data/packages/gsutil/boto/boto/file/README +49 -0
- data/packages/gsutil/boto/boto/file/__init__.py +28 -0
- data/packages/gsutil/boto/boto/file/bucket.py +112 -0
- data/packages/gsutil/boto/boto/file/connection.py +33 -0
- data/packages/gsutil/boto/boto/file/key.py +199 -0
- data/packages/gsutil/boto/boto/file/simpleresultset.py +30 -0
- data/packages/gsutil/boto/boto/fps/__init__.py +21 -0
- data/packages/gsutil/boto/boto/fps/connection.py +369 -0
- data/packages/gsutil/boto/boto/fps/exception.py +344 -0
- data/packages/gsutil/boto/boto/fps/response.py +175 -0
- data/packages/gsutil/boto/boto/glacier/__init__.py +57 -0
- data/packages/gsutil/boto/boto/glacier/concurrent.py +409 -0
- data/packages/gsutil/boto/boto/glacier/exceptions.py +58 -0
- data/packages/gsutil/boto/boto/glacier/job.py +152 -0
- data/packages/gsutil/boto/boto/glacier/layer1.py +637 -0
- data/packages/gsutil/boto/boto/glacier/layer2.py +93 -0
- data/packages/gsutil/boto/boto/glacier/response.py +48 -0
- data/packages/gsutil/boto/boto/glacier/utils.py +163 -0
- data/packages/gsutil/boto/boto/glacier/vault.py +387 -0
- data/packages/gsutil/boto/boto/glacier/writer.py +242 -0
- data/packages/gsutil/boto/boto/gs/__init__.py +22 -0
- data/packages/gsutil/boto/boto/gs/__init__.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/acl.py +304 -0
- data/packages/gsutil/boto/boto/gs/acl.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/bucket.py +870 -0
- data/packages/gsutil/boto/boto/gs/bucket.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/bucketlistresultset.py +64 -0
- data/packages/gsutil/boto/boto/gs/bucketlistresultset.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/connection.py +103 -0
- data/packages/gsutil/boto/boto/gs/connection.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/cors.py +169 -0
- data/packages/gsutil/boto/boto/gs/cors.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/key.py +704 -0
- data/packages/gsutil/boto/boto/gs/key.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/resumable_upload_handler.py +659 -0
- data/packages/gsutil/boto/boto/gs/resumable_upload_handler.pyc +0 -0
- data/packages/gsutil/boto/boto/gs/user.py +54 -0
- data/packages/gsutil/boto/boto/gs/user.pyc +0 -0
- data/packages/gsutil/boto/boto/handler.py +44 -0
- data/packages/gsutil/boto/boto/handler.pyc +0 -0
- data/packages/gsutil/boto/boto/https_connection.py +124 -0
- data/packages/gsutil/boto/boto/https_connection.pyc +0 -0
- data/packages/gsutil/boto/boto/iam/__init__.py +74 -0
- data/packages/gsutil/boto/boto/iam/connection.py +1317 -0
- data/packages/gsutil/boto/boto/iam/summarymap.py +42 -0
- data/packages/gsutil/boto/boto/jsonresponse.py +163 -0
- data/packages/gsutil/boto/boto/jsonresponse.pyc +0 -0
- data/packages/gsutil/boto/boto/manage/__init__.py +23 -0
- data/packages/gsutil/boto/boto/manage/cmdshell.py +241 -0
- data/packages/gsutil/boto/boto/manage/propget.py +64 -0
- data/packages/gsutil/boto/boto/manage/server.py +556 -0
- data/packages/gsutil/boto/boto/manage/task.py +175 -0
- data/packages/gsutil/boto/boto/manage/test_manage.py +34 -0
- data/packages/gsutil/boto/boto/manage/volume.py +420 -0
- data/packages/gsutil/boto/boto/mashups/__init__.py +23 -0
- data/packages/gsutil/boto/boto/mashups/interactive.py +97 -0
- data/packages/gsutil/boto/boto/mashups/iobject.py +115 -0
- data/packages/gsutil/boto/boto/mashups/order.py +211 -0
- data/packages/gsutil/boto/boto/mashups/server.py +395 -0
- data/packages/gsutil/boto/boto/mturk/__init__.py +23 -0
- data/packages/gsutil/boto/boto/mturk/connection.py +1027 -0
- data/packages/gsutil/boto/boto/mturk/layoutparam.py +55 -0
- data/packages/gsutil/boto/boto/mturk/notification.py +103 -0
- data/packages/gsutil/boto/boto/mturk/price.py +48 -0
- data/packages/gsutil/boto/boto/mturk/qualification.py +137 -0
- data/packages/gsutil/boto/boto/mturk/question.py +455 -0
- data/packages/gsutil/boto/boto/mws/__init__.py +21 -0
- data/packages/gsutil/boto/boto/mws/connection.py +813 -0
- data/packages/gsutil/boto/boto/mws/exception.py +75 -0
- data/packages/gsutil/boto/boto/mws/response.py +655 -0
- data/packages/gsutil/boto/boto/plugin.py +90 -0
- data/packages/gsutil/boto/boto/plugin.pyc +0 -0
- data/packages/gsutil/boto/boto/provider.py +337 -0
- data/packages/gsutil/boto/boto/provider.pyc +0 -0
- data/packages/gsutil/boto/boto/pyami/__init__.py +22 -0
- data/packages/gsutil/boto/boto/pyami/__init__.pyc +0 -0
- data/packages/gsutil/boto/boto/pyami/bootstrap.py +134 -0
- data/packages/gsutil/boto/boto/pyami/config.py +229 -0
- data/packages/gsutil/boto/boto/pyami/config.pyc +0 -0
- data/packages/gsutil/boto/boto/pyami/copybot.cfg +60 -0
- data/packages/gsutil/boto/boto/pyami/copybot.py +97 -0
- data/packages/gsutil/boto/boto/pyami/helloworld.py +28 -0
- data/packages/gsutil/boto/boto/pyami/installers/__init__.py +64 -0
- data/packages/gsutil/boto/boto/pyami/installers/ubuntu/__init__.py +22 -0
- data/packages/gsutil/boto/boto/pyami/installers/ubuntu/apache.py +43 -0
- data/packages/gsutil/boto/boto/pyami/installers/ubuntu/ebs.py +238 -0
- data/packages/gsutil/boto/boto/pyami/installers/ubuntu/installer.py +96 -0
- data/packages/gsutil/boto/boto/pyami/installers/ubuntu/mysql.py +109 -0
- data/packages/gsutil/boto/boto/pyami/installers/ubuntu/trac.py +139 -0
- data/packages/gsutil/boto/boto/pyami/launch_ami.py +178 -0
- data/packages/gsutil/boto/boto/pyami/scriptbase.py +44 -0
- data/packages/gsutil/boto/boto/pyami/startup.py +60 -0
- data/packages/gsutil/boto/boto/rds/__init__.py +1194 -0
- data/packages/gsutil/boto/boto/rds/dbinstance.py +357 -0
- data/packages/gsutil/boto/boto/rds/dbsecuritygroup.py +177 -0
- data/packages/gsutil/boto/boto/rds/dbsnapshot.py +108 -0
- data/packages/gsutil/boto/boto/rds/event.py +49 -0
- data/packages/gsutil/boto/boto/rds/parametergroup.py +201 -0
- data/packages/gsutil/boto/boto/rds/regioninfo.py +32 -0
- data/packages/gsutil/boto/boto/regioninfo.py +63 -0
- data/packages/gsutil/boto/boto/regioninfo.pyc +0 -0
- data/packages/gsutil/boto/boto/resultset.py +169 -0
- data/packages/gsutil/boto/boto/resultset.pyc +0 -0
- data/packages/gsutil/boto/boto/roboto/__init__.py +1 -0
- data/packages/gsutil/boto/boto/roboto/awsqueryrequest.py +504 -0
- data/packages/gsutil/boto/boto/roboto/awsqueryservice.py +121 -0
- data/packages/gsutil/boto/boto/roboto/param.py +147 -0
- data/packages/gsutil/boto/boto/route53/__init__.py +75 -0
- data/packages/gsutil/boto/boto/route53/connection.py +403 -0
- data/packages/gsutil/boto/boto/route53/exception.py +27 -0
- data/packages/gsutil/boto/boto/route53/hostedzone.py +56 -0
- data/packages/gsutil/boto/boto/route53/record.py +306 -0
- data/packages/gsutil/boto/boto/route53/status.py +42 -0
- data/packages/gsutil/boto/boto/route53/zone.py +412 -0
- data/packages/gsutil/boto/boto/s3/__init__.py +84 -0
- data/packages/gsutil/boto/boto/s3/__init__.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/acl.py +164 -0
- data/packages/gsutil/boto/boto/s3/acl.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/bucket.py +1634 -0
- data/packages/gsutil/boto/boto/s3/bucket.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/bucketlistresultset.py +139 -0
- data/packages/gsutil/boto/boto/s3/bucketlistresultset.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/bucketlogging.py +83 -0
- data/packages/gsutil/boto/boto/s3/bucketlogging.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/connection.py +540 -0
- data/packages/gsutil/boto/boto/s3/connection.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/cors.py +210 -0
- data/packages/gsutil/boto/boto/s3/cors.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/deletemarker.py +55 -0
- data/packages/gsutil/boto/boto/s3/deletemarker.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/key.py +1712 -0
- data/packages/gsutil/boto/boto/s3/key.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/keyfile.py +134 -0
- data/packages/gsutil/boto/boto/s3/keyfile.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/lifecycle.py +231 -0
- data/packages/gsutil/boto/boto/s3/lifecycle.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/multidelete.py +138 -0
- data/packages/gsutil/boto/boto/s3/multidelete.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/multipart.py +315 -0
- data/packages/gsutil/boto/boto/s3/multipart.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/prefix.py +42 -0
- data/packages/gsutil/boto/boto/s3/prefix.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/resumable_download_handler.py +339 -0
- data/packages/gsutil/boto/boto/s3/resumable_download_handler.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/tagging.py +71 -0
- data/packages/gsutil/boto/boto/s3/tagging.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/user.py +49 -0
- data/packages/gsutil/boto/boto/s3/user.pyc +0 -0
- data/packages/gsutil/boto/boto/s3/website.py +237 -0
- data/packages/gsutil/boto/boto/s3/website.pyc +0 -0
- data/packages/gsutil/boto/boto/sdb/__init__.py +67 -0
- data/packages/gsutil/boto/boto/sdb/connection.py +617 -0
- data/packages/gsutil/boto/boto/sdb/db/__init__.py +20 -0
- data/packages/gsutil/boto/boto/sdb/db/blob.py +75 -0
- data/packages/gsutil/boto/boto/sdb/db/key.py +59 -0
- data/packages/gsutil/boto/boto/sdb/db/manager/__init__.py +85 -0
- data/packages/gsutil/boto/boto/sdb/db/manager/sdbmanager.py +732 -0
- data/packages/gsutil/boto/boto/sdb/db/manager/xmlmanager.py +517 -0
- data/packages/gsutil/boto/boto/sdb/db/model.py +294 -0
- data/packages/gsutil/boto/boto/sdb/db/property.py +703 -0
- data/packages/gsutil/boto/boto/sdb/db/query.py +85 -0
- data/packages/gsutil/boto/boto/sdb/db/sequence.py +226 -0
- data/packages/gsutil/boto/boto/sdb/db/test_db.py +231 -0
- data/packages/gsutil/boto/boto/sdb/domain.py +377 -0
- data/packages/gsutil/boto/boto/sdb/item.py +181 -0
- data/packages/gsutil/boto/boto/sdb/queryresultset.py +92 -0
- data/packages/gsutil/boto/boto/sdb/regioninfo.py +32 -0
- data/packages/gsutil/boto/boto/services/__init__.py +23 -0
- data/packages/gsutil/boto/boto/services/bs.py +179 -0
- data/packages/gsutil/boto/boto/services/message.py +58 -0
- data/packages/gsutil/boto/boto/services/result.py +136 -0
- data/packages/gsutil/boto/boto/services/service.py +161 -0
- data/packages/gsutil/boto/boto/services/servicedef.py +91 -0
- data/packages/gsutil/boto/boto/services/sonofmmm.cfg +43 -0
- data/packages/gsutil/boto/boto/services/sonofmmm.py +81 -0
- data/packages/gsutil/boto/boto/services/submit.py +88 -0
- data/packages/gsutil/boto/boto/ses/__init__.py +54 -0
- data/packages/gsutil/boto/boto/ses/connection.py +521 -0
- data/packages/gsutil/boto/boto/ses/exceptions.py +77 -0
- data/packages/gsutil/boto/boto/sns/__init__.py +78 -0
- data/packages/gsutil/boto/boto/sns/connection.py +431 -0
- data/packages/gsutil/boto/boto/sqs/__init__.py +56 -0
- data/packages/gsutil/boto/boto/sqs/attributes.py +46 -0
- data/packages/gsutil/boto/boto/sqs/batchresults.py +95 -0
- data/packages/gsutil/boto/boto/sqs/connection.py +417 -0
- data/packages/gsutil/boto/boto/sqs/jsonmessage.py +43 -0
- data/packages/gsutil/boto/boto/sqs/message.py +253 -0
- data/packages/gsutil/boto/boto/sqs/queue.py +478 -0
- data/packages/gsutil/boto/boto/sqs/regioninfo.py +32 -0
- data/packages/gsutil/boto/boto/storage_uri.py +835 -0
- data/packages/gsutil/boto/boto/storage_uri.pyc +0 -0
- data/packages/gsutil/boto/boto/sts/__init__.py +55 -0
- data/packages/gsutil/boto/boto/sts/connection.py +207 -0
- data/packages/gsutil/boto/boto/sts/credentials.py +215 -0
- data/packages/gsutil/boto/boto/swf/__init__.py +60 -0
- data/packages/gsutil/boto/boto/swf/exceptions.py +44 -0
- data/packages/gsutil/boto/boto/swf/layer1.py +1512 -0
- data/packages/gsutil/boto/boto/swf/layer1_decisions.py +287 -0
- data/packages/gsutil/boto/boto/swf/layer2.py +342 -0
- data/packages/gsutil/boto/boto/utils.py +927 -0
- data/packages/gsutil/boto/boto/utils.pyc +0 -0
- data/packages/gsutil/boto/boto/vpc/__init__.py +910 -0
- data/packages/gsutil/boto/boto/vpc/customergateway.py +54 -0
- data/packages/gsutil/boto/boto/vpc/dhcpoptions.py +72 -0
- data/packages/gsutil/boto/boto/vpc/internetgateway.py +72 -0
- data/packages/gsutil/boto/boto/vpc/routetable.py +109 -0
- data/packages/gsutil/boto/boto/vpc/subnet.py +57 -0
- data/packages/gsutil/boto/boto/vpc/vpc.py +54 -0
- data/packages/gsutil/boto/boto/vpc/vpnconnection.py +60 -0
- data/packages/gsutil/boto/boto/vpc/vpngateway.py +83 -0
- data/packages/gsutil/boto/docs/BotoCheatSheet.pdf +0 -0
- data/packages/gsutil/boto/docs/Makefile +89 -0
- data/packages/gsutil/boto/docs/make.bat +113 -0
- data/packages/gsutil/boto/docs/source/_templates/layout.html +3 -0
- data/packages/gsutil/boto/docs/source/autoscale_tut.rst +220 -0
- data/packages/gsutil/boto/docs/source/boto_config_tut.rst +125 -0
- data/packages/gsutil/boto/docs/source/boto_theme/static/boto.css_t +239 -0
- data/packages/gsutil/boto/docs/source/boto_theme/static/pygments.css +61 -0
- data/packages/gsutil/boto/docs/source/boto_theme/theme.conf +3 -0
- data/packages/gsutil/boto/docs/source/cloudfront_tut.rst +196 -0
- data/packages/gsutil/boto/docs/source/cloudsearch_tut.rst +411 -0
- data/packages/gsutil/boto/docs/source/cloudwatch_tut.rst +116 -0
- data/packages/gsutil/boto/docs/source/conf.py +32 -0
- data/packages/gsutil/boto/docs/source/contributing.rst +204 -0
- data/packages/gsutil/boto/docs/source/documentation.rst +59 -0
- data/packages/gsutil/boto/docs/source/dynamodb_tut.rst +339 -0
- data/packages/gsutil/boto/docs/source/ec2_tut.rst +86 -0
- data/packages/gsutil/boto/docs/source/elb_tut.rst +257 -0
- data/packages/gsutil/boto/docs/source/emr_tut.rst +108 -0
- data/packages/gsutil/boto/docs/source/index.rst +146 -0
- data/packages/gsutil/boto/docs/source/rds_tut.rst +108 -0
- data/packages/gsutil/boto/docs/source/ref/autoscale.rst +62 -0
- data/packages/gsutil/boto/docs/source/ref/beanstalk.rst +26 -0
- data/packages/gsutil/boto/docs/source/ref/boto.rst +47 -0
- data/packages/gsutil/boto/docs/source/ref/cloudformation.rst +34 -0
- data/packages/gsutil/boto/docs/source/ref/cloudfront.rst +68 -0
- data/packages/gsutil/boto/docs/source/ref/cloudsearch.rst +59 -0
- data/packages/gsutil/boto/docs/source/ref/cloudwatch.rst +27 -0
- data/packages/gsutil/boto/docs/source/ref/contrib.rst +32 -0
- data/packages/gsutil/boto/docs/source/ref/datapipeline.rst +26 -0
- data/packages/gsutil/boto/docs/source/ref/dynamodb.rst +61 -0
- data/packages/gsutil/boto/docs/source/ref/ec2.rst +140 -0
- data/packages/gsutil/boto/docs/source/ref/ecs.rst +19 -0
- data/packages/gsutil/boto/docs/source/ref/elasticache.rst +19 -0
- data/packages/gsutil/boto/docs/source/ref/elastictranscoder.rst +26 -0
- data/packages/gsutil/boto/docs/source/ref/elb.rst +47 -0
- data/packages/gsutil/boto/docs/source/ref/emr.rst +34 -0
- data/packages/gsutil/boto/docs/source/ref/file.rst +34 -0
- data/packages/gsutil/boto/docs/source/ref/fps.rst +19 -0
- data/packages/gsutil/boto/docs/source/ref/glacier.rst +63 -0
- data/packages/gsutil/boto/docs/source/ref/gs.rst +72 -0
- data/packages/gsutil/boto/docs/source/ref/iam.rst +27 -0
- data/packages/gsutil/boto/docs/source/ref/index.rst +40 -0
- data/packages/gsutil/boto/docs/source/ref/manage.rst +47 -0
- data/packages/gsutil/boto/docs/source/ref/mturk.rst +54 -0
- data/packages/gsutil/boto/docs/source/ref/mws.rst +33 -0
- data/packages/gsutil/boto/docs/source/ref/pyami.rst +103 -0
- data/packages/gsutil/boto/docs/source/ref/rds.rst +47 -0
- data/packages/gsutil/boto/docs/source/ref/route53.rst +34 -0
- data/packages/gsutil/boto/docs/source/ref/s3.rst +111 -0
- data/packages/gsutil/boto/docs/source/ref/sdb.rst +45 -0
- data/packages/gsutil/boto/docs/source/ref/sdb_db.rst +83 -0
- data/packages/gsutil/boto/docs/source/ref/services.rst +61 -0
- data/packages/gsutil/boto/docs/source/ref/ses.rst +21 -0
- data/packages/gsutil/boto/docs/source/ref/sns.rst +17 -0
- data/packages/gsutil/boto/docs/source/ref/sqs.rst +61 -0
- data/packages/gsutil/boto/docs/source/ref/sts.rst +25 -0
- data/packages/gsutil/boto/docs/source/ref/swf.rst +22 -0
- data/packages/gsutil/boto/docs/source/ref/vpc.rst +54 -0
- data/packages/gsutil/boto/docs/source/s3_tut.rst +450 -0
- data/packages/gsutil/boto/docs/source/security_groups.rst +82 -0
- data/packages/gsutil/boto/docs/source/ses_tut.rst +171 -0
- data/packages/gsutil/boto/docs/source/simpledb_tut.rst +188 -0
- data/packages/gsutil/boto/docs/source/sqs_tut.rst +246 -0
- data/packages/gsutil/boto/docs/source/vpc_tut.rst +100 -0
- data/packages/gsutil/boto/pylintrc +305 -0
- data/packages/gsutil/boto/requirements.txt +10 -0
- data/packages/gsutil/boto/setup.py +89 -0
- data/packages/gsutil/boto/tests/__init__.py +20 -0
- data/packages/gsutil/boto/tests/db/test_lists.py +96 -0
- data/packages/gsutil/boto/tests/db/test_password.py +128 -0
- data/packages/gsutil/boto/tests/db/test_query.py +152 -0
- data/packages/gsutil/boto/tests/db/test_sequence.py +109 -0
- data/packages/gsutil/boto/tests/devpay/__init__.py +0 -0
- data/packages/gsutil/boto/tests/devpay/test_s3.py +181 -0
- data/packages/gsutil/boto/tests/fps/__init__.py +0 -0
- data/packages/gsutil/boto/tests/fps/test.py +100 -0
- data/packages/gsutil/boto/tests/fps/test_verify_signature.py +12 -0
- data/packages/gsutil/boto/tests/integration/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/beanstalk/test_wrapper.py +209 -0
- data/packages/gsutil/boto/tests/integration/cloudformation/__init__.py +21 -0
- data/packages/gsutil/boto/tests/integration/cloudformation/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/cloudformation/test_connection.py +110 -0
- data/packages/gsutil/boto/tests/integration/cloudsearch/__init__.py +21 -0
- data/packages/gsutil/boto/tests/integration/cloudsearch/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/datapipeline/test_layer1.py +122 -0
- data/packages/gsutil/boto/tests/integration/dynamodb/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/dynamodb/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/dynamodb/test_layer1.py +266 -0
- data/packages/gsutil/boto/tests/integration/dynamodb/test_layer2.py +484 -0
- data/packages/gsutil/boto/tests/integration/dynamodb/test_table.py +84 -0
- data/packages/gsutil/boto/tests/integration/ec2/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/ec2/autoscale/__init__.py +21 -0
- data/packages/gsutil/boto/tests/integration/ec2/autoscale/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/ec2/autoscale/test_connection.py +167 -0
- data/packages/gsutil/boto/tests/integration/ec2/cloudwatch/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/ec2/cloudwatch/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/ec2/cloudwatch/test_connection.py +277 -0
- data/packages/gsutil/boto/tests/integration/ec2/elb/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/ec2/elb/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/ec2/elb/test_connection.py +130 -0
- data/packages/gsutil/boto/tests/integration/ec2/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/ec2/test_connection.py +192 -0
- data/packages/gsutil/boto/tests/integration/ec2/vpc/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/ec2/vpc/test_connection.py +95 -0
- data/packages/gsutil/boto/tests/integration/elasticache/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/elasticache/test_layer1.py +67 -0
- data/packages/gsutil/boto/tests/integration/elastictranscoder/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/elastictranscoder/test_cert_verification.py +35 -0
- data/packages/gsutil/boto/tests/integration/elastictranscoder/test_layer1.py +115 -0
- data/packages/gsutil/boto/tests/integration/emr/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/emr/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/glacier/__init__.py +22 -0
- data/packages/gsutil/boto/tests/integration/glacier/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/glacier/test_layer1.py +44 -0
- data/packages/gsutil/boto/tests/integration/glacier/test_layer2.py +45 -0
- data/packages/gsutil/boto/tests/integration/gs/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/gs/cb_test_harness.py +71 -0
- data/packages/gsutil/boto/tests/integration/gs/test_basic.py +379 -0
- data/packages/gsutil/boto/tests/integration/gs/test_generation_conditionals.py +399 -0
- data/packages/gsutil/boto/tests/integration/gs/test_resumable_downloads.py +358 -0
- data/packages/gsutil/boto/tests/integration/gs/test_resumable_uploads.py +525 -0
- data/packages/gsutil/boto/tests/integration/gs/test_storage_uri.py +125 -0
- data/packages/gsutil/boto/tests/integration/gs/test_versioning.py +268 -0
- data/packages/gsutil/boto/tests/integration/gs/testcase.py +116 -0
- data/packages/gsutil/boto/tests/integration/gs/util.py +63 -0
- data/packages/gsutil/boto/tests/integration/iam/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/iam/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/mws/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/mws/test.py +100 -0
- data/packages/gsutil/boto/tests/integration/rds/__init__.py +21 -0
- data/packages/gsutil/boto/tests/integration/rds/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/route53/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/route53/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/route53/test_zone.py +132 -0
- data/packages/gsutil/boto/tests/integration/s3/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/s3/mock_storage_service.py +589 -0
- data/packages/gsutil/boto/tests/integration/s3/other_cacerts.txt +70 -0
- data/packages/gsutil/boto/tests/integration/s3/test_bucket.py +263 -0
- data/packages/gsutil/boto/tests/integration/s3/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/s3/test_connection.py +245 -0
- data/packages/gsutil/boto/tests/integration/s3/test_cors.py +78 -0
- data/packages/gsutil/boto/tests/integration/s3/test_encryption.py +115 -0
- data/packages/gsutil/boto/tests/integration/s3/test_https_cert_validation.py +141 -0
- data/packages/gsutil/boto/tests/integration/s3/test_key.py +375 -0
- data/packages/gsutil/boto/tests/integration/s3/test_mfa.py +95 -0
- data/packages/gsutil/boto/tests/integration/s3/test_multidelete.py +181 -0
- data/packages/gsutil/boto/tests/integration/s3/test_multipart.py +139 -0
- data/packages/gsutil/boto/tests/integration/s3/test_pool.py +246 -0
- data/packages/gsutil/boto/tests/integration/s3/test_versioning.py +158 -0
- data/packages/gsutil/boto/tests/integration/sdb/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/sdb/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/sdb/test_connection.py +119 -0
- data/packages/gsutil/boto/tests/integration/ses/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/ses/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/ses/test_connection.py +38 -0
- data/packages/gsutil/boto/tests/integration/sns/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/sns/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/sqs/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/sqs/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/sqs/test_connection.py +217 -0
- data/packages/gsutil/boto/tests/integration/sts/__init__.py +20 -0
- data/packages/gsutil/boto/tests/integration/sts/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/sts/test_session_token.py +65 -0
- data/packages/gsutil/boto/tests/integration/swf/__init__.py +0 -0
- data/packages/gsutil/boto/tests/integration/swf/test_cert_verification.py +40 -0
- data/packages/gsutil/boto/tests/integration/swf/test_layer1.py +246 -0
- data/packages/gsutil/boto/tests/integration/swf/test_layer1_workflow_execution.py +173 -0
- data/packages/gsutil/boto/tests/mturk/__init__.py +0 -0
- data/packages/gsutil/boto/tests/mturk/_init_environment.py +28 -0
- data/packages/gsutil/boto/tests/mturk/all_tests.py +24 -0
- data/packages/gsutil/boto/tests/mturk/cleanup_tests.py +47 -0
- data/packages/gsutil/boto/tests/mturk/common.py +45 -0
- data/packages/gsutil/boto/tests/mturk/create_free_text_question_regex.doctest +100 -0
- data/packages/gsutil/boto/tests/mturk/create_hit.doctest +92 -0
- data/packages/gsutil/boto/tests/mturk/create_hit_binary.doctest +94 -0
- data/packages/gsutil/boto/tests/mturk/create_hit_external.py +21 -0
- data/packages/gsutil/boto/tests/mturk/create_hit_from_hit_type.doctest +103 -0
- data/packages/gsutil/boto/tests/mturk/create_hit_test.py +21 -0
- data/packages/gsutil/boto/tests/mturk/create_hit_with_qualifications.py +16 -0
- data/packages/gsutil/boto/tests/mturk/hit_persistence.py +27 -0
- data/packages/gsutil/boto/tests/mturk/mocks.py +11 -0
- data/packages/gsutil/boto/tests/mturk/reviewable_hits.doctest +129 -0
- data/packages/gsutil/boto/tests/mturk/run-doctest.py +13 -0
- data/packages/gsutil/boto/tests/mturk/search_hits.doctest +16 -0
- data/packages/gsutil/boto/tests/mturk/selenium_support.py +61 -0
- data/packages/gsutil/boto/tests/mturk/support.py +7 -0
- data/packages/gsutil/boto/tests/mturk/test_disable_hit.py +11 -0
- data/packages/gsutil/boto/tests/test.py +59 -0
- data/packages/gsutil/boto/tests/unit/__init__.py +79 -0
- data/packages/gsutil/boto/tests/unit/auth/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/auth/test_sigv4.py +73 -0
- data/packages/gsutil/boto/tests/unit/beanstalk/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/beanstalk/test_layer1.py +128 -0
- data/packages/gsutil/boto/tests/unit/cloudformation/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/cloudformation/test_connection.py +605 -0
- data/packages/gsutil/boto/tests/unit/cloudformation/test_stack.py +63 -0
- data/packages/gsutil/boto/tests/unit/cloudfront/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/cloudfront/test_invalidation_list.py +113 -0
- data/packages/gsutil/boto/tests/unit/cloudfront/test_signed_urls.py +354 -0
- data/packages/gsutil/boto/tests/unit/cloudsearch/__init__.py +1 -0
- data/packages/gsutil/boto/tests/unit/cloudsearch/test_connection.py +241 -0
- data/packages/gsutil/boto/tests/unit/cloudsearch/test_document.py +324 -0
- data/packages/gsutil/boto/tests/unit/cloudsearch/test_search.py +325 -0
- data/packages/gsutil/boto/tests/unit/dynamodb/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/dynamodb/test_batch.py +103 -0
- data/packages/gsutil/boto/tests/unit/dynamodb/test_layer2.py +119 -0
- data/packages/gsutil/boto/tests/unit/dynamodb/test_types.py +82 -0
- data/packages/gsutil/boto/tests/unit/ec2/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/ec2/autoscale/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/ec2/autoscale/test_group.py +162 -0
- data/packages/gsutil/boto/tests/unit/ec2/test_address.py +39 -0
- data/packages/gsutil/boto/tests/unit/ec2/test_blockdevicemapping.py +79 -0
- data/packages/gsutil/boto/tests/unit/ec2/test_connection.py +480 -0
- data/packages/gsutil/boto/tests/unit/ec2/test_instance.py +243 -0
- data/packages/gsutil/boto/tests/unit/ec2/test_networkinterface.py +140 -0
- data/packages/gsutil/boto/tests/unit/ec2/test_volume.py +248 -0
- data/packages/gsutil/boto/tests/unit/emr/test_emr_responses.py +373 -0
- data/packages/gsutil/boto/tests/unit/glacier/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_concurrent.py +120 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_job.py +60 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_layer1.py +98 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_layer2.py +266 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_utils.py +116 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_vault.py +100 -0
- data/packages/gsutil/boto/tests/unit/glacier/test_writer.py +185 -0
- data/packages/gsutil/boto/tests/unit/provider/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/provider/test_provider.py +176 -0
- data/packages/gsutil/boto/tests/unit/rds/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/rds/test_connection.py +131 -0
- data/packages/gsutil/boto/tests/unit/s3/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/s3/test_cors_configuration.py +77 -0
- data/packages/gsutil/boto/tests/unit/s3/test_key.py +75 -0
- data/packages/gsutil/boto/tests/unit/s3/test_keyfile.py +101 -0
- data/packages/gsutil/boto/tests/unit/s3/test_lifecycle.py +97 -0
- data/packages/gsutil/boto/tests/unit/s3/test_tagging.py +47 -0
- data/packages/gsutil/boto/tests/unit/s3/test_uri.py +257 -0
- data/packages/gsutil/boto/tests/unit/s3/test_website.py +188 -0
- data/packages/gsutil/boto/tests/unit/sns/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/sns/test_connection.py +99 -0
- data/packages/gsutil/boto/tests/unit/sqs/__init__.py +0 -0
- data/packages/gsutil/boto/tests/unit/sqs/test_connection.py +98 -0
- data/packages/gsutil/boto/tests/unit/sqs/test_queue.py +40 -0
- data/packages/gsutil/boto/tests/unit/sts/test_connection.py +74 -0
- data/packages/gsutil/boto/tests/unit/test_connection.py +60 -0
- data/packages/gsutil/boto/tests/unit/utils/test_utils.py +109 -0
- data/packages/gsutil/boto/tox.ini +8 -0
- data/packages/gsutil/gslib/README +5 -0
- data/packages/gsutil/gslib/__init__.py +22 -0
- data/packages/gsutil/gslib/__init__.pyc +0 -0
- data/packages/gsutil/gslib/addlhelp/__init__.py +15 -0
- data/packages/gsutil/gslib/addlhelp/acls.py +234 -0
- data/packages/gsutil/gslib/addlhelp/anon.py +57 -0
- data/packages/gsutil/gslib/addlhelp/command_opts.py +116 -0
- data/packages/gsutil/gslib/addlhelp/dev.py +139 -0
- data/packages/gsutil/gslib/addlhelp/metadata.py +186 -0
- data/packages/gsutil/gslib/addlhelp/naming.py +173 -0
- data/packages/gsutil/gslib/addlhelp/prod.py +160 -0
- data/packages/gsutil/gslib/addlhelp/projects.py +130 -0
- data/packages/gsutil/gslib/addlhelp/subdirs.py +110 -0
- data/packages/gsutil/gslib/addlhelp/support.py +86 -0
- data/packages/gsutil/gslib/addlhelp/versioning.py +242 -0
- data/packages/gsutil/gslib/addlhelp/wildcards.py +170 -0
- data/packages/gsutil/gslib/bucket_listing_ref.py +175 -0
- data/packages/gsutil/gslib/bucket_listing_ref.pyc +0 -0
- data/packages/gsutil/gslib/command.py +722 -0
- data/packages/gsutil/gslib/command.pyc +0 -0
- data/packages/gsutil/gslib/command_runner.py +101 -0
- data/packages/gsutil/gslib/command_runner.pyc +0 -0
- data/packages/gsutil/gslib/commands/__init__.py +15 -0
- data/packages/gsutil/gslib/commands/__init__.pyc +0 -0
- data/packages/gsutil/gslib/commands/cat.py +131 -0
- data/packages/gsutil/gslib/commands/cat.pyc +0 -0
- data/packages/gsutil/gslib/commands/chacl.py +532 -0
- data/packages/gsutil/gslib/commands/chacl.pyc +0 -0
- data/packages/gsutil/gslib/commands/config.py +694 -0
- data/packages/gsutil/gslib/commands/config.pyc +0 -0
- data/packages/gsutil/gslib/commands/cp.py +1818 -0
- data/packages/gsutil/gslib/commands/cp.pyc +0 -0
- data/packages/gsutil/gslib/commands/disablelogging.py +101 -0
- data/packages/gsutil/gslib/commands/disablelogging.pyc +0 -0
- data/packages/gsutil/gslib/commands/enablelogging.py +149 -0
- data/packages/gsutil/gslib/commands/enablelogging.pyc +0 -0
- data/packages/gsutil/gslib/commands/getacl.py +82 -0
- data/packages/gsutil/gslib/commands/getacl.pyc +0 -0
- data/packages/gsutil/gslib/commands/getcors.py +121 -0
- data/packages/gsutil/gslib/commands/getcors.pyc +0 -0
- data/packages/gsutil/gslib/commands/getdefacl.py +86 -0
- data/packages/gsutil/gslib/commands/getdefacl.pyc +0 -0
- data/packages/gsutil/gslib/commands/getlogging.py +137 -0
- data/packages/gsutil/gslib/commands/getlogging.pyc +0 -0
- data/packages/gsutil/gslib/commands/getversioning.py +116 -0
- data/packages/gsutil/gslib/commands/getversioning.pyc +0 -0
- data/packages/gsutil/gslib/commands/getwebcfg.py +122 -0
- data/packages/gsutil/gslib/commands/getwebcfg.pyc +0 -0
- data/packages/gsutil/gslib/commands/help.py +218 -0
- data/packages/gsutil/gslib/commands/help.pyc +0 -0
- data/packages/gsutil/gslib/commands/ls.py +578 -0
- data/packages/gsutil/gslib/commands/ls.pyc +0 -0
- data/packages/gsutil/gslib/commands/mb.py +172 -0
- data/packages/gsutil/gslib/commands/mb.pyc +0 -0
- data/packages/gsutil/gslib/commands/mv.py +159 -0
- data/packages/gsutil/gslib/commands/mv.pyc +0 -0
- data/packages/gsutil/gslib/commands/perfdiag.py +903 -0
- data/packages/gsutil/gslib/commands/perfdiag.pyc +0 -0
- data/packages/gsutil/gslib/commands/rb.py +113 -0
- data/packages/gsutil/gslib/commands/rb.pyc +0 -0
- data/packages/gsutil/gslib/commands/rm.py +239 -0
- data/packages/gsutil/gslib/commands/rm.pyc +0 -0
- data/packages/gsutil/gslib/commands/setacl.py +138 -0
- data/packages/gsutil/gslib/commands/setacl.pyc +0 -0
- data/packages/gsutil/gslib/commands/setcors.py +145 -0
- data/packages/gsutil/gslib/commands/setcors.pyc +0 -0
- data/packages/gsutil/gslib/commands/setdefacl.py +105 -0
- data/packages/gsutil/gslib/commands/setdefacl.pyc +0 -0
- data/packages/gsutil/gslib/commands/setmeta.py +428 -0
- data/packages/gsutil/gslib/commands/setmeta.pyc +0 -0
- data/packages/gsutil/gslib/commands/setversioning.py +114 -0
- data/packages/gsutil/gslib/commands/setversioning.pyc +0 -0
- data/packages/gsutil/gslib/commands/setwebcfg.py +190 -0
- data/packages/gsutil/gslib/commands/setwebcfg.pyc +0 -0
- data/packages/gsutil/gslib/commands/test.py +228 -0
- data/packages/gsutil/gslib/commands/test.pyc +0 -0
- data/packages/gsutil/gslib/commands/update.py +305 -0
- data/packages/gsutil/gslib/commands/update.pyc +0 -0
- data/packages/gsutil/gslib/commands/version.py +150 -0
- data/packages/gsutil/gslib/commands/version.pyc +0 -0
- data/packages/gsutil/gslib/exception.py +76 -0
- data/packages/gsutil/gslib/exception.pyc +0 -0
- data/packages/gsutil/gslib/help_provider.py +81 -0
- data/packages/gsutil/gslib/help_provider.pyc +0 -0
- data/packages/gsutil/gslib/name_expansion.py +550 -0
- data/packages/gsutil/gslib/name_expansion.pyc +0 -0
- data/packages/gsutil/gslib/no_op_auth_plugin.py +30 -0
- data/packages/gsutil/gslib/plurality_checkable_iterator.py +56 -0
- data/packages/gsutil/gslib/plurality_checkable_iterator.pyc +0 -0
- data/packages/gsutil/gslib/project_id.py +67 -0
- data/packages/gsutil/gslib/project_id.pyc +0 -0
- data/packages/gsutil/gslib/storage_uri_builder.py +56 -0
- data/packages/gsutil/gslib/storage_uri_builder.pyc +0 -0
- data/packages/gsutil/gslib/tests/__init__.py +15 -0
- data/packages/gsutil/gslib/tests/__init__.pyc +0 -0
- data/packages/gsutil/gslib/tests/test_chacl.py +236 -0
- data/packages/gsutil/gslib/tests/test_cp.py +267 -0
- data/packages/gsutil/gslib/tests/test_data/test.gif +0 -0
- data/packages/gsutil/gslib/tests/test_data/test.mp3 +0 -0
- data/packages/gsutil/gslib/tests/test_ls.py +66 -0
- data/packages/gsutil/gslib/tests/test_mv.py +69 -0
- data/packages/gsutil/gslib/tests/test_naming.py +989 -0
- data/packages/gsutil/gslib/tests/test_perfdiag.py +41 -0
- data/packages/gsutil/gslib/tests/test_plurality_checkable_iterator.py +67 -0
- data/packages/gsutil/gslib/tests/test_rm.py +143 -0
- data/packages/gsutil/gslib/tests/test_setacl.py +152 -0
- data/packages/gsutil/gslib/tests/test_setcors.py +168 -0
- data/packages/gsutil/gslib/tests/test_setmeta.py +91 -0
- data/packages/gsutil/gslib/tests/test_setversioning.py +44 -0
- data/packages/gsutil/gslib/tests/test_setwebcfg.py +63 -0
- data/packages/gsutil/gslib/tests/test_thread_pool.py +92 -0
- data/packages/gsutil/gslib/tests/test_wildcard_iterator.py +364 -0
- data/packages/gsutil/gslib/tests/testcase/__init__.py +18 -0
- data/packages/gsutil/gslib/tests/testcase/base.py +89 -0
- data/packages/gsutil/gslib/tests/testcase/integration_testcase.py +197 -0
- data/packages/gsutil/gslib/tests/testcase/unit_testcase.py +230 -0
- data/packages/gsutil/gslib/tests/util.py +125 -0
- data/packages/gsutil/gslib/tests/util.pyc +0 -0
- data/packages/gsutil/gslib/thread_pool.py +79 -0
- data/packages/gsutil/gslib/thread_pool.pyc +0 -0
- data/packages/gsutil/gslib/util.py +151 -0
- data/packages/gsutil/gslib/util.pyc +0 -0
- data/packages/gsutil/gslib/wildcard_iterator.py +492 -0
- data/packages/gsutil/gslib/wildcard_iterator.pyc +0 -0
- data/packages/gsutil/gsutil +377 -0
- data/packages/gsutil/gsutil.spec.in +75 -0
- data/packages/gsutil/oauth2_plugin/__init__.py +22 -0
- data/packages/gsutil/oauth2_plugin/__init__.pyc +0 -0
- data/packages/gsutil/oauth2_plugin/oauth2_client.py +642 -0
- data/packages/gsutil/oauth2_plugin/oauth2_client.pyc +0 -0
- data/packages/gsutil/oauth2_plugin/oauth2_client_test.py +374 -0
- data/packages/gsutil/oauth2_plugin/oauth2_helper.py +110 -0
- data/packages/gsutil/oauth2_plugin/oauth2_helper.pyc +0 -0
- data/packages/gsutil/oauth2_plugin/oauth2_plugin.py +24 -0
- data/packages/gsutil/oauth2_plugin/oauth2_plugin.pyc +0 -0
- data/packages/gsutil/pkg_gen.sh +54 -0
- data/packages/gsutil/pkg_util.py +60 -0
- data/packages/gsutil/setup.py +141 -0
- data/packages/gsutil/third_party/__init__.py +0 -0
- data/packages/gsutil/third_party/__init__.pyc +0 -0
- data/packages/gsutil/third_party/fancy_urllib/README +21 -0
- data/packages/gsutil/third_party/fancy_urllib/__init__.py +398 -0
- data/packages/gsutil/third_party/fancy_urllib/__init__.pyc +0 -0
- data/tasks/rubygem.rake +3 -1
- metadata +770 -7
- metadata.gz.sig +0 -0
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Defines an interface which all Auth handlers need to implement.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from plugin import Plugin
|
|
27
|
+
|
|
28
|
+
class NotReadyToAuthenticate(Exception):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
class AuthHandler(Plugin):
|
|
32
|
+
|
|
33
|
+
capability = []
|
|
34
|
+
|
|
35
|
+
def __init__(self, host, config, provider):
|
|
36
|
+
"""Constructs the handlers.
|
|
37
|
+
:type host: string
|
|
38
|
+
:param host: The host to which the request is being sent.
|
|
39
|
+
|
|
40
|
+
:type config: boto.pyami.Config
|
|
41
|
+
:param config: Boto configuration.
|
|
42
|
+
|
|
43
|
+
:type provider: boto.provider.Provider
|
|
44
|
+
:param provider: Provider details.
|
|
45
|
+
|
|
46
|
+
Raises:
|
|
47
|
+
NotReadyToAuthenticate: if this handler is not willing to
|
|
48
|
+
authenticate for the given provider and config.
|
|
49
|
+
"""
|
|
50
|
+
pass
|
|
51
|
+
|
|
52
|
+
def add_auth(self, http_request):
|
|
53
|
+
"""Invoked to add authentication details to request.
|
|
54
|
+
|
|
55
|
+
:type http_request: boto.connection.HTTPRequest
|
|
56
|
+
:param http_request: HTTP request that needs to be authenticated.
|
|
57
|
+
"""
|
|
58
|
+
pass
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates.
|
|
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
|
+
from boto.regioninfo import RegionInfo
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def regions():
|
|
27
|
+
"""
|
|
28
|
+
Get all available regions for the AWS Elastic Beanstalk service.
|
|
29
|
+
|
|
30
|
+
:rtype: list
|
|
31
|
+
:return: A list of :class:`boto.regioninfo.RegionInfo`
|
|
32
|
+
"""
|
|
33
|
+
import boto.beanstalk.layer1
|
|
34
|
+
return [RegionInfo(name='us-east-1',
|
|
35
|
+
endpoint='elasticbeanstalk.us-east-1.amazonaws.com',
|
|
36
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
37
|
+
RegionInfo(name='us-west-1',
|
|
38
|
+
endpoint='elasticbeanstalk.us-west-1.amazonaws.com',
|
|
39
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
40
|
+
RegionInfo(name='us-west-2',
|
|
41
|
+
endpoint='elasticbeanstalk.us-west-2.amazonaws.com',
|
|
42
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
43
|
+
RegionInfo(name='ap-northeast-1',
|
|
44
|
+
endpoint='elasticbeanstalk.ap-northeast-1.amazonaws.com',
|
|
45
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
46
|
+
RegionInfo(name='ap-southeast-1',
|
|
47
|
+
endpoint='elasticbeanstalk.ap-southeast-1.amazonaws.com',
|
|
48
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
49
|
+
RegionInfo(name='ap-southeast-2',
|
|
50
|
+
endpoint='elasticbeanstalk.ap-southeast-2.amazonaws.com',
|
|
51
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
52
|
+
RegionInfo(name='eu-west-1',
|
|
53
|
+
endpoint='elasticbeanstalk.eu-west-1.amazonaws.com',
|
|
54
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
55
|
+
RegionInfo(name='sa-east-1',
|
|
56
|
+
endpoint='elasticbeanstalk.sa-east-1.amazonaws.com',
|
|
57
|
+
connection_cls=boto.beanstalk.layer1.Layer1),
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def connect_to_region(region_name, **kw_params):
|
|
62
|
+
for region in regions():
|
|
63
|
+
if region.name == region_name:
|
|
64
|
+
return region.connect(**kw_params)
|
|
65
|
+
return None
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import json
|
|
3
|
+
from boto.exception import BotoServerError
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def simple(e):
|
|
7
|
+
err = json.loads(e.error_message)
|
|
8
|
+
code = err['Error']['Code']
|
|
9
|
+
|
|
10
|
+
try:
|
|
11
|
+
# Dynamically get the error class.
|
|
12
|
+
simple_e = getattr(sys.modules[__name__], code)(e, err)
|
|
13
|
+
except AttributeError:
|
|
14
|
+
# Return original exception on failure.
|
|
15
|
+
return e
|
|
16
|
+
|
|
17
|
+
return simple_e
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class SimpleException(BotoServerError):
|
|
21
|
+
def __init__(self, e, err):
|
|
22
|
+
super(SimpleException, self).__init__(e.status, e.reason, e.body)
|
|
23
|
+
self.body = e.error_message
|
|
24
|
+
self.request_id = err['RequestId']
|
|
25
|
+
self.error_code = err['Error']['Code']
|
|
26
|
+
self.error_message = err['Error']['Message']
|
|
27
|
+
|
|
28
|
+
def __repr__(self):
|
|
29
|
+
return self.__class__.__name__ + ': ' + self.error_message
|
|
30
|
+
def __str__(self):
|
|
31
|
+
return self.__class__.__name__ + ': ' + self.error_message
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ValidationError(SimpleException): pass
|
|
35
|
+
|
|
36
|
+
# Common beanstalk exceptions.
|
|
37
|
+
class IncompleteSignature(SimpleException): pass
|
|
38
|
+
class InternalFailure(SimpleException): pass
|
|
39
|
+
class InvalidAction(SimpleException): pass
|
|
40
|
+
class InvalidClientTokenId(SimpleException): pass
|
|
41
|
+
class InvalidParameterCombination(SimpleException): pass
|
|
42
|
+
class InvalidParameterValue(SimpleException): pass
|
|
43
|
+
class InvalidQueryParameter(SimpleException): pass
|
|
44
|
+
class MalformedQueryString(SimpleException): pass
|
|
45
|
+
class MissingAction(SimpleException): pass
|
|
46
|
+
class MissingAuthenticationToken(SimpleException): pass
|
|
47
|
+
class MissingParameter(SimpleException): pass
|
|
48
|
+
class OptInRequired(SimpleException): pass
|
|
49
|
+
class RequestExpired(SimpleException): pass
|
|
50
|
+
class ServiceUnavailable(SimpleException): pass
|
|
51
|
+
class Throttling(SimpleException): pass
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# Action specific exceptions.
|
|
55
|
+
class TooManyApplications(SimpleException): pass
|
|
56
|
+
class InsufficientPrivileges(SimpleException): pass
|
|
57
|
+
class S3LocationNotInServiceRegion(SimpleException): pass
|
|
58
|
+
class TooManyApplicationVersions(SimpleException): pass
|
|
59
|
+
class TooManyConfigurationTemplates(SimpleException): pass
|
|
60
|
+
class TooManyEnvironments(SimpleException): pass
|
|
61
|
+
class S3SubscriptionRequired(SimpleException): pass
|
|
62
|
+
class TooManyBuckets(SimpleException): pass
|
|
63
|
+
class OperationInProgress(SimpleException): pass
|
|
64
|
+
class SourceBundleDeletion(SimpleException): pass
|
|
@@ -0,0 +1,1153 @@
|
|
|
1
|
+
# Copyright (c) 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
|
+
import json
|
|
25
|
+
|
|
26
|
+
import boto
|
|
27
|
+
import boto.jsonresponse
|
|
28
|
+
from boto.regioninfo import RegionInfo
|
|
29
|
+
from boto.connection import AWSQueryConnection
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class Layer1(AWSQueryConnection):
|
|
33
|
+
|
|
34
|
+
APIVersion = '2010-12-01'
|
|
35
|
+
DefaultRegionName = 'us-east-1'
|
|
36
|
+
DefaultRegionEndpoint = 'elasticbeanstalk.us-east-1.amazonaws.com'
|
|
37
|
+
|
|
38
|
+
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
|
|
39
|
+
is_secure=True, port=None,
|
|
40
|
+
proxy=None, proxy_port=None,
|
|
41
|
+
proxy_user=None, proxy_pass=None, debug=0,
|
|
42
|
+
https_connection_factory=None, region=None, path='/',
|
|
43
|
+
api_version=None, security_token=None):
|
|
44
|
+
if not region:
|
|
45
|
+
region = RegionInfo(self, self.DefaultRegionName,
|
|
46
|
+
self.DefaultRegionEndpoint)
|
|
47
|
+
self.region = region
|
|
48
|
+
AWSQueryConnection.__init__(self, aws_access_key_id,
|
|
49
|
+
aws_secret_access_key,
|
|
50
|
+
is_secure, port, proxy, proxy_port,
|
|
51
|
+
proxy_user, proxy_pass,
|
|
52
|
+
self.region.endpoint, debug,
|
|
53
|
+
https_connection_factory, path,
|
|
54
|
+
security_token)
|
|
55
|
+
|
|
56
|
+
def _required_auth_capability(self):
|
|
57
|
+
return ['sign-v2']
|
|
58
|
+
|
|
59
|
+
def _encode_bool(self, v):
|
|
60
|
+
v = bool(v)
|
|
61
|
+
return {True: "true", False: "false"}[v]
|
|
62
|
+
|
|
63
|
+
def _get_response(self, action, params, path='/', verb='GET'):
|
|
64
|
+
params['ContentType'] = 'JSON'
|
|
65
|
+
response = self.make_request(action, params, path, verb)
|
|
66
|
+
body = response.read()
|
|
67
|
+
boto.log.debug(body)
|
|
68
|
+
if response.status == 200:
|
|
69
|
+
return json.loads(body)
|
|
70
|
+
else:
|
|
71
|
+
raise self.ResponseError(response.status, response.reason, body)
|
|
72
|
+
|
|
73
|
+
def check_dns_availability(self, cname_prefix):
|
|
74
|
+
"""Checks if the specified CNAME is available.
|
|
75
|
+
|
|
76
|
+
:type cname_prefix: string
|
|
77
|
+
:param cname_prefix: The prefix used when this CNAME is
|
|
78
|
+
reserved.
|
|
79
|
+
"""
|
|
80
|
+
params = {'CNAMEPrefix': cname_prefix}
|
|
81
|
+
return self._get_response('CheckDNSAvailability', params)
|
|
82
|
+
|
|
83
|
+
def create_application(self, application_name, description=None):
|
|
84
|
+
"""
|
|
85
|
+
Creates an application that has one configuration template
|
|
86
|
+
named default and no application versions.
|
|
87
|
+
|
|
88
|
+
:type application_name: string
|
|
89
|
+
:param application_name: The name of the application.
|
|
90
|
+
Constraint: This name must be unique within your account. If the
|
|
91
|
+
specified name already exists, the action returns an
|
|
92
|
+
InvalidParameterValue error.
|
|
93
|
+
|
|
94
|
+
:type description: string
|
|
95
|
+
:param description: Describes the application.
|
|
96
|
+
|
|
97
|
+
:raises: TooManyApplicationsException
|
|
98
|
+
"""
|
|
99
|
+
params = {'ApplicationName': application_name}
|
|
100
|
+
if description:
|
|
101
|
+
params['Description'] = description
|
|
102
|
+
return self._get_response('CreateApplication', params)
|
|
103
|
+
|
|
104
|
+
def create_application_version(self, application_name, version_label,
|
|
105
|
+
description=None, s3_bucket=None,
|
|
106
|
+
s3_key=None, auto_create_application=None):
|
|
107
|
+
"""Creates an application version for the specified application.
|
|
108
|
+
|
|
109
|
+
:type application_name: string
|
|
110
|
+
:param application_name: The name of the application. If no
|
|
111
|
+
application is found with this name, and AutoCreateApplication is
|
|
112
|
+
false, returns an InvalidParameterValue error.
|
|
113
|
+
|
|
114
|
+
:type version_label: string
|
|
115
|
+
:param version_label: A label identifying this version. Constraint:
|
|
116
|
+
Must be unique per application. If an application version already
|
|
117
|
+
exists with this label for the specified application, AWS Elastic
|
|
118
|
+
Beanstalk returns an InvalidParameterValue error.
|
|
119
|
+
|
|
120
|
+
:type description: string
|
|
121
|
+
:param description: Describes this version.
|
|
122
|
+
|
|
123
|
+
:type s3_bucket: string
|
|
124
|
+
:param s3_bucket: The Amazon S3 bucket where the data is located.
|
|
125
|
+
|
|
126
|
+
:type s3_key: string
|
|
127
|
+
:param s3_key: The Amazon S3 key where the data is located. Both
|
|
128
|
+
s3_bucket and s3_key must be specified in order to use a specific
|
|
129
|
+
source bundle. If both of these values are not specified the
|
|
130
|
+
sample application will be used.
|
|
131
|
+
|
|
132
|
+
:type auto_create_application: boolean
|
|
133
|
+
:param auto_create_application: Determines how the system behaves if
|
|
134
|
+
the specified application for this version does not already exist:
|
|
135
|
+
true: Automatically creates the specified application for this
|
|
136
|
+
version if it does not already exist. false: Returns an
|
|
137
|
+
InvalidParameterValue if the specified application for this version
|
|
138
|
+
does not already exist. Default: false Valid Values: true | false
|
|
139
|
+
|
|
140
|
+
:raises: TooManyApplicationsException,
|
|
141
|
+
TooManyApplicationVersionsException,
|
|
142
|
+
InsufficientPrivilegesException,
|
|
143
|
+
S3LocationNotInServiceRegionException
|
|
144
|
+
|
|
145
|
+
"""
|
|
146
|
+
params = {'ApplicationName': application_name,
|
|
147
|
+
'VersionLabel': version_label}
|
|
148
|
+
if description:
|
|
149
|
+
params['Description'] = description
|
|
150
|
+
if s3_bucket and s3_key:
|
|
151
|
+
params['SourceBundle.S3Bucket'] = s3_bucket
|
|
152
|
+
params['SourceBundle.S3Key'] = s3_key
|
|
153
|
+
if auto_create_application:
|
|
154
|
+
params['AutoCreateApplication'] = self._encode_bool(
|
|
155
|
+
auto_create_application)
|
|
156
|
+
return self._get_response('CreateApplicationVersion', params)
|
|
157
|
+
|
|
158
|
+
def create_configuration_template(self, application_name, template_name,
|
|
159
|
+
solution_stack_name=None,
|
|
160
|
+
source_configuration_application_name=None,
|
|
161
|
+
source_configuration_template_name=None,
|
|
162
|
+
environment_id=None, description=None,
|
|
163
|
+
option_settings=None):
|
|
164
|
+
"""Creates a configuration template.
|
|
165
|
+
|
|
166
|
+
Templates are associated with a specific application and are used to
|
|
167
|
+
deploy different versions of the application with the same
|
|
168
|
+
configuration settings.
|
|
169
|
+
|
|
170
|
+
:type application_name: string
|
|
171
|
+
:param application_name: The name of the application to associate with
|
|
172
|
+
this configuration template. If no application is found with this
|
|
173
|
+
name, AWS Elastic Beanstalk returns an InvalidParameterValue error.
|
|
174
|
+
|
|
175
|
+
:type template_name: string
|
|
176
|
+
:param template_name: The name of the configuration template.
|
|
177
|
+
Constraint: This name must be unique per application. Default: If
|
|
178
|
+
a configuration template already exists with this name, AWS Elastic
|
|
179
|
+
Beanstalk returns an InvalidParameterValue error.
|
|
180
|
+
|
|
181
|
+
:type solution_stack_name: string
|
|
182
|
+
:param solution_stack_name: The name of the solution stack used by this
|
|
183
|
+
configuration. The solution stack specifies the operating system,
|
|
184
|
+
architecture, and application server for a configuration template.
|
|
185
|
+
It determines the set of configuration options as well as the
|
|
186
|
+
possible and default values. Use ListAvailableSolutionStacks to
|
|
187
|
+
obtain a list of available solution stacks. Default: If the
|
|
188
|
+
SolutionStackName is not specified and the source configuration
|
|
189
|
+
parameter is blank, AWS Elastic Beanstalk uses the default solution
|
|
190
|
+
stack. If not specified and the source configuration parameter is
|
|
191
|
+
specified, AWS Elastic Beanstalk uses the same solution stack as
|
|
192
|
+
the source configuration template.
|
|
193
|
+
|
|
194
|
+
:type source_configuration_application_name: string
|
|
195
|
+
:param source_configuration_application_name: The name of the
|
|
196
|
+
application associated with the configuration.
|
|
197
|
+
|
|
198
|
+
:type source_configuration_template_name: string
|
|
199
|
+
:param source_configuration_template_name: The name of the
|
|
200
|
+
configuration template.
|
|
201
|
+
|
|
202
|
+
:type environment_id: string
|
|
203
|
+
:param environment_id: The ID of the environment used with this
|
|
204
|
+
configuration template.
|
|
205
|
+
|
|
206
|
+
:type description: string
|
|
207
|
+
:param description: Describes this configuration.
|
|
208
|
+
|
|
209
|
+
:type option_settings: list
|
|
210
|
+
:param option_settings: If specified, AWS Elastic Beanstalk sets the
|
|
211
|
+
specified configuration option to the requested value. The new
|
|
212
|
+
value overrides the value obtained from the solution stack or the
|
|
213
|
+
source configuration template.
|
|
214
|
+
|
|
215
|
+
:raises: InsufficientPrivilegesException,
|
|
216
|
+
TooManyConfigurationTemplatesException
|
|
217
|
+
"""
|
|
218
|
+
params = {'ApplicationName': application_name,
|
|
219
|
+
'TemplateName': template_name}
|
|
220
|
+
if solution_stack_name:
|
|
221
|
+
params['SolutionStackName'] = solution_stack_name
|
|
222
|
+
if source_configuration_application_name:
|
|
223
|
+
params['SourceConfiguration.ApplicationName'] = source_configuration_application_name
|
|
224
|
+
if source_configuration_template_name:
|
|
225
|
+
params['SourceConfiguration.TemplateName'] = source_configuration_template_name
|
|
226
|
+
if environment_id:
|
|
227
|
+
params['EnvironmentId'] = environment_id
|
|
228
|
+
if description:
|
|
229
|
+
params['Description'] = description
|
|
230
|
+
if option_settings:
|
|
231
|
+
self._build_list_params(params, option_settings,
|
|
232
|
+
'OptionSettings.member',
|
|
233
|
+
('Namespace', 'OptionName', 'Value'))
|
|
234
|
+
return self._get_response('CreateConfigurationTemplate', params)
|
|
235
|
+
|
|
236
|
+
def create_environment(self, application_name, environment_name,
|
|
237
|
+
version_label=None, template_name=None,
|
|
238
|
+
solution_stack_name=None, cname_prefix=None,
|
|
239
|
+
description=None, option_settings=None,
|
|
240
|
+
options_to_remove=None):
|
|
241
|
+
"""Launches an environment for the application using a configuration.
|
|
242
|
+
|
|
243
|
+
:type application_name: string
|
|
244
|
+
:param application_name: The name of the application that contains the
|
|
245
|
+
version to be deployed. If no application is found with this name,
|
|
246
|
+
CreateEnvironment returns an InvalidParameterValue error.
|
|
247
|
+
|
|
248
|
+
:type version_label: string
|
|
249
|
+
:param version_label: The name of the application version to deploy. If
|
|
250
|
+
the specified application has no associated application versions,
|
|
251
|
+
AWS Elastic Beanstalk UpdateEnvironment returns an
|
|
252
|
+
InvalidParameterValue error. Default: If not specified, AWS
|
|
253
|
+
Elastic Beanstalk attempts to launch the most recently created
|
|
254
|
+
application version.
|
|
255
|
+
|
|
256
|
+
:type environment_name: string
|
|
257
|
+
:param environment_name: A unique name for the deployment environment.
|
|
258
|
+
Used in the application URL. Constraint: Must be from 4 to 23
|
|
259
|
+
characters in length. The name can contain only letters, numbers,
|
|
260
|
+
and hyphens. It cannot start or end with a hyphen. This name must
|
|
261
|
+
be unique in your account. If the specified name already exists,
|
|
262
|
+
AWS Elastic Beanstalk returns an InvalidParameterValue error.
|
|
263
|
+
Default: If the CNAME parameter is not specified, the environment
|
|
264
|
+
name becomes part of the CNAME, and therefore part of the visible
|
|
265
|
+
URL for your application.
|
|
266
|
+
|
|
267
|
+
:type template_name: string
|
|
268
|
+
:param template_name: The name of the configuration template to
|
|
269
|
+
use in deployment. If no configuration template is found with this
|
|
270
|
+
name, AWS Elastic Beanstalk returns an InvalidParameterValue error.
|
|
271
|
+
Condition: You must specify either this parameter or a
|
|
272
|
+
SolutionStackName, but not both. If you specify both, AWS Elastic
|
|
273
|
+
Beanstalk returns an InvalidParameterCombination error. If you do
|
|
274
|
+
not specify either, AWS Elastic Beanstalk returns a
|
|
275
|
+
MissingRequiredParameter error.
|
|
276
|
+
|
|
277
|
+
:type solution_stack_name: string
|
|
278
|
+
:param solution_stack_name: This is an alternative to specifying a
|
|
279
|
+
configuration name. If specified, AWS Elastic Beanstalk sets the
|
|
280
|
+
configuration values to the default values associated with the
|
|
281
|
+
specified solution stack. Condition: You must specify either this
|
|
282
|
+
or a TemplateName, but not both. If you specify both, AWS Elastic
|
|
283
|
+
Beanstalk returns an InvalidParameterCombination error. If you do
|
|
284
|
+
not specify either, AWS Elastic Beanstalk returns a
|
|
285
|
+
MissingRequiredParameter error.
|
|
286
|
+
|
|
287
|
+
:type cname_prefix: string
|
|
288
|
+
:param cname_prefix: If specified, the environment attempts to use this
|
|
289
|
+
value as the prefix for the CNAME. If not specified, the
|
|
290
|
+
environment uses the environment name.
|
|
291
|
+
|
|
292
|
+
:type description: string
|
|
293
|
+
:param description: Describes this environment.
|
|
294
|
+
|
|
295
|
+
:type option_settings: list
|
|
296
|
+
:param option_settings: If specified, AWS Elastic Beanstalk sets the
|
|
297
|
+
specified configuration options to the requested value in the
|
|
298
|
+
configuration set for the new environment. These override the
|
|
299
|
+
values obtained from the solution stack or the configuration
|
|
300
|
+
template. Each element in the list is a tuple of (Namespace,
|
|
301
|
+
OptionName, Value), for example::
|
|
302
|
+
|
|
303
|
+
[('aws:autoscaling:launchconfiguration',
|
|
304
|
+
'Ec2KeyName', 'mykeypair')]
|
|
305
|
+
|
|
306
|
+
:type options_to_remove: list
|
|
307
|
+
:param options_to_remove: A list of custom user-defined configuration
|
|
308
|
+
options to remove from the configuration set for this new
|
|
309
|
+
environment.
|
|
310
|
+
|
|
311
|
+
:raises: TooManyEnvironmentsException, InsufficientPrivilegesException
|
|
312
|
+
|
|
313
|
+
"""
|
|
314
|
+
params = {'ApplicationName': application_name,
|
|
315
|
+
'EnvironmentName': environment_name}
|
|
316
|
+
if version_label:
|
|
317
|
+
params['VersionLabel'] = version_label
|
|
318
|
+
if template_name:
|
|
319
|
+
params['TemplateName'] = template_name
|
|
320
|
+
if solution_stack_name:
|
|
321
|
+
params['SolutionStackName'] = solution_stack_name
|
|
322
|
+
if cname_prefix:
|
|
323
|
+
params['CNAMEPrefix'] = cname_prefix
|
|
324
|
+
if description:
|
|
325
|
+
params['Description'] = description
|
|
326
|
+
if option_settings:
|
|
327
|
+
self._build_list_params(params, option_settings,
|
|
328
|
+
'OptionSettings.member',
|
|
329
|
+
('Namespace', 'OptionName', 'Value'))
|
|
330
|
+
if options_to_remove:
|
|
331
|
+
self.build_list_params(params, options_to_remove,
|
|
332
|
+
'OptionsToRemove.member')
|
|
333
|
+
return self._get_response('CreateEnvironment', params)
|
|
334
|
+
|
|
335
|
+
def create_storage_location(self):
|
|
336
|
+
"""
|
|
337
|
+
Creates the Amazon S3 storage location for the account. This
|
|
338
|
+
location is used to store user log files.
|
|
339
|
+
|
|
340
|
+
:raises: TooManyBucketsException,
|
|
341
|
+
S3SubscriptionRequiredException,
|
|
342
|
+
InsufficientPrivilegesException
|
|
343
|
+
|
|
344
|
+
"""
|
|
345
|
+
return self._get_response('CreateStorageLocation', params={})
|
|
346
|
+
|
|
347
|
+
def delete_application(self, application_name,
|
|
348
|
+
terminate_env_by_force=None):
|
|
349
|
+
"""
|
|
350
|
+
Deletes the specified application along with all associated
|
|
351
|
+
versions and configurations. The application versions will not
|
|
352
|
+
be deleted from your Amazon S3 bucket.
|
|
353
|
+
|
|
354
|
+
:type application_name: string
|
|
355
|
+
:param application_name: The name of the application to delete.
|
|
356
|
+
|
|
357
|
+
:type terminate_env_by_force: boolean
|
|
358
|
+
:param terminate_env_by_force: When set to true, running
|
|
359
|
+
environments will be terminated before deleting the application.
|
|
360
|
+
|
|
361
|
+
:raises: OperationInProgressException
|
|
362
|
+
|
|
363
|
+
"""
|
|
364
|
+
params = {'ApplicationName': application_name}
|
|
365
|
+
if terminate_env_by_force:
|
|
366
|
+
params['TerminateEnvByForce'] = self._encode_bool(
|
|
367
|
+
terminate_env_by_force)
|
|
368
|
+
return self._get_response('DeleteApplication', params)
|
|
369
|
+
|
|
370
|
+
def delete_application_version(self, application_name, version_label,
|
|
371
|
+
delete_source_bundle=None):
|
|
372
|
+
"""Deletes the specified version from the specified application.
|
|
373
|
+
|
|
374
|
+
:type application_name: string
|
|
375
|
+
:param application_name: The name of the application to delete
|
|
376
|
+
releases from.
|
|
377
|
+
|
|
378
|
+
:type version_label: string
|
|
379
|
+
:param version_label: The label of the version to delete.
|
|
380
|
+
|
|
381
|
+
:type delete_source_bundle: boolean
|
|
382
|
+
:param delete_source_bundle: Indicates whether to delete the
|
|
383
|
+
associated source bundle from Amazon S3. Valid Values: true |
|
|
384
|
+
false
|
|
385
|
+
|
|
386
|
+
:raises: SourceBundleDeletionException,
|
|
387
|
+
InsufficientPrivilegesException,
|
|
388
|
+
OperationInProgressException,
|
|
389
|
+
S3LocationNotInServiceRegionException
|
|
390
|
+
"""
|
|
391
|
+
params = {'ApplicationName': application_name,
|
|
392
|
+
'VersionLabel': version_label}
|
|
393
|
+
if delete_source_bundle:
|
|
394
|
+
params['DeleteSourceBundle'] = self._encode_bool(
|
|
395
|
+
delete_source_bundle)
|
|
396
|
+
return self._get_response('DeleteApplicationVersion', params)
|
|
397
|
+
|
|
398
|
+
def delete_configuration_template(self, application_name, template_name):
|
|
399
|
+
"""Deletes the specified configuration template.
|
|
400
|
+
|
|
401
|
+
:type application_name: string
|
|
402
|
+
:param application_name: The name of the application to delete
|
|
403
|
+
the configuration template from.
|
|
404
|
+
|
|
405
|
+
:type template_name: string
|
|
406
|
+
:param template_name: The name of the configuration template to
|
|
407
|
+
delete.
|
|
408
|
+
|
|
409
|
+
:raises: OperationInProgressException
|
|
410
|
+
|
|
411
|
+
"""
|
|
412
|
+
params = {'ApplicationName': application_name,
|
|
413
|
+
'TemplateName': template_name}
|
|
414
|
+
return self._get_response('DeleteConfigurationTemplate', params)
|
|
415
|
+
|
|
416
|
+
def delete_environment_configuration(self, application_name,
|
|
417
|
+
environment_name):
|
|
418
|
+
"""
|
|
419
|
+
Deletes the draft configuration associated with the running
|
|
420
|
+
environment. Updating a running environment with any
|
|
421
|
+
configuration changes creates a draft configuration set. You can
|
|
422
|
+
get the draft configuration using DescribeConfigurationSettings
|
|
423
|
+
while the update is in progress or if the update fails. The
|
|
424
|
+
DeploymentStatus for the draft configuration indicates whether
|
|
425
|
+
the deployment is in process or has failed. The draft
|
|
426
|
+
configuration remains in existence until it is deleted with this
|
|
427
|
+
action.
|
|
428
|
+
|
|
429
|
+
:type application_name: string
|
|
430
|
+
:param application_name: The name of the application the
|
|
431
|
+
environment is associated with.
|
|
432
|
+
|
|
433
|
+
:type environment_name: string
|
|
434
|
+
:param environment_name: The name of the environment to delete
|
|
435
|
+
the draft configuration from.
|
|
436
|
+
|
|
437
|
+
"""
|
|
438
|
+
params = {'ApplicationName': application_name,
|
|
439
|
+
'EnvironmentName': environment_name}
|
|
440
|
+
return self._get_response('DeleteEnvironmentConfiguration', params)
|
|
441
|
+
|
|
442
|
+
def describe_application_versions(self, application_name=None,
|
|
443
|
+
version_labels=None):
|
|
444
|
+
"""Returns descriptions for existing application versions.
|
|
445
|
+
|
|
446
|
+
:type application_name: string
|
|
447
|
+
:param application_name: If specified, AWS Elastic Beanstalk restricts
|
|
448
|
+
the returned descriptions to only include ones that are associated
|
|
449
|
+
with the specified application.
|
|
450
|
+
|
|
451
|
+
:type version_labels: list
|
|
452
|
+
:param version_labels: If specified, restricts the returned
|
|
453
|
+
descriptions to only include ones that have the specified version
|
|
454
|
+
labels.
|
|
455
|
+
|
|
456
|
+
"""
|
|
457
|
+
params = {}
|
|
458
|
+
if application_name:
|
|
459
|
+
params['ApplicationName'] = application_name
|
|
460
|
+
if version_labels:
|
|
461
|
+
self.build_list_params(params, version_labels,
|
|
462
|
+
'VersionLabels.member')
|
|
463
|
+
return self._get_response('DescribeApplicationVersions', params)
|
|
464
|
+
|
|
465
|
+
def describe_applications(self, application_names=None):
|
|
466
|
+
"""Returns the descriptions of existing applications.
|
|
467
|
+
|
|
468
|
+
:type application_names: list
|
|
469
|
+
:param application_names: If specified, AWS Elastic Beanstalk restricts
|
|
470
|
+
the returned descriptions to only include those with the specified
|
|
471
|
+
names.
|
|
472
|
+
|
|
473
|
+
"""
|
|
474
|
+
params = {}
|
|
475
|
+
if application_names:
|
|
476
|
+
self.build_list_params(params, application_names,
|
|
477
|
+
'ApplicationNames.member')
|
|
478
|
+
return self._get_response('DescribeApplications', params)
|
|
479
|
+
|
|
480
|
+
def describe_configuration_options(self, application_name=None,
|
|
481
|
+
template_name=None,
|
|
482
|
+
environment_name=None,
|
|
483
|
+
solution_stack_name=None, options=None):
|
|
484
|
+
"""Describes configuration options used in a template or environment.
|
|
485
|
+
|
|
486
|
+
Describes the configuration options that are used in a
|
|
487
|
+
particular configuration template or environment, or that a
|
|
488
|
+
specified solution stack defines. The description includes the
|
|
489
|
+
values the options, their default values, and an indication of
|
|
490
|
+
the required action on a running environment if an option value
|
|
491
|
+
is changed.
|
|
492
|
+
|
|
493
|
+
:type application_name: string
|
|
494
|
+
:param application_name: The name of the application associated with
|
|
495
|
+
the configuration template or environment. Only needed if you want
|
|
496
|
+
to describe the configuration options associated with either the
|
|
497
|
+
configuration template or environment.
|
|
498
|
+
|
|
499
|
+
:type template_name: string
|
|
500
|
+
:param template_name: The name of the configuration template whose
|
|
501
|
+
configuration options you want to describe.
|
|
502
|
+
|
|
503
|
+
:type environment_name: string
|
|
504
|
+
:param environment_name: The name of the environment whose
|
|
505
|
+
configuration options you want to describe.
|
|
506
|
+
|
|
507
|
+
:type solution_stack_name: string
|
|
508
|
+
:param solution_stack_name: The name of the solution stack whose
|
|
509
|
+
configuration options you want to describe.
|
|
510
|
+
|
|
511
|
+
:type options: list
|
|
512
|
+
:param options: If specified, restricts the descriptions to only
|
|
513
|
+
the specified options.
|
|
514
|
+
"""
|
|
515
|
+
params = {}
|
|
516
|
+
if application_name:
|
|
517
|
+
params['ApplicationName'] = application_name
|
|
518
|
+
if template_name:
|
|
519
|
+
params['TemplateName'] = template_name
|
|
520
|
+
if environment_name:
|
|
521
|
+
params['EnvironmentName'] = environment_name
|
|
522
|
+
if solution_stack_name:
|
|
523
|
+
params['SolutionStackName'] = solution_stack_name
|
|
524
|
+
if options:
|
|
525
|
+
self.build_list_params(params, options, 'Options.member')
|
|
526
|
+
return self._get_response('DescribeConfigurationOptions', params)
|
|
527
|
+
|
|
528
|
+
def describe_configuration_settings(self, application_name,
|
|
529
|
+
template_name=None,
|
|
530
|
+
environment_name=None):
|
|
531
|
+
"""
|
|
532
|
+
Returns a description of the settings for the specified
|
|
533
|
+
configuration set, that is, either a configuration template or
|
|
534
|
+
the configuration set associated with a running environment.
|
|
535
|
+
When describing the settings for the configuration set
|
|
536
|
+
associated with a running environment, it is possible to receive
|
|
537
|
+
two sets of setting descriptions. One is the deployed
|
|
538
|
+
configuration set, and the other is a draft configuration of an
|
|
539
|
+
environment that is either in the process of deployment or that
|
|
540
|
+
failed to deploy.
|
|
541
|
+
|
|
542
|
+
:type application_name: string
|
|
543
|
+
:param application_name: The application for the environment or
|
|
544
|
+
configuration template.
|
|
545
|
+
|
|
546
|
+
:type template_name: string
|
|
547
|
+
:param template_name: The name of the configuration template to
|
|
548
|
+
describe. Conditional: You must specify either this parameter or
|
|
549
|
+
an EnvironmentName, but not both. If you specify both, AWS Elastic
|
|
550
|
+
Beanstalk returns an InvalidParameterCombination error. If you do
|
|
551
|
+
not specify either, AWS Elastic Beanstalk returns a
|
|
552
|
+
MissingRequiredParameter error.
|
|
553
|
+
|
|
554
|
+
:type environment_name: string
|
|
555
|
+
:param environment_name: The name of the environment to describe.
|
|
556
|
+
Condition: You must specify either this or a TemplateName, but not
|
|
557
|
+
both. If you specify both, AWS Elastic Beanstalk returns an
|
|
558
|
+
InvalidParameterCombination error. If you do not specify either,
|
|
559
|
+
AWS Elastic Beanstalk returns MissingRequiredParameter error.
|
|
560
|
+
"""
|
|
561
|
+
params = {'ApplicationName': application_name}
|
|
562
|
+
if template_name:
|
|
563
|
+
params['TemplateName'] = template_name
|
|
564
|
+
if environment_name:
|
|
565
|
+
params['EnvironmentName'] = environment_name
|
|
566
|
+
return self._get_response('DescribeConfigurationSettings', params)
|
|
567
|
+
|
|
568
|
+
def describe_environment_resources(self, environment_id=None,
|
|
569
|
+
environment_name=None):
|
|
570
|
+
"""Returns AWS resources for this environment.
|
|
571
|
+
|
|
572
|
+
:type environment_id: string
|
|
573
|
+
:param environment_id: The ID of the environment to retrieve AWS
|
|
574
|
+
resource usage data. Condition: You must specify either this or an
|
|
575
|
+
EnvironmentName, or both. If you do not specify either, AWS Elastic
|
|
576
|
+
Beanstalk returns MissingRequiredParameter error.
|
|
577
|
+
|
|
578
|
+
:type environment_name: string
|
|
579
|
+
:param environment_name: The name of the environment to retrieve
|
|
580
|
+
AWS resource usage data. Condition: You must specify either this
|
|
581
|
+
or an EnvironmentId, or both. If you do not specify either, AWS
|
|
582
|
+
Elastic Beanstalk returns MissingRequiredParameter error.
|
|
583
|
+
|
|
584
|
+
:raises: InsufficientPrivilegesException
|
|
585
|
+
"""
|
|
586
|
+
params = {}
|
|
587
|
+
if environment_id:
|
|
588
|
+
params['EnvironmentId'] = environment_id
|
|
589
|
+
if environment_name:
|
|
590
|
+
params['EnvironmentName'] = environment_name
|
|
591
|
+
return self._get_response('DescribeEnvironmentResources', params)
|
|
592
|
+
|
|
593
|
+
def describe_environments(self, application_name=None, version_label=None,
|
|
594
|
+
environment_ids=None, environment_names=None,
|
|
595
|
+
include_deleted=None,
|
|
596
|
+
included_deleted_back_to=None):
|
|
597
|
+
"""Returns descriptions for existing environments.
|
|
598
|
+
|
|
599
|
+
:type application_name: string
|
|
600
|
+
:param application_name: If specified, AWS Elastic Beanstalk restricts
|
|
601
|
+
the returned descriptions to include only those that are associated
|
|
602
|
+
with this application.
|
|
603
|
+
|
|
604
|
+
:type version_label: string
|
|
605
|
+
:param version_label: If specified, AWS Elastic Beanstalk restricts the
|
|
606
|
+
returned descriptions to include only those that are associated
|
|
607
|
+
with this application version.
|
|
608
|
+
|
|
609
|
+
:type environment_ids: list
|
|
610
|
+
:param environment_ids: If specified, AWS Elastic Beanstalk restricts
|
|
611
|
+
the returned descriptions to include only those that have the
|
|
612
|
+
specified IDs.
|
|
613
|
+
|
|
614
|
+
:type environment_names: list
|
|
615
|
+
:param environment_names: If specified, AWS Elastic Beanstalk restricts
|
|
616
|
+
the returned descriptions to include only those that have the
|
|
617
|
+
specified names.
|
|
618
|
+
|
|
619
|
+
:type include_deleted: boolean
|
|
620
|
+
:param include_deleted: Indicates whether to include deleted
|
|
621
|
+
environments: true: Environments that have been deleted after
|
|
622
|
+
IncludedDeletedBackTo are displayed. false: Do not include deleted
|
|
623
|
+
environments.
|
|
624
|
+
|
|
625
|
+
:type included_deleted_back_to: timestamp
|
|
626
|
+
:param included_deleted_back_to: If specified when IncludeDeleted is
|
|
627
|
+
set to true, then environments deleted after this date are
|
|
628
|
+
displayed.
|
|
629
|
+
"""
|
|
630
|
+
params = {}
|
|
631
|
+
if application_name:
|
|
632
|
+
params['ApplicationName'] = application_name
|
|
633
|
+
if version_label:
|
|
634
|
+
params['VersionLabel'] = version_label
|
|
635
|
+
if environment_ids:
|
|
636
|
+
self.build_list_params(params, environment_ids,
|
|
637
|
+
'EnvironmentIds.member')
|
|
638
|
+
if environment_names:
|
|
639
|
+
self.build_list_params(params, environment_names,
|
|
640
|
+
'EnvironmentNames.member')
|
|
641
|
+
if include_deleted:
|
|
642
|
+
params['IncludeDeleted'] = self._encode_bool(include_deleted)
|
|
643
|
+
if included_deleted_back_to:
|
|
644
|
+
params['IncludedDeletedBackTo'] = included_deleted_back_to
|
|
645
|
+
return self._get_response('DescribeEnvironments', params)
|
|
646
|
+
|
|
647
|
+
def describe_events(self, application_name=None, version_label=None,
|
|
648
|
+
template_name=None, environment_id=None,
|
|
649
|
+
environment_name=None, request_id=None, severity=None,
|
|
650
|
+
start_time=None, end_time=None, max_records=None,
|
|
651
|
+
next_token=None):
|
|
652
|
+
"""Returns event descriptions matching criteria up to the last 6 weeks.
|
|
653
|
+
|
|
654
|
+
:type application_name: string
|
|
655
|
+
:param application_name: If specified, AWS Elastic Beanstalk restricts
|
|
656
|
+
the returned descriptions to include only those associated with
|
|
657
|
+
this application.
|
|
658
|
+
|
|
659
|
+
:type version_label: string
|
|
660
|
+
:param version_label: If specified, AWS Elastic Beanstalk restricts the
|
|
661
|
+
returned descriptions to those associated with this application
|
|
662
|
+
version.
|
|
663
|
+
|
|
664
|
+
:type template_name: string
|
|
665
|
+
:param template_name: If specified, AWS Elastic Beanstalk restricts the
|
|
666
|
+
returned descriptions to those that are associated with this
|
|
667
|
+
environment configuration.
|
|
668
|
+
|
|
669
|
+
:type environment_id: string
|
|
670
|
+
:param environment_id: If specified, AWS Elastic Beanstalk restricts
|
|
671
|
+
the returned descriptions to those associated with this
|
|
672
|
+
environment.
|
|
673
|
+
|
|
674
|
+
:type environment_name: string
|
|
675
|
+
:param environment_name: If specified, AWS Elastic Beanstalk restricts
|
|
676
|
+
the returned descriptions to those associated with this
|
|
677
|
+
environment.
|
|
678
|
+
|
|
679
|
+
:type request_id: string
|
|
680
|
+
:param request_id: If specified, AWS Elastic Beanstalk restricts the
|
|
681
|
+
described events to include only those associated with this request
|
|
682
|
+
ID.
|
|
683
|
+
|
|
684
|
+
:type severity: string
|
|
685
|
+
:param severity: If specified, limits the events returned from this
|
|
686
|
+
call to include only those with the specified severity or higher.
|
|
687
|
+
|
|
688
|
+
:type start_time: timestamp
|
|
689
|
+
:param start_time: If specified, AWS Elastic Beanstalk restricts the
|
|
690
|
+
returned descriptions to those that occur on or after this time.
|
|
691
|
+
|
|
692
|
+
:type end_time: timestamp
|
|
693
|
+
:param end_time: If specified, AWS Elastic Beanstalk restricts the
|
|
694
|
+
returned descriptions to those that occur up to, but not including,
|
|
695
|
+
the EndTime.
|
|
696
|
+
|
|
697
|
+
:type max_records: integer
|
|
698
|
+
:param max_records: Specifies the maximum number of events that can be
|
|
699
|
+
returned, beginning with the most recent event.
|
|
700
|
+
|
|
701
|
+
:type next_token: string
|
|
702
|
+
:param next_token: Pagination token. If specified, the events return
|
|
703
|
+
the next batch of results.
|
|
704
|
+
"""
|
|
705
|
+
params = {}
|
|
706
|
+
if application_name:
|
|
707
|
+
params['ApplicationName'] = application_name
|
|
708
|
+
if version_label:
|
|
709
|
+
params['VersionLabel'] = version_label
|
|
710
|
+
if template_name:
|
|
711
|
+
params['TemplateName'] = template_name
|
|
712
|
+
if environment_id:
|
|
713
|
+
params['EnvironmentId'] = environment_id
|
|
714
|
+
if environment_name:
|
|
715
|
+
params['EnvironmentName'] = environment_name
|
|
716
|
+
if request_id:
|
|
717
|
+
params['RequestId'] = request_id
|
|
718
|
+
if severity:
|
|
719
|
+
params['Severity'] = severity
|
|
720
|
+
if start_time:
|
|
721
|
+
params['StartTime'] = start_time
|
|
722
|
+
if end_time:
|
|
723
|
+
params['EndTime'] = end_time
|
|
724
|
+
if max_records:
|
|
725
|
+
params['MaxRecords'] = max_records
|
|
726
|
+
if next_token:
|
|
727
|
+
params['NextToken'] = next_token
|
|
728
|
+
return self._get_response('DescribeEvents', params)
|
|
729
|
+
|
|
730
|
+
def list_available_solution_stacks(self):
|
|
731
|
+
"""Returns a list of the available solution stack names."""
|
|
732
|
+
return self._get_response('ListAvailableSolutionStacks', params={})
|
|
733
|
+
|
|
734
|
+
def rebuild_environment(self, environment_id=None, environment_name=None):
|
|
735
|
+
"""
|
|
736
|
+
Deletes and recreates all of the AWS resources (for example:
|
|
737
|
+
the Auto Scaling group, load balancer, etc.) for a specified
|
|
738
|
+
environment and forces a restart.
|
|
739
|
+
|
|
740
|
+
:type environment_id: string
|
|
741
|
+
:param environment_id: The ID of the environment to rebuild.
|
|
742
|
+
Condition: You must specify either this or an EnvironmentName, or
|
|
743
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
744
|
+
MissingRequiredParameter error.
|
|
745
|
+
|
|
746
|
+
:type environment_name: string
|
|
747
|
+
:param environment_name: The name of the environment to rebuild.
|
|
748
|
+
Condition: You must specify either this or an EnvironmentId, or
|
|
749
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
750
|
+
MissingRequiredParameter error.
|
|
751
|
+
|
|
752
|
+
:raises: InsufficientPrivilegesException
|
|
753
|
+
"""
|
|
754
|
+
params = {}
|
|
755
|
+
if environment_id:
|
|
756
|
+
params['EnvironmentId'] = environment_id
|
|
757
|
+
if environment_name:
|
|
758
|
+
params['EnvironmentName'] = environment_name
|
|
759
|
+
return self._get_response('RebuildEnvironment', params)
|
|
760
|
+
|
|
761
|
+
def request_environment_info(self, info_type='tail', environment_id=None,
|
|
762
|
+
environment_name=None):
|
|
763
|
+
"""
|
|
764
|
+
Initiates a request to compile the specified type of
|
|
765
|
+
information of the deployed environment. Setting the InfoType
|
|
766
|
+
to tail compiles the last lines from the application server log
|
|
767
|
+
files of every Amazon EC2 instance in your environment. Use
|
|
768
|
+
RetrieveEnvironmentInfo to access the compiled information.
|
|
769
|
+
|
|
770
|
+
:type info_type: string
|
|
771
|
+
:param info_type: The type of information to request.
|
|
772
|
+
|
|
773
|
+
:type environment_id: string
|
|
774
|
+
:param environment_id: The ID of the environment of the
|
|
775
|
+
requested data. If no such environment is found,
|
|
776
|
+
RequestEnvironmentInfo returns an InvalidParameterValue error.
|
|
777
|
+
Condition: You must specify either this or an EnvironmentName, or
|
|
778
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
779
|
+
MissingRequiredParameter error.
|
|
780
|
+
|
|
781
|
+
:type environment_name: string
|
|
782
|
+
:param environment_name: The name of the environment of the
|
|
783
|
+
requested data. If no such environment is found,
|
|
784
|
+
RequestEnvironmentInfo returns an InvalidParameterValue error.
|
|
785
|
+
Condition: You must specify either this or an EnvironmentId, or
|
|
786
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
787
|
+
MissingRequiredParameter error.
|
|
788
|
+
"""
|
|
789
|
+
params = {'InfoType': info_type}
|
|
790
|
+
if environment_id:
|
|
791
|
+
params['EnvironmentId'] = environment_id
|
|
792
|
+
if environment_name:
|
|
793
|
+
params['EnvironmentName'] = environment_name
|
|
794
|
+
return self._get_response('RequestEnvironmentInfo', params)
|
|
795
|
+
|
|
796
|
+
def restart_app_server(self, environment_id=None, environment_name=None):
|
|
797
|
+
"""
|
|
798
|
+
Causes the environment to restart the application container
|
|
799
|
+
server running on each Amazon EC2 instance.
|
|
800
|
+
|
|
801
|
+
:type environment_id: string
|
|
802
|
+
:param environment_id: The ID of the environment to restart the server
|
|
803
|
+
for. Condition: You must specify either this or an
|
|
804
|
+
EnvironmentName, or both. If you do not specify either, AWS Elastic
|
|
805
|
+
Beanstalk returns MissingRequiredParameter error.
|
|
806
|
+
|
|
807
|
+
:type environment_name: string
|
|
808
|
+
:param environment_name: The name of the environment to restart the
|
|
809
|
+
server for. Condition: You must specify either this or an
|
|
810
|
+
EnvironmentId, or both. If you do not specify either, AWS Elastic
|
|
811
|
+
Beanstalk returns MissingRequiredParameter error.
|
|
812
|
+
"""
|
|
813
|
+
params = {}
|
|
814
|
+
if environment_id:
|
|
815
|
+
params['EnvironmentId'] = environment_id
|
|
816
|
+
if environment_name:
|
|
817
|
+
params['EnvironmentName'] = environment_name
|
|
818
|
+
return self._get_response('RestartAppServer', params)
|
|
819
|
+
|
|
820
|
+
def retrieve_environment_info(self, info_type='tail', environment_id=None,
|
|
821
|
+
environment_name=None):
|
|
822
|
+
"""
|
|
823
|
+
Retrieves the compiled information from a RequestEnvironmentInfo
|
|
824
|
+
request.
|
|
825
|
+
|
|
826
|
+
:type info_type: string
|
|
827
|
+
:param info_type: The type of information to retrieve.
|
|
828
|
+
|
|
829
|
+
:type environment_id: string
|
|
830
|
+
:param environment_id: The ID of the data's environment. If no such
|
|
831
|
+
environment is found, returns an InvalidParameterValue error.
|
|
832
|
+
Condition: You must specify either this or an EnvironmentName, or
|
|
833
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
834
|
+
MissingRequiredParameter error.
|
|
835
|
+
|
|
836
|
+
:type environment_name: string
|
|
837
|
+
:param environment_name: The name of the data's environment. If no such
|
|
838
|
+
environment is found, returns an InvalidParameterValue error.
|
|
839
|
+
Condition: You must specify either this or an EnvironmentId, or
|
|
840
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
841
|
+
MissingRequiredParameter error.
|
|
842
|
+
"""
|
|
843
|
+
params = {'InfoType': info_type}
|
|
844
|
+
if environment_id:
|
|
845
|
+
params['EnvironmentId'] = environment_id
|
|
846
|
+
if environment_name:
|
|
847
|
+
params['EnvironmentName'] = environment_name
|
|
848
|
+
return self._get_response('RetrieveEnvironmentInfo', params)
|
|
849
|
+
|
|
850
|
+
def swap_environment_cnames(self, source_environment_id=None,
|
|
851
|
+
source_environment_name=None,
|
|
852
|
+
destination_environment_id=None,
|
|
853
|
+
destination_environment_name=None):
|
|
854
|
+
"""Swaps the CNAMEs of two environments.
|
|
855
|
+
|
|
856
|
+
:type source_environment_id: string
|
|
857
|
+
:param source_environment_id: The ID of the source environment.
|
|
858
|
+
Condition: You must specify at least the SourceEnvironmentID or the
|
|
859
|
+
SourceEnvironmentName. You may also specify both. If you specify
|
|
860
|
+
the SourceEnvironmentId, you must specify the
|
|
861
|
+
DestinationEnvironmentId.
|
|
862
|
+
|
|
863
|
+
:type source_environment_name: string
|
|
864
|
+
:param source_environment_name: The name of the source environment.
|
|
865
|
+
Condition: You must specify at least the SourceEnvironmentID or the
|
|
866
|
+
SourceEnvironmentName. You may also specify both. If you specify
|
|
867
|
+
the SourceEnvironmentName, you must specify the
|
|
868
|
+
DestinationEnvironmentName.
|
|
869
|
+
|
|
870
|
+
:type destination_environment_id: string
|
|
871
|
+
:param destination_environment_id: The ID of the destination
|
|
872
|
+
environment. Condition: You must specify at least the
|
|
873
|
+
DestinationEnvironmentID or the DestinationEnvironmentName. You may
|
|
874
|
+
also specify both. You must specify the SourceEnvironmentId with
|
|
875
|
+
the DestinationEnvironmentId.
|
|
876
|
+
|
|
877
|
+
:type destination_environment_name: string
|
|
878
|
+
:param destination_environment_name: The name of the destination
|
|
879
|
+
environment. Condition: You must specify at least the
|
|
880
|
+
DestinationEnvironmentID or the DestinationEnvironmentName. You may
|
|
881
|
+
also specify both. You must specify the SourceEnvironmentName with
|
|
882
|
+
the DestinationEnvironmentName.
|
|
883
|
+
"""
|
|
884
|
+
params = {}
|
|
885
|
+
if source_environment_id:
|
|
886
|
+
params['SourceEnvironmentId'] = source_environment_id
|
|
887
|
+
if source_environment_name:
|
|
888
|
+
params['SourceEnvironmentName'] = source_environment_name
|
|
889
|
+
if destination_environment_id:
|
|
890
|
+
params['DestinationEnvironmentId'] = destination_environment_id
|
|
891
|
+
if destination_environment_name:
|
|
892
|
+
params['DestinationEnvironmentName'] = destination_environment_name
|
|
893
|
+
return self._get_response('SwapEnvironmentCNAMEs', params)
|
|
894
|
+
|
|
895
|
+
def terminate_environment(self, environment_id=None, environment_name=None,
|
|
896
|
+
terminate_resources=None):
|
|
897
|
+
"""Terminates the specified environment.
|
|
898
|
+
|
|
899
|
+
:type environment_id: string
|
|
900
|
+
:param environment_id: The ID of the environment to terminate.
|
|
901
|
+
Condition: You must specify either this or an EnvironmentName, or
|
|
902
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
903
|
+
MissingRequiredParameter error.
|
|
904
|
+
|
|
905
|
+
:type environment_name: string
|
|
906
|
+
:param environment_name: The name of the environment to terminate.
|
|
907
|
+
Condition: You must specify either this or an EnvironmentId, or
|
|
908
|
+
both. If you do not specify either, AWS Elastic Beanstalk returns
|
|
909
|
+
MissingRequiredParameter error.
|
|
910
|
+
|
|
911
|
+
:type terminate_resources: boolean
|
|
912
|
+
:param terminate_resources: Indicates whether the associated AWS
|
|
913
|
+
resources should shut down when the environment is terminated:
|
|
914
|
+
true: (default) The user AWS resources (for example, the Auto
|
|
915
|
+
Scaling group, LoadBalancer, etc.) are terminated along with the
|
|
916
|
+
environment. false: The environment is removed from the AWS
|
|
917
|
+
Elastic Beanstalk but the AWS resources continue to operate. For
|
|
918
|
+
more information, see the AWS Elastic Beanstalk User Guide.
|
|
919
|
+
Default: true Valid Values: true | false
|
|
920
|
+
|
|
921
|
+
:raises: InsufficientPrivilegesException
|
|
922
|
+
"""
|
|
923
|
+
params = {}
|
|
924
|
+
if environment_id:
|
|
925
|
+
params['EnvironmentId'] = environment_id
|
|
926
|
+
if environment_name:
|
|
927
|
+
params['EnvironmentName'] = environment_name
|
|
928
|
+
if terminate_resources:
|
|
929
|
+
params['TerminateResources'] = self._encode_bool(
|
|
930
|
+
terminate_resources)
|
|
931
|
+
return self._get_response('TerminateEnvironment', params)
|
|
932
|
+
|
|
933
|
+
def update_application(self, application_name, description=None):
|
|
934
|
+
"""
|
|
935
|
+
Updates the specified application to have the specified
|
|
936
|
+
properties.
|
|
937
|
+
|
|
938
|
+
:type application_name: string
|
|
939
|
+
:param application_name: The name of the application to update.
|
|
940
|
+
If no such application is found, UpdateApplication returns an
|
|
941
|
+
InvalidParameterValue error.
|
|
942
|
+
|
|
943
|
+
:type description: string
|
|
944
|
+
:param description: A new description for the application. Default: If
|
|
945
|
+
not specified, AWS Elastic Beanstalk does not update the
|
|
946
|
+
description.
|
|
947
|
+
"""
|
|
948
|
+
params = {'ApplicationName': application_name}
|
|
949
|
+
if description:
|
|
950
|
+
params['Description'] = description
|
|
951
|
+
return self._get_response('UpdateApplication', params)
|
|
952
|
+
|
|
953
|
+
def update_application_version(self, application_name, version_label,
|
|
954
|
+
description=None):
|
|
955
|
+
"""Updates the application version to have the properties.
|
|
956
|
+
|
|
957
|
+
:type application_name: string
|
|
958
|
+
:param application_name: The name of the application associated with
|
|
959
|
+
this version. If no application is found with this name,
|
|
960
|
+
UpdateApplication returns an InvalidParameterValue error.
|
|
961
|
+
|
|
962
|
+
:type version_label: string
|
|
963
|
+
:param version_label: The name of the version to update. If no
|
|
964
|
+
application version is found with this label, UpdateApplication
|
|
965
|
+
returns an InvalidParameterValue error.
|
|
966
|
+
|
|
967
|
+
:type description: string
|
|
968
|
+
:param description: A new description for this release.
|
|
969
|
+
"""
|
|
970
|
+
params = {'ApplicationName': application_name,
|
|
971
|
+
'VersionLabel': version_label}
|
|
972
|
+
if description:
|
|
973
|
+
params['Description'] = description
|
|
974
|
+
return self._get_response('UpdateApplicationVersion', params)
|
|
975
|
+
|
|
976
|
+
def update_configuration_template(self, application_name, template_name,
|
|
977
|
+
description=None, option_settings=None,
|
|
978
|
+
options_to_remove=None):
|
|
979
|
+
"""
|
|
980
|
+
Updates the specified configuration template to have the
|
|
981
|
+
specified properties or configuration option values.
|
|
982
|
+
|
|
983
|
+
:type application_name: string
|
|
984
|
+
:param application_name: The name of the application associated with
|
|
985
|
+
the configuration template to update. If no application is found
|
|
986
|
+
with this name, UpdateConfigurationTemplate returns an
|
|
987
|
+
InvalidParameterValue error.
|
|
988
|
+
|
|
989
|
+
:type template_name: string
|
|
990
|
+
:param template_name: The name of the configuration template to update.
|
|
991
|
+
If no configuration template is found with this name,
|
|
992
|
+
UpdateConfigurationTemplate returns an InvalidParameterValue error.
|
|
993
|
+
|
|
994
|
+
:type description: string
|
|
995
|
+
:param description: A new description for the configuration.
|
|
996
|
+
|
|
997
|
+
:type option_settings: list
|
|
998
|
+
:param option_settings: A list of configuration option settings to
|
|
999
|
+
update with the new specified option value.
|
|
1000
|
+
|
|
1001
|
+
:type options_to_remove: list
|
|
1002
|
+
:param options_to_remove: A list of configuration options to remove
|
|
1003
|
+
from the configuration set. Constraint: You can remove only
|
|
1004
|
+
UserDefined configuration options.
|
|
1005
|
+
|
|
1006
|
+
:raises: InsufficientPrivilegesException
|
|
1007
|
+
"""
|
|
1008
|
+
params = {'ApplicationName': application_name,
|
|
1009
|
+
'TemplateName': template_name}
|
|
1010
|
+
if description:
|
|
1011
|
+
params['Description'] = description
|
|
1012
|
+
if option_settings:
|
|
1013
|
+
self._build_list_params(params, option_settings,
|
|
1014
|
+
'OptionSettings.member',
|
|
1015
|
+
('Namespace', 'OptionName', 'Value'))
|
|
1016
|
+
if options_to_remove:
|
|
1017
|
+
self.build_list_params(params, options_to_remove,
|
|
1018
|
+
'OptionsToRemove.member')
|
|
1019
|
+
return self._get_response('UpdateConfigurationTemplate', params)
|
|
1020
|
+
|
|
1021
|
+
def update_environment(self, environment_id=None, environment_name=None,
|
|
1022
|
+
version_label=None, template_name=None,
|
|
1023
|
+
description=None, option_settings=None,
|
|
1024
|
+
options_to_remove=None):
|
|
1025
|
+
"""
|
|
1026
|
+
Updates the environment description, deploys a new application
|
|
1027
|
+
version, updates the configuration settings to an entirely new
|
|
1028
|
+
configuration template, or updates select configuration option
|
|
1029
|
+
values in the running environment. Attempting to update both
|
|
1030
|
+
the release and configuration is not allowed and AWS Elastic
|
|
1031
|
+
Beanstalk returns an InvalidParameterCombination error. When
|
|
1032
|
+
updating the configuration settings to a new template or
|
|
1033
|
+
individual settings, a draft configuration is created and
|
|
1034
|
+
DescribeConfigurationSettings for this environment returns two
|
|
1035
|
+
setting descriptions with different DeploymentStatus values.
|
|
1036
|
+
|
|
1037
|
+
:type environment_id: string
|
|
1038
|
+
:param environment_id: The ID of the environment to update. If no
|
|
1039
|
+
environment with this ID exists, AWS Elastic Beanstalk returns an
|
|
1040
|
+
InvalidParameterValue error. Condition: You must specify either
|
|
1041
|
+
this or an EnvironmentName, or both. If you do not specify either,
|
|
1042
|
+
AWS Elastic Beanstalk returns MissingRequiredParameter error.
|
|
1043
|
+
|
|
1044
|
+
:type environment_name: string
|
|
1045
|
+
:param environment_name: The name of the environment to update. If no
|
|
1046
|
+
environment with this name exists, AWS Elastic Beanstalk returns an
|
|
1047
|
+
InvalidParameterValue error. Condition: You must specify either
|
|
1048
|
+
this or an EnvironmentId, or both. If you do not specify either,
|
|
1049
|
+
AWS Elastic Beanstalk returns MissingRequiredParameter error.
|
|
1050
|
+
|
|
1051
|
+
:type version_label: string
|
|
1052
|
+
:param version_label: If this parameter is specified, AWS Elastic
|
|
1053
|
+
Beanstalk deploys the named application version to the environment.
|
|
1054
|
+
If no such application version is found, returns an
|
|
1055
|
+
InvalidParameterValue error.
|
|
1056
|
+
|
|
1057
|
+
:type template_name: string
|
|
1058
|
+
:param template_name: If this parameter is specified, AWS Elastic
|
|
1059
|
+
Beanstalk deploys this configuration template to the environment.
|
|
1060
|
+
If no such configuration template is found, AWS Elastic Beanstalk
|
|
1061
|
+
returns an InvalidParameterValue error.
|
|
1062
|
+
|
|
1063
|
+
:type description: string
|
|
1064
|
+
:param description: If this parameter is specified, AWS Elastic
|
|
1065
|
+
Beanstalk updates the description of this environment.
|
|
1066
|
+
|
|
1067
|
+
:type option_settings: list
|
|
1068
|
+
:param option_settings: If specified, AWS Elastic Beanstalk updates the
|
|
1069
|
+
configuration set associated with the running environment and sets
|
|
1070
|
+
the specified configuration options to the requested value.
|
|
1071
|
+
|
|
1072
|
+
:type options_to_remove: list
|
|
1073
|
+
:param options_to_remove: A list of custom user-defined configuration
|
|
1074
|
+
options to remove from the configuration set for this environment.
|
|
1075
|
+
|
|
1076
|
+
:raises: InsufficientPrivilegesException
|
|
1077
|
+
"""
|
|
1078
|
+
params = {}
|
|
1079
|
+
if environment_id:
|
|
1080
|
+
params['EnvironmentId'] = environment_id
|
|
1081
|
+
if environment_name:
|
|
1082
|
+
params['EnvironmentName'] = environment_name
|
|
1083
|
+
if version_label:
|
|
1084
|
+
params['VersionLabel'] = version_label
|
|
1085
|
+
if template_name:
|
|
1086
|
+
params['TemplateName'] = template_name
|
|
1087
|
+
if description:
|
|
1088
|
+
params['Description'] = description
|
|
1089
|
+
if option_settings:
|
|
1090
|
+
self._build_list_params(params, option_settings,
|
|
1091
|
+
'OptionSettings.member',
|
|
1092
|
+
('Namespace', 'OptionName', 'Value'))
|
|
1093
|
+
if options_to_remove:
|
|
1094
|
+
self.build_list_params(params, options_to_remove,
|
|
1095
|
+
'OptionsToRemove.member')
|
|
1096
|
+
return self._get_response('UpdateEnvironment', params)
|
|
1097
|
+
|
|
1098
|
+
def validate_configuration_settings(self, application_name,
|
|
1099
|
+
option_settings, template_name=None,
|
|
1100
|
+
environment_name=None):
|
|
1101
|
+
"""
|
|
1102
|
+
Takes a set of configuration settings and either a
|
|
1103
|
+
configuration template or environment, and determines whether
|
|
1104
|
+
those values are valid. This action returns a list of messages
|
|
1105
|
+
indicating any errors or warnings associated with the selection
|
|
1106
|
+
of option values.
|
|
1107
|
+
|
|
1108
|
+
:type application_name: string
|
|
1109
|
+
:param application_name: The name of the application that the
|
|
1110
|
+
configuration template or environment belongs to.
|
|
1111
|
+
|
|
1112
|
+
:type template_name: string
|
|
1113
|
+
:param template_name: The name of the configuration template to
|
|
1114
|
+
validate the settings against. Condition: You cannot specify both
|
|
1115
|
+
this and an environment name.
|
|
1116
|
+
|
|
1117
|
+
:type environment_name: string
|
|
1118
|
+
:param environment_name: The name of the environment to validate the
|
|
1119
|
+
settings against. Condition: You cannot specify both this and a
|
|
1120
|
+
configuration template name.
|
|
1121
|
+
|
|
1122
|
+
:type option_settings: list
|
|
1123
|
+
:param option_settings: A list of the options and desired values to
|
|
1124
|
+
evaluate.
|
|
1125
|
+
|
|
1126
|
+
:raises: InsufficientPrivilegesException
|
|
1127
|
+
"""
|
|
1128
|
+
params = {'ApplicationName': application_name}
|
|
1129
|
+
self._build_list_params(params, option_settings,
|
|
1130
|
+
'OptionSettings.member',
|
|
1131
|
+
('Namespace', 'OptionName', 'Value'))
|
|
1132
|
+
if template_name:
|
|
1133
|
+
params['TemplateName'] = template_name
|
|
1134
|
+
if environment_name:
|
|
1135
|
+
params['EnvironmentName'] = environment_name
|
|
1136
|
+
return self._get_response('ValidateConfigurationSettings', params)
|
|
1137
|
+
|
|
1138
|
+
def _build_list_params(self, params, user_values, prefix, tuple_names):
|
|
1139
|
+
# For params such as the ConfigurationOptionSettings,
|
|
1140
|
+
# they can specify a list of tuples where each tuple maps to a specific
|
|
1141
|
+
# arg. For example:
|
|
1142
|
+
# user_values = [('foo', 'bar', 'baz']
|
|
1143
|
+
# prefix=MyOption.member
|
|
1144
|
+
# tuple_names=('One', 'Two', 'Three')
|
|
1145
|
+
# would result in:
|
|
1146
|
+
# MyOption.member.1.One = foo
|
|
1147
|
+
# MyOption.member.1.Two = bar
|
|
1148
|
+
# MyOption.member.1.Three = baz
|
|
1149
|
+
for i, user_value in enumerate(user_values, 1):
|
|
1150
|
+
current_prefix = '%s.%s' % (prefix, i)
|
|
1151
|
+
for key, value in zip(tuple_names, user_value):
|
|
1152
|
+
full_key = '%s.%s' % (current_prefix, key)
|
|
1153
|
+
params[full_key] = value
|