From 875e6beb1e044c6e8a19223fe5e592b773591799 Mon Sep 17 00:00:00 2001 From: Luca Grulla <luca.grulla@gmail.com> Date: Fri, 3 Mar 2017 22:26:13 +0000 Subject: [PATCH] Add coloured timestamp + more flexible timestamp params --- README.md | 2 +- cloudwatch/cloudwatch.go | 4 +- lock.json | 18 +- main.go | 35 +- manifest.json | 7 +- vendor/github.com/aws/aws-sdk-go/CHANGELOG.md | 76 + vendor/github.com/aws/aws-sdk-go/README.md | 2 +- .../github.com/aws/aws-sdk-go/aws/config.go | 17 +- .../stscreds/assume_role_provider.go | 159 +- .../stscreds/assume_role_provider_test.go | 94 + .../aws/aws-sdk-go/aws/session/doc.go | 71 +- .../aws/aws-sdk-go/aws/session/session.go | 91 +- .../aws-sdk-go/aws/session/session_test.go | 84 +- .../aws/session/shared_config_test.go | 10 + .../aws/session/testdata/shared_config | 5 + .../github.com/aws/aws-sdk-go/aws/version.go | 2 +- .../handleServiceErrorCodes.go | 5 +- .../service/dynamodb/scanItems/scanItems.go | 5 +- .../ec2/filterInstances/filter_ec2_by_tag.go | 5 +- .../service/s3/listObjects/listObjects.go | 8 +- .../service/s3/putObjectAcl/putObjectAcl.go | 9 +- .../clouddirectory/2016-05-10/docs-2.json | 2 +- .../apis/dynamodb/2012-08-10/api-2.json | 91 + .../apis/dynamodb/2012-08-10/docs-2.json | 68 +- .../models/apis/ec2/2016-11-15/api-2.json | 17 + .../models/apis/ec2/2016-11-15/docs-2.json | 23 +- .../elasticbeanstalk/2010-12-01/api-2.json | 299 +- .../elasticbeanstalk/2010-12-01/docs-2.json | 308 +- .../2010-12-01/paginators-1.json | 4 +- .../models/apis/es/2015-01-01/api-2.json | 237 +- .../models/apis/es/2015-01-01/docs-2.json | 182 +- .../apis/gamelift/2015-10-01/api-2.json | 323 +- .../apis/gamelift/2015-10-01/docs-2.json | 590 ++-- .../models/apis/iam/2010-05-08/api-2.json | 7 + .../models/apis/iam/2010-05-08/docs-2.json | 9 +- .../apis/iam/2010-05-08/paginators-1.json | 12 +- .../models/apis/route53/2013-04-01/api-2.json | 4 +- .../apis/route53/2013-04-01/docs-2.json | 70 +- .../apis/route53/2013-04-01/examples-1.json | 757 +++++ .../streams.dynamodb/2012-08-10/api-2.json | 10 +- .../streams.dynamodb/2012-08-10/docs-2.json | 46 +- .../apis/waf-regional/2016-11-28/api-2.json | 12 +- .../apis/waf-regional/2016-11-28/docs-2.json | 16 +- .../models/apis/waf/2015-08-24/api-2.json | 13 +- .../models/apis/waf/2015-08-24/docs-2.json | 16 +- .../aws/aws-sdk-go/private/model/api/api.go | 2 +- .../aws-sdk-go/private/model/api/operation.go | 6 +- .../service/acm/acmiface/interface.go | 2 +- .../aws-sdk-go/service/acm/examples_test.go | 60 +- .../apigateway/apigatewayiface/interface.go | 2 +- .../service/apigateway/examples_test.go | 612 +--- .../applicationautoscalingiface/interface.go | 2 +- .../applicationautoscaling/examples_test.go | 42 +- .../interface.go | 2 +- .../examples_test.go | 102 +- .../appstream/appstreamiface/interface.go | 2 +- .../service/appstream/examples_test.go | 108 +- .../autoscaling/autoscalingiface/interface.go | 2 +- .../service/autoscaling/examples_test.go | 312 +- .../service/batch/batchiface/interface.go | 2 +- .../aws-sdk-go/service/batch/examples_test.go | 96 +- .../service/budgets/budgetsiface/interface.go | 2 +- .../service/budgets/examples_test.go | 78 +- .../aws-sdk-go/service/clouddirectory/api.go | 5 +- .../clouddirectoryiface/interface.go | 2 +- .../service/clouddirectory/examples_test.go | 288 +- .../cloudformationiface/interface.go | 2 +- .../service/cloudformation/examples_test.go | 156 +- .../cloudfront/cloudfrontiface/interface.go | 2 +- .../service/cloudfront/examples_test.go | 162 +- .../cloudhsm/cloudhsmiface/interface.go | 2 +- .../service/cloudhsm/examples_test.go | 120 +- .../cloudsearch/cloudsearchiface/interface.go | 2 +- .../service/cloudsearch/examples_test.go | 144 +- .../cloudsearchdomainiface/interface.go | 2 +- .../cloudsearchdomain/examples_test.go | 18 +- .../cloudtrail/cloudtrailiface/interface.go | 2 +- .../service/cloudtrail/examples_test.go | 84 +- .../cloudwatch/cloudwatchiface/interface.go | 2 +- .../service/cloudwatch/examples_test.go | 66 +- .../cloudwatcheventsiface/interface.go | 2 +- .../service/cloudwatchevents/examples_test.go | 72 +- .../cloudwatchlogsiface/interface.go | 2 +- .../service/cloudwatchlogs/examples_test.go | 168 +- .../codebuild/codebuildiface/interface.go | 2 +- .../service/codebuild/examples_test.go | 66 +- .../codecommit/codecommitiface/interface.go | 2 +- .../service/codecommit/examples_test.go | 102 +- .../codedeploy/codedeployiface/interface.go | 2 +- .../service/codedeploy/examples_test.go | 222 +- .../codepipelineiface/interface.go | 2 +- .../service/codepipeline/examples_test.go | 156 +- .../cognitoidentityiface/interface.go | 2 +- .../service/cognitoidentity/examples_test.go | 108 +- .../cognitoidentityprovideriface/interface.go | 2 +- .../cognitoidentityprovider/examples_test.go | 390 +-- .../cognitosync/cognitosynciface/interface.go | 2 +- .../service/cognitosync/examples_test.go | 102 +- .../configserviceiface/interface.go | 2 +- .../service/configservice/examples_test.go | 156 +- .../interface.go | 2 +- .../examples_test.go | 18 +- .../interface.go | 2 +- .../databasemigrationservice/examples_test.go | 198 +- .../datapipelineiface/interface.go | 2 +- .../service/datapipeline/examples_test.go | 114 +- .../devicefarm/devicefarmiface/interface.go | 2 +- .../service/devicefarm/examples_test.go | 258 +- .../directconnectiface/interface.go | 2 +- .../service/directconnect/examples_test.go | 222 +- .../directoryserviceiface/interface.go | 2 +- .../service/directoryservice/examples_test.go | 228 +- .../aws/aws-sdk-go/service/dynamodb/api.go | 459 ++- .../service/dynamodb/dynamodbattribute/doc.go | 6 +- .../dynamodb/dynamodbiface/interface.go | 10 +- .../service/dynamodb/examples_test.go | 144 +- .../aws-sdk-go/service/dynamodbstreams/api.go | 53 + .../dynamodbstreamsiface/interface.go | 2 +- .../service/dynamodbstreams/examples_test.go | 24 +- .../service/dynamodbstreams/service.go | 12 - .../aws/aws-sdk-go/service/ec2/api.go | 86 +- .../service/ec2/ec2iface/interface.go | 2 +- .../aws-sdk-go/service/ec2/examples_test.go | 1368 ++------- .../service/ecr/ecriface/interface.go | 2 +- .../aws-sdk-go/service/ecr/examples_test.go | 102 +- .../service/ecs/ecsiface/interface.go | 2 +- .../aws-sdk-go/service/ecs/examples_test.go | 186 +- .../service/efs/efsiface/interface.go | 2 +- .../aws-sdk-go/service/efs/examples_test.go | 66 +- .../elasticache/elasticacheiface/interface.go | 2 +- .../service/elasticache/examples_test.go | 228 +- .../service/elasticbeanstalk/api.go | 1191 +++++++- .../elasticbeanstalkiface/interface.go | 18 +- .../service/elasticbeanstalk/errors.go | 14 + .../service/elasticbeanstalk/examples_test.go | 322 +- .../service/elasticsearchservice/api.go | 882 ++++++ .../elasticsearchserviceiface/interface.go | 18 +- .../elasticsearchservice/examples_test.go | 121 +- .../elastictranscoderiface/interface.go | 2 +- .../elastictranscoder/examples_test.go | 102 +- .../service/elb/elbiface/interface.go | 2 +- .../aws-sdk-go/service/elb/examples_test.go | 168 +- .../service/elbv2/elbv2iface/interface.go | 2 +- .../aws-sdk-go/service/elbv2/examples_test.go | 180 +- .../service/emr/emriface/interface.go | 2 +- .../aws-sdk-go/service/emr/examples_test.go | 144 +- .../service/firehose/examples_test.go | 42 +- .../firehose/firehoseiface/interface.go | 2 +- .../aws/aws-sdk-go/service/gamelift/api.go | 2650 ++++++++++++++--- .../service/gamelift/examples_test.go | 416 +-- .../gamelift/gameliftiface/interface.go | 30 +- .../aws-sdk-go/service/gamelift/service.go | 220 +- .../service/glacier/examples_test.go | 198 +- .../service/glacier/glacieriface/interface.go | 2 +- .../service/health/examples_test.go | 36 +- .../service/health/healthiface/interface.go | 2 +- .../aws/aws-sdk-go/service/iam/api.go | 43 + .../aws-sdk-go/service/iam/examples_test.go | 708 +---- .../service/iam/iamiface/interface.go | 2 +- .../service/inspector/examples_test.go | 192 +- .../inspector/inspectoriface/interface.go | 2 +- .../aws-sdk-go/service/iot/examples_test.go | 342 +-- .../service/iot/iotiface/interface.go | 2 +- .../service/iotdataplane/examples_test.go | 24 +- .../iotdataplaneiface/interface.go | 2 +- .../service/kinesis/examples_test.go | 114 +- .../service/kinesis/kinesisiface/interface.go | 2 +- .../service/kinesisanalytics/examples_test.go | 78 +- .../kinesisanalyticsiface/interface.go | 2 +- .../aws-sdk-go/service/kms/examples_test.go | 210 +- .../service/kms/kmsiface/interface.go | 2 +- .../service/lambda/examples_test.go | 150 +- .../service/lambda/lambdaiface/interface.go | 2 +- .../lexruntimeservice/examples_test.go | 6 +- .../lexruntimeserviceiface/interface.go | 2 +- .../service/lightsail/examples_test.go | 282 +- .../lightsail/lightsailiface/interface.go | 2 +- .../service/machinelearning/examples_test.go | 168 +- .../machinelearningiface/interface.go | 2 +- .../examples_test.go | 12 +- .../interface.go | 2 +- .../marketplacemetering/examples_test.go | 18 +- .../marketplacemeteringiface/interface.go | 2 +- .../service/mobileanalytics/examples_test.go | 6 +- .../mobileanalyticsiface/interface.go | 2 +- .../service/opsworks/examples_test.go | 420 +-- .../opsworks/opsworksiface/interface.go | 2 +- .../service/opsworkscm/examples_test.go | 90 +- .../opsworkscm/opsworkscmiface/interface.go | 2 +- .../service/pinpoint/examples_test.go | 180 +- .../pinpoint/pinpointiface/interface.go | 2 +- .../aws-sdk-go/service/polly/examples_test.go | 36 +- .../service/polly/pollyiface/interface.go | 2 +- .../aws-sdk-go/service/rds/examples_test.go | 522 +--- .../service/rds/rdsiface/interface.go | 2 +- .../service/redshift/examples_test.go | 372 +-- .../redshift/redshiftiface/interface.go | 2 +- .../service/rekognition/examples_test.go | 66 +- .../rekognition/rekognitioniface/interface.go | 2 +- .../aws/aws-sdk-go/service/route53/api.go | 370 ++- .../aws/aws-sdk-go/service/route53/errors.go | 19 +- .../service/route53/examples_test.go | 294 +- .../service/route53/route53iface/interface.go | 2 +- .../service/route53domains/examples_test.go | 138 +- .../route53domainsiface/interface.go | 2 +- .../aws-sdk-go/service/s3/examples_test.go | 444 +-- .../service/s3/s3iface/interface.go | 2 +- .../service/s3/s3manager/download.go | 4 +- .../aws-sdk-go/service/s3/s3manager/upload.go | 16 +- .../service/s3/s3manager/upload_test.go | 56 + .../service/servicecatalog/examples_test.go | 258 +- .../servicecatalogiface/interface.go | 2 +- .../aws-sdk-go/service/ses/examples_test.go | 294 +- .../service/ses/sesiface/interface.go | 2 +- .../aws-sdk-go/service/sfn/examples_test.go | 102 +- .../service/sfn/sfniface/interface.go | 2 +- .../service/shield/examples_test.go | 54 +- .../service/shield/shieldiface/interface.go | 2 +- .../service/simpledb/examples_test.go | 60 +- .../simpledb/simpledbiface/interface.go | 2 +- .../aws-sdk-go/service/sms/examples_test.go | 66 +- .../service/sms/smsiface/interface.go | 2 +- .../service/snowball/examples_test.go | 102 +- .../snowball/snowballiface/interface.go | 2 +- .../aws-sdk-go/service/sns/examples_test.go | 180 +- .../service/sns/snsiface/interface.go | 2 +- .../aws-sdk-go/service/sqs/examples_test.go | 102 +- .../service/sqs/sqsiface/interface.go | 2 +- .../aws-sdk-go/service/ssm/examples_test.go | 480 +-- .../service/ssm/ssmiface/interface.go | 2 +- .../service/storagegateway/examples_test.go | 366 +-- .../storagegatewayiface/interface.go | 2 +- .../aws-sdk-go/service/sts/examples_test.go | 42 +- .../service/sts/stsiface/interface.go | 2 +- .../service/support/examples_test.go | 84 +- .../service/support/supportiface/interface.go | 2 +- .../aws-sdk-go/service/swf/examples_test.go | 186 +- .../service/swf/swfiface/interface.go | 2 +- .../aws/aws-sdk-go/service/waf/api.go | 4 +- .../aws-sdk-go/service/waf/examples_test.go | 228 +- .../service/waf/wafiface/interface.go | 2 +- .../aws/aws-sdk-go/service/wafregional/api.go | 4 +- .../service/wafregional/examples_test.go | 252 +- .../wafregional/wafregionaliface/interface.go | 2 +- .../service/workspaces/examples_test.go | 84 +- .../workspaces/workspacesiface/interface.go | 2 +- .../aws-sdk-go/service/xray/examples_test.go | 36 +- .../service/xray/xrayiface/interface.go | 2 +- vendor/github.com/go-ini/ini/.travis.yml | 13 +- vendor/github.com/go-ini/ini/README.md | 2 +- vendor/github.com/go-ini/ini/ini.go | 55 +- vendor/github.com/go-ini/ini/key.go | 47 + vendor/github.com/go-ini/ini/key_test.go | 36 + vendor/github.com/go-ini/ini/parser.go | 7 +- vendor/github.com/go-ini/ini/section.go | 14 +- vendor/github.com/mattn/go-isatty/LICENSE | 9 - vendor/github.com/mattn/go-isatty/README.md | 37 - .../mattn/go-isatty/_example/example.go | 15 - vendor/github.com/mattn/go-isatty/doc.go | 2 - .../mattn/go-isatty/isatty_appengine.go | 9 - .../github.com/mattn/go-isatty/isatty_bsd.go | 18 - .../mattn/go-isatty/isatty_linux.go | 18 - .../mattn/go-isatty/isatty_solaris.go | 16 - .../mattn/go-isatty/isatty_windows.go | 19 - vendor/golang.org/x/sys/unix/mkerrors.sh | 2 + .../golang.org/x/sys/unix/mksysnum_linux.pl | 12 +- vendor/golang.org/x/sys/unix/syscall_linux.go | 1 + .../x/sys/unix/zerrors_linux_386.go | 2 + .../x/sys/unix/zerrors_linux_amd64.go | 2 + .../x/sys/unix/zerrors_linux_arm.go | 2 + .../x/sys/unix/zerrors_linux_arm64.go | 2 + .../x/sys/unix/zerrors_linux_mips.go | 2 + .../x/sys/unix/zerrors_linux_mips64.go | 2 + .../x/sys/unix/zerrors_linux_mips64le.go | 2 + .../x/sys/unix/zerrors_linux_mipsle.go | 2 + .../x/sys/unix/zerrors_linux_ppc64.go | 2 + .../x/sys/unix/zerrors_linux_ppc64le.go | 2 + .../x/sys/unix/zerrors_linux_s390x.go | 2 + .../x/sys/unix/zerrors_linux_sparc64.go | 2 + .../x/sys/unix/zsyscall_linux_386.go | 17 + .../x/sys/unix/zsyscall_linux_amd64.go | 17 + .../x/sys/unix/zsyscall_linux_arm.go | 17 + .../x/sys/unix/zsyscall_linux_arm64.go | 17 + .../x/sys/unix/zsyscall_linux_mips.go | 17 + .../x/sys/unix/zsyscall_linux_mips64.go | 17 + .../x/sys/unix/zsyscall_linux_mips64le.go | 17 + .../x/sys/unix/zsyscall_linux_mipsle.go | 17 + .../x/sys/unix/zsyscall_linux_ppc64.go | 17 + .../x/sys/unix/zsyscall_linux_ppc64le.go | 17 + .../x/sys/unix/zsyscall_linux_s390x.go | 17 + .../x/sys/unix/zsyscall_linux_sparc64.go | 21 +- .../x/sys/unix/zsysnum_linux_386.go | 37 +- .../x/sys/unix/zsysnum_linux_amd64.go | 22 +- .../x/sys/unix/zsysnum_linux_arm.go | 35 +- .../x/sys/unix/zsysnum_linux_arm64.go | 15 +- .../x/sys/unix/zsysnum_linux_mips.go | 25 +- .../x/sys/unix/zsysnum_linux_mips64.go | 9 +- .../x/sys/unix/zsysnum_linux_mips64le.go | 9 +- .../x/sys/unix/zsysnum_linux_mipsle.go | 25 +- .../x/sys/unix/zsysnum_linux_ppc64.go | 11 +- .../x/sys/unix/zsysnum_linux_ppc64le.go | 18 +- .../x/sys/unix/zsysnum_linux_s390x.go | 5 +- .../x/sys/unix/zsysnum_linux_sparc64.go | 2 +- .../alecthomas/kingpin.v2/.travis.yml | 1 - .../gopkg.in/alecthomas/kingpin.v2/README.md | 256 +- .../kingpin.v2/_examples/chat1/main.go | 20 - .../kingpin.v2/_examples/chat2/main.go | 38 - .../kingpin.v2/_examples/completion/main.go | 96 - .../kingpin.v2/_examples/curl/main.go | 105 - .../kingpin.v2/_examples/modular/main.go | 30 - .../kingpin.v2/_examples/ping/main.go | 20 - .../gopkg.in/alecthomas/kingpin.v2/actions.go | 42 - vendor/gopkg.in/alecthomas/kingpin.v2/app.go | 492 +-- .../alecthomas/kingpin.v2/app_test.go | 276 +- vendor/gopkg.in/alecthomas/kingpin.v2/args.go | 109 +- .../alecthomas/kingpin.v2/args_test.go | 43 +- vendor/gopkg.in/alecthomas/kingpin.v2/cmd.go | 187 +- .../kingpin.v2/cmd/genvalues/main.go | 134 - .../alecthomas/kingpin.v2/cmd_test.go | 280 +- .../alecthomas/kingpin.v2/completions.go | 33 - .../alecthomas/kingpin.v2/completions_test.go | 78 - .../gopkg.in/alecthomas/kingpin.v2/envar.go | 45 - .../alecthomas/kingpin.v2/examples_test.go | 4 - .../gopkg.in/alecthomas/kingpin.v2/flags.go | 211 +- .../alecthomas/kingpin.v2/flags_test.go | 273 +- .../gopkg.in/alecthomas/kingpin.v2/global.go | 29 +- .../alecthomas/kingpin.v2/guesswidth.go | 2 +- .../alecthomas/kingpin.v2/guesswidth_unix.go | 2 +- .../gopkg.in/alecthomas/kingpin.v2/model.go | 38 +- .../gopkg.in/alecthomas/kingpin.v2/parser.go | 81 +- .../alecthomas/kingpin.v2/parser_test.go | 18 +- .../gopkg.in/alecthomas/kingpin.v2/parsers.go | 114 +- .../alecthomas/kingpin.v2/parsers_test.go | 10 +- .../alecthomas/kingpin.v2/templates.go | 262 -- .../gopkg.in/alecthomas/kingpin.v2/usage.go | 168 +- .../alecthomas/kingpin.v2/usage_test.go | 42 +- .../gopkg.in/alecthomas/kingpin.v2/values.go | 221 +- .../alecthomas/kingpin.v2/values.json | 25 - .../alecthomas/kingpin.v2/values_generated.go | 821 ----- .../alecthomas/kingpin.v2/values_test.go | 89 - 340 files changed, 13175 insertions(+), 19197 deletions(-) delete mode 100644 vendor/github.com/mattn/go-isatty/LICENSE delete mode 100644 vendor/github.com/mattn/go-isatty/README.md delete mode 100644 vendor/github.com/mattn/go-isatty/_example/example.go delete mode 100644 vendor/github.com/mattn/go-isatty/doc.go delete mode 100644 vendor/github.com/mattn/go-isatty/isatty_appengine.go delete mode 100644 vendor/github.com/mattn/go-isatty/isatty_bsd.go delete mode 100644 vendor/github.com/mattn/go-isatty/isatty_linux.go delete mode 100644 vendor/github.com/mattn/go-isatty/isatty_solaris.go delete mode 100644 vendor/github.com/mattn/go-isatty/isatty_windows.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat1/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat2/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/_examples/completion/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/_examples/curl/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/_examples/modular/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/_examples/ping/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/actions.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/cmd/genvalues/main.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/completions.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/completions_test.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/envar.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/templates.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/values.json delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/values_generated.go delete mode 100644 vendor/gopkg.in/alecthomas/kingpin.v2/values_test.go diff --git a/README.md b/README.md index da46fbd5..eec50f57 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ On Mac: ## TODOs: -* fix bug for long polling once events are finished(currently we print again a last chunk of alerts) +* ~~fix bug for long polling once events are finished(currently we print again a last chunk of alerts)~~ * ~~add an optionl end date for time window~~ * allow more flexible startTime format(no seconds means 00, no minutes means 00:00) * add coloured output diff --git a/cloudwatch/cloudwatch.go b/cloudwatch/cloudwatch.go index 4e1b7300..a87317d6 100644 --- a/cloudwatch/cloudwatch.go +++ b/cloudwatch/cloudwatch.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" - // "github.com/fatih/color" + "github.com/fatih/color" ) func cwClient() *cloudwatchlogs.CloudWatchLogs { @@ -65,7 +65,7 @@ func Tail(logGroupName *string, follow *bool, startTime *string, endTime *string idx := sort.SearchStrings(ids, *event.EventId) if ids == nil || (idx == len(ids) || ids[idx] != *event.EventId) { d := timeutil.FormatTimestamp(eventTimestamp) - fmt.Printf("%s - %s\n", d, *event.Message) + fmt.Printf("%s - %s\n", color.GreenString(d), *event.Message) } ids = append(ids, *event.EventId) } diff --git a/lock.json b/lock.json index 0d92b01d..9aed44e8 100644 --- a/lock.json +++ b/lock.json @@ -1,5 +1,5 @@ { - "memo": "a33be850d9c3a86dbaeffcb264a5735b451d1c3a195fb6d08a7554ede46a942d", + "memo": "4c6dadf36a8afd6bbcf9a79c3971a18d9bd33879cea686e64caa1d35c80b9b7d", "projects": [ { "name": "github.com/alecthomas/template", @@ -20,7 +20,7 @@ { "name": "github.com/aws/aws-sdk-go", "branch": "master", - "revision": "ab16e115479efb695e122bc4bb3e0ad52419d1ba", + "revision": "78568b07950e5e7948496878fe99b9436add41d4", "packages": [ "aws", "aws/session", @@ -37,8 +37,8 @@ }, { "name": "github.com/go-ini/ini", - "version": "v1.24.0", - "revision": "e3c2d47c61e5333f9aa2974695dd94396eb69c75", + "version": "v1.25.2", + "revision": "74bdc99692c3408cb103221e38675ce8fda0a718", "packages": [ "." ] @@ -61,8 +61,8 @@ }, { "name": "github.com/mattn/go-isatty", - "version": "v0.0.1", - "revision": "3a115632dcd687f9c8cd01679c83a06a0e21c1f3", + "branch": "master", + "revision": "dda3de49cbfcec471bd7a70e6cc01fcc3ff90109", "packages": [ "." ] @@ -70,15 +70,15 @@ { "name": "golang.org/x/sys", "branch": "master", - "revision": "e4594059fe4cde2daf423055a596c2cd1e6c9adf", + "revision": "76cc09b634294339fa19ec41b5f2a0b3932cea8b", "packages": [ "unix" ] }, { "name": "gopkg.in/alecthomas/kingpin.v2", - "version": "v2.2.3", - "revision": "e9044be3ab2a8e11d4e1f418d12f0790d57e8d70", + "version": "v2.0.0", + "revision": "ec97771e49d7b6a53739abb87bec6ffe1ea29074", "packages": [ "." ] diff --git a/main.go b/main.go index a0d8d577..abc3c5eb 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - // "fmt" + "strings" "time" "github.com/lucagrulla/cw/cloudwatch" @@ -16,21 +16,42 @@ var ( tailCommand = kingpin.Command("tail", "Tail a log group") follow = tailCommand.Flag("follow", "Don't stop when the end of stream is reached").Short('f').Default("false").Bool() logGroupName = tailCommand.Arg("group", "The log group name").Required().String() - startTime = tailCommand.Arg("start", "The tailing start time in the format 2017-02-27T09:00:00").Default(time.Now().Add(-20 * time.Second).Format(timeutil.TimeFormat)).String() - endTime = tailCommand.Arg("end", "The tailing end time in the format 2017-02-27T09:00:00").String() + startTime = tailCommand.Arg("start", "The tailing start time in the format 2017-02-27[T09:00:[00]]").Default(time.Now().Add(-30 * time.Second).Format(timeutil.TimeFormat)).String() + endTime = tailCommand.Arg("end", "The tailing end time in the format 2017-02-27[T09:00:[00]]").String() streamName = tailCommand.Arg("stream", "an opotional stream name").String() ) +func timestampShortcut(timeStamp *string) string { + if *timeStamp == "" { + return *timeStamp + } + tokens := strings.Split(*timeStamp, "T") + if len(tokens) == 1 { + return strings.Join([]string{*timeStamp, "00:00:00"}, "T") + } else { + time := strings.Split(tokens[1], ":") + switch len(time) { + case 1: + return strings.Join([]string{*timeStamp, "00:00"}, ":") + case 2: + return strings.Join([]string{*timeStamp, "00"}, ":") + default: + return *timeStamp + } + + } +} + func main() { - kingpin.Version("0.1.0") + kingpin.Version("0.1.2") command := kingpin.Parse() switch command { case "ls": cloudwatch.Ls() case "tail": - // fmt.Println(strings.Split(*startTime, "T")) - // fmt.Println(strings.SplitAfter(*startTime, "T")) - cloudwatch.Tail(logGroupName, follow, startTime, endTime, streamName) + st := timestampShortcut(startTime) + et := timestampShortcut(endTime) + cloudwatch.Tail(logGroupName, follow, &st, &et, streamName) } } diff --git a/manifest.json b/manifest.json index 3b09882a..e8665148 100644 --- a/manifest.json +++ b/manifest.json @@ -3,6 +3,11 @@ "github.com/aws/aws-sdk-go": { "branch": "master" }, - "gopkg.in/alecthomas/kingpin.v2": {} + "github.com/fatih/color": { + "branch": "master" + }, + "gopkg.in/alecthomas/kingpin.v2": { + "version": "2" + } } } diff --git a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md index aa8b242b..b0be9238 100644 --- a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md @@ -1,3 +1,79 @@ + +Release v1.7.3 (2017-02-28) +=== + +Service Client Updates +--- +* `service/mturk`: Renaming service + * service/mechanicalturkrequesterservice was renamed to service/mturk. Be sure to change any references of the old client to the new. + +Release v1.7.2 (2017-02-28) +=== + +Service Client Updates +--- +* `service/dynamodb`: Updates service API and documentation + * Release notes: Time to Live (TTL) is a feature that allows you to define when items in a table expire and can be purged from the database, so that you don't have to track expired data and delete it manually. With TTL enabled on a DynamoDB table, you can set a timestamp for deletion on a per-item basis, allowing you to limit storage usage to only those records that are relevant. +* `service/iam`: Updates service API, documentation, and paginators + * This release adds support for AWS Organizations service control policies (SCPs) to SimulatePrincipalPolicy operation. If there are SCPs associated with the simulated user's account, their effect on the result is captured in the OrganizationDecisionDetail element in the EvaluationResult. +* `service/mechanicalturkrequesterservice`: Adds new service + * Amazon Mechanical Turk is a web service that provides an on-demand, scalable, human workforce to complete jobs that humans can do better than computers, for example, recognizing objects in photos. +* `service/organizations`: Adds new service + * AWS Organizations is a web service that enables you to consolidate your multiple AWS accounts into an organization and centrally manage your accounts and their resources. +* `service/dynamodbstreams`: Updates service API, documentation, and paginators +* `service/waf`: Updates service API, documentation, and paginators + * Aws WAF - For GetSampledRequests action, changed max number of samples from 100 to 500. +* `service/wafregional`: Updates service API, documentation, and paginators + +Release v1.7.1 (2017-02-24) +=== + +Service Client Updates +--- +* `service/elasticsearchservice`: Updates service API, documentation, paginators, and examples + * Added three new API calls to existing Amazon Elasticsearch service to expose Amazon Elasticsearch imposed limits to customers. + +Release v1.7.0 (2017-02-23) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API + * New EC2 I3 instance type + +SDK Bug +--- +* `service/s3/s3manager`: Adding support for SSE (#1097) + * Fixes SSE fields not being applied to a part during multi part upload. + +SDK Feature +--- +* `aws/session`: Add support for AssumeRoles with MFA (#1088) + * Adds support for assuming IAM roles with MFA enabled. A TokenProvider func was added to stscreds.AssumeRoleProvider that will be called each time the role's credentials need to be refreshed. A basic token provider that sources the MFA token from stdin as stscreds.StdinTokenProvider. +* `aws/session`: Update SDK examples and docs to use session.Must (#1099) + * Updates the SDK's example and docs to use session.Must where possible to highlight its usage as apposed to session error checking that is most cases errors will be terminal to the application anyways. +Release v1.6.27 (2017-02-22) +=== + +Service Client Updates +--- +* `service/clouddirectory`: Updates service documentation + * ListObjectAttributes documentation updated based on forum feedback +* `service/elasticbeanstalk`: Updates service API, documentation, and paginators + * Elastic Beanstalk adds support for creating and managing custom platform. +* `service/gamelift`: Updates service API, documentation, and paginators + * Allow developers to configure global queues for creating GameSessions. Allow PlayerData on PlayerSessions to store player-specific data. +* `service/route53`: Updates service API, documentation, and examples + * Added support for operations CreateVPCAssociationAuthorization and DeleteVPCAssociationAuthorization to throw a ConcurrentModification error when a conflicting modification occurs in parallel to the authorizations in place for a given hosted zone. + +Release v1.6.26 (2017-02-21) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API and documentation + * Added the billingProduct parameter to the RegisterImage API. + Release v1.6.25 (2017-02-17) === diff --git a/vendor/github.com/aws/aws-sdk-go/README.md b/vendor/github.com/aws/aws-sdk-go/README.md index bde1fed8..8247981b 100644 --- a/vendor/github.com/aws/aws-sdk-go/README.md +++ b/vendor/github.com/aws/aws-sdk-go/README.md @@ -33,7 +33,7 @@ These two processes will still include the `vendor` folder and it should be dele ## Getting Help Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests. -* Ask a question on [StackOverflow](http://stackoverflow.com/) and tag it with the `aws-sdk-go` tag. +* Ask a question on [StackOverflow](http://stackoverflow.com/) and tag it with the [`aws-sdk-go`](http://stackoverflow.com/questions/tagged/aws-sdk-go) tag. * Come join the AWS SDK for Go community chat on [gitter](https://gitter.im/aws/aws-sdk-go). * Open a support ticket with [AWS Support](http://docs.aws.amazon.com/awssupport/latest/user/getting-started.html). * If you think you may of found a bug, please open an [issue](https://github.com/aws/aws-sdk-go/issues/new). diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config.go b/vendor/github.com/aws/aws-sdk-go/aws/config.go index d58b8128..f5a7c379 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go @@ -22,9 +22,9 @@ type RequestRetryer interface{} // // // Create Session with MaxRetry configuration to be shared by multiple // // service clients. -// sess, err := session.NewSession(&aws.Config{ +// sess := session.Must(session.NewSession(&aws.Config{ // MaxRetries: aws.Int(3), -// }) +// })) // // // Create S3 service client with a specific Region. // svc := s3.New(sess, &aws.Config{ @@ -154,7 +154,8 @@ type Config struct { // the EC2Metadata overriding the timeout for default credentials chain. // // Example: - // sess, err := session.NewSession(aws.NewConfig().WithEC2MetadataDiableTimeoutOverride(true)) + // sess := session.Must(session.NewSession(aws.NewConfig() + // .WithEC2MetadataDiableTimeoutOverride(true))) // // svc := s3.New(sess) // @@ -174,7 +175,7 @@ type Config struct { // // Only supported with. // - // sess, err := session.NewSession() + // sess := session.Must(session.NewSession()) // // svc := s3.New(sess, &aws.Config{ // UseDualStack: aws.Bool(true), @@ -192,7 +193,9 @@ type Config struct { // Will default to false. This would only be used for empty directory names in s3 requests. // // Example: - // sess, err := session.NewSession(&aws.Config{DisableRestProtocolURICleaning: aws.Bool(true)) + // sess := session.Must(session.NewSession(&aws.Config{ + // DisableRestProtocolURICleaning: aws.Bool(true), + // })) // // svc := s3.New(sess) // out, err := svc.GetObject(&s3.GetObjectInput { @@ -207,9 +210,9 @@ type Config struct { // // // Create Session with MaxRetry configuration to be shared by multiple // // service clients. -// sess, err := session.NewSession(aws.NewConfig(). +// sess := session.Must(session.NewSession(aws.NewConfig(). // WithMaxRetries(3), -// ) +// )) // // // Create S3 service client with a specific Region. // svc := s3.New(sess, aws.NewConfig(). diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go index 30c847ae..b8406233 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go @@ -1,7 +1,81 @@ -// Package stscreds are credential Providers to retrieve STS AWS credentials. -// -// STS provides multiple ways to retrieve credentials which can be used when making -// future AWS service API operation calls. +/* +Package stscreds are credential Providers to retrieve STS AWS credentials. + +STS provides multiple ways to retrieve credentials which can be used when making +future AWS service API operation calls. + +The SDK will ensure that per instance of credentials.Credentials all requests +to refresh the credentials will be synchronized. But, the SDK is unable to +ensure synchronous usage of the AssumeRoleProvider if the value is shared +between multiple Credentials, Sessions or service clients. + +Assume Role + +To assume an IAM role using STS with the SDK you can create a new Credentials +with the SDKs's stscreds package. + + // Initial credentials loaded from SDK's default credential chain. Such as + // the environment, shared credentials (~/.aws/credentials), or EC2 Instance + // Role. These credentials will be used to to make the STS Assume Role API. + sess := session.Must(session.NewSession()) + + // Create the credentials from AssumeRoleProvider to assume the role + // referenced by the "myRoleARN" ARN. + creds := stscreds.NewCredentials(sess, "myRoleArn") + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +Assume Role with static MFA Token + +To assume an IAM role with a MFA token you can either specify a MFA token code +directly or provide a function to prompt the user each time the credentials +need to refresh the role's credentials. Specifying the TokenCode should be used +for short lived operations that will not need to be refreshed, and when you do +not want to have direct control over the user provides their MFA token. + +With TokenCode the AssumeRoleProvider will be not be able to refresh the role's +credentials. + + // Create the credentials from AssumeRoleProvider to assume the role + // referenced by the "myRoleARN" ARN using the MFA token code provided. + creds := stscreds.NewCredentials(sess, "myRoleArn", func(p *stscreds.AssumeRoleProvider) { + p.SerialNumber = aws.String("myTokenSerialNumber") + p.TokenCode = aws.String("00000000") + }) + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +Assume Role with MFA Token Provider + +To assume an IAM role with MFA for longer running tasks where the credentials +may need to be refreshed setting the TokenProvider field of AssumeRoleProvider +will allow the credential provider to prompt for new MFA token code when the +role's credentials need to be refreshed. + +The StdinTokenProvider function is available to prompt on stdin to retrieve +the MFA token code from the user. You can also implement custom prompts by +satisfing the TokenProvider function signature. + +Using StdinTokenProvider with multiple AssumeRoleProviders, or Credentials will +have undesirable results as the StdinTokenProvider will not be synchronized. A +single Credentials with an AssumeRoleProvider can be shared safely. + + // Create the credentials from AssumeRoleProvider to assume the role + // referenced by the "myRoleARN" ARN. Prompting for MFA token from stdin. + creds := stscreds.NewCredentials(sess, "myRoleArn", func(p *stscreds.AssumeRoleProvider) { + p.SerialNumber = aws.String("myTokenSerialNumber") + p.TokenProvider = stscreds.StdinTokenProvider + }) + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +*/ package stscreds import ( @@ -9,11 +83,31 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/service/sts" ) +// StdinTokenProvider will prompt on stdout and read from stdin for a string value. +// An error is returned if reading from stdin fails. +// +// Use this function go read MFA tokens from stdin. The function makes no attempt +// to make atomic prompts from stdin across multiple gorouties. +// +// Using StdinTokenProvider with multiple AssumeRoleProviders, or Credentials will +// have undesirable results as the StdinTokenProvider will not be synchronized. A +// single Credentials with an AssumeRoleProvider can be shared safely +// +// Will wait forever until something is provided on the stdin. +func StdinTokenProvider() (string, error) { + var v string + fmt.Printf("Assume Role MFA token code: ") + _, err := fmt.Scanln(&v) + + return v, err +} + // ProviderName provides a name of AssumeRole provider const ProviderName = "AssumeRoleProvider" @@ -27,8 +121,15 @@ type AssumeRoler interface { var DefaultDuration = time.Duration(15) * time.Minute // AssumeRoleProvider retrieves temporary credentials from the STS service, and -// keeps track of their expiration time. This provider must be used explicitly, -// as it is not included in the credentials chain. +// keeps track of their expiration time. +// +// This credential provider will be used by the SDKs default credential change +// when shared configuration is enabled, and the shared config or shared credentials +// file configure assume role. See Session docs for how to do this. +// +// AssumeRoleProvider does not provide any synchronization and it is not safe +// to share this value across multiple Credentials, Sessions, or service clients +// without also sharing the same Credentials instance. type AssumeRoleProvider struct { credentials.Expiry @@ -65,8 +166,23 @@ type AssumeRoleProvider struct { // assumed requires MFA (that is, if the policy includes a condition that tests // for MFA). If the role being assumed requires MFA and if the TokenCode value // is missing or expired, the AssumeRole call returns an "access denied" error. + // + // If SerialNumber is set and neither TokenCode nor TokenProvider are also + // set an error will be returned. TokenCode *string + // Async method of providing MFA token code for assuming an IAM role with MFA. + // The value returned by the function will be used as the TokenCode in the Retrieve + // call. See StdinTokenProvider for a provider that prompts and reads from stdin. + // + // This token provider will be called when ever the assumed role's + // credentials need to be refreshed when SerialNumber is also set and + // TokenCode is not set. + // + // If both TokenCode and TokenProvider is set, TokenProvider will be used and + // TokenCode is ignored. + TokenProvider func() (string, error) + // ExpiryWindow will allow the credentials to trigger refreshing prior to // the credentials actually expiring. This is beneficial so race conditions // with expiring credentials do not cause request to fail unexpectedly @@ -85,6 +201,10 @@ type AssumeRoleProvider struct { // // Takes a Config provider to create the STS client. The ConfigProvider is // satisfied by the session.Session type. +// +// It is safe to share the returned Credentials with multiple Sessions and +// service clients. All access to the credentials and refreshing them +// will be synchronized. func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials { p := &AssumeRoleProvider{ Client: sts.New(c), @@ -103,7 +223,11 @@ func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*As // AssumeRoleProvider. The credentials will expire every 15 minutes and the // role will be named after a nanosecond timestamp of this operation. // -// Takes an AssumeRoler which can be satisfiede by the STS client. +// Takes an AssumeRoler which can be satisfied by the STS client. +// +// It is safe to share the returned Credentials with multiple Sessions and +// service clients. All access to the credentials and refreshing them +// will be synchronized. func NewCredentialsWithClient(svc AssumeRoler, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials { p := &AssumeRoleProvider{ Client: svc, @@ -139,12 +263,25 @@ func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) { if p.Policy != nil { input.Policy = p.Policy } - if p.SerialNumber != nil && p.TokenCode != nil { - input.SerialNumber = p.SerialNumber - input.TokenCode = p.TokenCode + if p.SerialNumber != nil { + if p.TokenCode != nil { + input.SerialNumber = p.SerialNumber + input.TokenCode = p.TokenCode + } else if p.TokenProvider != nil { + input.SerialNumber = p.SerialNumber + code, err := p.TokenProvider() + if err != nil { + return credentials.Value{ProviderName: ProviderName}, err + } + input.TokenCode = aws.String(code) + } else { + return credentials.Value{ProviderName: ProviderName}, + awserr.New("AssumeRoleTokenNotAvailable", + "assume role with MFA enabled, but neither TokenCode nor TokenProvider are set", nil) + } } - roleOutput, err := p.Client.AssumeRole(input) + roleOutput, err := p.Client.AssumeRole(input) if err != nil { return credentials.Value{ProviderName: ProviderName}, err } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go index 6bd6e919..4c0212a0 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go @@ -1,6 +1,7 @@ package stscreds import ( + "fmt" "testing" "time" @@ -10,9 +11,13 @@ import ( ) type stubSTS struct { + TestInput func(*sts.AssumeRoleInput) } func (s *stubSTS) AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) { + if s.TestInput != nil { + s.TestInput(input) + } expiry := time.Now().Add(60 * time.Minute) return &sts.AssumeRoleOutput{ Credentials: &sts.Credentials{ @@ -40,6 +45,95 @@ func TestAssumeRoleProvider(t *testing.T) { assert.Equal(t, "assumedSessionToken", creds.SessionToken, "Expect session token to match") } +func TestAssumeRoleProvider_WithTokenCode(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Equal(t, "0123456789", *in.SerialNumber) + assert.Equal(t, "code", *in.TokenCode) + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + TokenCode: aws.String("code"), + } + + creds, err := p.Retrieve() + assert.Nil(t, err, "Expect no error") + + assert.Equal(t, "roleARN", creds.AccessKeyID, "Expect access key ID to be reflected role ARN") + assert.Equal(t, "assumedSecretAccessKey", creds.SecretAccessKey, "Expect secret access key to match") + assert.Equal(t, "assumedSessionToken", creds.SessionToken, "Expect session token to match") +} + +func TestAssumeRoleProvider_WithTokenProvider(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Equal(t, "0123456789", *in.SerialNumber) + assert.Equal(t, "code", *in.TokenCode) + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + TokenProvider: func() (string, error) { + return "code", nil + }, + } + + creds, err := p.Retrieve() + assert.Nil(t, err, "Expect no error") + + assert.Equal(t, "roleARN", creds.AccessKeyID, "Expect access key ID to be reflected role ARN") + assert.Equal(t, "assumedSecretAccessKey", creds.SecretAccessKey, "Expect secret access key to match") + assert.Equal(t, "assumedSessionToken", creds.SessionToken, "Expect session token to match") +} + +func TestAssumeRoleProvider_WithTokenProviderError(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Fail(t, "API request should not of been called") + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + TokenProvider: func() (string, error) { + return "", fmt.Errorf("error occurred") + }, + } + + creds, err := p.Retrieve() + assert.Error(t, err) + + assert.Empty(t, creds.AccessKeyID) + assert.Empty(t, creds.SecretAccessKey) + assert.Empty(t, creds.SessionToken) +} + +func TestAssumeRoleProvider_MFAWithNoToken(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Fail(t, "API request should not of been called") + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + } + + creds, err := p.Retrieve() + assert.Error(t, err) + + assert.Empty(t, creds.AccessKeyID) + assert.Empty(t, creds.SecretAccessKey) + assert.Empty(t, creds.SessionToken) +} + func BenchmarkAssumeRoleProvider(b *testing.B) { stub := &stubSTS{} p := &AssumeRoleProvider{ diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go index d3dc8404..9975e320 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go @@ -45,16 +45,16 @@ region, and profile loaded from the environment and shared config automatically. Requires the AWS_PROFILE to be set, or "default" is used. // Create Session - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) // Create a Session with a custom region - sess, err := session.NewSession(&aws.Config{Region: aws.String("us-east-1")}) + sess := session.Must(session.NewSession(&aws.Config{ + Region: aws.String("us-east-1"), + })) // Create a S3 client instance from a session - sess, err := session.NewSession() - if err != nil { - // Handle Session creation error - } + sess := session.Must(session.NewSession()) + svc := s3.New(sess) Create Session With Option Overrides @@ -67,23 +67,25 @@ Use NewSessionWithOptions when you want to provide the config profile, or override the shared config state (AWS_SDK_LOAD_CONFIG). // Equivalent to session.NewSession() - sess, err := session.NewSessionWithOptions(session.Options{}) + sess := session.Must(session.NewSessionWithOptions(session.Options{ + // Options + })) // Specify profile to load for the session's config - sess, err := session.NewSessionWithOptions(session.Options{ + sess := session.Must(session.NewSessionWithOptions(session.Options{ Profile: "profile_name", - }) + })) // Specify profile for config and region for requests - sess, err := session.NewSessionWithOptions(session.Options{ + sess := session.Must(session.NewSessionWithOptions(session.Options{ Config: aws.Config{Region: aws.String("us-east-1")}, Profile: "profile_name", - }) + })) // Force enable Shared Config support - sess, err := session.NewSessionWithOptions(session.Options{ + sess := session.Must(session.NewSessionWithOptions(session.Options{ SharedConfigState: SharedConfigEnable, - }) + })) Adding Handlers @@ -93,7 +95,8 @@ handler logs every request and its payload made by a service client: // Create a session, and add additional handlers for all service // clients created with the Session to inherit. Adds logging handler. - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) + sess.Handlers.Send.PushFront(func(r *request.Request) { // Log every request made and its payload logger.Println("Request: %s/%s, Payload: %s", @@ -138,15 +141,14 @@ the other two fields are also provided. Assume Role values allow you to configure the SDK to assume an IAM role using a set of credentials provided in a config file via the source_profile field. -Both "role_arn" and "source_profile" are required. The SDK does not support -assuming a role with MFA token Via the Session's constructor. You can use the -stscreds.AssumeRoleProvider credentials provider to specify custom -configuration and support for MFA. +Both "role_arn" and "source_profile" are required. The SDK supports assuming +a role with MFA token if the session option AssumeRoleTokenProvider +is set. role_arn = arn:aws:iam::<account_number>:role/<role_name> source_profile = profile_with_creds external_id = 1234 - mfa_serial = not supported! + mfa_serial = <serial or mfa arn> role_session_name = session_name Region is the region the SDK should use for looking up AWS service endpoints @@ -154,6 +156,37 @@ and signing requests. region = us-east-1 +Assume Role with MFA token + +To create a session with support for assuming an IAM role with MFA set the +session option AssumeRoleTokenProvider to a function that will prompt for the +MFA token code when the SDK assumes the role and refreshes the role's credentials. +This allows you to configure the SDK via the shared config to assumea role +with MFA tokens. + +In order for the SDK to assume a role with MFA the SharedConfigState +session option must be set to SharedConfigEnable, or AWS_SDK_LOAD_CONFIG +environment variable set. + +The shared configuration instructs the SDK to assume an IAM role with MFA +when the mfa_serial configuration field is set in the shared config +(~/.aws/config) or shared credentials (~/.aws/credentials) file. + +If mfa_serial is set in the configuration, the SDK will assume the role, and +the AssumeRoleTokenProvider session option is not set an an error will +be returned when creating the session. + + sess := session.Must(session.NewSessionWithOptions(session.Options{ + AssumeRoleTokenProvider: stscreds.StdinTokenProvider, + })) + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess) + +To setup assume role outside of a session see the stscrds.AssumeRoleProvider +documentation. + Environment Variables When a Session is created several environment variables can be set to adjust diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session.go index 3d52fc20..42ab3632 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/session.go @@ -52,7 +52,7 @@ func New(cfgs ...*aws.Config) *Session { envCfg := loadEnvConfig() if envCfg.EnableSharedConfig { - s, err := newSession(envCfg, cfgs...) + s, err := newSession(Options{}, envCfg, cfgs...) if err != nil { // Old session.New expected all errors to be discovered when // a request is made, and would report the errors then. This @@ -73,7 +73,7 @@ func New(cfgs ...*aws.Config) *Session { return s } - return oldNewSession(cfgs...) + return deprecatedNewSession(cfgs...) } // NewSession returns a new Session created from SDK defaults, config files, @@ -94,7 +94,7 @@ func New(cfgs ...*aws.Config) *Session { func NewSession(cfgs ...*aws.Config) (*Session, error) { envCfg := loadEnvConfig() - return newSession(envCfg, cfgs...) + return newSession(Options{}, envCfg, cfgs...) } // SharedConfigState provides the ability to optionally override the state @@ -147,6 +147,26 @@ type Options struct { // will allow you to override the AWS_SDK_LOAD_CONFIG environment variable // and enable or disable the shared config functionality. SharedConfigState SharedConfigState + + // When the SDK's shared config is configured to assume a role with MFA + // this option is required in order to provide the mechanism that will + // retrieve the MFA token. There is no default value for this field. If + // it is not set an error will be returned when creating the session. + // + // This token provider will be called when ever the assumed role's + // credentials need to be refreshed. Within the context of service clients + // all sharing the same session the SDK will ensure calls to the token + // provider are atomic. When sharing a token provider across multiple + // sessions additional synchronization logic is needed to ensure the + // token providers do not introduce race conditions. It is recommend to + // share the session where possible. + // + // stscreds.StdinTokenProvider is a basic implementation that will prompt + // from stdin for the MFA token code. + // + // This field is only used if the shared configuration is enabled, and + // the config enables assume role wit MFA via the mfa_serial field. + AssumeRoleTokenProvider func() (string, error) } // NewSessionWithOptions returns a new Session created from SDK defaults, config files, @@ -161,23 +181,23 @@ type Options struct { // to be built with retrieving credentials with AssumeRole set in the config. // // // Equivalent to session.New -// sess, err := session.NewSessionWithOptions(session.Options{}) +// sess := session.Must(session.NewSessionWithOptions(session.Options{})) // // // Specify profile to load for the session's config -// sess, err := session.NewSessionWithOptions(session.Options{ +// sess := session.Must(session.NewSessionWithOptions(session.Options{ // Profile: "profile_name", -// }) +// })) // // // Specify profile for config and region for requests -// sess, err := session.NewSessionWithOptions(session.Options{ +// sess := session.Must(session.NewSessionWithOptions(session.Options{ // Config: aws.Config{Region: aws.String("us-east-1")}, // Profile: "profile_name", -// }) +// })) // // // Force enable Shared Config support -// sess, err := session.NewSessionWithOptions(session.Options{ +// sess := session.Must(session.NewSessionWithOptions(session.Options{ // SharedConfigState: SharedConfigEnable, -// }) +// })) func NewSessionWithOptions(opts Options) (*Session, error) { var envCfg envConfig if opts.SharedConfigState == SharedConfigEnable { @@ -197,7 +217,7 @@ func NewSessionWithOptions(opts Options) (*Session, error) { envCfg.EnableSharedConfig = true } - return newSession(envCfg, &opts.Config) + return newSession(opts, envCfg, &opts.Config) } // Must is a helper function to ensure the Session is valid and there was no @@ -215,7 +235,7 @@ func Must(sess *Session, err error) *Session { return sess } -func oldNewSession(cfgs ...*aws.Config) *Session { +func deprecatedNewSession(cfgs ...*aws.Config) *Session { cfg := defaults.Config() handlers := defaults.Handlers() @@ -242,7 +262,7 @@ func oldNewSession(cfgs ...*aws.Config) *Session { return s } -func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { +func newSession(opts Options, envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { cfg := defaults.Config() handlers := defaults.Handlers() @@ -266,7 +286,9 @@ func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { return nil, err } - mergeConfigSrcs(cfg, userCfg, envCfg, sharedCfg, handlers) + if err := mergeConfigSrcs(cfg, userCfg, envCfg, sharedCfg, handlers, opts); err != nil { + return nil, err + } s := &Session{ Config: cfg, @@ -278,7 +300,7 @@ func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { return s, nil } -func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg sharedConfig, handlers request.Handlers) { +func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg sharedConfig, handlers request.Handlers, sessOpts Options) error { // Merge in user provided configuration cfg.MergeIn(userCfg) @@ -302,6 +324,11 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share cfgCp.Credentials = credentials.NewStaticCredentialsFromCreds( sharedCfg.AssumeRoleSource.Creds, ) + if len(sharedCfg.AssumeRole.MFASerial) > 0 && sessOpts.AssumeRoleTokenProvider == nil { + // AssumeRole Token provider is required if doing Assume Role + // with MFA. + return AssumeRoleTokenProviderNotSetError{} + } cfg.Credentials = stscreds.NewCredentials( &Session{ Config: &cfgCp, @@ -311,11 +338,16 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share func(opt *stscreds.AssumeRoleProvider) { opt.RoleSessionName = sharedCfg.AssumeRole.RoleSessionName + // Assume role with external ID if len(sharedCfg.AssumeRole.ExternalID) > 0 { opt.ExternalID = aws.String(sharedCfg.AssumeRole.ExternalID) } - // MFA not supported + // Assume role with MFA + if len(sharedCfg.AssumeRole.MFASerial) > 0 { + opt.SerialNumber = aws.String(sharedCfg.AssumeRole.MFASerial) + opt.TokenProvider = sessOpts.AssumeRoleTokenProvider + } }, ) } else if len(sharedCfg.Creds.AccessKeyID) > 0 { @@ -336,6 +368,33 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share }) } } + + return nil +} + +// AssumeRoleTokenProviderNotSetError is an error returned when creating a session when the +// MFAToken option is not set when shared config is configured load assume a +// role with an MFA token. +type AssumeRoleTokenProviderNotSetError struct{} + +// Code is the short id of the error. +func (e AssumeRoleTokenProviderNotSetError) Code() string { + return "AssumeRoleTokenProviderNotSetError" +} + +// Message is the description of the error +func (e AssumeRoleTokenProviderNotSetError) Message() string { + return fmt.Sprintf("assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.") +} + +// OrigErr is the underlying error that caused the failure. +func (e AssumeRoleTokenProviderNotSetError) OrigErr() error { + return nil +} + +// Error satisfies the error interface. +func (e AssumeRoleTokenProviderNotSetError) Error() string { + return awserr.SprintError(e.Code(), e.Message(), "", nil) } type credProviderError struct { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go index 85d77b16..877af02e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go @@ -257,17 +257,7 @@ func TestNewSessionWithOptions_Overrides(t *testing.T) { } } -func TestSesisonAssumeRole(t *testing.T) { - oldEnv := initSessionTestEnv() - defer popEnv(oldEnv) - - os.Setenv("AWS_REGION", "us-east-1") - os.Setenv("AWS_SDK_LOAD_CONFIG", "1") - os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) - os.Setenv("AWS_PROFILE", "assume_role_w_creds") - - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - const respMsg = ` +const assumeRoleRespMsg = ` <AssumeRoleResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/"> <AssumeRoleResult> <AssumedRoleUser> @@ -286,7 +276,18 @@ func TestSesisonAssumeRole(t *testing.T) { </ResponseMetadata> </AssumeRoleResponse> ` - w.Write([]byte(fmt.Sprintf(respMsg, time.Now().Add(15*time.Minute).Format("2006-01-02T15:04:05Z")))) + +func TestSesisonAssumeRole(t *testing.T) { + oldEnv := initSessionTestEnv() + defer popEnv(oldEnv) + + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) + os.Setenv("AWS_PROFILE", "assume_role_w_creds") + + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(fmt.Sprintf(assumeRoleRespMsg, time.Now().Add(15*time.Minute).Format("2006-01-02T15:04:05Z")))) })) s, err := NewSession(&aws.Config{Endpoint: aws.String(server.URL), DisableSSL: aws.Bool(true)}) @@ -299,6 +300,65 @@ func TestSesisonAssumeRole(t *testing.T) { assert.Contains(t, creds.ProviderName, "AssumeRoleProvider") } +func TestSessionAssumeRole_WithMFA(t *testing.T) { + oldEnv := initSessionTestEnv() + defer popEnv(oldEnv) + + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) + os.Setenv("AWS_PROFILE", "assume_role_w_creds") + + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + assert.Equal(t, r.FormValue("SerialNumber"), "0123456789") + assert.Equal(t, r.FormValue("TokenCode"), "tokencode") + + w.Write([]byte(fmt.Sprintf(assumeRoleRespMsg, time.Now().Add(15*time.Minute).Format("2006-01-02T15:04:05Z")))) + })) + + customProviderCalled := false + sess, err := NewSessionWithOptions(Options{ + Profile: "assume_role_w_mfa", + Config: aws.Config{ + Region: aws.String("us-east-1"), + Endpoint: aws.String(server.URL), + DisableSSL: aws.Bool(true), + }, + SharedConfigState: SharedConfigEnable, + AssumeRoleTokenProvider: func() (string, error) { + customProviderCalled = true + + return "tokencode", nil + }, + }) + assert.NoError(t, err) + + creds, err := sess.Config.Credentials.Get() + assert.NoError(t, err) + assert.True(t, customProviderCalled) + + assert.Equal(t, "AKID", creds.AccessKeyID) + assert.Equal(t, "SECRET", creds.SecretAccessKey) + assert.Equal(t, "SESSION_TOKEN", creds.SessionToken) + assert.Contains(t, creds.ProviderName, "AssumeRoleProvider") +} + +func TestSessionAssumeRole_WithMFA_NoTokenProvider(t *testing.T) { + oldEnv := initSessionTestEnv() + defer popEnv(oldEnv) + + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) + os.Setenv("AWS_PROFILE", "assume_role_w_creds") + + _, err := NewSessionWithOptions(Options{ + Profile: "assume_role_w_mfa", + SharedConfigState: SharedConfigEnable, + }) + assert.Equal(t, err, AssumeRoleTokenProviderNotSetError{}) +} + func TestSessionAssumeRole_DisableSharedConfig(t *testing.T) { // Backwards compatibility with Shared config disabled // assume role should not be built into the config. diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go index 1a164d46..3a07b8d9 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go @@ -212,6 +212,16 @@ func TestLoadSharedConfigFromFile(t *testing.T) { }, }, }, + { + Profile: "assume_role_w_mfa", + Expected: sharedConfig{ + AssumeRole: assumeRoleConfig{ + RoleARN: "assume_role_role_arn", + SourceProfile: "complete_creds", + MFASerial: "0123456789", + }, + }, + }, { Profile: "does_not_exists", Err: SharedConfigProfileNotExistsError{Profile: "does_not_exists"}, diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config b/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config index e41fe213..8705608e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config @@ -43,6 +43,11 @@ role_arn = partial_assume_role_role_arn role_arn = assume_role_role_arn source_profile = complete_creds +[assume_role_w_mfa] +role_arn = assume_role_role_arn +source_profile = complete_creds +mfa_serial = 0123456789 + [assume_role_invalid_source_profile] role_arn = assume_role_invalid_source_profile_role_arn source_profile = profile_not_exists diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go index be7ac143..8f187972 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/version.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.6.25" +const SDKVersion = "1.7.3" diff --git a/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go b/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go index e648b653..ee1da3a6 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go +++ b/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go @@ -32,10 +32,7 @@ func main() { if len(os.Args) < 3 { exitErrorf("Usage: %s <bucket> <key>", filepath.Base(os.Args[0])) } - sess, err := session.NewSession() - if err != nil { - exitErrorf("failed to create session,", err) - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) resp, err := svc.GetObject(&s3.GetObjectInput{ diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go index d9d2fa84..5fec4269 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go @@ -33,10 +33,7 @@ func main() { } // Create the session that the DynamoDB service will use. - sess, err := session.NewSession(awscfg) - if err != nil { - exitWithError(fmt.Errorf("failed to create session, %v", err)) - } + sess := session.Must(session.NewSession(awscfg)) // Create the DynamoDB service client to make the query request with. svc := dynamodb.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go b/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go index f83e942b..c01946dc 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go @@ -18,10 +18,7 @@ import ( // Usage: // filter_ec2_by_tag <name_filter> func main() { - sess, err := session.NewSession() - if err != nil { - log.Fatalf("failed to create session %v\n", err) - } + sess := session.Must(session.NewSession()) nameFilter := os.Args[1] awsRegion := "us-east-1" diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go index 75ea4c50..3ed5eed0 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go @@ -20,16 +20,12 @@ func main() { return } - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) i := 0 - err = svc.ListObjectsPages(&s3.ListObjectsInput{ + err := svc.ListObjectsPages(&s3.ListObjectsInput{ Bucket: &os.Args[1], }, func(p *s3.ListObjectsOutput, last bool) (shouldContinue bool) { fmt.Println("Page,", i) diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go index 3329af5d..c61fea6f 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go @@ -52,11 +52,10 @@ func main() { emailPtr, userPtr = nil, nil } - sess, err := session.NewSession( - &aws.Config{ - Region: regionPtr, - }, - ) + sess := session.Must(session.NewSession(&aws.Config{ + Region: regionPtr, + })) + svc := s3.New(sess) resp, err := svc.PutObjectAcl(&s3.PutObjectAclInput{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json index 670ef964..d99163f4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json @@ -34,7 +34,7 @@ "ListFacetAttributes": "<p>Retrieves attributes attached to the facet.</p>", "ListFacetNames": "<p>Retrieves the names of facets that exist in a schema.</p>", "ListIndex": "<p>Lists objects attached to the specified index.</p>", - "ListObjectAttributes": "<p>Lists all attributes associated with an object. This also supports common namespace prefix (key) listing. For example, if you want to retrieve all attributes associated with facet1, key can be <code>facet1</code>. If key is empty, all attributes are returned in a paginated list.</p>", + "ListObjectAttributes": "<p>Lists all attributes associated with an object. </p>", "ListObjectChildren": "<p>Returns a paginated list of child objects associated with a given object.</p>", "ListObjectParents": "<p>Lists parent objects associated with a given object in pagination fashion.</p>", "ListObjectPolicies": "<p>Returns policies attached to an object in pagination fashion.</p>", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json index b57b2d0e..e15b1f26 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json @@ -111,6 +111,19 @@ {"shape":"InternalServerError"} ] }, + "DescribeTimeToLive":{ + "name":"DescribeTimeToLive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTimeToLiveInput"}, + "output":{"shape":"DescribeTimeToLiveOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerError"} + ] + }, "GetItem":{ "name":"GetItem", "http":{ @@ -252,6 +265,21 @@ {"shape":"LimitExceededException"}, {"shape":"InternalServerError"} ] + }, + "UpdateTimeToLive":{ + "name":"UpdateTimeToLive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTimeToLiveInput"}, + "output":{"shape":"UpdateTimeToLiveOutput"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServerError"} + ] } }, "shapes":{ @@ -567,6 +595,19 @@ "Table":{"shape":"TableDescription"} } }, + "DescribeTimeToLiveInput":{ + "type":"structure", + "required":["TableName"], + "members":{ + "TableName":{"shape":"TableName"} + } + }, + "DescribeTimeToLiveOutput":{ + "type":"structure", + "members":{ + "TimeToLiveDescription":{"shape":"TimeToLiveDescription"} + } + }, "ErrorMessage":{"type":"string"}, "ExpectedAttributeMap":{ "type":"map", @@ -1228,6 +1269,39 @@ "max":256, "min":0 }, + "TimeToLiveAttributeName":{ + "type":"string", + "max":255, + "min":1 + }, + "TimeToLiveDescription":{ + "type":"structure", + "members":{ + "TimeToLiveStatus":{"shape":"TimeToLiveStatus"}, + "AttributeName":{"shape":"TimeToLiveAttributeName"} + } + }, + "TimeToLiveEnabled":{"type":"boolean"}, + "TimeToLiveSpecification":{ + "type":"structure", + "required":[ + "Enabled", + "AttributeName" + ], + "members":{ + "Enabled":{"shape":"TimeToLiveEnabled"}, + "AttributeName":{"shape":"TimeToLiveAttributeName"} + } + }, + "TimeToLiveStatus":{ + "type":"string", + "enum":[ + "ENABLING", + "DISABLING", + "ENABLED", + "DISABLED" + ] + }, "UntagResourceInput":{ "type":"structure", "required":[ @@ -1297,6 +1371,23 @@ "TableDescription":{"shape":"TableDescription"} } }, + "UpdateTimeToLiveInput":{ + "type":"structure", + "required":[ + "TableName", + "TimeToLiveSpecification" + ], + "members":{ + "TableName":{"shape":"TableName"}, + "TimeToLiveSpecification":{"shape":"TimeToLiveSpecification"} + } + }, + "UpdateTimeToLiveOutput":{ + "type":"structure", + "members":{ + "TimeToLiveSpecification":{"shape":"TimeToLiveSpecification"} + } + }, "WriteRequest":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json index 48056dfb..f657f013 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json @@ -9,6 +9,7 @@ "DeleteTable": "<p>The <code>DeleteTable</code> operation deletes a table and all of its items. After a <code>DeleteTable</code> request, the specified table is in the <code>DELETING</code> state until DynamoDB completes the deletion. If the table is in the <code>ACTIVE</code> state, you can delete it. If a table is in <code>CREATING</code> or <code>UPDATING</code> states, then DynamoDB returns a <code>ResourceInUseException</code>. If the specified table does not exist, DynamoDB returns a <code>ResourceNotFoundException</code>. If table is already in the <code>DELETING</code> state, no error is returned. </p> <note> <p>DynamoDB might continue to accept data read and write operations, such as <code>GetItem</code> and <code>PutItem</code>, on a table in the <code>DELETING</code> state until the table deletion is complete.</p> </note> <p>When you delete a table, any indexes on that table are also deleted.</p> <p>If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the <code>DISABLED</code> state, and the stream is automatically deleted after 24 hours.</p> <p>Use the <code>DescribeTable</code> action to check the status of the table. </p>", "DescribeLimits": "<p>Returns the current provisioned-capacity limits for your AWS account in a region, both for the region as a whole and for any one DynamoDB table that you create there.</p> <p>When you establish an AWS account, the account has initial limits on the maximum read capacity units and write capacity units that you can provision across all of your DynamoDB tables in a given region. Also, there are per-table limits that apply when you create a table there. For more information, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html\">Limits</a> page in the <i>Amazon DynamoDB Developer Guide</i>.</p> <p>Although you can increase these limits by filing a case at <a href=\"https://console.aws.amazon.com/support/home#/\">AWS Support Center</a>, obtaining the increase is not instantaneous. The <code>DescribeLimits</code> action lets you write code to compare the capacity you are currently using to those limits imposed by your account so that you have enough time to apply for an increase before you hit a limit.</p> <p>For example, you could use one of the AWS SDKs to do the following:</p> <ol> <li> <p>Call <code>DescribeLimits</code> for a particular region to obtain your current account limits on provisioned capacity there.</p> </li> <li> <p>Create a variable to hold the aggregate read capacity units provisioned for all your tables in that region, and one to hold the aggregate write capacity units. Zero them both.</p> </li> <li> <p>Call <code>ListTables</code> to obtain a list of all your DynamoDB tables.</p> </li> <li> <p>For each table name listed by <code>ListTables</code>, do the following:</p> <ul> <li> <p>Call <code>DescribeTable</code> with the table name.</p> </li> <li> <p>Use the data returned by <code>DescribeTable</code> to add the read capacity units and write capacity units provisioned for the table itself to your variables.</p> </li> <li> <p>If the table has one or more global secondary indexes (GSIs), loop over these GSIs and add their provisioned capacity values to your variables as well.</p> </li> </ul> </li> <li> <p>Report the account limits for that region returned by <code>DescribeLimits</code>, along with the total current provisioned capacity levels you have calculated.</p> </li> </ol> <p>This will let you see whether you are getting close to your account-level limits.</p> <p>The per-table limits apply only when you are creating a new table. They restrict the sum of the provisioned capacity of the new table itself and all its global secondary indexes.</p> <p>For existing tables and their GSIs, DynamoDB will not let you increase provisioned capacity extremely rapidly, but the only upper limit that applies is that the aggregate provisioned capacity over all your tables and GSIs cannot exceed either of the per-account limits.</p> <note> <p> <code>DescribeLimits</code> should only be called periodically. You can expect throttling errors if you call it more than once in a minute.</p> </note> <p>The <code>DescribeLimits</code> Request element has no content.</p>", "DescribeTable": "<p>Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.</p> <note> <p>If you issue a <code>DescribeTable</code> request immediately after a <code>CreateTable</code> request, DynamoDB might return a <code>ResourceNotFoundException</code>. This is because <code>DescribeTable</code> uses an eventually consistent query, and the metadata for your table might not be available at that moment. Wait for a few seconds, and then try the <code>DescribeTable</code> request again.</p> </note>", + "DescribeTimeToLive": "<p>Gives a description of the Time to Live (TTL) status on the specified table. </p>", "GetItem": "<p>The <code>GetItem</code> operation returns a set of attributes for the item with the given primary key. If there is no matching item, <code>GetItem</code> does not return any data and there will be no <code>Item</code> element in the response.</p> <p> <code>GetItem</code> provides an eventually consistent read by default. If your application requires a strongly consistent read, set <code>ConsistentRead</code> to <code>true</code>. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.</p>", "ListTables": "<p>Returns an array of table names associated with the current account and endpoint. The output from <code>ListTables</code> is paginated, with each page returning a maximum of 100 table names.</p>", "ListTagsOfResource": "<p>List all tags on an Amazon DynamoDB resource. You can call ListTagsOfResource up to 10 times per second, per account.</p> <p>For an overview on tagging DynamoDB resources, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html\">Tagging for DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", @@ -18,7 +19,8 @@ "TagResource": "<p>Associate a set of tags with an Amazon DynamoDB resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking. You can call TagResource up to 5 times per second, per account. </p> <p>For an overview on tagging DynamoDB resources, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html\">Tagging for DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", "UntagResource": "<p>Removes the association of tags from an Amazon DynamoDB resource. You can call UntagResource up to 5 times per second, per account. </p> <p>For an overview on tagging DynamoDB resources, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html\">Tagging for DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", "UpdateItem": "<p>Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).</p> <p>You can also return the item's attribute values in the same <code>UpdateItem</code> operation using the <code>ReturnValues</code> parameter.</p>", - "UpdateTable": "<p>Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.</p> <p>You can only perform one of the following operations at once:</p> <ul> <li> <p>Modify the provisioned throughput settings of the table.</p> </li> <li> <p>Enable or disable Streams on the table.</p> </li> <li> <p>Remove a global secondary index from the table.</p> </li> <li> <p>Create a new global secondary index on the table. Once the index begins backfilling, you can use <code>UpdateTable</code> to perform other operations.</p> </li> </ul> <p> <code>UpdateTable</code> is an asynchronous operation; while it is executing, the table status changes from <code>ACTIVE</code> to <code>UPDATING</code>. While it is <code>UPDATING</code>, you cannot issue another <code>UpdateTable</code> request. When the table returns to the <code>ACTIVE</code> state, the <code>UpdateTable</code> operation is complete.</p>" + "UpdateTable": "<p>Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.</p> <p>You can only perform one of the following operations at once:</p> <ul> <li> <p>Modify the provisioned throughput settings of the table.</p> </li> <li> <p>Enable or disable Streams on the table.</p> </li> <li> <p>Remove a global secondary index from the table.</p> </li> <li> <p>Create a new global secondary index on the table. Once the index begins backfilling, you can use <code>UpdateTable</code> to perform other operations.</p> </li> </ul> <p> <code>UpdateTable</code> is an asynchronous operation; while it is executing, the table status changes from <code>ACTIVE</code> to <code>UPDATING</code>. While it is <code>UPDATING</code>, you cannot issue another <code>UpdateTable</code> request. When the table returns to the <code>ACTIVE</code> state, the <code>UpdateTable</code> operation is complete.</p>", + "UpdateTimeToLive": "<p>Specify the lifetime of individual table items. The database automatically removes the item at the expiration of the item. The UpdateTimeToLive method will enable or disable TTL for the specified table. A successful <code>UpdateTimeToLive</code> call returns the current <code>TimeToLiveSpecification</code>; it may take up to one hour for the change to fully process. </p> <p>TTL compares the current time in epoch time format to the time stored in the TTL attribute of an item. If the epoch time value stored in the attribute is less than the current time, the item is marked as expired and subsequently deleted.</p> <note> <p> The epoch time format is the number of seconds elapsed since 12:00:00 AM January 1st, 1970 UTC. </p> </note> <p>DynamoDB deletes expired items on a best-effort basis to ensure availability of throughput for other data operations. </p> <important> <p>DynamoDB typically deletes expired items within two days of expiration. The exact duration within which an item gets deleted after expiration is specific to the nature of the workload. Items that have expired and not been deleted will still show up in reads, queries, and scans.</p> </important> <p>As items are deleted, they are removed from any Local Secondary Index and Global Secondary Index immediately in the same eventually consistent way as a standard delete operation.</p> <p>For more information, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html\">Time To Live</a> in the Amazon DynamoDB Developer Guide. </p>" }, "shapes": { "AttributeAction": { @@ -206,11 +208,11 @@ "ConditionExpression": { "base": null, "refs": { - "DeleteItemInput$ConditionExpression": "<p>A condition that must be satisfied in order for a conditional <code>DeleteItem</code> to succeed.</p> <p>An expression can contain any of the following:</p> <ul> <li> <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code> </p> <p>These function names are case-sensitive.</p> </li> <li> <p>Comparison operators: <code> = | <> | < | > | <= | >= | BETWEEN | IN</code> </p> </li> <li> <p> Logical operators: <code>AND | OR | NOT</code> </p> </li> </ul> <p>For more information on condition expressions, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html\">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", - "PutItemInput$ConditionExpression": "<p>A condition that must be satisfied in order for a conditional <code>PutItem</code> operation to succeed.</p> <p>An expression can contain any of the following:</p> <ul> <li> <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code> </p> <p>These function names are case-sensitive.</p> </li> <li> <p>Comparison operators: <code> = | <> | < | > | <= | >= | BETWEEN | IN</code> </p> </li> <li> <p> Logical operators: <code>AND | OR | NOT</code> </p> </li> </ul> <p>For more information on condition expressions, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html\">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", + "DeleteItemInput$ConditionExpression": "<p>A condition that must be satisfied in order for a conditional <code>DeleteItem</code> to succeed.</p> <p>An expression can contain any of the following:</p> <ul> <li> <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code> </p> <p>These function names are case-sensitive.</p> </li> <li> <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code> </p> </li> <li> <p> Logical operators: <code>AND | OR | NOT</code> </p> </li> </ul> <p>For more information on condition expressions, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html\">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", + "PutItemInput$ConditionExpression": "<p>A condition that must be satisfied in order for a conditional <code>PutItem</code> operation to succeed.</p> <p>An expression can contain any of the following:</p> <ul> <li> <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code> </p> <p>These function names are case-sensitive.</p> </li> <li> <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code> </p> </li> <li> <p> Logical operators: <code>AND | OR | NOT</code> </p> </li> </ul> <p>For more information on condition expressions, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html\">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", "QueryInput$FilterExpression": "<p>A string that contains conditions that DynamoDB applies after the <code>Query</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p> <p>A <code>FilterExpression</code> does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key.</p> <note> <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p> </note> <p>For more information, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults\">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", "ScanInput$FilterExpression": "<p>A string that contains conditions that DynamoDB applies after the <code>Scan</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p> <note> <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p> </note> <p>For more information, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults\">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>", - "UpdateItemInput$ConditionExpression": "<p>A condition that must be satisfied in order for a conditional update to succeed.</p> <p>An expression can contain any of the following:</p> <ul> <li> <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code> </p> <p>These function names are case-sensitive.</p> </li> <li> <p>Comparison operators: <code> = | <> | < | > | <= | >= | BETWEEN | IN</code> </p> </li> <li> <p> Logical operators: <code>AND | OR | NOT</code> </p> </li> </ul> <p>For more information on condition expressions, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html\">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>" + "UpdateItemInput$ConditionExpression": "<p>A condition that must be satisfied in order for a conditional update to succeed.</p> <p>An expression can contain any of the following:</p> <ul> <li> <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code> </p> <p>These function names are case-sensitive.</p> </li> <li> <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code> </p> </li> <li> <p> Logical operators: <code>AND | OR | NOT</code> </p> </li> </ul> <p>For more information on condition expressions, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html\">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>" } }, "ConditionalCheckFailedException": { @@ -339,6 +341,16 @@ "refs": { } }, + "DescribeTimeToLiveInput": { + "base": null, + "refs": { + } + }, + "DescribeTimeToLiveOutput": { + "base": null, + "refs": { + } + }, "ErrorMessage": { "base": null, "refs": { @@ -870,7 +882,7 @@ "refs": { "DeleteItemInput$ReturnValues": "<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appeared before they were deleted. For <code>DeleteItem</code>, the valid values are:</p> <ul> <li> <p> <code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p> </li> <li> <p> <code>ALL_OLD</code> - The content of the old item is returned.</p> </li> </ul> <note> <p>The <code>ReturnValues</code> parameter is used by several DynamoDB operations; however, <code>DeleteItem</code> does not recognize any values other than <code>NONE</code> or <code>ALL_OLD</code>.</p> </note>", "PutItemInput$ReturnValues": "<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appeared before they were updated with the <code>PutItem</code> request. For <code>PutItem</code>, the valid values are:</p> <ul> <li> <p> <code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p> </li> <li> <p> <code>ALL_OLD</code> - If <code>PutItem</code> overwrote an attribute name-value pair, then the content of the old item is returned.</p> </li> </ul> <note> <p>The <code>ReturnValues</code> parameter is used by several DynamoDB operations; however, <code>PutItem</code> does not recognize any values other than <code>NONE</code> or <code>ALL_OLD</code>.</p> </note>", - "UpdateItemInput$ReturnValues": "<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appeared either before or after they were updated. For <code>UpdateItem</code>, the valid values are:</p> <ul> <li> <p> <code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p> </li> <li> <p> <code>ALL_OLD</code> - If <code>UpdateItem</code> overwrote an attribute name-value pair, then the content of the old item is returned.</p> </li> <li> <p> <code>UPDATED_OLD</code> - The old versions of only the updated attributes are returned.</p> </li> <li> <p> <code>ALL_NEW</code> - All of the attributes of the new version of the item are returned.</p> </li> <li> <p> <code>UPDATED_NEW</code> - The new versions of only the updated attributes are returned.</p> </li> </ul> <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No Read Capacity Units are consumed.</p> <p>Values returned are strongly consistent</p>" + "UpdateItemInput$ReturnValues": "<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appeared either before or after they were updated. For <code>UpdateItem</code>, the valid values are:</p> <ul> <li> <p> <code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p> </li> <li> <p> <code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p> </li> <li> <p> <code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p> </li> <li> <p> <code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p> </li> <li> <p> <code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p> </li> </ul> <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No Read Capacity Units are consumed.</p> <p>Values returned are strongly consistent</p>" } }, "ScalarAttributeType": { @@ -983,6 +995,7 @@ "DeleteItemInput$TableName": "<p>The name of the table from which to delete the item.</p>", "DeleteTableInput$TableName": "<p>The name of the table to delete.</p>", "DescribeTableInput$TableName": "<p>The name of the table to describe.</p>", + "DescribeTimeToLiveInput$TableName": "<p>The name of the table to be described.</p>", "GetItemInput$TableName": "<p>The name of the table containing the requested item.</p>", "ItemCollectionMetricsPerTable$key": null, "ListTablesInput$ExclusiveStartTableName": "<p>The first table name that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedTableName</code> in a previous operation, so that you can obtain the next page of results.</p>", @@ -993,7 +1006,8 @@ "TableDescription$TableName": "<p>The name of the table.</p>", "TableNameList$member": null, "UpdateItemInput$TableName": "<p>The name of the table containing the item to update.</p>", - "UpdateTableInput$TableName": "<p>The name of the table to be updated.</p>" + "UpdateTableInput$TableName": "<p>The name of the table to be updated.</p>", + "UpdateTimeToLiveInput$TableName": "<p>The name of the table to be configured.</p>" } }, "TableNameList": { @@ -1045,6 +1059,38 @@ "Tag$Value": "<p>The value of the tag. Tag values are case-sensitive and can be null.</p>" } }, + "TimeToLiveAttributeName": { + "base": null, + "refs": { + "TimeToLiveDescription$AttributeName": "<p> The name of the Time to Live attribute for items in the table.</p>", + "TimeToLiveSpecification$AttributeName": "<p>The name of the Time to Live attribute used to store the expiration time for items in the table.</p>" + } + }, + "TimeToLiveDescription": { + "base": "<p>The description of the Time to Live (TTL) status on the specified table. </p>", + "refs": { + "DescribeTimeToLiveOutput$TimeToLiveDescription": "<p/>" + } + }, + "TimeToLiveEnabled": { + "base": null, + "refs": { + "TimeToLiveSpecification$Enabled": "<p>Indicates whether Time To Live is to be enabled (true) or disabled (false) on the table.</p>" + } + }, + "TimeToLiveSpecification": { + "base": "<p>Represents the settings used to enable or disable Time to Live for the specified table.</p>", + "refs": { + "UpdateTimeToLiveInput$TimeToLiveSpecification": "<p>Represents the settings used to enable or disable Time to Live for the specified table.</p>", + "UpdateTimeToLiveOutput$TimeToLiveSpecification": "<p>Represents the output of an <code>UpdateTimeToLive</code> operation.</p>" + } + }, + "TimeToLiveStatus": { + "base": null, + "refs": { + "TimeToLiveDescription$TimeToLiveStatus": "<p> The Time to Live status for the table.</p>" + } + }, "UntagResourceInput": { "base": null, "refs": { @@ -1082,6 +1128,16 @@ "refs": { } }, + "UpdateTimeToLiveInput": { + "base": "<p>Represents the input of an <code>UpdateTimeToLive</code> operation.</p>", + "refs": { + } + }, + "UpdateTimeToLiveOutput": { + "base": null, + "refs": { + } + }, "WriteRequest": { "base": "<p>Represents an operation to perform - either <code>DeleteItem</code> or <code>PutItem</code>. You can only request one of these operations, not both, in a single <code>WriteRequest</code>. If you do need to perform both of these operations, you will need to provide two separate <code>WriteRequest</code> objects.</p>", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json index 1de1c6b9..9b1ee014 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json @@ -2802,6 +2802,13 @@ "modifying" ] }, + "BillingProductList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, "Blob":{"type":"blob"}, "BlobAttributeValue":{ "type":"structure", @@ -9404,6 +9411,12 @@ "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", + "i3.large", + "i3.xlarge", + "i3.2xlarge", + "i3.4xlarge", + "i3.8xlarge", + "i3.16xlarge", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", @@ -11385,6 +11398,10 @@ "shape":"String", "locationName":"ramdiskId" }, + "BillingProducts":{ + "shape":"BillingProductList", + "locationName":"BillingProduct" + }, "RootDeviceName":{ "shape":"String", "locationName":"rootDeviceName" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json index 5378d9bb..3c1011ef 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json @@ -143,7 +143,7 @@ "DescribeVolumeAttribute": "<p>Describes the specified attribute of the specified volume. You can specify only one attribute at a time.</p> <p>For more information about EBS volumes, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html\">Amazon EBS Volumes</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>", "DescribeVolumeStatus": "<p>Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.</p> <p>The <code>DescribeVolumeStatus</code> operation provides the following information about the specified volumes:</p> <p> <i>Status</i>: Reflects the current status of the volume. The possible values are <code>ok</code>, <code>impaired</code> , <code>warning</code>, or <code>insufficient-data</code>. If all checks pass, the overall status of the volume is <code>ok</code>. If the check fails, the overall status is <code>impaired</code>. If the status is <code>insufficient-data</code>, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information on volume status, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html\">Monitoring the Status of Your Volumes</a>.</p> <p> <i>Events</i>: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an <code>impaired</code> status, then the volume event might be <code>potential-data-inconsistency</code>. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.</p> <p> <i>Actions</i>: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is <code>impaired</code> and the volume event shows <code>potential-data-inconsistency</code>, then the action shows <code>enable-volume-io</code>. This means that you may want to enable the I/O operations for the volume by calling the <a>EnableVolumeIO</a> action and then check the volume for data consistency.</p> <note> <p>Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the <code>error</code> state (for example, when a volume is incapable of accepting I/O.)</p> </note>", "DescribeVolumes": "<p>Describes the specified EBS volumes.</p> <p>If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The <code>MaxResults</code> parameter sets the maximum number of results returned in a single page. If the list of results exceeds your <code>MaxResults</code> value, then that number of results is returned along with a <code>NextToken</code> value that can be passed to a subsequent <code>DescribeVolumes</code> request to retrieve the remaining results.</p> <p>For more information about EBS volumes, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html\">Amazon EBS Volumes</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>", - "DescribeVolumesModifications": "<p>Reports the current modification status of EBS volumes.</p> <p>Current-generation EBS volumes support modification of attributes including type, size, and (for <code>io1</code> volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be <code>modifying</code>, <code>optimizing</code>, <code>completed</code>, or <code>failed</code>. If a volume has never been modified, then certain elements of the returned <code>VolumeModification</code> objects are null. </p> <p> You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the <a href=\"http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html\">Amazon CloudWatch Events User Guide</a>. For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods\">Monitoring Volume Modifications\"</a>. </p>", + "DescribeVolumesModifications": "<p>Reports the current modification status of EBS volumes.</p> <p>Current-generation EBS volumes support modification of attributes including type, size, and (for <code>io1</code> volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be <code>modifying</code>, <code>optimizing</code>, <code>completed</code>, or <code>failed</code>. If a volume has never been modified, then certain elements of the returned <code>VolumeModification</code> objects are null. </p> <p> You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/\">Amazon CloudWatch Events User Guide</a>. For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods\">Monitoring Volume Modifications\"</a>. </p>", "DescribeVpcAttribute": "<p>Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.</p>", "DescribeVpcClassicLink": "<p>Describes the ClassicLink status of one or more VPCs.</p>", "DescribeVpcClassicLinkDnsSupport": "<p>Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information about ClassicLink, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html\">ClassicLink</a> in the Amazon Elastic Compute Cloud User Guide.</p>", @@ -191,7 +191,7 @@ "ModifySnapshotAttribute": "<p>Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single API call. If you need to both add and remove account IDs for a snapshot, you must use multiple API calls.</p> <note> <p>Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.</p> </note> <p>For more information on modifying snapshot permissions, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html\">Sharing Snapshots</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>", "ModifySpotFleetRequest": "<p>Modifies the specified Spot fleet request.</p> <p>While the Spot fleet request is being modified, it is in the <code>modifying</code> state.</p> <p>To scale up your Spot fleet, increase its target capacity. The Spot fleet launches the additional Spot instances according to the allocation strategy for the Spot fleet request. If the allocation strategy is <code>lowestPrice</code>, the Spot fleet launches instances using the Spot pool with the lowest price. If the allocation strategy is <code>diversified</code>, the Spot fleet distributes the instances across the Spot pools.</p> <p>To scale down your Spot fleet, decrease its target capacity. First, the Spot fleet cancels any open bids that exceed the new target capacity. You can request that the Spot fleet terminate Spot instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is <code>lowestPrice</code>, the Spot fleet terminates the instances with the highest price per unit. If the allocation strategy is <code>diversified</code>, the Spot fleet terminates instances across the Spot pools. Alternatively, you can request that the Spot fleet keep the fleet at its current size, but not replace any Spot instances that are interrupted or that you terminate manually.</p>", "ModifySubnetAttribute": "<p>Modifies a subnet attribute. You can only modify one attribute at a time.</p>", - "ModifyVolume": "<p>You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Linux</a>. For more information about modifying an EBS volume running Windows, see <a href=\"http://docs.aws.amazon.com/docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html\">Expanding the Storage Space of an EBS Volume on Windows</a>. </p> <p> When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux\">Extending a Linux File System</a>. For information about extending a Windows file system, see <a href=\"http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows\">Extending a Windows File System</a>. </p> <p> You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the <a href=\"http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html\">Amazon CloudWatch Events User Guide</a>. You can also track the status of a modification using the <a href=\"http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVolumesModifications.html\"> <code>DescribeVolumesModifications</code> API</a>. For information about tracking status changes using either method, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods\">Monitoring Volume Modifications\"</a>. </p> <note> <p>With previous-generation volumes and instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information about modifying an EBS volume running Linux, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Linux</a>. For more information about modifying an EBS volume running Windows, see <a href=\"http://docs.aws.amazon.com/docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Windows</a>.</p> </note> <note> <p>If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.</p> </note>", + "ModifyVolume": "<p>You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Linux</a>. For more information about modifying an EBS volume running Windows, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Windows</a>. </p> <p> When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux\">Extending a Linux File System</a>. For information about extending a Windows file system, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows\">Extending a Windows File System</a>. </p> <p> You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/\">Amazon CloudWatch Events User Guide</a>. You can also track the status of a modification using the <a>DescribeVolumesModifications</a> API. For information about tracking status changes using either method, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods\">Monitoring Volume Modifications</a>. </p> <note> <p>With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information about modifying an EBS volume running Linux, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Linux</a>. For more information about modifying an EBS volume running Windows, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html\">Modifying the Size, IOPS, or Type of an EBS Volume on Windows</a>.</p> </note> <note> <p>If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.</p> </note>", "ModifyVolumeAttribute": "<p>Modifies a volume attribute.</p> <p>By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.</p> <p>You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.</p>", "ModifyVpcAttribute": "<p>Modifies the specified attribute of the specified VPC.</p>", "ModifyVpcEndpoint": "<p>Modifies attributes of a specified VPC endpoint. You can modify the policy associated with the endpoint, and you can add and remove route tables associated with the endpoint.</p>", @@ -202,7 +202,7 @@ "PurchaseReservedInstancesOffering": "<p>Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.</p> <p>Use <a>DescribeReservedInstancesOfferings</a> to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with <a>DescribeReservedInstances</a>.</p> <p>For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html\">Reserved Instances</a> and <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html\">Reserved Instance Marketplace</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>", "PurchaseScheduledInstances": "<p>Purchases one or more Scheduled Instances with the specified schedule.</p> <p>Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call <a>DescribeScheduledInstanceAvailability</a> to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call <a>RunScheduledInstances</a> during each scheduled time period.</p> <p>After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.</p>", "RebootInstances": "<p>Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.</p> <p>If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.</p> <p>For more information about troubleshooting, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html\">Getting Console Output and Rebooting Instances</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>", - "RegisterImage": "<p>Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html\">Creating Your Own AMIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <note> <p>For Amazon EBS-backed instances, <a>CreateImage</a> creates and registers the AMI in a single request, so you don't have to register the AMI yourself.</p> </note> <p>You can also use <code>RegisterImage</code> to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html\">Launching an Instance from a Snapshot</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <important> <p>Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 <code>billingProduct</code> code associated with an AMI to verify subscription status for package updates. Creating an AMI from an EBS snapshot does not maintain this billing code, and subsequent instances launched from such an AMI will not be able to connect to package update infrastructure.</p> <p>Similarly, although you can create a Windows AMI from a snapshot, you can't successfully launch an instance from the AMI.</p> <p>To create Windows AMIs or to create AMIs for Linux operating systems that must retain AMI billing codes to work properly, see <a>CreateImage</a>.</p> </important> <p>If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.</p> <note> <p>You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.</p> </note>", + "RegisterImage": "<p>Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html\">Creating Your Own AMIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <note> <p>For Amazon EBS-backed instances, <a>CreateImage</a> creates and registers the AMI in a single request, so you don't have to register the AMI yourself.</p> </note> <p>You can also use <code>RegisterImage</code> to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html\">Launching an Instance from a Snapshot</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <p>You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.</p> <p>Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. Creating an AMI from an EBS snapshot does not maintain this billing code, and subsequent instances launched from such an AMI will not be able to connect to package update infrastructure. To create an AMI that must retain billing codes, see <a>CreateImage</a>.</p> <p>If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.</p>", "RejectVpcPeeringConnection": "<p>Rejects a VPC peering connection request. The VPC peering connection must be in the <code>pending-acceptance</code> state. Use the <a>DescribeVpcPeeringConnections</a> request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use <a>DeleteVpcPeeringConnection</a>.</p>", "ReleaseAddress": "<p>Releases the specified Elastic IP address.</p> <p>After releasing an Elastic IP address, it is released to the IP address pool and might be unavailable to you. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an <code>AuthFailure</code> error if the address is already allocated to another AWS account.</p> <p>[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use <a>DisassociateAddress</a>.</p> <p>[Nondefault VPC] You must use <a>DisassociateAddress</a> to disassociate the Elastic IP address before you try to release it. Otherwise, Amazon EC2 returns an error (<code>InvalidIPAddress.InUse</code>).</p>", "ReleaseHosts": "<p>When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into <code>released</code> state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, e.g., ModifyHosts. You must stop or terminate all instances on a host before it can be released.</p> <p>When Dedicated Hosts are released, it make take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated hosts. Try waiting a few minutes, and then try again.</p> <p>Released hosts will still appear in a <a>DescribeHosts</a> response.</p>", @@ -612,6 +612,12 @@ "SpotFleetRequestConfig$SpotFleetRequestState": "<p>The state of the Spot fleet request.</p>" } }, + "BillingProductList": { + "base": null, + "refs": { + "RegisterImageRequest$BillingProducts": "<p>The billing product codes.</p>" + } + }, "Blob": { "base": null, "refs": { @@ -3593,7 +3599,7 @@ "IpPermission$ToPort": "<p>The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of <code>-1</code> indicates all ICMP/ICMPv6 codes for the specified ICMP type.</p>", "ModifySpotFleetRequestRequest$TargetCapacity": "<p>The size of the fleet.</p>", "ModifyVolumeRequest$Size": "<p>Target size in GiB of the volume to be modified. Target volume size must be greater than or equal to than the existing size of the volume. For information about available EBS volume sizes, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html\">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html</a>.</p> <p>Default: If no size is specified, the existing size is retained. </p>", - "ModifyVolumeRequest$Iops": "<p>Target IOPS rate of the volume to be modified.</p> <p>Only valid for Provisioned IOPS SSD (<code>io1</code>) volumes. For more information about <code>io1</code> IOPS configuration, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops\">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops</a>.</p>", + "ModifyVolumeRequest$Iops": "<p>Target IOPS rate of the volume to be modified.</p> <p>Only valid for Provisioned IOPS SSD (<code>io1</code>) volumes. For more information about <code>io1</code> IOPS configuration, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops\">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops</a>.</p> <p>Default: If no IOPS value is specified, the existing value is retained. </p>", "NetworkAclEntry$RuleNumber": "<p>The rule number for the entry. ACL entries are processed in ascending order by rule number.</p>", "NetworkInterfaceAttachment$DeviceIndex": "<p>The device index of the network interface attachment on the instance.</p>", "OccurrenceDayRequestSet$member": null, @@ -4733,8 +4739,8 @@ "ReservationValue": { "base": "<p>The cost associated with the Reserved Instance.</p>", "refs": { - "GetReservedInstancesExchangeQuoteResult$ReservedInstanceValueRollup": null, - "GetReservedInstancesExchangeQuoteResult$TargetConfigurationValueRollup": null, + "GetReservedInstancesExchangeQuoteResult$ReservedInstanceValueRollup": "<p>The cost associated with the Reserved Instance.</p>", + "GetReservedInstancesExchangeQuoteResult$TargetConfigurationValueRollup": "<p>The cost associated with the Reserved Instance.</p>", "ReservedInstanceReservationValue$ReservationValue": "<p>The total value of the Convertible Reserved Instance that you are exchanging.</p>", "TargetReservationValue$ReservationValue": "<p>The total value of the Convertible Reserved Instances that make up the exchange. This is the sum of the list value, remaining upfront price, and additional upfront cost of the exchange.</p>" } @@ -5542,6 +5548,7 @@ "AvailabilityZone$ZoneName": "<p>The name of the Availability Zone.</p>", "AvailabilityZone$RegionName": "<p>The name of the region.</p>", "AvailabilityZoneMessage$Message": "<p>The message about the Availability Zone.</p>", + "BillingProductList$member": null, "BlockDeviceMapping$VirtualName": "<p>The virtual device name (<code>ephemeral</code>N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for <code>ephemeral0</code> and <code>ephemeral1</code>.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.</p> <p>Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.</p>", "BlockDeviceMapping$DeviceName": "<p>The device name exposed to the instance (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>", "BlockDeviceMapping$NoDevice": "<p>Suppresses the specified device included in the block device mapping of the AMI.</p>", @@ -6842,7 +6849,7 @@ "VolumeModificationState": { "base": null, "refs": { - "VolumeModification$ModificationState": "<p>Current state of modification. Possible values are <code>modifying</code> | <code>optimizing</code> | <code>complete</code> | <code>failed</code>. Modification state is null for unmodified volumes. </p>" + "VolumeModification$ModificationState": "<p>Current state of modification. Modification state is null for unmodified volumes. </p>" } }, "VolumeState": { @@ -6922,7 +6929,7 @@ "refs": { "CreateVolumeRequest$VolumeType": "<p>The volume type. This can be <code>gp2</code> for General Purpose SSD, <code>io1</code> for Provisioned IOPS SSD, <code>st1</code> for Throughput Optimized HDD, <code>sc1</code> for Cold HDD, or <code>standard</code> for Magnetic volumes.</p> <p>Default: <code>standard</code> </p>", "EbsBlockDevice$VolumeType": "<p>The volume type: <code>gp2</code>, <code>io1</code>, <code>st1</code>, <code>sc1</code>, or <code>standard</code>.</p> <p>Default: <code>standard</code> </p>", - "ModifyVolumeRequest$VolumeType": "<p>Target EBS volume type of the volume to be modified</p> <p>Valid values are <code>io1</code> | <code>gp2</code> | <code>sc1</code> | <code>st1</code> </p> <p> The API does not support modifications for volume type <code>standard</code>. You also cannot change the type of a volume to <code>standard</code>. </p>", + "ModifyVolumeRequest$VolumeType": "<p>Target EBS volume type of the volume to be modified</p> <p> The API does not support modifications for volume type <code>standard</code>. You also cannot change the type of a volume to <code>standard</code>. </p> <p>Default: If no type is specified, the existing type is retained. </p>", "Volume$VolumeType": "<p>The volume type. This can be <code>gp2</code> for General Purpose SSD, <code>io1</code> for Provisioned IOPS SSD, <code>st1</code> for Throughput Optimized HDD, <code>sc1</code> for Cold HDD, or <code>standard</code> for Magnetic volumes.</p>", "VolumeModification$TargetVolumeType": "<p>Target EBS volume type of the volume being modified.</p>", "VolumeModification$OriginalVolumeType": "<p>Original EBS volume type of the volume being modified.</p>" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json index 29b9f36c..8b59a010 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json @@ -133,6 +133,23 @@ {"shape":"InsufficientPrivilegesException"} ] }, + "CreatePlatformVersion":{ + "name":"CreatePlatformVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePlatformVersionRequest"}, + "output":{ + "shape":"CreatePlatformVersionResult", + "resultWrapper":"CreatePlatformVersionResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"}, + {"shape":"TooManyPlatformsException"} + ] + }, "CreateStorageLocation":{ "name":"CreateStorageLocation", "http":{ @@ -193,6 +210,24 @@ }, "input":{"shape":"DeleteEnvironmentConfigurationMessage"} }, + "DeletePlatformVersion":{ + "name":"DeletePlatformVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePlatformVersionRequest"}, + "output":{ + "shape":"DeletePlatformVersionResult", + "resultWrapper":"DeletePlatformVersionResult" + }, + "errors":[ + {"shape":"OperationInProgressException"}, + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"}, + {"shape":"PlatformVersionStillReferencedException"} + ] + }, "DescribeApplicationVersions":{ "name":"DescribeApplicationVersions", "http":{ @@ -348,6 +383,22 @@ {"shape":"ElasticBeanstalkServiceException"} ] }, + "DescribePlatformVersion":{ + "name":"DescribePlatformVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePlatformVersionRequest"}, + "output":{ + "shape":"DescribePlatformVersionResult", + "resultWrapper":"DescribePlatformVersionResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"} + ] + }, "ListAvailableSolutionStacks":{ "name":"ListAvailableSolutionStacks", "http":{ @@ -359,6 +410,22 @@ "resultWrapper":"ListAvailableSolutionStacksResult" } }, + "ListPlatformVersions":{ + "name":"ListPlatformVersions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPlatformVersionsRequest"}, + "output":{ + "shape":"ListPlatformVersionsResult", + "resultWrapper":"ListPlatformVersionsResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"} + ] + }, "RebuildEnvironment":{ "name":"RebuildEnvironment", "http":{ @@ -510,6 +577,7 @@ } }, "shapes":{ + "ARN":{"type":"string"}, "AbortEnvironmentUpdateMessage":{ "type":"structure", "members":{ @@ -705,6 +773,12 @@ "TimeoutInMinutes":{"shape":"BoxedInt"} } }, + "Builder":{ + "type":"structure", + "members":{ + "ARN":{"shape":"ARN"} + } + }, "CPUUtilization":{ "type":"structure", "members":{ @@ -829,6 +903,7 @@ "type":"structure", "members":{ "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "Options":{"shape":"ConfigurationOptionDescriptionsList"} } }, @@ -836,6 +911,7 @@ "type":"structure", "members":{ "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "ApplicationName":{"shape":"ApplicationName"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "Description":{"shape":"Description"}, @@ -907,6 +983,7 @@ "ApplicationName":{"shape":"ApplicationName"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "SourceConfiguration":{"shape":"SourceConfiguration"}, "EnvironmentId":{"shape":"EnvironmentId"}, "Description":{"shape":"Description"}, @@ -927,10 +1004,33 @@ "VersionLabel":{"shape":"VersionLabel"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "OptionSettings":{"shape":"ConfigurationOptionSettingsList"}, "OptionsToRemove":{"shape":"OptionsSpecifierList"} } }, + "CreatePlatformVersionRequest":{ + "type":"structure", + "required":[ + "PlatformName", + "PlatformVersion", + "PlatformDefinitionBundle" + ], + "members":{ + "PlatformName":{"shape":"PlatformName"}, + "PlatformVersion":{"shape":"PlatformVersion"}, + "PlatformDefinitionBundle":{"shape":"S3Location"}, + "EnvironmentName":{"shape":"EnvironmentName"}, + "OptionSettings":{"shape":"ConfigurationOptionSettingsList"} + } + }, + "CreatePlatformVersionResult":{ + "type":"structure", + "members":{ + "PlatformSummary":{"shape":"PlatformSummary"}, + "Builder":{"shape":"Builder"} + } + }, "CreateStorageLocationResultMessage":{ "type":"structure", "members":{ @@ -938,6 +1038,17 @@ } }, "CreationDate":{"type":"timestamp"}, + "CustomAmi":{ + "type":"structure", + "members":{ + "VirtualizationType":{"shape":"VirtualizationType"}, + "ImageId":{"shape":"ImageId"} + } + }, + "CustomAmiList":{ + "type":"list", + "member":{"shape":"CustomAmi"} + }, "DNSCname":{ "type":"string", "max":255, @@ -990,6 +1101,18 @@ "EnvironmentName":{"shape":"EnvironmentName"} } }, + "DeletePlatformVersionRequest":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"} + } + }, + "DeletePlatformVersionResult":{ + "type":"structure", + "members":{ + "PlatformSummary":{"shape":"PlatformSummary"} + } + }, "DeleteSourceBundle":{"type":"boolean"}, "Deployment":{ "type":"structure", @@ -1023,6 +1146,7 @@ "TemplateName":{"shape":"ConfigurationTemplateName"}, "EnvironmentName":{"shape":"EnvironmentName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "Options":{"shape":"OptionsSpecifierList"} } }, @@ -1112,6 +1236,7 @@ "TemplateName":{"shape":"ConfigurationTemplateName"}, "EnvironmentId":{"shape":"EnvironmentId"}, "EnvironmentName":{"shape":"EnvironmentName"}, + "PlatformArn":{"shape":"PlatformArn"}, "RequestId":{"shape":"RequestId"}, "Severity":{"shape":"EventSeverity"}, "StartTime":{"shape":"TimeFilterStart"}, @@ -1137,6 +1262,18 @@ "NextToken":{"shape":"NextToken"} } }, + "DescribePlatformVersionRequest":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"} + } + }, + "DescribePlatformVersionResult":{ + "type":"structure", + "members":{ + "PlatformDescription":{"shape":"PlatformDescription"} + } + }, "Description":{ "type":"string", "max":200 @@ -1158,6 +1295,7 @@ "ApplicationName":{"shape":"ApplicationName"}, "VersionLabel":{"shape":"VersionLabel"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "Description":{"shape":"Description"}, "EndpointURL":{"shape":"EndpointURL"}, @@ -1319,6 +1457,7 @@ "VersionLabel":{"shape":"VersionLabel"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "EnvironmentName":{"shape":"EnvironmentName"}, + "PlatformArn":{"shape":"PlatformArn"}, "RequestId":{"shape":"RequestId"}, "Severity":{"shape":"EventSeverity"} } @@ -1370,6 +1509,7 @@ "max":19, "min":1 }, + "ImageId":{"type":"string"}, "IncludeDeleted":{"type":"boolean"}, "IncludeDeletedBackTo":{"type":"timestamp"}, "Instance":{ @@ -1478,6 +1618,21 @@ "SolutionStackDetails":{"shape":"AvailableSolutionStackDetailsList"} } }, + "ListPlatformVersionsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"PlatformFilters"}, + "MaxRecords":{"shape":"PlatformMaxRecords"}, + "NextToken":{"shape":"Token"} + } + }, + "ListPlatformVersionsResult":{ + "type":"structure", + "members":{ + "PlatformSummaryList":{"shape":"PlatformSummaryList"}, + "NextToken":{"shape":"Token"} + } + }, "Listener":{ "type":"structure", "members":{ @@ -1512,6 +1667,7 @@ "type":"list", "member":{"shape":"Listener"} }, + "Maintainer":{"type":"string"}, "ManagedAction":{ "type":"structure", "members":{ @@ -1594,6 +1750,8 @@ "NullableDouble":{"type":"double"}, "NullableInteger":{"type":"integer"}, "NullableLong":{"type":"long"}, + "OperatingSystemName":{"type":"string"}, + "OperatingSystemVersion":{"type":"string"}, "OperationInProgressException":{ "type":"structure", "members":{ @@ -1628,6 +1786,117 @@ "type":"list", "member":{"shape":"OptionSpecification"} }, + "PlatformArn":{"type":"string"}, + "PlatformCategory":{"type":"string"}, + "PlatformDescription":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"}, + "PlatformOwner":{"shape":"PlatformOwner"}, + "PlatformName":{"shape":"PlatformName"}, + "PlatformVersion":{"shape":"PlatformVersion"}, + "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformStatus":{"shape":"PlatformStatus"}, + "DateCreated":{"shape":"CreationDate"}, + "DateUpdated":{"shape":"UpdateDate"}, + "PlatformCategory":{"shape":"PlatformCategory"}, + "Description":{"shape":"Description"}, + "Maintainer":{"shape":"Maintainer"}, + "OperatingSystemName":{"shape":"OperatingSystemName"}, + "OperatingSystemVersion":{"shape":"OperatingSystemVersion"}, + "ProgrammingLanguages":{"shape":"PlatformProgrammingLanguages"}, + "Frameworks":{"shape":"PlatformFrameworks"}, + "CustomAmiList":{"shape":"CustomAmiList"}, + "SupportedTierList":{"shape":"SupportedTierList"}, + "SupportedAddonList":{"shape":"SupportedAddonList"} + } + }, + "PlatformFilter":{ + "type":"structure", + "members":{ + "Type":{"shape":"PlatformFilterType"}, + "Operator":{"shape":"PlatformFilterOperator"}, + "Values":{"shape":"PlatformFilterValueList"} + } + }, + "PlatformFilterOperator":{"type":"string"}, + "PlatformFilterType":{"type":"string"}, + "PlatformFilterValue":{"type":"string"}, + "PlatformFilterValueList":{ + "type":"list", + "member":{"shape":"PlatformFilterValue"} + }, + "PlatformFilters":{ + "type":"list", + "member":{"shape":"PlatformFilter"} + }, + "PlatformFramework":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Version":{"shape":"String"} + } + }, + "PlatformFrameworks":{ + "type":"list", + "member":{"shape":"PlatformFramework"} + }, + "PlatformMaxRecords":{ + "type":"integer", + "min":1 + }, + "PlatformName":{"type":"string"}, + "PlatformOwner":{"type":"string"}, + "PlatformProgrammingLanguage":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Version":{"shape":"String"} + } + }, + "PlatformProgrammingLanguages":{ + "type":"list", + "member":{"shape":"PlatformProgrammingLanguage"} + }, + "PlatformStatus":{ + "type":"string", + "enum":[ + "Creating", + "Failed", + "Ready", + "Deleting", + "Deleted" + ] + }, + "PlatformSummary":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"}, + "PlatformOwner":{"shape":"PlatformOwner"}, + "PlatformStatus":{"shape":"PlatformStatus"}, + "PlatformCategory":{"shape":"PlatformCategory"}, + "OperatingSystemName":{"shape":"OperatingSystemName"}, + "OperatingSystemVersion":{"shape":"OperatingSystemVersion"}, + "SupportedTierList":{"shape":"SupportedTierList"}, + "SupportedAddonList":{"shape":"SupportedAddonList"} + } + }, + "PlatformSummaryList":{ + "type":"list", + "member":{"shape":"PlatformSummary"} + }, + "PlatformVersion":{"type":"string"}, + "PlatformVersionStillReferencedException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"PlatformVersionStillReferencedException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Queue":{ "type":"structure", "members":{ @@ -1752,10 +2021,7 @@ "type":"list", "member":{"shape":"FileTypeExtension"} }, - "SolutionStackName":{ - "type":"string", - "max":100 - }, + "SolutionStackName":{"type":"string"}, "SourceBuildInformation":{ "type":"structure", "required":[ @@ -1817,6 +2083,16 @@ } }, "String":{"type":"string"}, + "SupportedAddon":{"type":"string"}, + "SupportedAddonList":{ + "type":"list", + "member":{"shape":"SupportedAddon"} + }, + "SupportedTier":{"type":"string"}, + "SupportedTierList":{ + "type":"list", + "member":{"shape":"SupportedTier"} + }, "SwapEnvironmentCNAMEsMessage":{ "type":"structure", "members":{ @@ -1919,6 +2195,17 @@ }, "exception":true }, + "TooManyPlatformsException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"TooManyPlatformsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Trigger":{ "type":"structure", "members":{ @@ -1987,6 +2274,7 @@ "VersionLabel":{"shape":"VersionLabel"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "OptionSettings":{"shape":"ConfigurationOptionSettingsList"}, "OptionsToRemove":{"shape":"OptionsSpecifierList"} } @@ -2038,6 +2326,7 @@ "VersionLabelsList":{ "type":"list", "member":{"shape":"VersionLabel"} - } + }, + "VirtualizationType":{"type":"string"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json index dbf4e5aa..2cabdf3b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json @@ -10,11 +10,13 @@ "CreateApplicationVersion": "<p>Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:</p> <p>Specify a commit in an AWS CodeCommit repository with <code>SourceBuildInformation</code>.</p> <p>Specify a build in an AWS CodeBuild with <code>SourceBuildInformation</code> and <code>BuildConfiguration</code>.</p> <p>Specify a source bundle in S3 with <code>SourceBundle</code> </p> <p>Omit both <code>SourceBuildInformation</code> and <code>SourceBundle</code> to use the default sample application.</p> <note> <p>Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.</p> </note>", "CreateConfigurationTemplate": "<p>Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.</p> <p>Related Topics</p> <ul> <li> <p> <a>DescribeConfigurationOptions</a> </p> </li> <li> <p> <a>DescribeConfigurationSettings</a> </p> </li> <li> <p> <a>ListAvailableSolutionStacks</a> </p> </li> </ul>", "CreateEnvironment": "<p>Launches an environment for the specified application using the specified configuration.</p>", + "CreatePlatformVersion": "<p>Create a new version of your custom platform.</p>", "CreateStorageLocation": "<p>Creates the Amazon S3 storage location for the account.</p> <p>This location is used to store user log files.</p>", "DeleteApplication": "<p>Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.</p> <note> <p>You cannot delete an application that has a running environment.</p> </note>", "DeleteApplicationVersion": "<p>Deletes the specified version from the specified application.</p> <note> <p>You cannot delete an application version that is associated with a running environment.</p> </note>", "DeleteConfigurationTemplate": "<p>Deletes the specified configuration template.</p> <note> <p>When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.</p> </note>", "DeleteEnvironmentConfiguration": "<p>Deletes the draft configuration associated with the running environment.</p> <p>Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using <a>DescribeConfigurationSettings</a> while the update is in progress or if the update fails. The <code>DeploymentStatus</code> for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.</p>", + "DeletePlatformVersion": "<p>Deletes the specified version of a custom platform.</p>", "DescribeApplicationVersions": "<p>Retrieve a list of application versions.</p>", "DescribeApplications": "<p>Returns the descriptions of existing applications.</p>", "DescribeConfigurationOptions": "<p>Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed.</p>", @@ -26,7 +28,9 @@ "DescribeEnvironments": "<p>Returns descriptions for existing environments.</p>", "DescribeEvents": "<p>Returns list of event descriptions matching criteria up to the last 6 weeks.</p> <note> <p>This action returns the most recent 1,000 events from the specified <code>NextToken</code>.</p> </note>", "DescribeInstancesHealth": "<p>Retrives detailed information about the health of instances in your AWS Elastic Beanstalk. This operation requires <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced.html\">enhanced health reporting</a>.</p>", - "ListAvailableSolutionStacks": "<p>Returns a list of the available solution stack names.</p>", + "DescribePlatformVersion": "<p>Describes the version of the platform.</p>", + "ListAvailableSolutionStacks": "<p>Returns a list of the available solution stack names, with the public version first and then in reverse chronological order.</p>", + "ListPlatformVersions": "<p>Lists the available platforms.</p>", "RebuildEnvironment": "<p>Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.</p>", "RequestEnvironmentInfo": "<p>Initiates a request to compile the specified type of information of the deployed environment.</p> <p> Setting the <code>InfoType</code> to <code>tail</code> compiles the last lines from the application server log files of every Amazon EC2 instance in your environment. </p> <p> Setting the <code>InfoType</code> to <code>bundle</code> compresses the application server log files for every Amazon EC2 instance into a <code>.zip</code> file. Legacy and .NET containers do not support bundle logs. </p> <p> Use <a>RetrieveEnvironmentInfo</a> to obtain the set of logs. </p> <p>Related Topics</p> <ul> <li> <p> <a>RetrieveEnvironmentInfo</a> </p> </li> </ul>", "RestartAppServer": "<p>Causes the environment to restart the application container server running on each Amazon EC2 instance.</p>", @@ -41,6 +45,12 @@ "ValidateConfigurationSettings": "<p>Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid.</p> <p>This action returns a list of messages indicating any errors or warnings associated with the selection of option values.</p>" }, "shapes": { + "ARN": { + "base": null, + "refs": { + "Builder$ARN": "<p>The ARN of the builder.</p>" + } + }, "AbortEnvironmentUpdateMessage": { "base": "<p/>", "refs": { @@ -260,6 +270,12 @@ "CreateApplicationVersionMessage$BuildConfiguration": "<p>Settings for an AWS CodeBuild build.</p>" } }, + "Builder": { + "base": "<p>The builder used to build the custom platform.</p>", + "refs": { + "CreatePlatformVersionResult$Builder": "<p>The builder used to create the custom platform.</p>" + } + }, "CPUUtilization": { "base": "<p>CPU utilization metrics for an instance.</p>", "refs": { @@ -368,6 +384,7 @@ "ConfigurationSettingsDescription$OptionSettings": "<p>A list of the configuration options and their values in this configuration set.</p>", "CreateConfigurationTemplateMessage$OptionSettings": "<p>If specified, AWS Elastic Beanstalk sets the specified configuration option to the requested value. The new value overrides the value obtained from the solution stack or the source configuration template.</p>", "CreateEnvironmentMessage$OptionSettings": "<p>If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.</p>", + "CreatePlatformVersionRequest$OptionSettings": "<p>The configuration option settings to apply to the builder environment.</p>", "UpdateConfigurationTemplateMessage$OptionSettings": "<p>A list of configuration option settings to update with the new specified option value.</p>", "UpdateEnvironmentMessage$OptionSettings": "<p>If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.</p>", "ValidateConfigurationSettingsMessage$OptionSettings": "<p>A list of the options and desired values to evaluate.</p>" @@ -424,7 +441,7 @@ "ConfigurationSettingsDescription$TemplateName": "<p> If not <code>null</code>, the name of the configuration template for this configuration set. </p>", "ConfigurationTemplateNamesList$member": null, "CreateConfigurationTemplateMessage$TemplateName": "<p>The name of the configuration template.</p> <p>Constraint: This name must be unique per application.</p> <p>Default: If a configuration template already exists with this name, AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p>", - "CreateEnvironmentMessage$TemplateName": "<p> The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p> <p> Condition: You must specify either this parameter or a <code>SolutionStackName</code>, but not both. If you specify both, AWS Elastic Beanstalk returns an <code>InvalidParameterCombination</code> error. If you do not specify either, AWS Elastic Beanstalk returns a <code>MissingRequiredParameter</code> error. </p>", + "CreateEnvironmentMessage$TemplateName": "<p> The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p>", "DeleteConfigurationTemplateMessage$TemplateName": "<p>The name of the configuration template to delete.</p>", "DescribeConfigurationOptionsMessage$TemplateName": "<p>The name of the configuration template whose configuration options you want to describe.</p>", "DescribeConfigurationSettingsMessage$TemplateName": "<p>The name of the configuration template to describe.</p> <p> Conditional: You must specify either this parameter or an EnvironmentName, but not both. If you specify both, AWS Elastic Beanstalk returns an <code>InvalidParameterCombination</code> error. If you do not specify either, AWS Elastic Beanstalk returns a <code>MissingRequiredParameter</code> error. </p>", @@ -463,6 +480,16 @@ "refs": { } }, + "CreatePlatformVersionRequest": { + "base": "<p>Request to create a new platform version.</p>", + "refs": { + } + }, + "CreatePlatformVersionResult": { + "base": null, + "refs": { + } + }, "CreateStorageLocationResultMessage": { "base": "<p>Results of a <a>CreateStorageLocationResult</a> call.</p>", "refs": { @@ -474,7 +501,20 @@ "ApplicationDescription$DateCreated": "<p>The date when the application was created.</p>", "ApplicationVersionDescription$DateCreated": "<p>The creation date of the application version.</p>", "ConfigurationSettingsDescription$DateCreated": "<p>The date (in UTC time) when this configuration set was created.</p>", - "EnvironmentDescription$DateCreated": "<p>The creation date for this environment.</p>" + "EnvironmentDescription$DateCreated": "<p>The creation date for this environment.</p>", + "PlatformDescription$DateCreated": "<p>The date when the platform was created.</p>" + } + }, + "CustomAmi": { + "base": "<p>A custom AMI available to platforms.</p>", + "refs": { + "CustomAmiList$member": null + } + }, + "CustomAmiList": { + "base": null, + "refs": { + "PlatformDescription$CustomAmiList": "<p>The custom AMIs supported by the platform.</p>" } }, "DNSCname": { @@ -511,6 +551,16 @@ "refs": { } }, + "DeletePlatformVersionRequest": { + "base": null, + "refs": { + } + }, + "DeletePlatformVersionResult": { + "base": null, + "refs": { + } + }, "DeleteSourceBundle": { "base": null, "refs": { @@ -540,7 +590,7 @@ } }, "DescribeConfigurationOptionsMessage": { - "base": "<p>Result message containig a list of application version descriptions.</p>", + "base": "<p>Result message containing a list of application version descriptions.</p>", "refs": { } }, @@ -604,6 +654,16 @@ "refs": { } }, + "DescribePlatformVersionRequest": { + "base": null, + "refs": { + } + }, + "DescribePlatformVersionResult": { + "base": null, + "refs": { + } + }, "Description": { "base": null, "refs": { @@ -615,6 +675,7 @@ "CreateConfigurationTemplateMessage$Description": "<p>Describes this configuration.</p>", "CreateEnvironmentMessage$Description": "<p>Describes this environment.</p>", "EnvironmentDescription$Description": "<p>Describes this environment.</p>", + "PlatformDescription$Description": "<p>The description of the platform.</p>", "UpdateApplicationMessage$Description": "<p>A new description for the application.</p> <p>Default: If not specified, AWS Elastic Beanstalk does not update the description.</p>", "UpdateApplicationVersionMessage$Description": "<p>A new description for this version.</p>", "UpdateConfigurationTemplateMessage$Description": "<p>A new description for the configuration.</p>", @@ -746,6 +807,7 @@ "AbortEnvironmentUpdateMessage$EnvironmentName": "<p>This specifies the name of the environment with the in-progress update that you want to cancel.</p>", "ConfigurationSettingsDescription$EnvironmentName": "<p> If not <code>null</code>, the name of the environment for this configuration set. </p>", "CreateEnvironmentMessage$EnvironmentName": "<p>A unique name for the deployment environment. Used in the application URL.</p> <p>Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p> <p>Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.</p>", + "CreatePlatformVersionRequest$EnvironmentName": "<p>The name of the builder environment.</p>", "DeleteEnvironmentConfigurationMessage$EnvironmentName": "<p>The name of the environment to delete the draft configuration from.</p>", "DescribeConfigurationOptionsMessage$EnvironmentName": "<p>The name of the environment whose configuration options you want to describe.</p>", "DescribeConfigurationSettingsMessage$EnvironmentName": "<p>The name of the environment to describe.</p> <p> Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an <code>InvalidParameterCombination</code> error. If you do not specify either, AWS Elastic Beanstalk returns <code>MissingRequiredParameter</code> error. </p>", @@ -875,6 +937,12 @@ "UpdateEnvironmentMessage$GroupName": "<p>The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name or environment ID parameters. See <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html\">Environment Manifest (env.yaml)</a> for details.</p>" } }, + "ImageId": { + "base": null, + "refs": { + "CustomAmi$ImageId": "<p>THe ID of the image used to create the custom AMI.</p>" + } + }, "IncludeDeleted": { "base": null, "refs": { @@ -949,7 +1017,7 @@ "Latency": { "base": "<p>Represents the average latency for the slowest X percent of requests over the last 10 seconds.</p>", "refs": { - "ApplicationMetrics$Latency": "<p>Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one milisecond resolution.</p>" + "ApplicationMetrics$Latency": "<p>Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.</p>" } }, "LaunchConfiguration": { @@ -975,6 +1043,16 @@ "refs": { } }, + "ListPlatformVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListPlatformVersionsResult": { + "base": null, + "refs": { + } + }, "Listener": { "base": "<p>Describes the properties of a Listener for the LoadBalancer.</p>", "refs": { @@ -984,7 +1062,7 @@ "LoadAverage": { "base": null, "refs": { - "SystemStatus$LoadAverage": "<p>Load average in the last 1-minute and 5-minute periods. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os\">Operating System Metrics</a>.</p>" + "SystemStatus$LoadAverage": "<p>Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os\">Operating System Metrics</a>.</p>" } }, "LoadAverageValue": { @@ -1017,6 +1095,12 @@ "LoadBalancerDescription$Listeners": "<p>A list of Listeners used by the LoadBalancer.</p>" } }, + "Maintainer": { + "base": null, + "refs": { + "PlatformDescription$Maintainer": "<p>Information about the maintainer of the platform.</p>" + } + }, "ManagedAction": { "base": "<p>The record of an upcoming or in-progress managed action.</p>", "refs": { @@ -1129,6 +1213,20 @@ "Deployment$DeploymentId": "<p>The ID of the deployment. This number increases by one each time that you deploy source code or change instance configuration settings.</p>" } }, + "OperatingSystemName": { + "base": null, + "refs": { + "PlatformDescription$OperatingSystemName": "<p>The operating system used by the platform.</p>", + "PlatformSummary$OperatingSystemName": "<p>The operating system used by the platform.</p>" + } + }, + "OperatingSystemVersion": { + "base": null, + "refs": { + "PlatformDescription$OperatingSystemVersion": "<p>The version of the operating system used by the platform.</p>", + "PlatformSummary$OperatingSystemVersion": "<p>The version of the operating system used by the platform.</p>" + } + }, "OperationInProgressException": { "base": "<p>Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.</p>", "refs": { @@ -1182,6 +1280,150 @@ "UpdateEnvironmentMessage$OptionsToRemove": "<p>A list of custom user-defined configuration options to remove from the configuration set for this environment.</p>" } }, + "PlatformArn": { + "base": null, + "refs": { + "ConfigurationOptionsDescription$PlatformArn": "<p>The ARN of the custom platform.</p>", + "ConfigurationSettingsDescription$PlatformArn": "<p>The ARN of the custom platform.</p>", + "CreateConfigurationTemplateMessage$PlatformArn": "<p>The ARN of the custome platform.</p>", + "CreateEnvironmentMessage$PlatformArn": "<p>The ARN of the custom platform.</p>", + "DeletePlatformVersionRequest$PlatformArn": "<p>The ARN of the version of the custom platform.</p>", + "DescribeConfigurationOptionsMessage$PlatformArn": "<p>The ARN of the custom platform.</p>", + "DescribeEventsMessage$PlatformArn": "<p>The ARN of the version of the custom platform.</p>", + "DescribePlatformVersionRequest$PlatformArn": "<p>The ARN of the version of the platform.</p>", + "EnvironmentDescription$PlatformArn": "<p>The ARN of the custom platform.</p>", + "EventDescription$PlatformArn": "<p>The ARN of the custom platform.</p>", + "PlatformDescription$PlatformArn": "<p>The ARN of the platform.</p>", + "PlatformSummary$PlatformArn": "<p>The ARN of the platform.</p>", + "UpdateEnvironmentMessage$PlatformArn": "<p>The ARN of the platform, if used.</p>" + } + }, + "PlatformCategory": { + "base": null, + "refs": { + "PlatformDescription$PlatformCategory": "<p>The category of the platform.</p>", + "PlatformSummary$PlatformCategory": "<p>The category of platform.</p>" + } + }, + "PlatformDescription": { + "base": "<p>Detailed information about a platform.</p>", + "refs": { + "DescribePlatformVersionResult$PlatformDescription": "<p>Detailed information about the version of the platform.</p>" + } + }, + "PlatformFilter": { + "base": "<p>Specify criteria to restrict the results when listing custom platforms.</p> <p>The filter is evaluated as the expression:</p> <p> <code>Type</code> <code>Operator</code> <code>Values[i]</code> </p>", + "refs": { + "PlatformFilters$member": null + } + }, + "PlatformFilterOperator": { + "base": null, + "refs": { + "PlatformFilter$Operator": "<p>The operator to apply to the <code>Type</code> with each of the <code>Values</code>.</p> <p> Valid Values: <code>=</code> (equal to) | <code>!=</code> (not equal to) | <code><</code> (less than) | <code><=</code> (less than or equal to) | <code>></code> (greater than) | <code>>=</code> (greater than or equal to) | <code>contains</code> | <code>begins_with</code> | <code>ends_with</code> </p>" + } + }, + "PlatformFilterType": { + "base": null, + "refs": { + "PlatformFilter$Type": "<p>The custom platform attribute to which the filter values are applied.</p> <p>Valid Values: <code>PlatformName</code> | <code>PlatformVersion</code> | <code>PlatformStatus</code> | <code>PlatformOwner</code> </p>" + } + }, + "PlatformFilterValue": { + "base": null, + "refs": { + "PlatformFilterValueList$member": null + } + }, + "PlatformFilterValueList": { + "base": null, + "refs": { + "PlatformFilter$Values": "<p>The list of values applied to the custom platform attribute.</p>" + } + }, + "PlatformFilters": { + "base": null, + "refs": { + "ListPlatformVersionsRequest$Filters": "<p>List only the platforms where the platform member value relates to one of the supplied values.</p>" + } + }, + "PlatformFramework": { + "base": "<p>A framework supported by the custom platform.</p>", + "refs": { + "PlatformFrameworks$member": null + } + }, + "PlatformFrameworks": { + "base": null, + "refs": { + "PlatformDescription$Frameworks": "<p>The frameworks supported by the platform.</p>" + } + }, + "PlatformMaxRecords": { + "base": null, + "refs": { + "ListPlatformVersionsRequest$MaxRecords": "<p>The maximum number of platform values returned in one call.</p>" + } + }, + "PlatformName": { + "base": null, + "refs": { + "CreatePlatformVersionRequest$PlatformName": "<p>The name of your custom platform.</p>", + "PlatformDescription$PlatformName": "<p>The name of the platform.</p>" + } + }, + "PlatformOwner": { + "base": null, + "refs": { + "PlatformDescription$PlatformOwner": "<p>The AWS account ID of the person who created the platform.</p>", + "PlatformSummary$PlatformOwner": "<p>The AWS account ID of the person who created the platform.</p>" + } + }, + "PlatformProgrammingLanguage": { + "base": "<p>A programming language supported by the platform.</p>", + "refs": { + "PlatformProgrammingLanguages$member": null + } + }, + "PlatformProgrammingLanguages": { + "base": null, + "refs": { + "PlatformDescription$ProgrammingLanguages": "<p>The programming languages supported by the platform.</p>" + } + }, + "PlatformStatus": { + "base": null, + "refs": { + "PlatformDescription$PlatformStatus": "<p>The status of the platform.</p>", + "PlatformSummary$PlatformStatus": "<p>The status of the platform. You can create an environment from the platform once it is ready.</p>" + } + }, + "PlatformSummary": { + "base": "<p>Detailed information about a platform.</p>", + "refs": { + "CreatePlatformVersionResult$PlatformSummary": "<p>Detailed information about the new version of the custom platform.</p>", + "DeletePlatformVersionResult$PlatformSummary": "<p>Detailed information about the version of the custom platform.</p>", + "PlatformSummaryList$member": null + } + }, + "PlatformSummaryList": { + "base": null, + "refs": { + "ListPlatformVersionsResult$PlatformSummaryList": "<p>Detailed information about the platforms.</p>" + } + }, + "PlatformVersion": { + "base": null, + "refs": { + "CreatePlatformVersionRequest$PlatformVersion": "<p>The number, such as 1.0.2, for the new platform version.</p>", + "PlatformDescription$PlatformVersion": "<p>The version of the platform.</p>" + } + }, + "PlatformVersionStillReferencedException": { + "base": "<p>You cannot delete the platform version because there are still environments running on it.</p>", + "refs": { + } + }, "Queue": { "base": "<p>Describes a queue.</p>", "refs": { @@ -1285,7 +1527,8 @@ "base": "<p>The bucket and key of an item stored in Amazon S3.</p>", "refs": { "ApplicationVersionDescription$SourceBundle": "<p>The storage location of the application version's source bundle in Amazon S3.</p>", - "CreateApplicationVersionMessage$SourceBundle": "<p>The Amazon S3 bucket and key that identify the location of the source bundle for this version.</p> <note> <p>The Amazon S3 bucket must be in the same region as the environment.</p> </note> <p>Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with <code>SourceBuildInformation</code>), but not both. If neither <code>SourceBundle</code> nor <code>SourceBuildInformation</code> are provided, Elastic Beanstalk uses a sample application.</p>" + "CreateApplicationVersionMessage$SourceBundle": "<p>The Amazon S3 bucket and key that identify the location of the source bundle for this version.</p> <note> <p>The Amazon S3 bucket must be in the same region as the environment.</p> </note> <p>Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with <code>SourceBuildInformation</code>), but not both. If neither <code>SourceBundle</code> nor <code>SourceBuildInformation</code> are provided, Elastic Beanstalk uses a sample application.</p>", + "CreatePlatformVersionRequest$PlatformDefinitionBundle": "<p>The location of the platform definition archive in Amazon S3.</p>" } }, "S3LocationNotInServiceRegionException": { @@ -1329,9 +1572,10 @@ "ConfigurationOptionsDescription$SolutionStackName": "<p>The name of the solution stack these configuration options belong to.</p>", "ConfigurationSettingsDescription$SolutionStackName": "<p>The name of the solution stack this configuration set uses.</p>", "CreateConfigurationTemplateMessage$SolutionStackName": "<p>The name of the solution stack used by this configuration. The solution stack specifies the operating system, architecture, and application server for a configuration template. It determines the set of configuration options as well as the possible and default values.</p> <p> Use <a>ListAvailableSolutionStacks</a> to obtain a list of available solution stacks. </p> <p> A solution stack name or a source configuration parameter must be specified, otherwise AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p> <p>If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.</p>", - "CreateEnvironmentMessage$SolutionStackName": "<p>This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.</p> <p> Condition: You must specify either this or a <code>TemplateName</code>, but not both. If you specify both, AWS Elastic Beanstalk returns an <code>InvalidParameterCombination</code> error. If you do not specify either, AWS Elastic Beanstalk returns a <code>MissingRequiredParameter</code> error. </p>", + "CreateEnvironmentMessage$SolutionStackName": "<p>This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.</p>", "DescribeConfigurationOptionsMessage$SolutionStackName": "<p>The name of the solution stack whose configuration options you want to describe.</p>", "EnvironmentDescription$SolutionStackName": "<p> The name of the <code>SolutionStack</code> deployed with this environment. </p>", + "PlatformDescription$SolutionStackName": "<p>The name of the solution stack used by the platform.</p>", "SolutionStackDescription$SolutionStackName": "<p>The name of the solution stack.</p>", "UpdateEnvironmentMessage$SolutionStackName": "<p>This specifies the platform version that the environment will run after the environment is updated.</p>" } @@ -1411,6 +1655,10 @@ "ManagedActionHistoryItem$ActionId": "<p>A unique identifier for the managed action.</p>", "ManagedActionHistoryItem$ActionDescription": "<p>A description of the managed action.</p>", "ManagedActionHistoryItem$FailureDescription": "<p>If the action failed, a description of the failure.</p>", + "PlatformFramework$Name": "<p>The name of the framework.</p>", + "PlatformFramework$Version": "<p>The version of the framework.</p>", + "PlatformProgrammingLanguage$Name": "<p>The name of the programming language.</p>", + "PlatformProgrammingLanguage$Version": "<p>The version of the programming language.</p>", "Queue$Name": "<p>The name of the queue.</p>", "Queue$URL": "<p>The URL of the queue.</p>", "SingleInstanceHealth$HealthStatus": "<p>Returns the health status of the specified instance. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html\">Health Colors and Statuses</a>.</p>", @@ -1419,6 +1667,32 @@ "SingleInstanceHealth$InstanceType": "<p>The instance's type.</p>" } }, + "SupportedAddon": { + "base": null, + "refs": { + "SupportedAddonList$member": null + } + }, + "SupportedAddonList": { + "base": null, + "refs": { + "PlatformDescription$SupportedAddonList": "<p>The additions supported by the platform.</p>", + "PlatformSummary$SupportedAddonList": "<p>The additions associated with the platform.</p>" + } + }, + "SupportedTier": { + "base": null, + "refs": { + "SupportedTierList$member": null + } + }, + "SupportedTierList": { + "base": null, + "refs": { + "PlatformDescription$SupportedTierList": "<p>The tiers supported by the platform.</p>", + "PlatformSummary$SupportedTierList": "<p>The tiers in which the platform runs.</p>" + } + }, "SwapEnvironmentCNAMEsMessage": { "base": "<p>Swaps the CNAMEs of two environments.</p>", "refs": { @@ -1497,7 +1771,9 @@ "ApplicationVersionDescriptionsMessage$NextToken": "<p>For a paginated request, the token that you can pass in a subsequent request to get the next page.</p>", "DescribeApplicationVersionsMessage$NextToken": "<p>Specify a next token to retrieve the next page in a paginated request.</p>", "DescribeEventsMessage$NextToken": "<p>Pagination token. If specified, the events return the next batch of results.</p>", - "EventDescriptionsMessage$NextToken": "<p> If returned, this indicates that there are more results to obtain. Use this token in the next <a>DescribeEvents</a> call to get the next batch of events. </p>" + "EventDescriptionsMessage$NextToken": "<p> If returned, this indicates that there are more results to obtain. Use this token in the next <a>DescribeEvents</a> call to get the next batch of events. </p>", + "ListPlatformVersionsRequest$NextToken": "<p>The starting index into the remaining list of platforms. Use the <code>NextToken</code> value from a previous <code>ListPlatformVersion</code> call.</p>", + "ListPlatformVersionsResult$NextToken": "<p>The starting index into the remaining list of platforms. if this value is not <code>null</code>, you can use it in a subsequent <code>ListPlatformVersion</code> call. </p>" } }, "TooManyApplicationVersionsException": { @@ -1525,6 +1801,11 @@ "refs": { } }, + "TooManyPlatformsException": { + "base": "<p>You have exceeded the maximum number of allowed platforms associated with the account.</p>", + "refs": { + } + }, "Trigger": { "base": "<p>Describes a trigger.</p>", "refs": { @@ -1563,7 +1844,8 @@ "ApplicationDescription$DateUpdated": "<p>The date when the application was last modified.</p>", "ApplicationVersionDescription$DateUpdated": "<p>The last modified date of the application version.</p>", "ConfigurationSettingsDescription$DateUpdated": "<p>The date (in UTC time) when this configuration set was last modified.</p>", - "EnvironmentDescription$DateUpdated": "<p>The last modified date for this environment.</p>" + "EnvironmentDescription$DateUpdated": "<p>The last modified date for this environment.</p>", + "PlatformDescription$DateUpdated": "<p>The date when the platform was last updated.</p>" } }, "UpdateEnvironmentMessage": { @@ -1635,6 +1917,12 @@ "ApplicationDescription$Versions": "<p>The names of the versions for this application.</p>", "DescribeApplicationVersionsMessage$VersionLabels": "<p>Specify a version label to show a specific application version.</p>" } + }, + "VirtualizationType": { + "base": null, + "refs": { + "CustomAmi$VirtualizationType": "<p>The type of virtualization used to create the custom AMI.</p>" + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json index 383ce8d6..b4e93b3d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json @@ -14,12 +14,12 @@ }, "DescribeEvents": { "input_token": "NextToken", - "output_token": "NextToken", "limit_key": "MaxRecords", + "output_token": "NextToken", "result_key": "Events" }, "ListAvailableSolutionStacks": { "result_key": "SolutionStacks" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json index 82974851..ffc6e008 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json @@ -1,12 +1,12 @@ { "version":"2.0", "metadata":{ - "uid":"es-2015-01-01", "apiVersion":"2015-01-01", "endpointPrefix":"es", "protocol":"rest-json", "serviceFullName":"Amazon Elasticsearch Service", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"es-2015-01-01" }, "operations":{ "AddTags":{ @@ -100,6 +100,23 @@ {"shape":"ValidationException"} ] }, + "DescribeElasticsearchInstanceTypeLimits":{ + "name":"DescribeElasticsearchInstanceTypeLimits", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}" + }, + "input":{"shape":"DescribeElasticsearchInstanceTypeLimitsRequest"}, + "output":{"shape":"DescribeElasticsearchInstanceTypeLimitsResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"InvalidTypeException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "ListDomainNames":{ "name":"ListDomainNames", "http":{ @@ -112,6 +129,36 @@ {"shape":"ValidationException"} ] }, + "ListElasticsearchInstanceTypes":{ + "name":"ListElasticsearchInstanceTypes", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/instanceTypes/{ElasticsearchVersion}" + }, + "input":{"shape":"ListElasticsearchInstanceTypesRequest"}, + "output":{"shape":"ListElasticsearchInstanceTypesResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "ListElasticsearchVersions":{ + "name":"ListElasticsearchVersions", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/versions" + }, + "input":{"shape":"ListElasticsearchVersionsRequest"}, + "output":{"shape":"ListElasticsearchVersionsResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "ListTags":{ "name":"ListTags", "http":{ @@ -182,6 +229,17 @@ "TagList":{"shape":"TagList"} } }, + "AdditionalLimit":{ + "type":"structure", + "members":{ + "LimitName":{"shape":"LimitName"}, + "LimitValues":{"shape":"LimitValueList"} + } + }, + "AdditionalLimitList":{ + "type":"list", + "member":{"shape":"AdditionalLimit"} + }, "AdvancedOptions":{ "type":"map", "key":{"shape":"String"}, @@ -292,6 +350,36 @@ "DomainStatusList":{"shape":"ElasticsearchDomainStatusList"} } }, + "DescribeElasticsearchInstanceTypeLimitsRequest":{ + "type":"structure", + "required":[ + "InstanceType", + "ElasticsearchVersion" + ], + "members":{ + "DomainName":{ + "shape":"DomainName", + "location":"querystring", + "locationName":"domainName" + }, + "InstanceType":{ + "shape":"ESPartitionInstanceType", + "location":"uri", + "locationName":"InstanceType" + }, + "ElasticsearchVersion":{ + "shape":"ElasticsearchVersionString", + "location":"uri", + "locationName":"ElasticsearchVersion" + } + } + }, + "DescribeElasticsearchInstanceTypeLimitsResponse":{ + "type":"structure", + "members":{ + "LimitsByRole":{"shape":"LimitsByRole"} + } + }, "DisabledOperationException":{ "type":"structure", "members":{ @@ -365,7 +453,22 @@ "r3.4xlarge.elasticsearch", "r3.8xlarge.elasticsearch", "i2.xlarge.elasticsearch", - "i2.2xlarge.elasticsearch" + "i2.2xlarge.elasticsearch", + "d2.xlarge.elasticsearch", + "d2.2xlarge.elasticsearch", + "d2.4xlarge.elasticsearch", + "d2.8xlarge.elasticsearch", + "c4.large.elasticsearch", + "c4.xlarge.elasticsearch", + "c4.2xlarge.elasticsearch", + "c4.4xlarge.elasticsearch", + "c4.8xlarge.elasticsearch", + "r4.large.elasticsearch", + "r4.xlarge.elasticsearch", + "r4.2xlarge.elasticsearch", + "r4.4xlarge.elasticsearch", + "r4.8xlarge.elasticsearch", + "r4.16xlarge.elasticsearch" ] }, "ElasticsearchClusterConfig":{ @@ -429,6 +532,14 @@ "type":"list", "member":{"shape":"ElasticsearchDomainStatus"} }, + "ElasticsearchInstanceTypeList":{ + "type":"list", + "member":{"shape":"ESPartitionInstanceType"} + }, + "ElasticsearchVersionList":{ + "type":"list", + "member":{"shape":"ElasticsearchVersionString"} + }, "ElasticsearchVersionStatus":{ "type":"structure", "required":[ @@ -442,6 +553,20 @@ }, "ElasticsearchVersionString":{"type":"string"}, "ErrorMessage":{"type":"string"}, + "InstanceCountLimits":{ + "type":"structure", + "members":{ + "MinimumInstanceCount":{"shape":"MinimumInstanceCount"}, + "MaximumInstanceCount":{"shape":"MaximumInstanceCount"} + } + }, + "InstanceLimits":{ + "type":"structure", + "members":{ + "InstanceCountLimits":{"shape":"InstanceCountLimits"} + } + }, + "InstanceRole":{"type":"string"}, "IntegerClass":{"type":"integer"}, "InternalException":{ "type":"structure", @@ -464,12 +589,86 @@ "error":{"httpStatusCode":409}, "exception":true }, + "LimitName":{"type":"string"}, + "LimitValue":{"type":"string"}, + "LimitValueList":{ + "type":"list", + "member":{"shape":"LimitValue"} + }, + "Limits":{ + "type":"structure", + "members":{ + "StorageTypes":{"shape":"StorageTypeList"}, + "InstanceLimits":{"shape":"InstanceLimits"}, + "AdditionalLimits":{"shape":"AdditionalLimitList"} + } + }, + "LimitsByRole":{ + "type":"map", + "key":{"shape":"InstanceRole"}, + "value":{"shape":"Limits"} + }, "ListDomainNamesResponse":{ "type":"structure", "members":{ "DomainNames":{"shape":"DomainInfoList"} } }, + "ListElasticsearchInstanceTypesRequest":{ + "type":"structure", + "required":["ElasticsearchVersion"], + "members":{ + "ElasticsearchVersion":{ + "shape":"ElasticsearchVersionString", + "location":"uri", + "locationName":"ElasticsearchVersion" + }, + "DomainName":{ + "shape":"DomainName", + "location":"querystring", + "locationName":"domainName" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListElasticsearchInstanceTypesResponse":{ + "type":"structure", + "members":{ + "ElasticsearchInstanceTypes":{"shape":"ElasticsearchInstanceTypeList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListElasticsearchVersionsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListElasticsearchVersionsResponse":{ + "type":"structure", + "members":{ + "ElasticsearchVersions":{"shape":"ElasticsearchVersionList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListTagsRequest":{ "type":"structure", "required":["ARN"], @@ -487,6 +686,13 @@ "TagList":{"shape":"TagList"} } }, + "MaxResults":{ + "type":"integer", + "max":100 + }, + "MaximumInstanceCount":{"type":"integer"}, + "MinimumInstanceCount":{"type":"integer"}, + "NextToken":{"type":"string"}, "OptionState":{ "type":"string", "enum":[ @@ -554,6 +760,31 @@ "Status":{"shape":"OptionStatus"} } }, + "StorageSubTypeName":{"type":"string"}, + "StorageType":{ + "type":"structure", + "members":{ + "StorageTypeName":{"shape":"StorageTypeName"}, + "StorageSubTypeName":{"shape":"StorageSubTypeName"}, + "StorageTypeLimits":{"shape":"StorageTypeLimitList"} + } + }, + "StorageTypeLimit":{ + "type":"structure", + "members":{ + "LimitName":{"shape":"LimitName"}, + "LimitValues":{"shape":"LimitValueList"} + } + }, + "StorageTypeLimitList":{ + "type":"list", + "member":{"shape":"StorageTypeLimit"} + }, + "StorageTypeList":{ + "type":"list", + "member":{"shape":"StorageType"} + }, + "StorageTypeName":{"type":"string"}, "String":{"type":"string"}, "StringList":{ "type":"list", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json index 52d3b1b6..0d460bbd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json @@ -8,7 +8,10 @@ "DescribeElasticsearchDomain": "<p>Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.</p>", "DescribeElasticsearchDomainConfig": "<p>Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.</p>", "DescribeElasticsearchDomains": "<p>Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.</p>", + "DescribeElasticsearchInstanceTypeLimits": "<p> Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain, specify the <code> <a>DomainName</a> </code> to know what Limits are supported for modifying. </p>", "ListDomainNames": "<p>Returns the name of all Elasticsearch domains owned by the current user's account. </p>", + "ListElasticsearchInstanceTypes": "<p>List all Elasticsearch instance types that are supported for given ElasticsearchVersion</p>", + "ListElasticsearchVersions": "<p>List all supported Elasticsearch versions</p>", "ListTags": "<p>Returns all tags for the given Elasticsearch domain.</p>", "RemoveTags": "<p>Removes the specified set of tags from the specified Elasticsearch domain.</p>", "UpdateElasticsearchDomainConfig": "<p>Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances. </p>" @@ -34,6 +37,18 @@ "refs": { } }, + "AdditionalLimit": { + "base": "<p> List of limits that are specific to a given InstanceType and for each of it's <code> <a>InstanceRole</a> </code> . </p>", + "refs": { + "AdditionalLimitList$member": null + } + }, + "AdditionalLimitList": { + "base": null, + "refs": { + "Limits$AdditionalLimits": "<p> List of additional limits that are specific to a given InstanceType and for each of it's <code> <a>InstanceRole</a> </code> . </p>" + } + }, "AdvancedOptions": { "base": "<p> Exposes select native Elasticsearch configuration values from <code>elasticsearch.yml</code>. Currently, the following advanced options are available:</p> <ul> <li>Option to allow references to indices in an HTTP request body. Must be <code>false</code> when configuring access to individual sub-resources. By default, the value is <code>true</code>. See <a href=\"http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options\" target=\"_blank\">Configuration Advanced Options</a> for more information.</li> <li>Option to specify the percentage of heap space that is allocated to field data. By default, this setting is unbounded.</li> </ul> <p>For more information, see <a href=\"http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options\">Configuring Advanced Options</a>.</p>", "refs": { @@ -116,6 +131,16 @@ "refs": { } }, + "DescribeElasticsearchInstanceTypeLimitsRequest": { + "base": "<p> Container for the parameters to <code> <a>DescribeElasticsearchInstanceTypeLimits</a> </code> operation. </p>", + "refs": { + } + }, + "DescribeElasticsearchInstanceTypeLimitsResponse": { + "base": "<p> Container for the parameters received from <code> <a>DescribeElasticsearchInstanceTypeLimits</a> </code> operation. </p>", + "refs": { + } + }, "DisabledOperationException": { "base": "<p>An error occured because the client wanted to access a not supported operation. Gives http status code of 409.</p>", "refs": { @@ -146,9 +171,11 @@ "DeleteElasticsearchDomainRequest$DomainName": "<p>The name of the Elasticsearch domain that you want to permanently delete.</p>", "DescribeElasticsearchDomainConfigRequest$DomainName": "<p>The Elasticsearch domain that you want to get information about.</p>", "DescribeElasticsearchDomainRequest$DomainName": "<p>The name of the Elasticsearch domain for which you want information.</p>", + "DescribeElasticsearchInstanceTypeLimitsRequest$DomainName": "<p> DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are querying for Elasticsearch <code> <a>Limits</a> </code> for existing domain. </p>", "DomainInfo$DomainName": "<p> Specifies the <code>DomainName</code>.</p>", "DomainNameList$member": null, "ElasticsearchDomainStatus$DomainName": "<p>The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p>", + "ListElasticsearchInstanceTypesRequest$DomainName": "<p>DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are querying for list of available Elasticsearch instance types when modifying existing domain. </p>", "UpdateElasticsearchDomainConfigRequest$DomainName": "<p>The name of the Elasticsearch domain that you are updating. </p>" } }, @@ -176,8 +203,10 @@ "ESPartitionInstanceType": { "base": null, "refs": { + "DescribeElasticsearchInstanceTypeLimitsRequest$InstanceType": "<p> The instance type for an Elasticsearch cluster for which Elasticsearch <code> <a>Limits</a> </code> are needed. </p>", "ElasticsearchClusterConfig$InstanceType": "<p>The instance type for an Elasticsearch cluster.</p>", - "ElasticsearchClusterConfig$DedicatedMasterType": "<p>The instance type for a dedicated master node.</p>" + "ElasticsearchClusterConfig$DedicatedMasterType": "<p>The instance type for a dedicated master node.</p>", + "ElasticsearchInstanceTypeList$member": null } }, "ElasticsearchClusterConfig": { @@ -217,6 +246,18 @@ "DescribeElasticsearchDomainsResponse$DomainStatusList": "<p>The status of the domains requested in the <code>DescribeElasticsearchDomains</code> request.</p>" } }, + "ElasticsearchInstanceTypeList": { + "base": "<p> List of instance types supported by Amazon Elasticsearch service. </p>", + "refs": { + "ListElasticsearchInstanceTypesResponse$ElasticsearchInstanceTypes": "<p> List of instance types supported by Amazon Elasticsearch service for given <code> <a>ElasticsearchVersion</a> </code> </p>" + } + }, + "ElasticsearchVersionList": { + "base": "<p>List of supported elastic search versions. </p>", + "refs": { + "ListElasticsearchVersionsResponse$ElasticsearchVersions": null + } + }, "ElasticsearchVersionStatus": { "base": "<p> Status of the Elasticsearch version options for the specified Elasticsearch domain.</p>", "refs": { @@ -227,8 +268,11 @@ "base": null, "refs": { "CreateElasticsearchDomainRequest$ElasticsearchVersion": "<p>String of format X.Y to specify version for the Elasticsearch domain eg. \"1.5\" or \"2.3\". For more information, see <a href=\"http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains\" target=\"_blank\">Creating Elasticsearch Domains</a> in the <i>Amazon Elasticsearch Service Developer Guide</i>.</p>", + "DescribeElasticsearchInstanceTypeLimitsRequest$ElasticsearchVersion": "<p> Version of Elasticsearch for which <code> <a>Limits</a> </code> are needed. </p>", "ElasticsearchDomainStatus$ElasticsearchVersion": null, - "ElasticsearchVersionStatus$Options": "<p> Specifies the Elasticsearch version for the specified Elasticsearch domain.</p>" + "ElasticsearchVersionList$member": null, + "ElasticsearchVersionStatus$Options": "<p> Specifies the Elasticsearch version for the specified Elasticsearch domain.</p>", + "ListElasticsearchInstanceTypesRequest$ElasticsearchVersion": "<p>Version of Elasticsearch for which list of supported elasticsearch instance types are needed. </p>" } }, "ErrorMessage": { @@ -237,6 +281,24 @@ "BaseException$message": "<p>A description of the error.</p>" } }, + "InstanceCountLimits": { + "base": "<p> InstanceCountLimits represents the limits on number of instances that be created in Amazon Elasticsearch for given InstanceType. </p>", + "refs": { + "InstanceLimits$InstanceCountLimits": null + } + }, + "InstanceLimits": { + "base": "<p>InstanceLimits represents the list of instance related attributes that are available for given InstanceType. </p>", + "refs": { + "Limits$InstanceLimits": null + } + }, + "InstanceRole": { + "base": null, + "refs": { + "LimitsByRole$key": null + } + }, "IntegerClass": { "base": null, "refs": { @@ -262,11 +324,63 @@ "refs": { } }, + "LimitName": { + "base": null, + "refs": { + "AdditionalLimit$LimitName": "<p> Name of Additional Limit is specific to a given InstanceType and for each of it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details: <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be present in Master node only to specify how much data nodes upto which given <code> <a>ESPartitionInstanceType</a> </code> can support as master node. <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be present in Data node only to specify how much data nodes of given <code> <a>ESPartitionInstanceType</a> </code> upto which you don't need any master nodes to govern them. </ul> </p>", + "StorageTypeLimit$LimitName": "<p> Name of storage limits that are applicable for given storage type. If <code> <a>StorageType</a> </code> is ebs, following storage options are applicable <ol> <li>MinimumVolumeSize</li> Minimum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable. <li>MaximumVolumeSize</li> Maximum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable. <li>MaximumIops</li> Maximum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable. <li>MinimumIops</li> Minimum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable. </ol> </p>" + } + }, + "LimitValue": { + "base": null, + "refs": { + "LimitValueList$member": null + } + }, + "LimitValueList": { + "base": null, + "refs": { + "AdditionalLimit$LimitValues": "<p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>", + "StorageTypeLimit$LimitValues": "<p> Values for the <code> <a>StorageTypeLimit$LimitName</a> </code> . </p>" + } + }, + "Limits": { + "base": "<p> Limits for given InstanceType and for each of it's role. <br/> Limits contains following <code> <a>StorageTypes,</a> </code> <code> <a>InstanceLimits</a> </code> and <code> <a>AdditionalLimits</a> </code> </p>", + "refs": { + "LimitsByRole$value": null + } + }, + "LimitsByRole": { + "base": "<p> Map of Role of the Instance and Limits that are applicable. Role performed by given Instance in Elasticsearch can be one of the following: <ul> <li>Data: If the given InstanceType is used as Data node</li> <li>Master: If the given InstanceType is used as Master node</li> </ul> </p>", + "refs": { + "DescribeElasticsearchInstanceTypeLimitsResponse$LimitsByRole": null + } + }, "ListDomainNamesResponse": { "base": "<p>The result of a <code>ListDomainNames</code> operation. Contains the names of all Elasticsearch domains owned by this account.</p>", "refs": { } }, + "ListElasticsearchInstanceTypesRequest": { + "base": "<p> Container for the parameters to the <code> <a>ListElasticsearchInstanceTypes</a> </code> operation. </p>", + "refs": { + } + }, + "ListElasticsearchInstanceTypesResponse": { + "base": "<p> Container for the parameters returned by <code> <a>ListElasticsearchInstanceTypes</a> </code> operation. </p>", + "refs": { + } + }, + "ListElasticsearchVersionsRequest": { + "base": "<p> Container for the parameters to the <code> <a>ListElasticsearchVersions</a> </code> operation. <p> Use <code> <a>MaxResults</a> </code> to control the maximum number of results to retrieve in a single call. </p> <p> Use <code> <a>NextToken</a> </code> in response to retrieve more results. If the received response does not contain a NextToken, then there are no more results to retrieve. </p> </p>", + "refs": { + } + }, + "ListElasticsearchVersionsResponse": { + "base": "<p> Container for the parameters for response received from <code> <a>ListElasticsearchVersions</a> </code> operation. </p>", + "refs": { + } + }, "ListTagsRequest": { "base": "<p>Container for the parameters to the <code><a>ListTags</a></code> operation. Specify the <code>ARN</code> for the Elasticsearch domain to which the tags are attached that you want to view are attached.</p>", "refs": { @@ -277,6 +391,34 @@ "refs": { } }, + "MaxResults": { + "base": "<p> Set this value to limit the number of results returned. </p>", + "refs": { + "ListElasticsearchInstanceTypesRequest$MaxResults": "<p> Set this value to limit the number of results returned. Value provided must be greater than 30 else it wont be honored. </p>", + "ListElasticsearchVersionsRequest$MaxResults": "<p> Set this value to limit the number of results returned. Value provided must be greater than 10 else it wont be honored. </p>" + } + }, + "MaximumInstanceCount": { + "base": "<p> Maximum number of Instances that can be instantiated for given InstanceType. </p>", + "refs": { + "InstanceCountLimits$MaximumInstanceCount": null + } + }, + "MinimumInstanceCount": { + "base": "<p> Minimum number of Instances that can be instantiated for given InstanceType. </p>", + "refs": { + "InstanceCountLimits$MinimumInstanceCount": null + } + }, + "NextToken": { + "base": "<p> Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results. </p>", + "refs": { + "ListElasticsearchInstanceTypesRequest$NextToken": "<p>NextToken should be sent in case if earlier API call produced result containing NextToken. It is used for pagination. </p>", + "ListElasticsearchInstanceTypesResponse$NextToken": "<p>In case if there are more results available NextToken would be present, make further request to the same API with received NextToken to paginate remaining results. </p>", + "ListElasticsearchVersionsRequest$NextToken": null, + "ListElasticsearchVersionsResponse$NextToken": null + } + }, "OptionState": { "base": "<p>The state of a requested change. One of the following:</p> <ul> <li>Processing: The request change is still in-process.</li> <li>Active: The request change is processed and deployed to the Elasticsearch domain.</li> </ul>", "refs": { @@ -339,6 +481,42 @@ "ElasticsearchDomainConfig$SnapshotOptions": "<p>Specifies the <code>SnapshotOptions</code> for the Elasticsearch domain.</p>" } }, + "StorageSubTypeName": { + "base": "<p> SubType of the given storage type. List of available sub-storage options: For \"instance\" storageType we wont have any storageSubType, in case of \"ebs\" storageType we will have following valid storageSubTypes <ol> <li>standard</li> <li>gp2</li> <li>io1</li> </ol> Refer <code><a>VolumeType</a></code> for more information regarding above EBS storage options. </p>", + "refs": { + "StorageType$StorageSubTypeName": null + } + }, + "StorageType": { + "base": "<p>StorageTypes represents the list of storage related types and their attributes that are available for given InstanceType. </p>", + "refs": { + "StorageTypeList$member": null + } + }, + "StorageTypeLimit": { + "base": "<p>Limits that are applicable for given storage type. </p>", + "refs": { + "StorageTypeLimitList$member": null + } + }, + "StorageTypeLimitList": { + "base": null, + "refs": { + "StorageType$StorageTypeLimits": "<p>List of limits that are applicable for given storage type. </p>" + } + }, + "StorageTypeList": { + "base": null, + "refs": { + "Limits$StorageTypes": "<p>StorageType represents the list of storage related types and attributes that are available for given InstanceType. </p>" + } + }, + "StorageTypeName": { + "base": "<p> Type of the storage. List of available storage options: <ol> <li>instance</li> Inbuilt storage available for the given Instance <li>ebs</li> Elastic block storage that would be attached to the given Instance </ol> </p>", + "refs": { + "StorageType$StorageTypeName": null + } + }, "String": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json index 2d9b9646..985f5776 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json @@ -1,14 +1,14 @@ { "version":"2.0", "metadata":{ - "uid":"gamelift-2015-10-01", "apiVersion":"2015-10-01", "endpointPrefix":"gamelift", "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"Amazon GameLift", "signatureVersion":"v4", - "targetPrefix":"GameLift" + "targetPrefix":"GameLift", + "uid":"gamelift-2015-10-01" }, "operations":{ "CreateAlias":{ @@ -80,6 +80,20 @@ {"shape":"IdempotentParameterMismatchException"} ] }, + "CreateGameSessionQueue":{ + "name":"CreateGameSessionQueue", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGameSessionQueueInput"}, + "output":{"shape":"CreateGameSessionQueueOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"UnauthorizedException"} + ] + }, "CreatePlayerSession":{ "name":"CreatePlayerSession", "http":{ @@ -159,6 +173,21 @@ {"shape":"InvalidRequestException"} ] }, + "DeleteGameSessionQueue":{ + "name":"DeleteGameSessionQueue", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteGameSessionQueueInput"}, + "output":{"shape":"DeleteGameSessionQueueOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "DeleteScalingPolicy":{ "name":"DeleteScalingPolicy", "http":{ @@ -308,6 +337,36 @@ {"shape":"TerminalRoutingStrategyException"} ] }, + "DescribeGameSessionPlacement":{ + "name":"DescribeGameSessionPlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGameSessionPlacementInput"}, + "output":{"shape":"DescribeGameSessionPlacementOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, + "DescribeGameSessionQueues":{ + "name":"DescribeGameSessionQueues", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGameSessionQueuesInput"}, + "output":{"shape":"DescribeGameSessionQueuesOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "DescribeGameSessions":{ "name":"DescribeGameSessions", "http":{ @@ -519,6 +578,36 @@ {"shape":"TerminalRoutingStrategyException"} ] }, + "StartGameSessionPlacement":{ + "name":"StartGameSessionPlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartGameSessionPlacementInput"}, + "output":{"shape":"StartGameSessionPlacementOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, + "StopGameSessionPlacement":{ + "name":"StopGameSessionPlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopGameSessionPlacementInput"}, + "output":{"shape":"StopGameSessionPlacementOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "UpdateAlias":{ "name":"UpdateAlias", "http":{ @@ -620,6 +709,21 @@ {"shape":"InvalidRequestException"} ] }, + "UpdateGameSessionQueue":{ + "name":"UpdateGameSessionQueue", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateGameSessionQueueInput"}, + "output":{"shape":"UpdateGameSessionQueueOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "UpdateRuntimeConfiguration":{ "name":"UpdateRuntimeConfiguration", "http":{ @@ -643,6 +747,7 @@ "members":{ "AliasId":{"shape":"AliasId"}, "Name":{"shape":"NonBlankAndLengthConstraintString"}, + "AliasArn":{"shape":"ArnStringModel"}, "Description":{"shape":"FreeText"}, "RoutingStrategy":{"shape":"RoutingStrategy"}, "CreationTime":{"shape":"Timestamp"}, @@ -797,6 +902,21 @@ "GameSession":{"shape":"GameSession"} } }, + "CreateGameSessionQueueInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"GameSessionQueueName"}, + "TimeoutInSeconds":{"shape":"WholeNumber"}, + "Destinations":{"shape":"GameSessionQueueDestinationList"} + } + }, + "CreateGameSessionQueueOutput":{ + "type":"structure", + "members":{ + "GameSessionQueue":{"shape":"GameSessionQueue"} + } + }, "CreatePlayerSessionInput":{ "type":"structure", "required":[ @@ -805,7 +925,8 @@ ], "members":{ "GameSessionId":{"shape":"ArnStringModel"}, - "PlayerId":{"shape":"NonZeroAndMaxString"} + "PlayerId":{"shape":"NonZeroAndMaxString"}, + "PlayerData":{"shape":"PlayerData"} } }, "CreatePlayerSessionOutput":{ @@ -822,7 +943,8 @@ ], "members":{ "GameSessionId":{"shape":"ArnStringModel"}, - "PlayerIds":{"shape":"PlayerIdList"} + "PlayerIds":{"shape":"PlayerIdList"}, + "PlayerDataMap":{"shape":"PlayerDataMap"} } }, "CreatePlayerSessionsOutput":{ @@ -852,6 +974,18 @@ "FleetId":{"shape":"FleetId"} } }, + "DeleteGameSessionQueueInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"GameSessionQueueName"} + } + }, + "DeleteGameSessionQueueOutput":{ + "type":"structure", + "members":{ + } + }, "DeleteScalingPolicyInput":{ "type":"structure", "required":[ @@ -995,6 +1129,34 @@ "NextToken":{"shape":"NonZeroAndMaxString"} } }, + "DescribeGameSessionPlacementInput":{ + "type":"structure", + "required":["PlacementId"], + "members":{ + "PlacementId":{"shape":"IdStringModel"} + } + }, + "DescribeGameSessionPlacementOutput":{ + "type":"structure", + "members":{ + "GameSessionPlacement":{"shape":"GameSessionPlacement"} + } + }, + "DescribeGameSessionQueuesInput":{ + "type":"structure", + "members":{ + "Names":{"shape":"GameSessionQueueNameList"}, + "Limit":{"shape":"PositiveInteger"}, + "NextToken":{"shape":"NonZeroAndMaxString"} + } + }, + "DescribeGameSessionQueuesOutput":{ + "type":"structure", + "members":{ + "GameSessionQueues":{"shape":"GameSessionQueueList"}, + "NextToken":{"shape":"NonZeroAndMaxString"} + } + }, "DescribeGameSessionsInput":{ "type":"structure", "members":{ @@ -1078,6 +1240,17 @@ "NextToken":{"shape":"NonZeroAndMaxString"} } }, + "DesiredPlayerSession":{ + "type":"structure", + "members":{ + "PlayerId":{"shape":"NonZeroAndMaxString"}, + "PlayerData":{"shape":"PlayerData"} + } + }, + "DesiredPlayerSessionList":{ + "type":"list", + "member":{"shape":"DesiredPlayerSession"} + }, "Double":{"type":"double"}, "EC2InstanceCounts":{ "type":"structure", @@ -1173,7 +1346,8 @@ "SERVER_PROCESS_CRASHED", "SERVER_PROCESS_TERMINATED_UNHEALTHY", "SERVER_PROCESS_FORCE_TERMINATED", - "SERVER_PROCESS_PROCESS_EXIT_TIMEOUT" + "SERVER_PROCESS_PROCESS_EXIT_TIMEOUT", + "GAME_SESSION_ACTIVATION_TIMEOUT" ] }, "EventList":{ @@ -1184,6 +1358,7 @@ "type":"structure", "members":{ "FleetId":{"shape":"FleetId"}, + "FleetArn":{"shape":"ArnStringModel"}, "Description":{"shape":"NonZeroAndMaxString"}, "Name":{"shape":"NonZeroAndMaxString"}, "CreationTime":{"shape":"Timestamp"}, @@ -1258,6 +1433,7 @@ "type":"list", "member":{"shape":"FleetUtilization"} }, + "Float":{"type":"float"}, "FreeText":{"type":"string"}, "GameProperty":{ "type":"structure", @@ -1323,6 +1499,63 @@ "type":"list", "member":{"shape":"GameSession"} }, + "GameSessionPlacement":{ + "type":"structure", + "members":{ + "PlacementId":{"shape":"IdStringModel"}, + "GameSessionQueueName":{"shape":"GameSessionQueueName"}, + "Status":{"shape":"GameSessionPlacementState"}, + "GameProperties":{"shape":"GamePropertyList"}, + "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, + "GameSessionName":{"shape":"NonZeroAndMaxString"}, + "GameSessionArn":{"shape":"NonZeroAndMaxString"}, + "GameSessionRegion":{"shape":"NonZeroAndMaxString"}, + "PlayerLatencies":{"shape":"PlayerLatencyList"}, + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"} + } + }, + "GameSessionPlacementState":{ + "type":"string", + "enum":[ + "PENDING", + "FULFILLED", + "CANCELLED", + "TIMED_OUT" + ] + }, + "GameSessionQueue":{ + "type":"structure", + "members":{ + "Name":{"shape":"GameSessionQueueName"}, + "TimeoutInSeconds":{"shape":"WholeNumber"}, + "Destinations":{"shape":"GameSessionQueueDestinationList"} + } + }, + "GameSessionQueueDestination":{ + "type":"structure", + "members":{ + "DestinationArn":{"shape":"ArnStringModel"} + } + }, + "GameSessionQueueDestinationList":{ + "type":"list", + "member":{"shape":"GameSessionQueueDestination"} + }, + "GameSessionQueueList":{ + "type":"list", + "member":{"shape":"GameSessionQueue"} + }, + "GameSessionQueueName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9-]+" + }, + "GameSessionQueueNameList":{ + "type":"list", + "member":{"shape":"GameSessionQueueName"} + }, "GameSessionStatus":{ "type":"string", "enum":[ @@ -1541,7 +1774,9 @@ "ActiveInstances", "AvailablePlayerSessions", "CurrentPlayerSessions", - "IdleInstances" + "IdleInstances", + "QueueDepth", + "WaitTime" ] }, "NonBlankAndLengthConstraintString":{ @@ -1577,12 +1812,34 @@ "AMAZON_LINUX" ] }, + "PlayerData":{ + "type":"string", + "max":2048, + "min":1 + }, + "PlayerDataMap":{ + "type":"map", + "key":{"shape":"NonZeroAndMaxString"}, + "value":{"shape":"PlayerData"} + }, "PlayerIdList":{ "type":"list", "member":{"shape":"NonZeroAndMaxString"}, "max":25, "min":1 }, + "PlayerLatency":{ + "type":"structure", + "members":{ + "PlayerId":{"shape":"NonZeroAndMaxString"}, + "RegionIdentifier":{"shape":"NonZeroAndMaxString"}, + "LatencyInMilliseconds":{"shape":"Float"} + } + }, + "PlayerLatencyList":{ + "type":"list", + "member":{"shape":"PlayerLatency"} + }, "PlayerSession":{ "type":"structure", "members":{ @@ -1594,7 +1851,8 @@ "TerminationTime":{"shape":"Timestamp"}, "Status":{"shape":"PlayerSessionStatus"}, "IpAddress":{"shape":"IpAddress"}, - "Port":{"shape":"PortNumber"} + "Port":{"shape":"PortNumber"}, + "PlayerData":{"shape":"PlayerData"} } }, "PlayerSessionCreationPolicy":{ @@ -1807,6 +2065,42 @@ "max":50, "min":1 }, + "StartGameSessionPlacementInput":{ + "type":"structure", + "required":[ + "PlacementId", + "GameSessionQueueName", + "MaximumPlayerSessionCount" + ], + "members":{ + "PlacementId":{"shape":"IdStringModel"}, + "GameSessionQueueName":{"shape":"GameSessionQueueName"}, + "GameProperties":{"shape":"GamePropertyList"}, + "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, + "GameSessionName":{"shape":"NonZeroAndMaxString"}, + "PlayerLatencies":{"shape":"PlayerLatencyList"}, + "DesiredPlayerSessions":{"shape":"DesiredPlayerSessionList"} + } + }, + "StartGameSessionPlacementOutput":{ + "type":"structure", + "members":{ + "GameSessionPlacement":{"shape":"GameSessionPlacement"} + } + }, + "StopGameSessionPlacementInput":{ + "type":"structure", + "required":["PlacementId"], + "members":{ + "PlacementId":{"shape":"IdStringModel"} + } + }, + "StopGameSessionPlacementOutput":{ + "type":"structure", + "members":{ + "GameSessionPlacement":{"shape":"GameSessionPlacement"} + } + }, "StringList":{ "type":"list", "member":{"shape":"NonZeroAndMaxString"} @@ -1922,6 +2216,21 @@ "GameSession":{"shape":"GameSession"} } }, + "UpdateGameSessionQueueInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"GameSessionQueueName"}, + "TimeoutInSeconds":{"shape":"WholeNumber"}, + "Destinations":{"shape":"GameSessionQueueDestinationList"} + } + }, + "UpdateGameSessionQueueOutput":{ + "type":"structure", + "members":{ + "GameSessionQueue":{"shape":"GameSessionQueue"} + } + }, "UpdateRuntimeConfigurationInput":{ "type":"structure", "required":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json index 094ac951..a676affa 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json @@ -1,69 +1,76 @@ { "version": "2.0", - "service": "<fullname>Amazon GameLift Service</fullname> <p>Welcome to the <i>Amazon GameLift API Reference</i>. Amazon GameLift is a managed Amazon Web Services (AWS) service for developers who need a scalable, server-based solution for multiplayer games. Amazon GameLift provides setup and deployment of game servers, and handles infrastructure scaling and session management.</p> <p>This reference describes the low-level service API for GameLift. You can call this API directly or use the <a href=\"http://aws.amazon.com/tools/#sdk\">AWS SDK</a> for your preferred language. The AWS SDK includes a set of high-level GameLift actions multiplayer game sessions. Alternatively, you can use the <a href=\"http://aws.amazon.com/cli/\">AWS command-line interface</a> (CLI) tool, which includes commands for GameLift. For administrative actions, you can also use the Amazon GameLift console. </p> <p> <b>More Resources</b> </p> <ul> <li> <p> <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/\">Amazon GameLift Developer Guide</a>: Learn more about GameLift features and how to use them </p> </li> <li> <p> <a href=\"https://gamedev.amazon.com/forums/tutorials\">Lumberyard and GameLift Tutorials</a>: Get started fast with walkthroughs and sample projects</p> </li> <li> <p> <a href=\"http://aws.amazon.com/blogs/gamedev/\">GameDev Blog</a>: Stay up to date with new features and techniques</p> </li> <li> <p> <a href=\"https://gamedev.amazon.com/forums/spaces/123/gamelift-discussion.html\">GameDev Forums</a>: Connect with the GameDev community</p> </li> </ul> <p> <b>Manage Games and Players Through GameLift</b> </p> <p>Call these actions from your game clients and/or services to create and manage multiplayer game sessions and player sessions.</p> <ul> <li> <p> <b>Game sessions:</b> </p> <ul> <li> <p> <a>CreateGameSession</a> </p> </li> <li> <p> <a>DescribeGameSessions</a> </p> </li> <li> <p> <a>DescribeGameSessionDetails</a> </p> </li> <li> <p> <a>UpdateGameSession</a> </p> </li> <li> <p> <a>SearchGameSessions</a> </p> </li> </ul> </li> <li> <p> <b>Player sessions:</b> </p> <ul> <li> <p> <a>CreatePlayerSession</a> </p> </li> <li> <p> <a>CreatePlayerSessions</a> </p> </li> <li> <p> <a>DescribePlayerSessions</a> </p> </li> </ul> </li> <li> <p> <b>Other actions:</b> </p> <ul> <li> <p> <a>GetGameSessionLogUrl</a> </p> </li> </ul> </li> </ul> <p> <b>Set Up and Manage Game Servers</b> </p> <p>Use these administrative actions to configure GameLift to host your game servers. When setting up GameLift, you will need to (1) configure a build for your game and upload build files, and (2) set up one or more fleets to host game sessions. Once you've created and activated a fleet, you can assign aliases to it, scale capacity, track performance and utilization, etc.</p> <ul> <li> <p> <b>Game builds:</b> </p> <ul> <li> <p> <a>ListBuilds</a> </p> </li> <li> <p> <a>CreateBuild</a> </p> </li> <li> <p> <a>DescribeBuild</a> </p> </li> <li> <p> <a>UpdateBuild</a> </p> </li> <li> <p> <a>DeleteBuild</a> </p> </li> <li> <p> <a>RequestUploadCredentials</a> </p> </li> </ul> </li> <li> <p> <b>Fleets:</b> </p> <ul> <li> <p> <a>ListFleets</a> </p> </li> <li> <p> <a>CreateFleet</a> </p> </li> <li> <p>Describe fleets:</p> <ul> <li> <p> <a>DescribeFleetAttributes</a> </p> </li> <li> <p> <a>DescribeFleetCapacity</a> </p> </li> <li> <p> <a>DescribeFleetPortSettings</a> </p> </li> <li> <p> <a>DescribeFleetUtilization</a> </p> </li> <li> <p> <a>DescribeEC2InstanceLimits</a> </p> </li> <li> <p> <a>DescribeFleetEvents</a> </p> </li> <li> <p> <a>DescribeRuntimeConfiguration</a> </p> </li> </ul> </li> <li> <p>Update fleets:</p> <ul> <li> <p> <a>UpdateFleetAttributes</a> </p> </li> <li> <p> <a>UpdateFleetCapacity</a> </p> </li> <li> <p> <a>UpdateFleetPortSettings</a> </p> </li> <li> <p> <a>UpdateRuntimeConfiguration</a> </p> </li> </ul> </li> <li> <p> <a>DeleteFleet</a> </p> </li> </ul> </li> <li> <p> <b>Manage your instances:</b> </p> <ul> <li> <p> <a>DescribeInstances</a> </p> </li> <li> <p> <a>GetInstanceAccess</a> </p> </li> </ul> </li> <li> <p> <b>Manage fleet aliases:</b> </p> <ul> <li> <p> <a>ListAliases</a> </p> </li> <li> <p> <a>CreateAlias</a> </p> </li> <li> <p> <a>DescribeAlias</a> </p> </li> <li> <p> <a>UpdateAlias</a> </p> </li> <li> <p> <a>DeleteAlias</a> </p> </li> <li> <p> <a>ResolveAlias</a> </p> </li> </ul> </li> <li> <p> <b>Manage autoscaling:</b> </p> <ul> <li> <p> <a>PutScalingPolicy</a> </p> </li> <li> <p> <a>DescribeScalingPolicies</a> </p> </li> <li> <p> <a>DeleteScalingPolicy</a> </p> </li> </ul> </li> </ul> <p>To view changes to the API, see the GameLift <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/doc-history.html\">Document History</a> page.</p>", + "service": "<fullname>Amazon GameLift Service</fullname> <p> Amazon GameLift is a managed service for developers who need a scalable, dedicated server solution for their multiplayer games. Amazon GameLift provides tools to acquire computing resources and deploy game servers, scale game server capacity to meed player demand, and track in-depth metrics on player usage and server performance.</p> <p>The Amazon GameLift service API includes important functionality to:</p> <ul> <li> <p>Find game sessions and match players to games – Retrieve information on available game sessions; create new game sessions; send player requests to join a game session.</p> </li> <li> <p>Configure and manage game server resources – Manage builds, fleets, queues, and aliases; set autoscaling policies; retrieve logs and metrics.</p> </li> </ul> <p>This reference guide describes the low-level service API for Amazon GameLift. We recommend using either the Amazon Web Services software development kit (<a href=\"http://aws.amazon.com/tools/#sdk\">AWS SDK</a>), available in multiple languages, or the <a href=\"http://aws.amazon.com/cli/\">AWS command-line interface</a> (CLI) tool. Both of these align with the low-level service API. In addition, you can use the <a href=\"https://console.aws.amazon.com/gamelift/home\">AWS Management Console</a> for Amazon GameLift for many administrative actions.</p> <p> <b>MORE RESOURCES</b> </p> <ul> <li> <p> <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/\">Amazon GameLift Developer Guide</a> – Learn more about Amazon GameLift features and how to use them. </p> </li> <li> <p> <a href=\"https://gamedev.amazon.com/forums/tutorials\">Lumberyard and Amazon GameLift Tutorials</a> – Get started fast with walkthroughs and sample projects.</p> </li> <li> <p> <a href=\"http://aws.amazon.com/blogs/gamedev/\">GameDev Blog</a> – Stay up to date with new features and techniques.</p> </li> <li> <p> <a href=\"https://gamedev.amazon.com/forums/spaces/123/gamelift-discussion.html\">GameDev Forums</a> – Connect with the GameDev community.</p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/doc-history.html\">Amazon GameLift Document History</a> – See changes to the Amazon GameLift service, SDKs, and documentation, as well as links to release notes. </p> </li> </ul> <p> <b>API SUMMARY</b> </p> <p>This list offers a functional overview of the Amazon GameLift service API.</p> <p> <b>Finding Games and Joining Players</b> </p> <p>You can enable players to connect to game servers on Amazon GameLift from a game client or through a game service (such as a matchmaking service). You can use these operations to discover actively running game or start new games. You can also match players to games, either singly or as a group.</p> <ul> <li> <p> <b>Discover existing game sessions</b> </p> <ul> <li> <p> <a>SearchGameSessions</a> – Get all available game sessions or search for game sessions that match a set of criteria. </p> </li> </ul> </li> <li> <p> <b>Start a new game session</b> </p> <ul> <li> <p>Game session placement – Use a queue to process new game session requests and create game sessions on fleets designated for the queue.</p> <ul> <li> <p> <a>StartGameSessionPlacement</a> – Request a new game session placement and add one or more players to it.</p> </li> <li> <p> <a>DescribeGameSessionPlacement</a> – Get details on a placement request, including status.</p> </li> <li> <p> <a>StopGameSessionPlacement</a> – Cancel a placement request. </p> </li> </ul> </li> <li> <p> <a>CreateGameSession</a> – Start a new game session on a specific fleet.</p> </li> </ul> </li> <li> <p> <b>Manage game session objects</b> </p> <ul> <li> <p> <a>DescribeGameSessionDetails</a> – Retrieve metadata and protection policies associated with one or more game sessions, including length of time active and current player count.</p> </li> <li> <p> <a>UpdateGameSession</a> – Change game session settings, such as maximum player count and join policy.</p> </li> <li> <p> <a>GetGameSessionLogUrl</a> – Get the location of saved logs for a game session.</p> </li> </ul> </li> <li> <p> <b>Manage player sessions objects</b> </p> <ul> <li> <p> <a>CreatePlayerSession</a> – Send a request for a player to join a game session.</p> </li> <li> <p> <a>CreatePlayerSessions</a> – Send a request for multiple players to join a game session.</p> </li> <li> <p> <a>DescribePlayerSessions</a> – Get details on player activity, including status, playing time, and player data. </p> </li> </ul> </li> </ul> <p> <b>Setting Up and Managing Game Servers</b> </p> <p>When setting up Amazon GameLift, first create a game build and upload the files to Amazon GameLift. Then use these operations to set up a fleet of resources to run your game servers. Manage games to scale capacity, adjust configuration settings, access raw utilization data, and more.</p> <ul> <li> <p> <b>Manage game builds</b> </p> <ul> <li> <p> <a>CreateBuild</a> – Create a new build by uploading files stored in an Amazon S3 bucket. (To create a build stored at a local file location, use the AWS CLI command <code>upload-build</code>.)</p> </li> <li> <p> <a>ListBuilds</a> – Get a list of all builds uploaded to a Amazon GameLift region.</p> </li> <li> <p> <a>DescribeBuild</a> – Retrieve information associated with a build.</p> </li> <li> <p> <a>UpdateBuild</a> – Change build metadata, including build name and version.</p> </li> <li> <p> <a>DeleteBuild</a> – Remove a build from Amazon GameLift.</p> </li> </ul> </li> <li> <p> <b>Manage fleets</b> </p> <ul> <li> <p> <a>CreateFleet</a> – Configure and activate a new fleet to run a build's game servers.</p> </li> <li> <p> <a>DeleteFleet</a> – Terminate a fleet that is no longer running game servers or hosting players.</p> </li> <li> <p>View / update fleet configurations.</p> <ul> <li> <p> <a>ListFleets</a> – Get a list of all fleet IDs in a Amazon GameLift region (all statuses).</p> </li> <li> <p> <a>DescribeFleetAttributes</a> / <a>UpdateFleetAttributes</a> – View or change a fleet's metadata and settings for game session protection and resource creation limits.</p> </li> <li> <p> <a>DescribeFleetPortSettings</a> / <a>UpdateFleetPortSettings</a> – View or change the inbound permissions (IP address and port setting ranges) allowed for a fleet.</p> </li> <li> <p> <a>DescribeRuntimeConfiguration</a> / <a>UpdateRuntimeConfiguration</a> – View or change what server processes (and how many) to run on each instance in a fleet.</p> </li> <li> <p> <a>DescribeInstances</a> – Get information on each instance in a fleet, including instance ID, IP address, and status.</p> </li> </ul> </li> </ul> </li> <li> <p> <b>Control fleet capacity</b> </p> <ul> <li> <p> <a>DescribeEC2InstanceLimits</a> – Retrieve maximum number of instances allowed for the current AWS account and the current usage level.</p> </li> <li> <p> <a>DescribeFleetCapacity</a> / <a>UpdateFleetCapacity</a> – Retrieve the capacity settings and the current number of instances in a fleet; adjust fleet capacity settings to scale up or down.</p> </li> <li> <p>Autoscale – Manage autoscaling rules and apply them to a fleet.</p> <ul> <li> <p> <a>PutScalingPolicy</a> – Create a new autoscaling policy, or update an existing one.</p> </li> <li> <p> <a>DescribeScalingPolicies</a> – Retrieve an existing autoscaling policy.</p> </li> <li> <p> <a>DeleteScalingPolicy</a> – Delete an autoscaling policy and stop it from affecting a fleet's capacity.</p> </li> </ul> </li> </ul> </li> <li> <p> <b>Access fleet activity statistics</b> </p> <ul> <li> <p> <a>DescribeFleetUtilization</a> – Get current data on the number of server processes, game sessions, and players currently active on a fleet.</p> </li> <li> <p> <a>DescribeFleetEvents</a> – Get a fleet's logged events for a specified time span.</p> </li> <li> <p> <a>DescribeGameSessions</a> – Retrieve metadata associated with one or more game sessions, including length of time active and current player count.</p> </li> </ul> </li> <li> <p> <b>Remotely access an instance</b> </p> <ul> <li> <p> <a>GetInstanceAccess</a> – Request access credentials needed to remotely connect to a specified instance on a fleet.</p> </li> </ul> </li> <li> <p> <b>Manage fleet aliases</b> </p> <ul> <li> <p> <a>CreateAlias</a> – Define a new alias and optionally assign it to a fleet.</p> </li> <li> <p> <a>ListAliases</a> – Get all fleet aliases defined in a Amazon GameLift region.</p> </li> <li> <p> <a>DescribeAlias</a> – Retrieve information on an existing alias.</p> </li> <li> <p> <a>UpdateAlias</a> – Change settings for a alias, such as redirecting it from one fleet to another.</p> </li> <li> <p> <a>DeleteAlias</a> – Remove an alias from the region.</p> </li> <li> <p> <a>ResolveAlias</a> – Get the fleet ID that a specified alias points to.</p> </li> </ul> </li> <li> <p> <b>Manage game session queues</b> </p> <ul> <li> <p> <a>CreateGameSessionQueue</a> – Create a queue for processing requests for new game sessions. </p> </li> <li> <p> <a>DescribeGameSessionQueues</a> – Get data on all game session queues defined in a Amazon GameLift region.</p> </li> <li> <p> <a>UpdateGameSessionQueue</a> – Change the configuration of a game session queue.</p> </li> <li> <p> <a>DeleteGameSessionQueue</a> – Remove a game session queue from the region.</p> </li> </ul> </li> </ul>", "operations": { - "CreateAlias": "<p>Creates an alias for a fleet. You can use an alias to anonymize your fleet by referencing an alias instead of a specific fleet when you create game sessions. Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.</p> <p>To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call <a>UpdateAlias</a>.</p>", - "CreateBuild": "<p>Initializes a new build record and generates information required to upload a game build to Amazon GameLift. Once the build record has been created and its status is <code>INITIALIZED</code>, you can upload your game build.</p> <important> <p>Do not use this API action unless you are using your own Amazon Simple Storage Service (Amazon S3) client and need to manually upload your build files. Instead, to create a build, use the CLI command <code>upload-build</code>, which creates a new build record and uploads the build files in one step. (See the <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html\">Amazon GameLift Developer Guide</a> help on packaging and uploading your build.) </p> </important> <p>To create a new build, identify the operating system of the game server binaries. All game servers in a build must use the same operating system. Optionally, specify a build name and version; this metadata is stored with other properties in the build record and is displayed in the GameLift console (it is not visible to players). If successful, this action returns the newly created build record along with the Amazon S3 storage location and AWS account credentials. Use the location and credentials to upload your game build.</p>", - "CreateFleet": "<p>Creates a new fleet to run your game servers. A fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple server processes to host game sessions. You configure a fleet to create instances with certain hardware specifications (see <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for more information), and deploy a specified game build to each instance. A newly created fleet passes through several statuses; once it reaches the <code>ACTIVE</code> status, it can begin hosting game sessions.</p> <p>To create a new fleet, provide a fleet name, an EC2 instance type, and a build ID of the game build to deploy. You can also configure the new fleet with the following settings: (1) a runtime configuration describing what server processes to run on each instance in the fleet (required to create fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session protection, and (4) the location of default log files for GameLift to upload and store.</p> <p>If the <code>CreateFleet</code> call is successful, Amazon GameLift performs the following tasks:</p> <ul> <li> <p>Creates a fleet record and sets the status to <code>NEW</code> (followed by other statuses as the fleet is activated).</p> </li> <li> <p>Sets the fleet's capacity to 1 \"desired\", which causes GameLift to start one new EC2 instance.</p> </li> <li> <p>Starts launching server processes on the instance. If the fleet is configured to run multiple server processes per instance, GameLift staggers each launch by a few seconds.</p> </li> <li> <p>Begins writing events to the fleet event log, which can be accessed in the GameLift console.</p> </li> <li> <p>Sets the fleet's status to <code>ACTIVE</code> once one server process in the fleet is ready to host a game session.</p> </li> </ul> <p>After a fleet is created, use the following actions to change fleet properties and configuration:</p> <ul> <li> <p> <a>UpdateFleetAttributes</a> -- Update fleet metadata, including name and description.</p> </li> <li> <p> <a>UpdateFleetCapacity</a> -- Increase or decrease the number of instances you want the fleet to maintain.</p> </li> <li> <p> <a>UpdateFleetPortSettings</a> -- Change the IP address and port ranges that allow access to incoming traffic.</p> </li> <li> <p> <a>UpdateRuntimeConfiguration</a> -- Change how server processes are launched in the fleet, including launch path, launch parameters, and the number of concurrent processes.</p> </li> </ul>", - "CreateGameSession": "<p>Creates a multiplayer game session for players. This action creates a game session record and assigns an available server process in the specified fleet to host the game session. A fleet must be in an <code>ACTIVE</code> status before a game session can be created in it.</p> <p>To create a game session, specify either fleet ID or alias ID, and indicate a maximum number of players to allow in the game session. You can also provide a name and game-specific properties for this game session. If successful, a <a>GameSession</a> object is returned containing session properties, including an IP address. By default, newly created game sessions allow new players to join. Use <a>UpdateGameSession</a> to change the game sessions player session creation policy.</p> <p>When creating a game session on a fleet with a resource limit creation policy, the request should include a creator ID. If none is provided, GameLift does not evaluate the fleet's resource limit creation policy.</p>", - "CreatePlayerSession": "<p>Adds a player to a game session and creates a player session record. A game session must be in an <code>ACTIVE</code> status, have a creation policy of <code>ALLOW_ALL</code>, and have an open player slot before players can be added to the session.</p> <p>To create a player session, specify a game session ID and player ID. If successful, the player is added to the game session and a new <a>PlayerSession</a> object is returned. </p>", - "CreatePlayerSessions": "<p>Adds a group of players to a game session. Similar to <a>CreatePlayerSession</a>, this action allows you to add multiple players in a single call, which is useful for games that provide party and/or matchmaking features. A game session must be in an <code>ACTIVE</code> status, have a creation policy of <code>ALLOW_ALL</code>, and have an open player slot before players can be added to the session.</p> <p>To create player sessions, specify a game session ID and a list of player IDs. If successful, the players are added to the game session and a set of new <a>PlayerSession</a> objects is returned. </p>", - "DeleteAlias": "<p>Deletes an alias. This action removes all record of the alias; game clients attempting to access a server process using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.</p>", + "CreateAlias": "<p>Creates an alias and sets a target fleet. A fleet alias can be used in place of a fleet ID, such as when calling <code>CreateGameSession</code> from a game client or game service or adding destinations to a game session queue. By changing an alias's target fleet, you can switch your players to the new fleet without changing any other component. In production, this feature is particularly useful to redirect your player base seamlessly to the latest game server update. </p> <p>Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.</p> <p>To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call <a>UpdateAlias</a>.</p>", + "CreateBuild": "<p>Creates a new Amazon GameLift build from a set of game server binary files stored in an Amazon Simple Storage Service (Amazon S3) location. When using this API call, you must create a <code>.zip</code> file containing all of the build files and store it in an Amazon S3 bucket under your AWS account. For help on packaging your build files and creating a build, see <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html\">Uploading Your Game to Amazon GameLift</a>.</p> <important> <p>Use this API action ONLY if you are storing your game build files in an Amazon S3 bucket in your AWS account. To create a build using files stored in a directory, use the CLI command <a href=\"http://docs.aws.amazon.com/cli/latest/reference/gamelift/upload-build.html\"> <code>upload-build</code> </a>, which uploads the build files from a file location you specify and creates a build.</p> </important> <p>To create a new build using <code>CreateBuild</code>, identify the storage location and operating system of your game build. You also have the option of specifying a build name and version. If successful, this action creates a new build record with an unique build ID and in <code>INITIALIZED</code> status. Use the API call <a>DescribeBuild</a> to check the status of your build. A build must be in <code>READY</code> status before it can be used to create fleets to host your game.</p>", + "CreateFleet": "<p>Creates a new fleet to run your game servers. A fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple server processes to host game sessions. You configure a fleet to create instances with certain hardware specifications (see <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for more information), and deploy a specified game build to each instance. A newly created fleet passes through several statuses; once it reaches the <code>ACTIVE</code> status, it can begin hosting game sessions.</p> <p>To create a new fleet, provide a fleet name, an EC2 instance type, and a build ID of the game build to deploy. You can also configure the new fleet with the following settings: (1) a runtime configuration describing what server processes to run on each instance in the fleet (required to create fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session protection, and (4) the location of default log files for Amazon GameLift to upload and store.</p> <p>If the CreateFleet call is successful, Amazon GameLift performs the following tasks:</p> <ul> <li> <p>Creates a fleet record and sets the status to <code>NEW</code> (followed by other statuses as the fleet is activated).</p> </li> <li> <p>Sets the fleet's capacity to 1 \"desired\", which causes Amazon GameLift to start one new EC2 instance.</p> </li> <li> <p>Starts launching server processes on the instance. If the fleet is configured to run multiple server processes per instance, Amazon GameLift staggers each launch by a few seconds.</p> </li> <li> <p>Begins writing events to the fleet event log, which can be accessed in the Amazon GameLift console.</p> </li> <li> <p>Sets the fleet's status to <code>ACTIVE</code> once one server process in the fleet is ready to host a game session.</p> </li> </ul> <p>After a fleet is created, use the following actions to change fleet properties and configuration:</p> <ul> <li> <p> <a>UpdateFleetAttributes</a> -- Update fleet metadata, including name and description.</p> </li> <li> <p> <a>UpdateFleetCapacity</a> -- Increase or decrease the number of instances you want the fleet to maintain.</p> </li> <li> <p> <a>UpdateFleetPortSettings</a> -- Change the IP address and port ranges that allow access to incoming traffic.</p> </li> <li> <p> <a>UpdateRuntimeConfiguration</a> -- Change how server processes are launched in the fleet, including launch path, launch parameters, and the number of concurrent processes.</p> </li> <li> <p> <a>PutScalingPolicy</a> -- Create or update rules that are used to set the fleet's capacity (autoscaling).</p> </li> </ul>", + "CreateGameSession": "<p>Creates a multiplayer game session for players. This action creates a game session record and assigns an available server process in the specified fleet to host the game session. A fleet must have an <code>ACTIVE</code> status before a game session can be created in it.</p> <p>To create a game session, specify either fleet ID or alias ID, and indicate a maximum number of players to allow in the game session. You can also provide a name and game-specific properties for this game session. If successful, a <a>GameSession</a> object is returned containing session properties, including an IP address. By default, newly created game sessions allow new players to join. Use <a>UpdateGameSession</a> to change the game session's player session creation policy.</p> <p>When creating a game session on a fleet with a resource limit creation policy, the request should include a creator ID. If none is provided, Amazon GameLift does not evaluate the fleet's resource limit creation policy.</p>", + "CreateGameSessionQueue": "<p>Establishes a new queue for processing requests for new game sessions. A queue identifies where new game sessions can be hosted--by specifying a list of fleet destinations--and how long a request can remain in the queue waiting to be placed before timing out. Requests for new game sessions are added to a queue by calling <a>StartGameSessionPlacement</a> and referencing the queue name.</p> <p>When processing a request for a game session, Amazon GameLift tries each destination in order until it finds one with available resources to host the new game session. A queue's default order is determined by how destinations are listed. This default order can be overridden in a game session placement request.</p> <p>To create a new queue, provide a name, timeout value, and a list of destinations. If successful, a new queue object is returned.</p>", + "CreatePlayerSession": "<p>Adds a player to a game session and creates a player session record. Before a player can be added, a game session must have an <code>ACTIVE</code> status, have a creation policy of <code>ALLOW_ALL</code>, and have an open player slot. To add a group of players to a game session, use <a>CreatePlayerSessions</a>.</p> <p>To create a player session, specify a game session ID, player ID, and optionally a string of player data. If successful, the player is added to the game session and a new <a>PlayerSession</a> object is returned. Player sessions cannot be updated. </p>", + "CreatePlayerSessions": "<p>Adds a group of players to a game session. This action is useful with a team matching feature. Before players can be added, a game session must have an <code>ACTIVE</code> status, have a creation policy of <code>ALLOW_ALL</code>, and have an open player slot. To add a single player to a game session, use <a>CreatePlayerSession</a>.</p> <p>To create player sessions, specify a game session ID, a list of player IDs, and optionally a set of player data strings. If successful, the players are added to the game session and a set of new <a>PlayerSession</a> objects is returned. Player sessions cannot be updated.</p>", + "DeleteAlias": "<p>Deletes a fleet alias. This action removes all record of the alias. Game clients attempting to access a server process using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.</p>", "DeleteBuild": "<p>Deletes a build. This action permanently deletes the build record and any uploaded build files.</p> <p>To delete a build, specify its ID. Deleting a build does not affect the status of any active fleets using the build, but you can no longer create new fleets with the deleted build.</p>", "DeleteFleet": "<p>Deletes everything related to a fleet. Before deleting a fleet, you must set the fleet's desired capacity to zero. See <a>UpdateFleetCapacity</a>.</p> <p>This action removes the fleet's resources and the fleet record. Once a fleet is deleted, you can no longer use that fleet.</p>", + "DeleteGameSessionQueue": "<p>Deletes a game session queue. This action means that any <a>StartGameSessionPlacement</a> requests that reference this queue will fail. To delete a queue, specify the queue name.</p>", "DeleteScalingPolicy": "<p>Deletes a fleet scaling policy. This action means that the policy is no longer in force and removes all record of it. To delete a scaling policy, specify both the scaling policy name and the fleet ID it is associated with.</p>", - "DescribeAlias": "<p>Retrieves properties for a specified alias. To get the alias, specify an alias ID. If successful, an <a>Alias</a> object is returned.</p>", + "DescribeAlias": "<p>Retrieves properties for a fleet alias. This operation returns all alias metadata and settings. To get just the fleet ID an alias is currently pointing to, use <a>ResolveAlias</a>. </p> <p>To get alias properties, specify the alias ID. If successful, an <a>Alias</a> object is returned.</p>", "DescribeBuild": "<p>Retrieves properties for a build. To get a build record, specify a build ID. If successful, an object containing the build properties is returned.</p>", - "DescribeEC2InstanceLimits": "<p>Retrieves the following information for the specified EC2 instance type:</p> <ul> <li> <p>maximum number of instances allowed per AWS account (service limit)</p> </li> <li> <p>current usage level for the AWS account</p> </li> </ul> <p>Service limits vary depending on region. Available regions for GameLift can be found in the AWS Management Console for GameLift (see the drop-down list in the upper right corner).</p>", + "DescribeEC2InstanceLimits": "<p>Retrieves the following information for the specified EC2 instance type:</p> <ul> <li> <p>maximum number of instances allowed per AWS account (service limit)</p> </li> <li> <p>current usage level for the AWS account</p> </li> </ul> <p>Service limits vary depending on region. Available regions for Amazon GameLift can be found in the AWS Management Console for Amazon GameLift (see the drop-down list in the upper right corner).</p>", "DescribeFleetAttributes": "<p>Retrieves fleet properties, including metadata, status, and configuration, for one or more fleets. You can request attributes for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>FleetAttributes</a> object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist. </p> <note> <p>Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.</p> </note>", "DescribeFleetCapacity": "<p>Retrieves the current status of fleet capacity for one or more fleets. This information includes the number of instances that have been requested for the fleet and the number currently active. You can request capacity for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>FleetCapacity</a> object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist. </p> <note> <p>Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.</p> </note>", "DescribeFleetEvents": "<p>Retrieves entries from the specified fleet's event log. You can specify a time range to limit the result set. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of event log entries matching the request are returned.</p>", "DescribeFleetPortSettings": "<p>Retrieves the inbound connection permissions for a fleet. Connection permissions include a range of IP addresses and port settings that incoming traffic can use to access server processes in the fleet. To get a fleet's inbound connection permissions, specify a fleet ID. If successful, a collection of <a>IpPermission</a> objects is returned for the requested fleet ID. If the requested fleet has been deleted, the result set is empty.</p>", "DescribeFleetUtilization": "<p>Retrieves utilization statistics for one or more fleets. You can request utilization data for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>FleetUtilization</a> object is returned for each requested fleet ID. When specifying a list of fleet IDs, utilization objects are returned only for fleets that currently exist. </p> <note> <p>Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.</p> </note>", "DescribeGameSessionDetails": "<p>Retrieves properties, including the protection policy in force, for one or more game sessions. This action can be used in several ways: (1) provide a <code>GameSessionId</code> to request details for a specific game session; (2) provide either a <code>FleetId</code> or an <code>AliasId</code> to request properties for all game sessions running on a fleet. </p> <p>To get game session record(s), specify just one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>GameSessionDetail</a> object is returned for each session matching the request.</p>", - "DescribeGameSessions": "<p>Retrieves a set of one or more game sessions and properties. This action can be used in several ways: (1) provide a <code>GameSessionId</code> to request properties for a specific game session; (2) provide a <code>FleetId</code> or an <code>AliasId</code> to request properties for all game sessions running on a fleet. You can also use <a>SearchGameSessions</a>, which allows you to retrieve all game sessions or filter on certain criteria, but only returns game sessions with a status of ACTIVE. If you need to retrieve the protection policy for each game session, use <a>DescribeGameSessionDetails</a>.</p> <p>To get game session record(s), specify just one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>GameSession</a> object is returned for each session matching the request.</p>", + "DescribeGameSessionPlacement": "<p>Retrieves properties and current status of a game session placement request. To get game session placement details, specify the placement ID. If successful, a <a>GameSessionPlacement</a> object is returned.</p>", + "DescribeGameSessionQueues": "<p>Retrieves the properties for one or more game session queues. When requesting multiple queues, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>GameSessionQueue</a> object is returned for each requested queue. When specifying a list of queues, objects are returned only for queues that currently exist in the region.</p>", + "DescribeGameSessions": "<p>Retrieves a set of one or more game sessions. Request a specific game session or request all game sessions on a fleet. Alternatively, use <a>SearchGameSessions</a> to request a set of active game sessions that are filtered by certain criteria. To retrieve protection policy settings for game sessions, use <a>DescribeGameSessionDetails</a>.</p> <p>To get game sessions, specify one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>GameSession</a> object is returned for each game session matching the request.</p>", "DescribeInstances": "<p>Retrieves information about a fleet's instances, including instance IDs. Use this action to get details on all instances in the fleet or get details on one specific instance.</p> <p>To get a specific instance, specify fleet ID and instance ID. To get all instances in a fleet, specify a fleet ID only. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, an <a>Instance</a> object is returned for each result.</p>", "DescribePlayerSessions": "<p>Retrieves properties for one or more player sessions. This action can be used in several ways: (1) provide a <code>PlayerSessionId</code> parameter to request properties for a specific player session; (2) provide a <code>GameSessionId</code> parameter to request properties for all player sessions in the specified game session; (3) provide a <code>PlayerId</code> parameter to request properties for all player sessions of a specified player. </p> <p>To get game session record(s), specify only one of the following: a player session ID, a game session ID, or a player ID. You can filter this request by player session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a <a>PlayerSession</a> object is returned for each session matching the request.</p>", - "DescribeRuntimeConfiguration": "<p>Retrieves the current runtime configuration for the specified fleet. The runtime configuration tells GameLift how to launch server processes on instances in the fleet.</p>", + "DescribeRuntimeConfiguration": "<p>Retrieves the current runtime configuration for the specified fleet. The runtime configuration tells Amazon GameLift how to launch server processes on instances in the fleet.</p>", "DescribeScalingPolicies": "<p>Retrieves all scaling policies applied to a fleet.</p> <p>To get a fleet's scaling policies, specify the fleet ID. You can filter this request by policy status, such as to retrieve only active scaling policies. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, set of <a>ScalingPolicy</a> objects is returned for the fleet.</p>", "GetGameSessionLogUrl": "<p>Retrieves the location of stored game session logs for a specified game session. When a game session is terminated, Amazon GameLift automatically stores the logs in Amazon S3. Use this URL to download the logs.</p> <note> <p>See the <a href=\"http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift\">AWS Service Limits</a> page for maximum log file sizes. Log files that exceed this limit are not saved.</p> </note>", - "GetInstanceAccess": "<p>Requests remote access to a fleet instance. Remote access is useful for debugging, gathering benchmarking data, or watching activity in real time. </p> <p>Access requires credentials that match the operating system of the instance. For a Windows instance, GameLift returns a username and password as strings for use with a Windows Remote Desktop client. For a Linux instance, GameLift returns a username and RSA private key, also as strings, for use with an SSH client. The private key must be saved in the proper format to a .pem file before using. If you're making this request using the AWS CLI, saving the secret can be handled as part of the GetInstanceAccess request (see the example later in this topic). For more information on remote access, see <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-remote-access.html\">Remotely Accessing an Instance</a>.</p> <p>To request access to a specific instance, specify the IDs of the instance and the fleet it belongs to. If successful, an <a>InstanceAccess</a> object is returned containing the instance's IP address and a set of credentials.</p>", + "GetInstanceAccess": "<p>Requests remote access to a fleet instance. Remote access is useful for debugging, gathering benchmarking data, or watching activity in real time. </p> <p>Access requires credentials that match the operating system of the instance. For a Windows instance, Amazon GameLift returns a user name and password as strings for use with a Windows Remote Desktop client. For a Linux instance, Amazon GameLift returns a user name and RSA private key, also as strings, for use with an SSH client. The private key must be saved in the proper format to a <code>.pem</code> file before using. If you're making this request using the AWS CLI, saving the secret can be handled as part of the GetInstanceAccess request. (See the example later in this topic). For more information on remote access, see <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html\">Remotely Accessing an Instance</a>.</p> <p>To request access to a specific instance, specify the IDs of the instance and the fleet it belongs to. If successful, an <a>InstanceAccess</a> object is returned containing the instance's IP address and a set of credentials.</p>", "ListAliases": "<p>Retrieves a collection of alias records for this AWS account. You can filter the result set by alias name and/or routing strategy type. Use the pagination parameters to retrieve results in sequential pages.</p> <note> <p>Aliases are not listed in any particular order.</p> </note>", "ListBuilds": "<p>Retrieves build records for all builds associated with the AWS account in use. You can limit results to builds that are in a specific status by using the <code>Status</code> parameter. Use the pagination parameters to retrieve results in a set of sequential pages. </p> <note> <p>Build records are not listed in any particular order.</p> </note>", "ListFleets": "<p>Retrieves a collection of fleet records for this AWS account. You can filter the result set by build ID. Use the pagination parameters to retrieve results in sequential pages.</p> <note> <p>Fleet records are not listed in any particular order.</p> </note>", "PutScalingPolicy": "<p>Creates or updates a scaling policy for a fleet. An active scaling policy prompts Amazon GameLift to track a certain metric for a fleet and automatically change the fleet's capacity in specific circumstances. Each scaling policy contains one rule statement. Fleets can have multiple scaling policies in force simultaneously.</p> <p>A scaling policy rule statement has the following structure:</p> <p>If <code>[MetricName]</code> is <code>[ComparisonOperator]</code> <code>[Threshold]</code> for <code>[EvaluationPeriods]</code> minutes, then <code>[ScalingAdjustmentType]</code> to/by <code>[ScalingAdjustment]</code>.</p> <p>For example, this policy: \"If the number of idle instances exceeds 20 for more than 15 minutes, then reduce the fleet capacity by 10 instances\" could be implemented as the following rule statement:</p> <p>If [IdleInstances] is [GreaterThanOrEqualToThreshold] [20] for [15] minutes, then [ChangeInCapacity] by [-10].</p> <p>To create or update a scaling policy, specify a unique combination of name and fleet ID, and set the rule values. All parameters for this action are required. If successful, the policy name is returned. Scaling policies cannot be suspended or made inactive. To stop enforcing a scaling policy, call <a>DeleteScalingPolicy</a>.</p>", - "RequestUploadCredentials": "<p>Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage location for a specific build. Valid credentials are required to upload your game build files to Amazon S3.</p> <important> <p>Call this action only if you need credentials for a build created with<code> <a>CreateBuild</a> </code>. This is a rare situation; in most cases, builds are created using the CLI command <code>upload-build</code>, which creates a build record and also uploads build files. </p> </important> <p>Upload credentials are returned when you create the build, but they have a limited lifespan. You can get fresh credentials and use them to re-upload game files until the status of that build changes to <code>READY</code>. Once this happens, you must create a brand new build.</p>", + "RequestUploadCredentials": "<p> <i>This API call is not currently in use. </i> Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage location for a specific build. Valid credentials are required to upload your game build files to Amazon S3.</p>", "ResolveAlias": "<p>Retrieves the fleet ID that a specified alias is currently pointing to.</p>", - "SearchGameSessions": "<p>Retrieves a set of game sessions that match a set of search criteria and sorts them in a specified order. Currently a game session search is limited to a single fleet. Search results include only game sessions that are in ACTIVE status. If you need to retrieve game sessions with a status other than active, use <a>DescribeGameSessions</a>. If you need to retrieve the protection policy for each game session, use <a>DescribeGameSessionDetails</a>.</p> <p>You can search or sort by the following game session attributes:</p> <ul> <li> <p> <b>gameSessionId</b> -- ID value assigned to a game session. This unique value is returned in a <a>GameSession</a> object when a new game session is created. </p> </li> <li> <p> <b>gameSessionName</b> -- Name assigned to a game session. This value is set when requesting a new game session with <a>CreateGameSession</a> or updating with <a>UpdateGameSession</a>. Game session names do not need to be unique to a game session.</p> </li> <li> <p> <b>creationTimeMillis</b> -- Value indicating when a game session was created. It is expressed in Unix time as milliseconds.</p> </li> <li> <p> <b>playerSessionCount</b> -- Number of players currently connected to a game session. This value changes rapidly as players join the session or drop out.</p> </li> <li> <p> <b>maximumSessions</b> -- Maximum number of player sessions allowed for a game session. This value is set when requesting a new game session with <a>CreateGameSession</a> or updating with <a>UpdateGameSession</a>.</p> </li> <li> <p> <b>hasAvailablePlayerSessions</b> -- Boolean value indicating whether or not a game session has reached its maximum number of players. When searching with this attribute, the search value must be <code>true</code> or <code>false</code>. It is highly recommended that all search requests include this filter attribute to optimize search performance and return only sessions that players can join. </p> </li> </ul> <p>To search or sort, specify either a fleet ID or an alias ID, and provide a search filter expression, a sort expression, or both. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of <a>GameSession</a> objects matching the request is returned.</p> <note> <p>Returned values for <code>playerSessionCount</code> and <code>hasAvailablePlayerSessions</code> change quickly as players join sessions and others drop out. Results should be considered a snapshot in time. Be sure to refresh search results often, and handle sessions that fill up before a player can join. </p> </note>", - "UpdateAlias": "<p>Updates properties for an alias. To update properties, specify the alias ID to be updated and provide the information to be changed. To reassign an alias to another fleet, provide an updated routing strategy. If successful, the updated alias record is returned.</p>", + "SearchGameSessions": "<p>Retrieves a set of game sessions that match a set of search criteria and sorts them in a specified order. Currently a game session search is limited to a single fleet. Search results include only game sessions that are in <code>ACTIVE</code> status. If you need to retrieve game sessions with a status other than active, use <a>DescribeGameSessions</a>. If you need to retrieve the protection policy for each game session, use <a>DescribeGameSessionDetails</a>.</p> <p>You can search or sort by the following game session attributes:</p> <ul> <li> <p> <b>gameSessionId</b> -- ID value assigned to a game session. This unique value is returned in a <a>GameSession</a> object when a new game session is created. </p> </li> <li> <p> <b>gameSessionName</b> -- Name assigned to a game session. This value is set when requesting a new game session with <a>CreateGameSession</a> or updating with <a>UpdateGameSession</a>. Game session names do not need to be unique to a game session.</p> </li> <li> <p> <b>creationTimeMillis</b> -- Value indicating when a game session was created. It is expressed in Unix time as milliseconds.</p> </li> <li> <p> <b>playerSessionCount</b> -- Number of players currently connected to a game session. This value changes rapidly as players join the session or drop out.</p> </li> <li> <p> <b>maximumSessions</b> -- Maximum number of player sessions allowed for a game session. This value is set when requesting a new game session with <a>CreateGameSession</a> or updating with <a>UpdateGameSession</a>.</p> </li> <li> <p> <b>hasAvailablePlayerSessions</b> -- Boolean value indicating whether or not a game session has reached its maximum number of players. When searching with this attribute, the search value must be <code>true</code> or <code>false</code>. It is highly recommended that all search requests include this filter attribute to optimize search performance and return only sessions that players can join. </p> </li> </ul> <p>To search or sort, specify either a fleet ID or an alias ID, and provide a search filter expression, a sort expression, or both. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of <a>GameSession</a> objects matching the request is returned.</p> <note> <p>Returned values for <code>playerSessionCount</code> and <code>hasAvailablePlayerSessions</code> change quickly as players join sessions and others drop out. Results should be considered a snapshot in time. Be sure to refresh search results often, and handle sessions that fill up before a player can join. </p> </note>", + "StartGameSessionPlacement": "<p>Places a request for a new game session in a queue (see <a>CreateGameSessionQueue</a>). When processing a placement request, Amazon GameLift attempts to create a new game session on one of the fleets associated with the queue. If no resources are available, Amazon GameLift tries again with another and so on until resources are found or the placement request times out. A game session placement request can also request player sessions. When a new game session is successfully created, Amazon GameLift creates a player session for each player included in the request.</p> <p>When placing a game session, by default Amazon GameLift tries each fleet in the order they are listed in the queue configuration. Ideally, a queue's destinations are listed in preference order. Alternatively, when requesting a game session with players, you can also provide latency data for each player in relevant regions. Latency data indicates the performance lag a player experiences when connected to a fleet in the region. Amazon GameLift uses latency data to reorder the list of destinations to place the game session in a region with minimal lag. If latency data is provided for multiple players, Amazon GameLift calculates each region's average lag for all players and reorders to get the best game play across all players. </p> <p>To place a new game session request, specify the queue name and a set of game session properties and settings. Also provide a unique ID (such as a UUID) for the placement. You'll use this ID to track the status of the placement request. Optionally, provide a set of IDs and player data for each player you want to join to the new game session. To optimize game play for the players, also provide latency data for all players. If successful, a new game session placement is created. To track the status of a placement request, call <a>DescribeGameSessionPlacement</a> and check the request's status. If the status is Fulfilled, a new game session has been created and a game session ARN and region are referenced. If the placement request times out, you have the option of resubmitting the request or retrying it with a different queue. </p>", + "StopGameSessionPlacement": "<p>Cancels a game session placement that is in Pending status. To stop a placement, provide the placement ID values. If successful, the placement is moved to Cancelled status.</p>", + "UpdateAlias": "<p>Updates properties for a fleet alias. To update properties, specify the alias ID to be updated and provide the information to be changed. To reassign an alias to another fleet, provide an updated routing strategy. If successful, the updated alias record is returned.</p>", "UpdateBuild": "<p>Updates metadata in a build record, including the build name and version. To update the metadata, specify the build ID to update and provide the new values. If successful, a build object containing the updated metadata is returned.</p>", "UpdateFleetAttributes": "<p>Updates fleet properties, including name and description, for a fleet. To update metadata, specify the fleet ID and the property values you want to change. If successful, the fleet ID for the updated fleet is returned.</p>", "UpdateFleetCapacity": "<p>Updates capacity settings for a fleet. Use this action to specify the number of EC2 instances (hosts) that you want this fleet to contain. Before calling this action, you may want to call <a>DescribeEC2InstanceLimits</a> to get the maximum capacity based on the fleet's EC2 instance type.</p> <p>If you're using autoscaling (see <a>PutScalingPolicy</a>), you may want to specify a minimum and/or maximum capacity. If you don't provide these, autoscaling can set capacity anywhere between zero and the <a href=\"http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift\">service limits</a>.</p> <p>To update fleet capacity, specify the fleet ID and the number of instances you want the fleet to host. If successful, Amazon GameLift starts or terminates instances so that the fleet's active instance count matches the desired instance count. You can view a fleet's current capacity information by calling <a>DescribeFleetCapacity</a>. If the desired instance count is higher than the instance type's limit, the \"Limit Exceeded\" exception occurs.</p>", "UpdateFleetPortSettings": "<p>Updates port settings for a fleet. To update settings, specify the fleet ID to be updated and list the permissions you want to update. List the permissions you want to add in <code>InboundPermissionAuthorizations</code>, and permissions you want to remove in <code>InboundPermissionRevocations</code>. Permissions to be removed must match existing fleet permissions. If successful, the fleet ID for the updated fleet is returned.</p>", "UpdateGameSession": "<p>Updates game session properties. This includes the session name, maximum player count, protection policy, which controls whether or not an active game session can be terminated during a scale-down event, and the player session creation policy, which controls whether or not new players can join the session. To update a game session, specify the game session ID and the values you want to change. If successful, an updated <a>GameSession</a> object is returned. </p>", - "UpdateRuntimeConfiguration": "<p>Updates the current runtime configuration for the specified fleet, which tells GameLift how to launch server processes on instances in the fleet. You can update a fleet's runtime configuration at any time after the fleet is created; it does not need to be in an <code>ACTIVE</code> status.</p> <p>To update runtime configuration, specify the fleet ID and provide a <code>RuntimeConfiguration</code> object with the updated collection of server process configurations.</p> <p>Each instance in a GameLift fleet checks regularly for an updated runtime configuration and changes how it launches server processes to comply with the latest version. Existing server processes are not affected by the update; they continue to run until they end, while GameLift simply adds new server processes to fit the current runtime configuration. As a result, the runtime configuration changes are applied gradually as existing processes shut down and new processes are launched in GameLift's normal process recycling activity.</p>" + "UpdateGameSessionQueue": "<p>Updates settings for a game session queue, which determines how new game session requests in the queue are processed. To update settings, specify the queue name to be updated and provide the new settings. When updating destinations, provide a complete list of destinations.</p>", + "UpdateRuntimeConfiguration": "<p>Updates the current runtime configuration for the specified fleet, which tells Amazon GameLift how to launch server processes on instances in the fleet. You can update a fleet's runtime configuration at any time after the fleet is created; it does not need to be in an <code>ACTIVE</code> status.</p> <p>To update runtime configuration, specify the fleet ID and provide a <code>RuntimeConfiguration</code> object with the updated collection of server process configurations.</p> <p>Each instance in a Amazon GameLift fleet checks regularly for an updated runtime configuration and changes how it launches server processes to comply with the latest version. Existing server processes are not affected by the update; they continue to run until they end, while Amazon GameLift simply adds new server processes to fit the current runtime configuration. As a result, the runtime configuration changes are applied gradually as existing processes shut down and new processes are launched in Amazon GameLift's normal process recycling activity.</p>" }, "shapes": { "Alias": { - "base": "<p>Properties describing a fleet alias.</p>", + "base": "<p>Properties describing a fleet alias.</p> <p>Alias-related operations include:</p> <ul> <li> <p> <a>CreateAlias</a> </p> </li> <li> <p> <a>ListAliases</a> </p> </li> <li> <p> <a>DescribeAlias</a> </p> </li> <li> <p> <a>UpdateAlias</a> </p> </li> <li> <p> <a>DeleteAlias</a> </p> </li> </ul>", "refs": { "AliasList$member": null, - "CreateAliasOutput$Alias": "<p>Object containing the newly created alias record.</p>", - "DescribeAliasOutput$Alias": "<p>Object containing the requested alias.</p>", - "UpdateAliasOutput$Alias": "<p>Object containing the updated alias configuration.</p>" + "CreateAliasOutput$Alias": "<p>Object that describes the newly created alias record.</p>", + "DescribeAliasOutput$Alias": "<p>Object that contains the requested alias.</p>", + "UpdateAliasOutput$Alias": "<p>Object that contains the updated alias configuration.</p>" } }, "AliasId": { "base": null, "refs": { - "Alias$AliasId": "<p>Unique identifier for a fleet alias.</p>", - "CreateGameSessionInput$AliasId": "<p>Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.</p>", + "Alias$AliasId": "<p>Unique identifier for an alias; alias IDs are unique within a region.</p>", + "CreateGameSessionInput$AliasId": "<p>Unique identifier for an alias associated with the fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.</p>", "DeleteAliasInput$AliasId": "<p>Unique identifier for a fleet alias. Specify the alias you want to delete.</p>", "DescribeAliasInput$AliasId": "<p>Unique identifier for a fleet alias. Specify the alias you want to retrieve.</p>", - "DescribeGameSessionDetailsInput$AliasId": "<p>Unique identifier for a fleet alias. Specify an alias to retrieve information on all game sessions active on the fleet.</p>", - "DescribeGameSessionsInput$AliasId": "<p>Unique identifier for a fleet alias. Specify an alias to retrieve information on all game sessions active on the fleet.</p>", + "DescribeGameSessionDetailsInput$AliasId": "<p>Unique identifier for an alias associated with the fleet to retrieve all game sessions for.</p>", + "DescribeGameSessionsInput$AliasId": "<p>Unique identifier for an alias associated with the fleet to retrieve all game sessions for. </p>", "ResolveAliasInput$AliasId": "<p>Unique identifier for the alias you want to resolve.</p>", - "SearchGameSessionsInput$AliasId": "<p>Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.</p>", + "SearchGameSessionsInput$AliasId": "<p>Unique identifier for an alias associated with the fleet to search for active game sessions. Each request must reference either a fleet ID or alias ID, but not both.</p>", "UpdateAliasInput$AliasId": "<p>Unique identifier for a fleet alias. Specify the alias you want to update.</p>" } }, @@ -76,42 +83,45 @@ "ArnStringModel": { "base": null, "refs": { - "CreatePlayerSessionInput$GameSessionId": "<p>Unique identifier for the game session to add a player to. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "CreatePlayerSessionsInput$GameSessionId": "<p>Unique identifier for the game session to add players to. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "DescribeGameSessionDetailsInput$GameSessionId": "<p>Unique identifier for the game session to retrieve information on. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "DescribeGameSessionsInput$GameSessionId": "<p>Unique identifier for the game session to retrieve information on. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "DescribePlayerSessionsInput$GameSessionId": "<p>Unique identifier for the game session to get player sessions for. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "GetGameSessionLogUrlInput$GameSessionId": "<p>Unique identifier for the game session to get logs for. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "UpdateGameSessionInput$GameSessionId": "<p>Unique identifier for the game session to update. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>" + "Alias$AliasArn": "<p>Unique identifier for an alias; alias ARNs are unique across all regions.</p>", + "CreatePlayerSessionInput$GameSessionId": "<p>Unique identifier for the game session to add a player to.</p>", + "CreatePlayerSessionsInput$GameSessionId": "<p>Unique identifier for the game session to add players to.</p>", + "DescribeGameSessionDetailsInput$GameSessionId": "<p>Unique identifier for the game session to retrieve.</p>", + "DescribeGameSessionsInput$GameSessionId": "<p>Unique identifier for the game session to retrieve.</p>", + "DescribePlayerSessionsInput$GameSessionId": "<p>Unique identifier for the game session to retrieve player sessions for.</p>", + "FleetAttributes$FleetArn": "<p>Identifier for a fleet that is unique across all regions.</p>", + "GameSessionQueueDestination$DestinationArn": "<p>Amazon Resource Name (ARN) assigned to fleet or fleet alias. ARNs, which include a fleet ID or alias ID and a region name, provide a unique identifier across all regions. </p>", + "GetGameSessionLogUrlInput$GameSessionId": "<p>Unique identifier for the game session to get logs for.</p>", + "UpdateGameSessionInput$GameSessionId": "<p>Unique identifier for the game session to update.</p>" } }, "AwsCredentials": { - "base": "<p>AWS access credentials required to upload game build files to Amazon GameLift. These credentials are generated with <a>CreateBuild</a>, and are valid for a limited time. If they expire before you upload your game build, get a new set by calling <a>RequestUploadCredentials</a>.</p>", + "base": "<p>AWS access credentials sometimes used for uploading game build files to Amazon GameLift. They are valid for a limited time. If they expire before you upload your game build, get a new set by calling <a>RequestUploadCredentials</a>.</p>", "refs": { - "CreateBuildOutput$UploadCredentials": "<p>AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for. If you need to get fresh credentials, call<code> <a>RequestUploadCredentials</a> </code>.</p>", + "CreateBuildOutput$UploadCredentials": "<p>This element is not currently in use.</p>", "RequestUploadCredentialsOutput$UploadCredentials": "<p>AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for.</p>" } }, "Build": { - "base": "<p>Properties describing a game build.</p>", + "base": "<p>Properties describing a game build.</p> <p>Build-related operations include:</p> <ul> <li> <p> <a>CreateBuild</a> </p> </li> <li> <p> <a>ListBuilds</a> </p> </li> <li> <p> <a>DescribeBuild</a> </p> </li> <li> <p> <a>UpdateBuild</a> </p> </li> <li> <p> <a>DeleteBuild</a> </p> </li> </ul>", "refs": { "BuildList$member": null, - "CreateBuildOutput$Build": "<p>Set of properties for the newly created build.</p>", + "CreateBuildOutput$Build": "<p>The newly created build record, including a unique build ID and status. </p>", "DescribeBuildOutput$Build": "<p>Set of properties describing the requested build.</p>", - "UpdateBuildOutput$Build": "<p>Object containing the updated build record.</p>" + "UpdateBuildOutput$Build": "<p>Object that contains the updated build record.</p>" } }, "BuildId": { "base": null, "refs": { "Build$BuildId": "<p>Unique identifier for a build.</p>", - "CreateFleetInput$BuildId": "<p>Unique identifier of the build to be deployed on the new fleet. The build must have been successfully uploaded to GameLift and be in a <code>READY</code> status. This fleet setting cannot be changed once the fleet is created.</p>", - "DeleteBuildInput$BuildId": "<p>Unique identifier for the build you want to delete.</p>", - "DescribeBuildInput$BuildId": "<p>Unique identifier of the build that you want to retrieve properties for.</p>", + "CreateFleetInput$BuildId": "<p>Unique identifier for a build to be deployed on the new fleet. The build must have been successfully uploaded to Amazon GameLift and be in a <code>READY</code> status. This fleet setting cannot be changed once the fleet is created.</p>", + "DeleteBuildInput$BuildId": "<p>Unique identifier for a build to delete.</p>", + "DescribeBuildInput$BuildId": "<p>Unique identifier for a build to retrieve properties for.</p>", "FleetAttributes$BuildId": "<p>Unique identifier for a build.</p>", - "ListFleetsInput$BuildId": "<p>Unique identifier of the build to return fleets for. Use this parameter to return only fleets using the specified build. To retrieve all fleets, leave this parameter empty.</p>", - "RequestUploadCredentialsInput$BuildId": "<p>Unique identifier for the build you want to get credentials for.</p>", - "UpdateBuildInput$BuildId": "<p>Unique identifier of the build you want to update.</p>" + "ListFleetsInput$BuildId": "<p>Unique identifier for a build to return fleets for. Use this parameter to return only fleets using the specified build. To retrieve all fleets, leave this parameter empty.</p>", + "RequestUploadCredentialsInput$BuildId": "<p>Unique identifier for a build to get credentials for.</p>", + "UpdateBuildInput$BuildId": "<p>Unique identifier for a build to update.</p>" } }, "BuildList": { @@ -179,6 +189,16 @@ "refs": { } }, + "CreateGameSessionQueueInput": { + "base": null, + "refs": { + } + }, + "CreateGameSessionQueueOutput": { + "base": null, + "refs": { + } + }, "CreatePlayerSessionInput": { "base": "<p>Represents the input for a request action.</p>", "refs": { @@ -214,6 +234,16 @@ "refs": { } }, + "DeleteGameSessionQueueInput": { + "base": null, + "refs": { + } + }, + "DeleteGameSessionQueueOutput": { + "base": null, + "refs": { + } + }, "DeleteScalingPolicyInput": { "base": "<p>Represents the input for a request action.</p>", "refs": { @@ -309,6 +339,26 @@ "refs": { } }, + "DescribeGameSessionPlacementInput": { + "base": null, + "refs": { + } + }, + "DescribeGameSessionPlacementOutput": { + "base": null, + "refs": { + } + }, + "DescribeGameSessionQueuesInput": { + "base": null, + "refs": { + } + }, + "DescribeGameSessionQueuesOutput": { + "base": null, + "refs": { + } + }, "DescribeGameSessionsInput": { "base": "<p>Represents the input for a request action.</p>", "refs": { @@ -359,6 +409,18 @@ "refs": { } }, + "DesiredPlayerSession": { + "base": "<p>Player information for use when creating player sessions using a game session placement request with <a>StartGameSessionPlacement</a>.</p>", + "refs": { + "DesiredPlayerSessionList$member": null + } + }, + "DesiredPlayerSessionList": { + "base": null, + "refs": { + "StartGameSessionPlacementInput$DesiredPlayerSessions": "<p>Set of information on each player to create a player session for.</p>" + } + }, "Double": { "base": null, "refs": { @@ -381,16 +443,16 @@ "EC2InstanceLimitList": { "base": null, "refs": { - "DescribeEC2InstanceLimitsOutput$EC2InstanceLimits": "<p>Object containing the maximum number of instances for the specified instance type.</p>" + "DescribeEC2InstanceLimitsOutput$EC2InstanceLimits": "<p>Object that contains the maximum number of instances for the specified instance type.</p>" } }, "EC2InstanceType": { "base": null, "refs": { - "CreateFleetInput$EC2InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions.</p>", - "DescribeEC2InstanceLimitsInput$EC2InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions. Leave this parameter blank to retrieve limits for all types.</p>", - "EC2InstanceLimit$EC2InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions.</p>", - "FleetCapacity$InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions.</p>", + "CreateFleetInput$EC2InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions.</p>", + "DescribeEC2InstanceLimitsInput$EC2InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions. Leave this parameter blank to retrieve limits for all types.</p>", + "EC2InstanceLimit$EC2InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions.</p>", + "FleetCapacity$InstanceType": "<p>Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a> for detailed descriptions.</p>", "Instance$Type": "<p>EC2 instance type that defines the computing resources of this instance. </p>" } }, @@ -445,52 +507,52 @@ "FleetId": { "base": null, "refs": { - "CreateGameSessionInput$FleetId": "<p>Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.</p>", - "DeleteFleetInput$FleetId": "<p>Unique identifier for the fleet you want to delete.</p>", - "DeleteScalingPolicyInput$FleetId": "<p>Unique identifier for a fleet.</p>", - "DescribeFleetEventsInput$FleetId": "<p>Unique identifier for the fleet to get event logs for.</p>", - "DescribeFleetPortSettingsInput$FleetId": "<p>Unique identifier for the fleet you want to retrieve port settings for.</p>", - "DescribeGameSessionDetailsInput$FleetId": "<p>Unique identifier for a fleet. Specify a fleet to retrieve information on all game sessions active on the fleet.</p>", - "DescribeGameSessionsInput$FleetId": "<p>Unique identifier for a fleet. Specify a fleet to retrieve information on all game sessions active on the fleet.</p>", - "DescribeInstancesInput$FleetId": "<p>Unique identifier for a fleet. Specify the fleet to retrieve instance information for.</p>", - "DescribeRuntimeConfigurationInput$FleetId": "<p>Unique identifier of the fleet to get the runtime configuration for.</p>", - "DescribeScalingPoliciesInput$FleetId": "<p>Unique identifier for a fleet. Specify the fleet to retrieve scaling policies for.</p>", + "CreateGameSessionInput$FleetId": "<p>Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.</p>", + "DeleteFleetInput$FleetId": "<p>Unique identifier for a fleet to be deleted.</p>", + "DeleteScalingPolicyInput$FleetId": "<p>Unique identifier for a fleet to be deleted.</p>", + "DescribeFleetEventsInput$FleetId": "<p>Unique identifier for a fleet to get event logs for.</p>", + "DescribeFleetPortSettingsInput$FleetId": "<p>Unique identifier for a fleet to retrieve port settings for.</p>", + "DescribeGameSessionDetailsInput$FleetId": "<p>Unique identifier for a fleet to retrieve all game sessions active on the fleet.</p>", + "DescribeGameSessionsInput$FleetId": "<p>Unique identifier for a fleet to retrieve all game sessions for.</p>", + "DescribeInstancesInput$FleetId": "<p>Unique identifier for a fleet to retrieve instance information for.</p>", + "DescribeRuntimeConfigurationInput$FleetId": "<p>Unique identifier for a fleet to get the runtime configuration for.</p>", + "DescribeScalingPoliciesInput$FleetId": "<p>Unique identifier for a fleet to retrieve scaling policies for.</p>", "FleetAttributes$FleetId": "<p>Unique identifier for a fleet.</p>", "FleetCapacity$FleetId": "<p>Unique identifier for a fleet.</p>", "FleetIdList$member": null, "FleetUtilization$FleetId": "<p>Unique identifier for a fleet.</p>", - "GameSession$FleetId": "<p>Unique identifier for a fleet.</p>", - "GetInstanceAccessInput$FleetId": "<p>Unique identifier for a fleet. Specify the fleet that contain the instance you want access to. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status can be accessed for a few hours before being deleted.</p>", - "Instance$FleetId": "<p>Unique identifier for the fleet that the instance belongs to.</p>", - "InstanceAccess$FleetId": "<p>Unique identifier for the fleet containing the instance being accessed.</p>", - "PlayerSession$FleetId": "<p>Unique identifier for a fleet.</p>", - "PutScalingPolicyInput$FleetId": "<p>Unique identity for the fleet to scale with this policy.</p>", - "ResolveAliasOutput$FleetId": "<p>Fleet ID associated with the requested alias.</p>", - "RoutingStrategy$FleetId": "<p>Unique identifier for a fleet.</p>", - "ScalingPolicy$FleetId": "<p>Unique identity for the fleet associated with this scaling policy.</p>", - "SearchGameSessionsInput$FleetId": "<p>Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.</p>", - "UpdateFleetAttributesInput$FleetId": "<p>Unique identifier for the fleet you want to update attribute metadata for.</p>", - "UpdateFleetAttributesOutput$FleetId": "<p>Unique identifier for the updated fleet.</p>", - "UpdateFleetCapacityInput$FleetId": "<p>Unique identifier for the fleet you want to update capacity for.</p>", - "UpdateFleetCapacityOutput$FleetId": "<p>Unique identifier for the updated fleet.</p>", - "UpdateFleetPortSettingsInput$FleetId": "<p>Unique identifier for the fleet you want to update port settings for.</p>", - "UpdateFleetPortSettingsOutput$FleetId": "<p>Unique identifier for the updated fleet.</p>", - "UpdateRuntimeConfigurationInput$FleetId": "<p>Unique identifier of the fleet to update runtime configuration for.</p>" + "GameSession$FleetId": "<p>Unique identifier for a fleet the game session is running on.</p>", + "GetInstanceAccessInput$FleetId": "<p>Unique identifier for a fleet that contains the instance you want access to. The fleet can be in any of the following statuses: <code>ACTIVATING</code>, <code>ACTIVE</code>, or <code>ERROR</code>. Fleets with an <code>ERROR</code> status may be accessible for a short time before they are deleted.</p>", + "Instance$FleetId": "<p>Unique identifier for a fleet that the instance is in.</p>", + "InstanceAccess$FleetId": "<p>Unique identifier for a fleet containing the instance being accessed.</p>", + "PlayerSession$FleetId": "<p>Unique identifier for a fleet that the player's game session is running on.</p>", + "PutScalingPolicyInput$FleetId": "<p>Unique identifier for a fleet to apply this policy to.</p>", + "ResolveAliasOutput$FleetId": "<p>Fleet identifier that is associated with the requested alias.</p>", + "RoutingStrategy$FleetId": "<p>Unique identifier for a fleet that the alias points to.</p>", + "ScalingPolicy$FleetId": "<p>Unique identifier for a fleet that is associated with this scaling policy.</p>", + "SearchGameSessionsInput$FleetId": "<p>Unique identifier for a fleet to search for active game sessions. Each request must reference either a fleet ID or alias ID, but not both.</p>", + "UpdateFleetAttributesInput$FleetId": "<p>Unique identifier for a fleet to update attribute metadata for.</p>", + "UpdateFleetAttributesOutput$FleetId": "<p>Unique identifier for a fleet that was updated.</p>", + "UpdateFleetCapacityInput$FleetId": "<p>Unique identifier for a fleet to update capacity for.</p>", + "UpdateFleetCapacityOutput$FleetId": "<p>Unique identifier for a fleet that was updated.</p>", + "UpdateFleetPortSettingsInput$FleetId": "<p>Unique identifier for a fleet to update port settings for.</p>", + "UpdateFleetPortSettingsOutput$FleetId": "<p>Unique identifier for a fleet that was updated.</p>", + "UpdateRuntimeConfigurationInput$FleetId": "<p>Unique identifier for a fleet to update runtime configuration for.</p>" } }, "FleetIdList": { "base": null, "refs": { - "DescribeFleetAttributesInput$FleetIds": "<p>Unique identifiers for the fleet(s) that you want to retrieve attributes for. To request attributes for all fleets, leave this parameter empty.</p>", - "DescribeFleetCapacityInput$FleetIds": "<p>Unique identifier for the fleet(s) you want to retrieve capacity information for. To request capacity information for all fleets, leave this parameter empty.</p>", - "DescribeFleetUtilizationInput$FleetIds": "<p>Unique identifier for the fleet(s) you want to retrieve utilization data for. To request utilization data for all fleets, leave this parameter empty.</p>", - "ListFleetsOutput$FleetIds": "<p>Set of fleet IDs matching the list request. You can retrieve additional information about all returned fleets by passing this result set to a call to <a>DescribeFleetAttributes</a>, <a>DescribeFleetCapacity</a>, and <a>DescribeFleetUtilization</a>.</p>" + "DescribeFleetAttributesInput$FleetIds": "<p>Unique identifier for a fleet(s) to retrieve attributes for. To request attributes for all fleets, leave this parameter empty.</p>", + "DescribeFleetCapacityInput$FleetIds": "<p>Unique identifier for a fleet(s) to retrieve capacity information for. To request capacity information for all fleets, leave this parameter empty.</p>", + "DescribeFleetUtilizationInput$FleetIds": "<p>Unique identifier for a fleet(s) to retrieve utilization data for. To request utilization data for all fleets, leave this parameter empty.</p>", + "ListFleetsOutput$FleetIds": "<p>Set of fleet IDs matching the list request. You can retrieve additional information about all returned fleets by passing this result set to a call to <a>DescribeFleetAttributes</a>, <a>DescribeFleetCapacity</a>, or <a>DescribeFleetUtilization</a>.</p>" } }, "FleetStatus": { "base": null, "refs": { - "FleetAttributes$Status": "<p>Current status of the fleet.</p> <p>Possible fleet statuses include the following:</p> <ul> <li> <p> <b>NEW</b> – A new fleet has been defined and desired instances is set to 1. </p> </li> <li> <p> <b>DOWNLOADING/VALIDATING/BUILDING/ACTIVATING</b> – GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.</p> </li> <li> <p> <b>ACTIVE</b> – Hosts can now accept game sessions.</p> </li> <li> <p> <b>ERROR</b> – An error occurred when downloading, validating, building, or activating the fleet.</p> </li> <li> <p> <b>DELETING</b> – Hosts are responding to a delete fleet request.</p> </li> <li> <p> <b>TERMINATED</b> – The fleet no longer exists.</p> </li> </ul>" + "FleetAttributes$Status": "<p>Current status of the fleet.</p> <p>Possible fleet statuses include the following:</p> <ul> <li> <p> <b>NEW</b> – A new fleet has been defined and desired instances is set to 1. </p> </li> <li> <p> <b>DOWNLOADING/VALIDATING/BUILDING/ACTIVATING</b> – Amazon GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.</p> </li> <li> <p> <b>ACTIVE</b> – Hosts can now accept game sessions.</p> </li> <li> <p> <b>ERROR</b> – An error occurred when downloading, validating, building, or activating the fleet.</p> </li> <li> <p> <b>DELETING</b> – Hosts are responding to a delete fleet request.</p> </li> <li> <p> <b>TERMINATED</b> – The fleet no longer exists.</p> </li> </ul>" } }, "FleetUtilization": { @@ -505,12 +567,18 @@ "DescribeFleetUtilizationOutput$FleetUtilization": "<p>Collection of objects containing utilization information for each requested fleet ID.</p>" } }, + "Float": { + "base": null, + "refs": { + "PlayerLatency$LatencyInMilliseconds": "<p>Amount of time that represents the time lag experienced by the player when connected to the specified region.</p>" + } + }, "FreeText": { "base": null, "refs": { "Alias$Description": "<p>Human-readable description of an alias.</p>", - "Build$Name": "<p>Descriptive label associated with a build. Build names do not need to be unique. It can be set using <a>CreateBuild</a> or <a>UpdateBuild</a>.</p>", - "Build$Version": "<p>Version associated with this build. Version strings do not need to be unique to a build. This value can be set using <a>CreateBuild</a> or <a>UpdateBuild</a>.</p>", + "Build$Name": "<p>Descriptive label that is associated with a build. Build names do not need to be unique. It can be set using <a>CreateBuild</a> or <a>UpdateBuild</a>.</p>", + "Build$Version": "<p>Version that is associated with this build. Version strings do not need to be unique. This value can be set using <a>CreateBuild</a> or <a>UpdateBuild</a>.</p>", "RoutingStrategy$Message": "<p>Message text to be used with a terminal routing strategy.</p>" } }, @@ -529,8 +597,10 @@ "GamePropertyList": { "base": null, "refs": { - "CreateGameSessionInput$GameProperties": "<p>Set of properties used to administer a game session. These properties are passed to the server process hosting it.</p>", - "GameSession$GameProperties": "<p>Set of custom properties for the game session.</p>" + "CreateGameSessionInput$GameProperties": "<p>Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.</p>", + "GameSession$GameProperties": "<p>Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.</p>", + "GameSessionPlacement$GameProperties": "<p>Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.</p>", + "StartGameSessionPlacementInput$GameProperties": "<p>Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.</p>" } }, "GamePropertyValue": { @@ -542,14 +612,14 @@ "GameSession": { "base": "<p>Properties describing a game session.</p>", "refs": { - "CreateGameSessionOutput$GameSession": "<p>Object containing the newly created game session record.</p>", - "GameSessionDetail$GameSession": null, + "CreateGameSessionOutput$GameSession": "<p>Object that describes the newly created game session record.</p>", + "GameSessionDetail$GameSession": "<p>Object that describes a game session.</p>", "GameSessionList$member": null, - "UpdateGameSessionOutput$GameSession": "<p>Object containing the updated game session metadata.</p>" + "UpdateGameSessionOutput$GameSession": "<p>Object that contains the updated game session metadata.</p>" } }, "GameSessionDetail": { - "base": "<p>A game session's properties and the protection policy currently in force.</p>", + "base": "<p>A game session's properties plus the protection policy currently in force.</p>", "refs": { "GameSessionDetailList$member": null } @@ -572,10 +642,70 @@ "SearchGameSessionsOutput$GameSessions": "<p>Collection of objects containing game session properties for each session matching the request.</p>" } }, + "GameSessionPlacement": { + "base": "<p>Object that describes a <a>StartGameSessionPlacement</a> request. This object includes the full details of the original request plus the current status and start/end time stamps.</p> <p>Game session placement-related operations include:</p> <ul> <li> <p> <a>StartGameSessionPlacement</a> </p> </li> <li> <p> <a>DescribeGameSessionPlacement</a> </p> </li> <li> <p> <a>StopGameSessionPlacement</a> </p> </li> </ul>", + "refs": { + "DescribeGameSessionPlacementOutput$GameSessionPlacement": "<p>Object that describes the requested game session placement.</p>", + "StartGameSessionPlacementOutput$GameSessionPlacement": "<p>Object that describes the newly created game session placement. This object includes all the information provided in the request, as well as start/end time stamps and placement status. </p>", + "StopGameSessionPlacementOutput$GameSessionPlacement": "<p>Object that describes the cancelled game session placement, with cancelled status and an end time stamp. </p>" + } + }, + "GameSessionPlacementState": { + "base": null, + "refs": { + "GameSessionPlacement$Status": "<p>Current status of the game session placement request.</p> <ul> <li> <p> <b>PENDING</b> – The placement request is currently in the queue waiting to be processed.</p> </li> <li> <p> <b>FULFILLED</b> – A new game session and player sessions (if requested) have been successfully created. Values for <i>GameSessionArn</i> and <i>GameSessionRegion</i> are available. </p> </li> <li> <p> <b>CANCELLED</b> – The placement request was cancelled with a call to <a>StopGameSessionPlacement</a>.</p> </li> <li> <p> <b>TIMED_OUT</b> – A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.</p> </li> </ul>" + } + }, + "GameSessionQueue": { + "base": "<p>Configuration of a queue used to process game session placement requests. The queue configuration identifies the fleets that new game session can be placed on, given available resources, and the length of time a request can remain in the queue waiting for placement.</p> <p>Queue-related operations include:</p> <ul> <li> <p> <a>CreateGameSessionQueue</a> </p> </li> <li> <p> <a>DescribeGameSessionQueues</a> </p> </li> <li> <p> <a>UpdateGameSessionQueue</a> </p> </li> <li> <p> <a>DeleteGameSessionQueue</a> </p> </li> </ul>", + "refs": { + "CreateGameSessionQueueOutput$GameSessionQueue": "<p>Object that describes the newly created game session queue.</p>", + "GameSessionQueueList$member": null, + "UpdateGameSessionQueueOutput$GameSessionQueue": "<p>Object that describes the newly updated game session queue.</p>" + } + }, + "GameSessionQueueDestination": { + "base": "<p>Fleet designated in a game session queue. Requests for new game sessions in the queue are fulfilled by starting a new game session on any destination listed for a queue. </p>", + "refs": { + "GameSessionQueueDestinationList$member": null + } + }, + "GameSessionQueueDestinationList": { + "base": null, + "refs": { + "CreateGameSessionQueueInput$Destinations": "<p>List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.</p>", + "GameSessionQueue$Destinations": "<p>List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.</p>", + "UpdateGameSessionQueueInput$Destinations": "<p>List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.</p>" + } + }, + "GameSessionQueueList": { + "base": null, + "refs": { + "DescribeGameSessionQueuesOutput$GameSessionQueues": "<p>Collection of objects that describes the requested game session queues.</p>" + } + }, + "GameSessionQueueName": { + "base": null, + "refs": { + "CreateGameSessionQueueInput$Name": "<p>Descriptive label that is associated with queue. Queue names must be unique within each region.</p>", + "DeleteGameSessionQueueInput$Name": "<p>Descriptive label that is associated with queue. Queue names must be unique within each region.</p>", + "GameSessionPlacement$GameSessionQueueName": "<p>Descriptive label that is associated with queue. Queue names must be unique within each region.</p>", + "GameSessionQueue$Name": "<p>Descriptive label that is associated with queue. Queue names must be unique within each region.</p>", + "GameSessionQueueNameList$member": null, + "StartGameSessionPlacementInput$GameSessionQueueName": "<p>Name of the queue to use to place the new game session.</p>", + "UpdateGameSessionQueueInput$Name": "<p>Descriptive label that is associated with queue. Queue names must be unique within each region.</p>" + } + }, + "GameSessionQueueNameList": { + "base": null, + "refs": { + "DescribeGameSessionQueuesInput$Names": "<p>List of queue names to retrieve information for. To request settings for all queues, leave this parameter empty.</p>" + } + }, "GameSessionStatus": { "base": null, "refs": { - "GameSession$Status": "<p>Current status of the game session. A game session must be in an <code>ACTIVE</code> status to have player sessions.</p>" + "GameSession$Status": "<p>Current status of the game session. A game session must have an <code>ACTIVE</code> status to have player sessions.</p>" } }, "GetGameSessionLogUrlInput": { @@ -601,7 +731,11 @@ "IdStringModel": { "base": null, "refs": { - "CreateGameSessionInput$GameSessionId": "<p>Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter is set, GameLift creates a game session ID in the following format: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>\". For example, this full game session ID: \"arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session\" includes the custom ID string \"my-game-session\". If this parameter is not set, GameLift creates a game session ID in the same format with an autogenerated ID string. </p>" + "CreateGameSessionInput$GameSessionId": "<p>Custom string to include in the game session ID, with a maximum length of 48 characters. A game session ID has the following format: \"arn:aws:gamelift:<region>::gamesession/<fleet ID>/<game session ID>\". If provided, the custom string is used for the game session ID string. This value cannot be updated once a game session is created.</p>", + "DescribeGameSessionPlacementInput$PlacementId": "<p>Unique identifier for a game session placement to retrieve.</p>", + "GameSessionPlacement$PlacementId": "<p>Unique identifier for a game session placement.</p>", + "StartGameSessionPlacementInput$PlacementId": "<p>Unique identifier to assign to the new game session placement. This value is developer-defined. The value must be unique across all regions and cannot be reused unless you are resubmitting a cancelled or timed-out placement request.</p>", + "StopGameSessionPlacementInput$PlacementId": "<p>Unique identifier for a game session placement to cancel.</p>" } }, "IdempotentParameterMismatchException": { @@ -618,7 +752,7 @@ "InstanceAccess": { "base": "<p>Information required to remotely connect to a fleet instance. Access is requested by calling <a>GetInstanceAccess</a>. </p>", "refs": { - "GetInstanceAccessOutput$InstanceAccess": "<p>Object containing connection information for a fleet instance, including IP address and access credentials.</p>" + "GetInstanceAccessOutput$InstanceAccess": "<p>Object that contains connection information for a fleet instance, including IP address and access credentials.</p>" } }, "InstanceCredentials": { @@ -630,10 +764,10 @@ "InstanceId": { "base": null, "refs": { - "DescribeInstancesInput$InstanceId": "<p>Unique identifier for an instance. Specify an instance to retrieve information for or leave blank to get information on all instances in the fleet.</p>", - "GetInstanceAccessInput$InstanceId": "<p>Unique identifier for an instance. Specify the instance you want to get access to. You can access an instance in any status.</p>", - "Instance$InstanceId": "<p>Unique identifier for the instance.</p>", - "InstanceAccess$InstanceId": "<p>Unique identifier for the instance being accessed.</p>" + "DescribeInstancesInput$InstanceId": "<p>Unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.</p>", + "GetInstanceAccessInput$InstanceId": "<p>Unique identifier for an instance you want to get access to. You can access an instance in any status.</p>", + "Instance$InstanceId": "<p>Unique identifier for an instance.</p>", + "InstanceAccess$InstanceId": "<p>Unique identifier for an instance being accessed.</p>" } }, "InstanceList": { @@ -645,7 +779,7 @@ "InstanceStatus": { "base": null, "refs": { - "Instance$Status": "<p>Current status of the instance. Possible statuses include the following:</p> <ul> <li> <p> <b>PENDING</b> – The instance is in the process of being created and launching server processes as defined in the fleet's runtime configuration. </p> </li> <li> <p> <b>ACTIVE</b> – The instance has been successfully created and at least one server process has successfully launched and reported back to GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions. </p> </li> <li> <p> <b>TERMINATING</b> – The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.</p> </li> </ul>" + "Instance$Status": "<p>Current status of the instance. Possible statuses include the following:</p> <ul> <li> <p> <b>PENDING</b> – The instance is in the process of being created and launching server processes as defined in the fleet's runtime configuration. </p> </li> <li> <p> <b>ACTIVE</b> – The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions. </p> </li> <li> <p> <b>TERMINATING</b> – The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.</p> </li> </ul>" } }, "Integer": { @@ -678,14 +812,14 @@ "IpAddress": { "base": null, "refs": { - "GameSession$IpAddress": "<p>IP address of the game session. To connect to a GameLift server process, an app needs both the IP address and port number.</p>", + "GameSession$IpAddress": "<p>IP address of the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.</p>", "Instance$IpAddress": "<p>IP address assigned to the instance.</p>", "InstanceAccess$IpAddress": "<p>IP address assigned to the instance.</p>", "PlayerSession$IpAddress": "<p>Game session IP address. All player sessions reference the game session location.</p>" } }, "IpPermission": { - "base": "<p>A range of IP addresses and port settings that allow inbound traffic to connect to server processes on GameLift. Each game session hosted on a fleet is assigned a unique combination of IP address and port number, which must fall into the fleet's allowed ranges. This combination is included in the <a>GameSession</a> object. </p>", + "base": "<p>A range of IP addresses and port settings that allow inbound traffic to connect to server processes on Amazon GameLift. Each game session hosted on a fleet is assigned a unique combination of IP address and port number, which must fall into the fleet's allowed ranges. This combination is included in the <a>GameSession</a> object. </p>", "refs": { "IpPermissionsList$member": null } @@ -694,7 +828,7 @@ "base": null, "refs": { "CreateFleetInput$EC2InboundPermissions": "<p>Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. If no inbound permissions are set, including both IP address range and port range, the server processes in the fleet cannot accept connections. You can specify one or more sets of permissions for a fleet.</p>", - "DescribeFleetPortSettingsOutput$InboundPermissions": "<p>Object containing port settings for the requested fleet ID.</p>", + "DescribeFleetPortSettingsOutput$InboundPermissions": "<p>Object that contains port settings for the requested fleet ID.</p>", "UpdateFleetPortSettingsInput$InboundPermissionAuthorizations": "<p>Collection of port settings to be added to the fleet record.</p>", "UpdateFleetPortSettingsInput$InboundPermissionRevocations": "<p>Collection of port settings to be removed from the fleet record.</p>" } @@ -744,21 +878,21 @@ "base": null, "refs": { "PutScalingPolicyInput$MetricName": "<p>Name of the Amazon GameLift-defined metric that is used to trigger an adjustment.</p> <ul> <li> <p> <b>ActivatingGameSessions</b> – number of game sessions in the process of being created (game session status = <code>ACTIVATING</code>).</p> </li> <li> <p> <b>ActiveGameSessions</b> – number of game sessions currently running (game session status = <code>ACTIVE</code>).</p> </li> <li> <p> <b>CurrentPlayerSessions</b> – number of active or reserved player sessions (player session status = <code>ACTIVE</code> or <code>RESERVED</code>). </p> </li> <li> <p> <b>AvailablePlayerSessions</b> – number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number includes game sessions that are not currently accepting players (game session <code>PlayerSessionCreationPolicy</code> = <code>DENY_ALL</code>).</p> </li> <li> <p> <b>ActiveInstances</b> – number of instances currently running a game session.</p> </li> <li> <p> <b>IdleInstances</b> – number of instances not currently running a game session.</p> </li> </ul>", - "ScalingPolicy$MetricName": "<p>Name of the GameLift-defined metric that is used to trigger an adjustment.</p> <ul> <li> <p> <b>ActivatingGameSessions</b> – number of game sessions in the process of being created (game session status = <code>ACTIVATING</code>).</p> </li> <li> <p> <b>ActiveGameSessions</b> – number of game sessions currently running (game session status = <code>ACTIVE</code>).</p> </li> <li> <p> <b>CurrentPlayerSessions</b> – number of active or reserved player sessions (player session status = <code>ACTIVE</code> or <code>RESERVED</code>). </p> </li> <li> <p> <b>AvailablePlayerSessions</b> – number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number does include game sessions that are not currently accepting players (game session <code>PlayerSessionCreationPolicy</code> = <code>DENY_ALL</code>).</p> </li> <li> <p> <b>ActiveInstances</b> – number of instances currently running a game session.</p> </li> <li> <p> <b>IdleInstances</b> – number of instances not currently running a game session.</p> </li> </ul>" + "ScalingPolicy$MetricName": "<p>Name of the Amazon GameLift-defined metric that is used to trigger an adjustment.</p> <ul> <li> <p> <b>ActivatingGameSessions</b> – number of game sessions in the process of being created (game session status = <code>ACTIVATING</code>).</p> </li> <li> <p> <b>ActiveGameSessions</b> – number of game sessions currently running (game session status = <code>ACTIVE</code>).</p> </li> <li> <p> <b>CurrentPlayerSessions</b> – number of active or reserved player sessions (player session status = <code>ACTIVE</code> or <code>RESERVED</code>). </p> </li> <li> <p> <b>AvailablePlayerSessions</b> – number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number does include game sessions that are not currently accepting players (game session <code>PlayerSessionCreationPolicy</code> = <code>DENY_ALL</code>).</p> </li> <li> <p> <b>ActiveInstances</b> – number of instances currently running a game session.</p> </li> <li> <p> <b>IdleInstances</b> – number of instances not currently running a game session.</p> </li> </ul>" } }, "NonBlankAndLengthConstraintString": { "base": null, "refs": { - "Alias$Name": "<p>Descriptive label associated with an alias. Alias names do not need to be unique.</p>", - "CreateAliasInput$Name": "<p>Descriptive label associated with an alias. Alias names do not need to be unique.</p>", - "UpdateAliasInput$Name": "<p>Descriptive label associated with an alias. Alias names do not need to be unique.</p>" + "Alias$Name": "<p>Descriptive label that is associated with an alias. Alias names do not need to be unique.</p>", + "CreateAliasInput$Name": "<p>Descriptive label that is associated with an alias. Alias names do not need to be unique.</p>", + "UpdateAliasInput$Name": "<p>Descriptive label that is associated with an alias. Alias names do not need to be unique.</p>" } }, "NonBlankString": { "base": null, "refs": { - "IpPermission$IpRange": "<p>Range of allowed IP addresses. This value must be expressed in <a href=\"https://tools.ietf.org/id/cidr\">CIDR notation</a>. Example: \"<code>000.000.000.000/[subnet mask]</code>\" or optionally the shortened version \"<code>0.0.0.0/[subnet mask]</code>\".</p>" + "IpPermission$IpRange": "<p>Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: \"<code>000.000.000.000/[subnet mask]</code>\" or optionally the shortened version \"<code>0.0.0.0/[subnet mask]</code>\".</p>" } }, "NonEmptyString": { @@ -773,21 +907,21 @@ "GameSessionFullException$Message": null, "IdempotentParameterMismatchException$Message": null, "InstanceCredentials$UserName": "<p>User login string.</p>", - "InstanceCredentials$Secret": "<p>Secret string. For Windows instances, the secret is a password. For Linux instances, it is a private key.</p>", + "InstanceCredentials$Secret": "<p>Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it is a private key (which must be saved as a <code>.pem</code> file) for use with SSH.</p>", "InternalServiceException$Message": null, "InvalidFleetStatusException$Message": null, "InvalidGameSessionStatusException$Message": null, "InvalidRequestException$Message": null, "LimitExceededException$Message": null, - "ListAliasesInput$Name": "<p>Descriptive label associated with an alias. Alias names do not need to be unique.</p>", - "ListAliasesInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "ListAliasesOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "ListBuildsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "ListBuildsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "ListAliasesInput$Name": "<p>Descriptive label that is associated with an alias. Alias names do not need to be unique.</p>", + "ListAliasesInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "ListAliasesOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "ListBuildsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "ListBuildsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", "NotFoundException$Message": null, - "S3Location$Bucket": "<p>Amazon S3 bucket identifier.</p>", - "S3Location$Key": "<p>Amazon S3 bucket key.</p>", - "S3Location$RoleArn": "<p>Amazon resource number for the cross-account access role that allows GameLift access to the S3 bucket.</p>", + "S3Location$Bucket": "<p>Amazon S3 bucket identifier. This is the name of your S3 bucket.</p>", + "S3Location$Key": "<p>Name of the zip file containing your build files. </p>", + "S3Location$RoleArn": "<p>Amazon Resource Name (<a href=\"http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html\">ARN</a>) for the access role that allows Amazon GameLift to access your S3 bucket.</p>", "TerminalRoutingStrategyException$Message": null, "UnauthorizedException$Message": null } @@ -796,69 +930,79 @@ "base": null, "refs": { "CreateAliasInput$Description": "<p>Human-readable description of an alias.</p>", - "CreateBuildInput$Name": "<p>Descriptive label associated with a build. Build names do not need to be unique. A build name can be changed later using<code> <a>UpdateBuild</a> </code>.</p>", - "CreateBuildInput$Version": "<p>Version associated with this build. Version strings do not need to be unique to a build. A build version can be changed later using<code> <a>UpdateBuild</a> </code>.</p>", - "CreateFleetInput$Name": "<p>Descriptive label associated with a fleet. Fleet names do not need to be unique.</p>", + "CreateBuildInput$Name": "<p>Descriptive label that is associated with a build. Build names do not need to be unique. You can use <a>UpdateBuild</a> to change this value later. </p>", + "CreateBuildInput$Version": "<p>Version that is associated with this build. Version strings do not need to be unique. You can use <a>UpdateBuild</a> to change this value later. </p>", + "CreateFleetInput$Name": "<p>Descriptive label that is associated with a fleet. Fleet names do not need to be unique.</p>", "CreateFleetInput$Description": "<p>Human-readable description of a fleet.</p>", "CreateFleetInput$ServerLaunchPath": "<p>This parameter is no longer used. Instead, specify a server launch path using the <code>RuntimeConfiguration</code> parameter. (Requests that specify a server launch path and launch parameters instead of a runtime configuration will continue to work.)</p>", "CreateFleetInput$ServerLaunchParameters": "<p>This parameter is no longer used. Instead, specify server launch parameters in the <code>RuntimeConfiguration</code> parameter. (Requests that specify a server launch path and launch parameters instead of a runtime configuration will continue to work.)</p>", - "CreateGameSessionInput$Name": "<p>Descriptive label associated with a game session. Session names do not need to be unique.</p>", - "CreateGameSessionInput$CreatorId": "<p>Player ID identifying the person or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.</p>", - "CreatePlayerSessionInput$PlayerId": "<p>Unique identifier for the player to be added.</p>", - "DeleteScalingPolicyInput$Name": "<p>Descriptive label associated with a scaling policy. Policy names do not need to be unique.</p>", - "DescribeFleetAttributesInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", - "DescribeFleetAttributesOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "DescribeFleetCapacityInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", - "DescribeFleetCapacityOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "DescribeFleetEventsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "DescribeFleetEventsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "DescribeFleetUtilizationInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", - "DescribeFleetUtilizationOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "CreateGameSessionInput$Name": "<p>Descriptive label that is associated with a game session. Session names do not need to be unique.</p>", + "CreateGameSessionInput$CreatorId": "<p>$player-id; or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.</p>", + "CreatePlayerSessionInput$PlayerId": "<p>Unique identifier for a player. Player IDs are developer-defined.</p>", + "DeleteScalingPolicyInput$Name": "<p>Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.</p>", + "DescribeFleetAttributesInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", + "DescribeFleetAttributesOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeFleetCapacityInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", + "DescribeFleetCapacityOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeFleetEventsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "DescribeFleetEventsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeFleetUtilizationInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", + "DescribeFleetUtilizationOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", "DescribeGameSessionDetailsInput$StatusFilter": "<p>Game session status to filter results on. Possible game session statuses include ACTIVE, <code>TERMINATED</code>, <code>ACTIVATING</code> and <code>TERMINATING</code> (the last two are transitory). </p>", - "DescribeGameSessionDetailsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "DescribeGameSessionDetailsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeGameSessionDetailsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "DescribeGameSessionDetailsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeGameSessionQueuesInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "DescribeGameSessionQueuesOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", "DescribeGameSessionsInput$StatusFilter": "<p>Game session status to filter results on. Possible game session statuses include <code>ACTIVE</code>, <code>TERMINATED</code>, <code>ACTIVATING</code>, and <code>TERMINATING</code> (the last two are transitory). </p>", - "DescribeGameSessionsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "DescribeGameSessionsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "DescribeInstancesInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "DescribeInstancesOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "DescribePlayerSessionsInput$PlayerId": "<p>Unique identifier for a player.</p>", + "DescribeGameSessionsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "DescribeGameSessionsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeInstancesInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "DescribeInstancesOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribePlayerSessionsInput$PlayerId": "<p>Unique identifier for a player to retrieve player sessions for.</p>", "DescribePlayerSessionsInput$PlayerSessionStatusFilter": "<p>Player session status to filter results on.</p> <p>Possible player session statuses include the following:</p> <ul> <li> <p> <b>RESERVED</b> – The player session request has been received, but the player has not yet connected to the server process and/or been validated. </p> </li> <li> <p> <b>ACTIVE</b> – The player has been validated by the server process and is currently connected.</p> </li> <li> <p> <b>COMPLETED</b> – The player connection has been dropped.</p> </li> <li> <p> <b>TIMEDOUT</b> – A player session request was received, but the player did not connect and/or was not validated within the time-out limit (60 seconds).</p> </li> </ul>", - "DescribePlayerSessionsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.</p>", - "DescribePlayerSessionsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", - "DescribeScalingPoliciesInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "DescribeScalingPoliciesOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribePlayerSessionsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.</p>", + "DescribePlayerSessionsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DescribeScalingPoliciesInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "DescribeScalingPoliciesOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "DesiredPlayerSession$PlayerId": "<p>Unique identifier for a player to associate with the player session.</p>", "Event$EventId": "<p>Unique identifier for a fleet event.</p>", - "Event$ResourceId": "<p>Unique identifier for the resource, such as a fleet ID.</p>", + "Event$ResourceId": "<p>Unique identifier for an event resource, such as a fleet ID.</p>", "FleetAttributes$Description": "<p>Human-readable description of the fleet.</p>", - "FleetAttributes$Name": "<p>Descriptive label associated with a fleet. Fleet names do not need to be unique.</p>", - "FleetAttributes$ServerLaunchPath": "<p>Path to a game server executable in the fleet's build, specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths for fleets created after this date are specified in the fleet's <code> <a>RuntimeConfiguration</a> </code>.</p>", - "FleetAttributes$ServerLaunchParameters": "<p>Game server launch parameters specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after this date are specified in the fleet's <code> <a>RuntimeConfiguration</a> </code>.</p>", - "GameSession$GameSessionId": "<p>Unique identifier for a game session. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </p>", - "GameSession$Name": "<p>Descriptive label associated with a game session. Session names do not need to be unique.</p>", - "GameSession$CreatorId": "<p>Player ID of the person or entity that created the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions for a single player.</p>", + "FleetAttributes$Name": "<p>Descriptive label that is associated with a fleet. Fleet names do not need to be unique.</p>", + "FleetAttributes$ServerLaunchPath": "<p>Path to a game server executable in the fleet's build, specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths for fleets created after this date are specified in the fleet's <a>RuntimeConfiguration</a>.</p>", + "FleetAttributes$ServerLaunchParameters": "<p>Game server launch parameters specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after this date are specified in the fleet's <a>RuntimeConfiguration</a>.</p>", + "GameSession$GameSessionId": "<p>Unique identifier for the game session. A game session ID has the following format: \"arn:aws:gamelift:<region>::gamesession/<fleet ID>/<game session ID>\".</p>", + "GameSession$Name": "<p>Descriptive label that is associated with a game session. Session names do not need to be unique.</p>", + "GameSession$CreatorId": "<p>Unique identifier for a player. This ID is used to enforce a resource protection policy (if one exists), that limits the number of game sessions a player can create.</p>", + "GameSessionPlacement$GameSessionName": "<p>Descriptive label that is associated with a game session. Session names do not need to be unique.</p>", + "GameSessionPlacement$GameSessionArn": "<p>Identifier for the game session created by this placement request. This value exists only if the game session placement status is Completed. This identifier is unique across all regions.</p>", + "GameSessionPlacement$GameSessionRegion": "<p>Name of the region where the game session created by this placement request is running. This value exists only if the game session placement status is Completed.</p>", "GetGameSessionLogUrlOutput$PreSignedUrl": "<p>Location of the requested game session logs, available for download.</p>", - "ListFleetsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "ListFleetsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "ListFleetsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "ListFleetsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "PlayerDataMap$key": null, "PlayerIdList$member": null, - "PlayerSession$PlayerId": "<p>Unique identifier for a player.</p>", + "PlayerLatency$PlayerId": "<p>Unique identifier for a player associated with the latency data.</p>", + "PlayerLatency$RegionIdentifier": "<p>Name of the region that is associated with the latency value.</p>", + "PlayerSession$PlayerId": "<p>Unique identifier for a player that is associated with this player session.</p>", "PlayerSession$GameSessionId": "<p>Unique identifier for the game session that the player session is connected to.</p>", - "PutScalingPolicyInput$Name": "<p>Descriptive label associated with a scaling policy. Policy names do not need to be unique. A fleet can have only one scaling policy with the same name.</p>", - "PutScalingPolicyOutput$Name": "<p>Descriptive label associated with a scaling policy. Policy names do not need to be unique.</p>", - "ScalingPolicy$Name": "<p>Descriptive label associated with a scaling policy. Policy names do not need to be unique.</p>", - "SearchGameSessionsInput$FilterExpression": "<p>String containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are in ACTIVE status.</p> <p>A filter expression can contain one or multiple conditions. Each condition consists of the following:</p> <ul> <li> <p> <b>Operand</b> -- Name of a game session attribute. Valid values are <code>gameSessionName</code>, <code>gameSessionId</code>, <code>creationTimeMillis</code>, <code>playerSessionCount</code>, <code>maximumSessions</code>, <code>hasAvailablePlayerSessions</code>.</p> </li> <li> <p> <b>Comparator</b> -- Valid comparators are: <code>=</code>, <code><></code>, <code><</code>, <code>></code>, <code><=</code>, <code>>=</code>. </p> </li> <li> <p> <b>Value</b> -- Value to be searched for. Values can be numbers, boolean values (true/false) or strings. String values are case sensitive, enclosed in single quotes. Special characters must be escaped. Boolean and string values can only be used with the comparators <code>=</code> and <code><></code>. For example, the following filter expression searches on <code>gameSessionName</code>: \"<code>FilterExpression\": \"gameSessionName = 'Matt\\\\'s Awesome Game 1'\"</code>. </p> </li> </ul> <p>To chain multiple conditions in a single expression, use the logical keywords <code>AND</code>, <code>OR</code>, and <code>NOT</code> and parentheses as needed. For example: <code>x AND y AND NOT z</code>, <code>NOT (x OR y)</code>.</p> <p>Session search evaluates conditions from left to right using the following precedence rules:</p> <ol> <li> <p> <code>=</code>, <code><></code>, <code><</code>, <code>></code>, <code><=</code>, <code>>=</code> </p> </li> <li> <p>Parentheses</p> </li> <li> <p>NOT</p> </li> <li> <p>AND</p> </li> <li> <p>OR</p> </li> </ol> <p>For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot: <code>\"maximumSessions>=10 AND hasAvailablePlayerSessions=true\"</code>. </p>", + "PutScalingPolicyInput$Name": "<p>Descriptive label that is associated with a scaling policy. Policy names do not need to be unique. A fleet can have only one scaling policy with the same name.</p>", + "PutScalingPolicyOutput$Name": "<p>Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.</p>", + "ScalingPolicy$Name": "<p>Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.</p>", + "SearchGameSessionsInput$FilterExpression": "<p>String containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are in <code>ACTIVE</code> status.</p> <p>A filter expression can contain one or multiple conditions. Each condition consists of the following:</p> <ul> <li> <p> <b>Operand</b> -- Name of a game session attribute. Valid values are <code>gameSessionName</code>, <code>gameSessionId</code>, <code>creationTimeMillis</code>, <code>playerSessionCount</code>, <code>maximumSessions</code>, <code>hasAvailablePlayerSessions</code>.</p> </li> <li> <p> <b>Comparator</b> -- Valid comparators are: <code>=</code>, <code><></code>, <code><</code>, <code>></code>, <code><=</code>, <code>>=</code>. </p> </li> <li> <p> <b>Value</b> -- Value to be searched for. Values can be numbers, boolean values (true/false) or strings. String values are case sensitive, enclosed in single quotes. Special characters must be escaped. Boolean and string values can only be used with the comparators <code>=</code> and <code><></code>. For example, the following filter expression searches on <code>gameSessionName</code>: \"<code>FilterExpression\": \"gameSessionName = 'Matt\\\\'s Awesome Game 1'\"</code>. </p> </li> </ul> <p>To chain multiple conditions in a single expression, use the logical keywords <code>AND</code>, <code>OR</code>, and <code>NOT</code> and parentheses as needed. For example: <code>x AND y AND NOT z</code>, <code>NOT (x OR y)</code>.</p> <p>Session search evaluates conditions from left to right using the following precedence rules:</p> <ol> <li> <p> <code>=</code>, <code><></code>, <code><</code>, <code>></code>, <code><=</code>, <code>>=</code> </p> </li> <li> <p>Parentheses</p> </li> <li> <p>NOT</p> </li> <li> <p>AND</p> </li> <li> <p>OR</p> </li> </ol> <p>For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot: <code>\"maximumSessions>=10 AND hasAvailablePlayerSessions=true\"</code>. </p>", "SearchGameSessionsInput$SortExpression": "<p>Instructions on how to sort the search results. If no sort expression is included, the request returns results in random order. A sort expression consists of the following elements:</p> <ul> <li> <p> <b>Operand</b> -- Name of a game session attribute. Valid values are <code>gameSessionName</code>, <code>gameSessionId</code>, <code>creationTimeMillis</code>, <code>playerSessionCount</code>, <code>maximumSessions</code>, <code>hasAvailablePlayerSessions</code>.</p> </li> <li> <p> <b>Order</b> -- Valid sort orders are <code>ASC</code> (ascending) and <code>DESC</code> (descending).</p> </li> </ul> <p>For example, this sort expression returns the oldest active sessions first: <code>\"SortExpression\": \"creationTimeMillis ASC\"</code>. Results with a null value for the sort operand are returned at the end of the list.</p>", - "SearchGameSessionsInput$NextToken": "<p>Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", - "SearchGameSessionsOutput$NextToken": "<p>Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", + "SearchGameSessionsInput$NextToken": "<p>Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.</p>", + "SearchGameSessionsOutput$NextToken": "<p>Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.</p>", "ServerProcess$LaunchPath": "<p>Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances <code>C:\\game</code>, and for Linux instances <code>/local/game</code>. A Windows game build with an executable file located at <code>MyGame\\latest\\server.exe</code> must have a launch path of \"<code>C:\\game\\MyGame\\latest\\server.exe</code>\". A Linux game build with an executable file located at <code>MyGame/latest/server.exe</code> must have a launch path of \"<code>/local/game/MyGame/latest/server.exe</code>\". </p>", "ServerProcess$Parameters": "<p>Optional list of parameters to pass to the server executable on launch.</p>", + "StartGameSessionPlacementInput$GameSessionName": "<p>Descriptive label that is associated with a game session. Session names do not need to be unique.</p>", "StringList$member": null, "UpdateAliasInput$Description": "<p>Human-readable description of an alias.</p>", - "UpdateBuildInput$Name": "<p>Descriptive label associated with a build. Build names do not need to be unique.</p>", - "UpdateBuildInput$Version": "<p>Version associated with this build. Version strings do not need to be unique to a build.</p>", - "UpdateFleetAttributesInput$Name": "<p>Descriptive label associated with a fleet. Fleet names do not need to be unique.</p>", + "UpdateBuildInput$Name": "<p>Descriptive label that is associated with a build. Build names do not need to be unique. </p>", + "UpdateBuildInput$Version": "<p>Version that is associated with this build. Version strings do not need to be unique.</p>", + "UpdateFleetAttributesInput$Name": "<p>Descriptive label that is associated with a fleet. Fleet names do not need to be unique.</p>", "UpdateFleetAttributesInput$Description": "<p>Human-readable description of a fleet.</p>", - "UpdateGameSessionInput$Name": "<p>Descriptive label associated with a game session. Session names do not need to be unique.</p>" + "UpdateGameSessionInput$Name": "<p>Descriptive label that is associated with a game session. Session names do not need to be unique.</p>" } }, "NotFoundException": { @@ -870,22 +1014,50 @@ "base": null, "refs": { "Build$OperatingSystem": "<p>Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build.</p>", - "CreateBuildInput$OperatingSystem": "<p>Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build.</p>", + "CreateBuildInput$OperatingSystem": "<p>Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build. If your game build contains multiple executables, they all must run on the same operating system.</p>", "FleetAttributes$OperatingSystem": "<p>Operating system of the fleet's computing resources. A fleet's operating system depends on the OS specified for the build that is deployed on this fleet.</p>", "Instance$OperatingSystem": "<p>Operating system that is running on this instance. </p>", "InstanceAccess$OperatingSystem": "<p>Operating system that is running on the instance.</p>" } }, + "PlayerData": { + "base": null, + "refs": { + "CreatePlayerSessionInput$PlayerData": "<p>Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.</p>", + "DesiredPlayerSession$PlayerData": "<p>Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.</p>", + "PlayerDataMap$value": null, + "PlayerSession$PlayerData": "<p>Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. </p>" + } + }, + "PlayerDataMap": { + "base": null, + "refs": { + "CreatePlayerSessionsInput$PlayerDataMap": "<p>Map of string pairs, each specifying a player ID and a set of developer-defined information related to the player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Player data strings for player IDs not included in the <code>PlayerIds</code> parameter are ignored. </p>" + } + }, "PlayerIdList": { "base": null, "refs": { "CreatePlayerSessionsInput$PlayerIds": "<p>List of unique identifiers for the players to be added.</p>" } }, + "PlayerLatency": { + "base": "<p>Regional latency information for a player, used when requesting a new game session with <a>StartGameSessionPlacement</a>. This value indicates the amount of time lag that exists when the player is connected to a fleet in the specified region. The relative difference between a player's latency values for multiple regions are used to determine which fleets are best suited to place a new game session for the player. </p>", + "refs": { + "PlayerLatencyList$member": null + } + }, + "PlayerLatencyList": { + "base": null, + "refs": { + "GameSessionPlacement$PlayerLatencies": "<p>Set of values, expressed in milliseconds, indicating the amount of latency that players experience when connected to AWS regions.</p>", + "StartGameSessionPlacementInput$PlayerLatencies": "<p>Set of values, expressed in milliseconds, indicating the amount of latency that players experience when connected to AWS regions. This information is relevant when requesting player sessions. Latency information provided for player IDs not included in <i>DesiredPlayerSessions</i> are ignored.</p>" + } + }, "PlayerSession": { - "base": "<p>Properties describing a player session.</p>", + "base": "<p>Properties describing a player session. A player session represents either a player reservation for a game session or actual player activity in a game session. A player session object (including player data) is automatically passed to a game session when the player connects to the game session and is validated.</p> <p>Player session-related operations include:</p> <ul> <li> <p> <a>CreatePlayerSession</a> </p> </li> <li> <p> <a>CreatePlayerSessions</a> </p> </li> <li> <p> <a>DescribePlayerSessions</a> </p> </li> </ul>", "refs": { - "CreatePlayerSessionOutput$PlayerSession": "<p>Object containing the newly created player session record.</p>", + "CreatePlayerSessionOutput$PlayerSession": "<p>Object that describes the newly created player session record.</p>", "PlayerSessionList$member": null } }, @@ -899,7 +1071,7 @@ "PlayerSessionId": { "base": null, "refs": { - "DescribePlayerSessionsInput$PlayerSessionId": "<p>Unique identifier for a player session.</p>", + "DescribePlayerSessionsInput$PlayerSessionId": "<p>Unique identifier for a player session to retrieve.</p>", "PlayerSession$PlayerSessionId": "<p>Unique identifier for a player session.</p>" } }, @@ -919,10 +1091,10 @@ "PortNumber": { "base": null, "refs": { - "GameSession$Port": "<p>Port number for the game session. To connect to a GameLift server process, an app needs both the IP address and port number.</p>", + "GameSession$Port": "<p>Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.</p>", "IpPermission$FromPort": "<p>Starting value for a range of allowed port numbers.</p>", "IpPermission$ToPort": "<p>Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than <code>FromPort</code>.</p>", - "PlayerSession$Port": "<p>Port number for the game session. To connect to a GameLift server process, an app needs both the IP address and port number.</p>" + "PlayerSession$Port": "<p>Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.</p>" } }, "PositiveInteger": { @@ -933,6 +1105,7 @@ "DescribeFleetEventsInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>", "DescribeFleetUtilizationInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.</p>", "DescribeGameSessionDetailsInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>", + "DescribeGameSessionQueuesInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>", "DescribeGameSessionsInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>", "DescribeInstancesInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>", "DescribePlayerSessionsInput$Limit": "<p>Maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages. If a player session ID is specified, this parameter is ignored.</p>", @@ -993,7 +1166,7 @@ } }, "ResourceCreationLimitPolicy": { - "base": "<p>Policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: \"An individual player can create a maximum number of new game sessions within a specified time period\".</p> <p>The policy is evaluated when a player tries to create a new game session. For example, with a policy of 10 new game sessions and a time period of 60 minutes, on receiving a <code>CreateGameSession</code> request, GameLift checks that the player (identified by <code>CreatorId</code>) has created fewer than 10 game sessions in the past 60 minutes.</p>", + "base": "<p>Policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: \"An individual player can create a maximum number of new game sessions within a specified time period\".</p> <p>The policy is evaluated when a player tries to create a new game session. For example, with a policy of 10 new game sessions and a time period of 60 minutes, on receiving a <code>CreateGameSession</code> request, Amazon GameLift checks that the player (identified by <code>CreatorId</code>) has created fewer than 10 game sessions in the past 60 minutes.</p>", "refs": { "CreateFleetInput$ResourceCreationLimitPolicy": "<p>Policy that limits the number of game sessions an individual player can create over a span of time for this fleet.</p>", "FleetAttributes$ResourceCreationLimitPolicy": "<p>Fleet policy to limit the number of game sessions an individual player can create over a span of time.</p>", @@ -1003,9 +1176,9 @@ "RoutingStrategy": { "base": "<p>Routing configuration for a fleet alias.</p>", "refs": { - "Alias$RoutingStrategy": null, - "CreateAliasInput$RoutingStrategy": "<p>Object specifying the fleet and routing type to use for the alias.</p>", - "UpdateAliasInput$RoutingStrategy": "<p>Object specifying the fleet and routing type to use for the alias.</p>" + "Alias$RoutingStrategy": "<p>Alias configuration for the alias, including routing type and settings.</p>", + "CreateAliasInput$RoutingStrategy": "<p>Object that specifies the fleet and routing type to use for the alias.</p>", + "UpdateAliasInput$RoutingStrategy": "<p>Object that specifies the fleet and routing type to use for the alias.</p>" } }, "RoutingStrategyType": { @@ -1016,19 +1189,19 @@ } }, "RuntimeConfiguration": { - "base": "<p>Collection of server process configurations that describe what processes should be run on each instance in a fleet. An instance can launch and maintain multiple server processes based on the runtime configuration; it regularly checks for an updated runtime configuration and starts new server processes to match the latest version.</p> <p>The key purpose of a runtime configuration with multiple server process configurations is to be able to run more than one kind of game server in a single fleet. You can include configurations for more than one server executable in order to run two or more different programs to run on the same instance. This option might be useful, for example, to run more than one version of your game server on the same fleet. Another option is to specify configurations for the same server executable but with different launch parameters.</p> <p>A GameLift instance is limited to 50 processes running simultaneously. To calculate the total number of processes specified in a runtime configuration, add the values of the <code>ConcurrentExecutions</code> parameter for each <code> <a>ServerProcess</a> </code> object in the runtime configuration.</p>", + "base": "<p>Collection of server process configurations that describe what processes should be run on each instance in a fleet. An instance can launch and maintain multiple server processes based on the runtime configuration; it regularly checks for an updated runtime configuration and starts new server processes to match the latest version.</p> <p>The key purpose of a runtime configuration with multiple server process configurations is to be able to run more than one kind of game server in a single fleet. You can include configurations for more than one server executable in order to run two or more different programs to run on the same instance. This option might be useful, for example, to run more than one version of your game server on the same fleet. Another option is to specify configurations for the same server executable but with different launch parameters.</p> <p>A Amazon GameLift instance is limited to 50 processes running simultaneously. To calculate the total number of processes specified in a runtime configuration, add the values of the <code>ConcurrentExecutions</code> parameter for each <code> <a>ServerProcess</a> </code> object in the runtime configuration.</p>", "refs": { - "CreateFleetInput$RuntimeConfiguration": "<p>Instructions for launching server processes on each instance in the fleet. The runtime configuration for a fleet has a collection of server process configurations, one for each type of server process to run on an instance. A server process configuration specifies the location of the server executable, launch parameters, and the number of concurrent processes with that configuration to maintain on each instance. A <code>CreateFleet</code> request must include a runtime configuration with at least one server process configuration; otherwise the request will fail with an invalid request exception. (This parameter replaces the parameters <code>ServerLaunchPath</code> and <code>ServerLaunchParameters</code>; requests that contain values for these parameters instead of a runtime configuration will continue to work.) </p>", + "CreateFleetInput$RuntimeConfiguration": "<p>Instructions for launching server processes on each instance in the fleet. The runtime configuration for a fleet has a collection of server process configurations, one for each type of server process to run on an instance. A server process configuration specifies the location of the server executable, launch parameters, and the number of concurrent processes with that configuration to maintain on each instance. A CreateFleet request must include a runtime configuration with at least one server process configuration; otherwise the request will fail with an invalid request exception. (This parameter replaces the parameters <code>ServerLaunchPath</code> and <code>ServerLaunchParameters</code>; requests that contain values for these parameters instead of a runtime configuration will continue to work.) </p>", "DescribeRuntimeConfigurationOutput$RuntimeConfiguration": "<p>Instructions describing how server processes should be launched and maintained on each instance in the fleet.</p>", "UpdateRuntimeConfigurationInput$RuntimeConfiguration": "<p>Instructions for launching server processes on each instance in the fleet. The runtime configuration for a fleet has a collection of server process configurations, one for each type of server process to run on an instance. A server process configuration specifies the location of the server executable, launch parameters, and the number of concurrent processes with that configuration to maintain on each instance.</p>", "UpdateRuntimeConfigurationOutput$RuntimeConfiguration": "<p>The runtime configuration currently in force. If the update was successful, this object matches the one in the request.</p>" } }, "S3Location": { - "base": "<p>Location in Amazon Simple Storage Service (Amazon S3) where a build's files are stored. This location is assigned in response to a <a>CreateBuild</a> call, and is always in the same region as the service used to create the build. For more details see the <a href=\"http://aws.amazon.com/documentation/s3/\">Amazon S3 documentation</a>.</p>", + "base": "<p>Location in Amazon Simple Storage Service (Amazon S3) where build files can be stored for access by Amazon GameLift. This location is specified in a <a>CreateBuild</a> request. For more details, see the <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build\">Create a Build with Files in Amazon S3</a>.</p>", "refs": { - "CreateBuildInput$StorageLocation": null, - "CreateBuildOutput$StorageLocation": "<p>Amazon S3 path and key, identifying where the game build files are stored.</p>", + "CreateBuildInput$StorageLocation": "<p>Amazon S3 location of the game build files to be uploaded. The S3 bucket must be owned by the same AWS account that you're using to manage Amazon GameLift. It also must in the same region that you want to create a new build in. Before calling <code>CreateBuild</code> with this location, you must allow Amazon GameLift to access your Amazon S3 bucket (see <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build\">Create a Build with Files in Amazon S3</a>).</p>", + "CreateBuildOutput$StorageLocation": "<p>Amazon S3 location specified in the request.</p>", "RequestUploadCredentialsOutput$StorageLocation": "<p>Amazon S3 path and key, identifying where the game build files are stored.</p>" } }, @@ -1080,11 +1253,31 @@ "RuntimeConfiguration$ServerProcesses": "<p>Collection of server process configurations describing what server processes to run on each instance in a fleet</p>" } }, + "StartGameSessionPlacementInput": { + "base": null, + "refs": { + } + }, + "StartGameSessionPlacementOutput": { + "base": null, + "refs": { + } + }, + "StopGameSessionPlacementInput": { + "base": null, + "refs": { + } + }, + "StopGameSessionPlacementOutput": { + "base": null, + "refs": { + } + }, "StringList": { "base": null, "refs": { - "CreateFleetInput$LogPaths": "<p>Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log files in this location. These logs are in addition to game session logs; see more on game session logs in the <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code\">Amazon GameLift Developer Guide</a>. If no default log path for a fleet is specified, GameLift will automatically upload logs stored on each instance at <code>C:\\game\\logs</code> (for Windows) or <code>/local/game/logs</code> (for Linux). Use the GameLift console to access stored logs. </p>", - "FleetAttributes$LogPaths": "<p>Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log files in this location. These logs are in addition to game session logs; see more on game session logs in the <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code\">Amazon GameLift Developer Guide</a>. If no default log path for a fleet is specified, GameLift will automatically upload logs that are stored on each instance at <code>C:\\game\\logs</code> (for Windows) or <code>/local/game/logs</code> (for Linux). Use the GameLift console to access stored logs. </p>" + "CreateFleetInput$LogPaths": "<p>This parameter is no longer used. Instead, to specify where Amazon GameLift should store log files once a server process shuts down, use the Amazon GameLift server API <code>ProcessReady()</code> and specify one or more directory paths in <code>logParameters</code>. See more information in the <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api-ref.html#gamelift-sdk-server-api-ref-dataypes-process\">Server API Reference</a>. </p>", + "FleetAttributes$LogPaths": "<p>Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log files in this location. These logs are in addition to game session logs; see more on game session logs in the <a href=\"http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code\">Amazon GameLift Developer Guide</a>. If no default log path for a fleet is specified, Amazon GameLift will automatically upload logs that are stored on each instance at <code>C:\\game\\logs</code> (for Windows) or <code>/local/game/logs</code> (for Linux). Use the Amazon GameLift console to access stored logs. </p>" } }, "TerminalRoutingStrategyException": { @@ -1095,19 +1288,21 @@ "Timestamp": { "base": null, "refs": { - "Alias$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "Alias$LastUpdatedTime": "<p>Time stamp indicating when this data object was last modified. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "Build$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", + "Alias$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "Alias$LastUpdatedTime": "<p>Time stamp indicating when this data object was last modified. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "Build$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", "DescribeFleetEventsInput$StartTime": "<p>Earliest date to retrieve event logs for. If no start time is specified, this call returns entries starting from when the fleet was created to the specified end time. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", "DescribeFleetEventsInput$EndTime": "<p>Most recent date to retrieve event logs for. If no end time is specified, this call returns entries from the specified start time up to the present. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "Event$EventTime": "<p>Time stamp indicating when this event occurred. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "FleetAttributes$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "FleetAttributes$TerminationTime": "<p>Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "GameSession$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "GameSession$TerminationTime": "<p>Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "Instance$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "PlayerSession$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>", - "PlayerSession$TerminationTime": "<p>Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").</p>" + "Event$EventTime": "<p>Time stamp indicating when this event occurred. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "FleetAttributes$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "FleetAttributes$TerminationTime": "<p>Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "GameSession$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "GameSession$TerminationTime": "<p>Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "GameSessionPlacement$StartTime": "<p>Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "GameSessionPlacement$EndTime": "<p>Time stamp indicating when this request was completed, cancelled, or timed out.</p>", + "Instance$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "PlayerSession$CreationTime": "<p>Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>", + "PlayerSession$TerminationTime": "<p>Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").</p>" } }, "UnauthorizedException": { @@ -1175,6 +1370,16 @@ "refs": { } }, + "UpdateGameSessionQueueInput": { + "base": null, + "refs": { + } + }, + "UpdateGameSessionQueueOutput": { + "base": null, + "refs": { + } + }, "UpdateRuntimeConfigurationInput": { "base": "<p>Represents the input for a request action.</p>", "refs": { @@ -1189,6 +1394,7 @@ "base": null, "refs": { "CreateGameSessionInput$MaximumPlayerSessionCount": "<p>Maximum number of players that can be connected simultaneously to the game session.</p>", + "CreateGameSessionQueueInput$TimeoutInSeconds": "<p>Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status.</p>", "EC2InstanceCounts$DESIRED": "<p>Ideal number of active instances in the fleet.</p>", "EC2InstanceCounts$MINIMUM": "<p>Minimum value allowed for the fleet's instance count.</p>", "EC2InstanceCounts$MAXIMUM": "<p>Maximum value allowed for the fleet's instance count.</p>", @@ -1203,13 +1409,17 @@ "FleetUtilization$CurrentPlayerSessionCount": "<p>Number of active player sessions currently being hosted on all instances in the fleet.</p>", "FleetUtilization$MaximumPlayerSessionCount": "<p>Maximum players allowed across all game sessions currently being hosted on all instances in the fleet.</p>", "GameSession$CurrentPlayerSessionCount": "<p>Number of players currently in the game session.</p>", - "GameSession$MaximumPlayerSessionCount": "<p>Maximum number of players allowed in the game session.</p>", + "GameSession$MaximumPlayerSessionCount": "<p>Maximum number of players that can be connected simultaneously to the game session.</p>", + "GameSessionPlacement$MaximumPlayerSessionCount": "<p>Maximum number of players that can be connected simultaneously to the game session.</p>", + "GameSessionQueue$TimeoutInSeconds": "<p>Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status.</p>", "ResourceCreationLimitPolicy$NewGameSessionsPerCreator": "<p>Maximum number of game sessions that an individual can create during the policy period. </p>", "ResourceCreationLimitPolicy$PolicyPeriodInMinutes": "<p>Time span used in evaluating the resource creation limit policy. </p>", + "StartGameSessionPlacementInput$MaximumPlayerSessionCount": "<p>Maximum number of players that can be connected simultaneously to the game session.</p>", "UpdateFleetCapacityInput$DesiredInstances": "<p>Number of EC2 instances you want this fleet to host.</p>", "UpdateFleetCapacityInput$MinSize": "<p>Minimum value allowed for the fleet's instance count. Default if not set is 0.</p>", "UpdateFleetCapacityInput$MaxSize": "<p>Maximum value allowed for the fleet's instance count. Default if not set is 1.</p>", - "UpdateGameSessionInput$MaximumPlayerSessionCount": "<p>Maximum number of players that can be simultaneously connected to the game session.</p>" + "UpdateGameSessionInput$MaximumPlayerSessionCount": "<p>Maximum number of players that can be connected simultaneously to the game session.</p>", + "UpdateGameSessionQueueInput$TimeoutInSeconds": "<p>Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status.</p>" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json index ffd8b1c0..b38c1899 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json @@ -2530,6 +2530,7 @@ "EvalDecision":{"shape":"PolicyEvaluationDecisionType"}, "MatchedStatements":{"shape":"StatementListType"}, "MissingContextValues":{"shape":"ContextKeyNamesResultListType"}, + "OrganizationsDecisionDetail":{"shape":"OrganizationsDecisionDetail"}, "EvalDecisionDetails":{"shape":"EvalDecisionDetailsType"}, "ResourceSpecificResults":{"shape":"ResourceSpecificResultListType"} } @@ -3512,6 +3513,12 @@ "max":255, "min":1 }, + "OrganizationsDecisionDetail":{ + "type":"structure", + "members":{ + "AllowedByOrganizations":{"shape":"booleanType"} + } + }, "PasswordPolicy":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json index 52f4f732..cf1f47a4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json @@ -118,7 +118,7 @@ "UpdateSigningCertificate": "<p>Changes the status of the specified user signing certificate from active to disabled, or vice versa. This action can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.</p> <p>If the <code>UserName</code> field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.</p>", "UpdateUser": "<p>Updates the name and/or the path of the specified IAM user.</p> <important> <p> You should understand the implications of changing an IAM user's path or name. For more information, see <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_manage.html#id_users_renaming\">Renaming an IAM User</a> and <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_rename.html\">Renaming an IAM Group</a> in the <i>IAM User Guide</i>.</p> </important> <note> <p> To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html\">Permissions and Policies</a>. </p> </note>", "UploadSSHPublicKey": "<p>Uploads an SSH public key and associates it with the specified IAM user.</p> <p>The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see <a href=\"http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html\">Set up AWS CodeCommit for SSH Connections</a> in the <i>AWS CodeCommit User Guide</i>.</p>", - "UploadServerCertificate": "<p>Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.</p> <p>For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html\">Working with Server Certificates</a> in the <i>IAM User Guide</i>.</p> <p>For information about the number of server certificates you can upload, see <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html\">Limitations on IAM Entities and Objects</a> in the <i>IAM User Guide</i>.</p> <note> <p>Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling <code>UploadServerCertificate</code>. For information about setting up signatures and authorization through the API, go to <a href=\"http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html\">Signing AWS API Requests</a> in the <i>AWS General Reference</i>. For general information about using the Query API with IAM, go to <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/programming.html\">Calling the API by Making HTTP Query Requests</a> in the <i>IAM User Guide</i>.</p> </note>", + "UploadServerCertificate": "<p>Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.</p> <p>We recommend that you use <a href=\"https://aws.amazon.com/certificate-manager/\">AWS Certificate Manager</a> to provision, manage, and deploy your server certificates. With ACM you can request a certificate, deploy it to AWS resources, and let ACM handle certificate renewals for you. Certificates provided by ACM are free. For more information about using ACM, see the <a href=\"http://docs.aws.amazon.com/acm/latest/userguide/\">AWS Certificate Manager User Guide</a>.</p> <p>For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html\">Working with Server Certificates</a> in the <i>IAM User Guide</i>.</p> <p>For information about the number of server certificates you can upload, see <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html\">Limitations on IAM Entities and Objects</a> in the <i>IAM User Guide</i>.</p> <note> <p>Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling <code>UploadServerCertificate</code>. For information about setting up signatures and authorization through the API, go to <a href=\"http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html\">Signing AWS API Requests</a> in the <i>AWS General Reference</i>. For general information about using the Query API with IAM, go to <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/programming.html\">Calling the API by Making HTTP Query Requests</a> in the <i>IAM User Guide</i>.</p> </note>", "UploadSigningCertificate": "<p>Uploads an X.509 signing certificate and associates it with the specified IAM user. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is <code>Active</code>.</p> <p>If the <code>UserName</code> field is not specified, the IAM user name is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.</p> <note> <p>Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling <code>UploadSigningCertificate</code>. For information about setting up signatures and authorization through the API, go to <a href=\"http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html\">Signing AWS API Requests</a> in the <i>AWS General Reference</i>. For general information about using the Query API with IAM, go to <a href=\"http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html\">Making Query Requests</a> in the <i>IAM User Guide</i>.</p> </note>" }, "shapes": { @@ -1138,6 +1138,12 @@ "GetOpenIDConnectProviderResponse$Url": "<p>The URL that the IAM OIDC provider resource object is associated with. For more information, see <a>CreateOpenIDConnectProvider</a>.</p>" } }, + "OrganizationsDecisionDetail": { + "base": "<p>Contains information about AWS Organizations's affect on a policy simulation.</p>", + "refs": { + "EvaluationResult$OrganizationsDecisionDetail": "<p>A structure that details how AWS Organizations and its service control policies affect the results of the simulation. Only applies if the simulated user's account is part of an organization.</p>" + } + }, "PasswordPolicy": { "base": "<p>Contains information about the account password policy.</p> <p> This data type is used as a response element in the <a>GetAccountPasswordPolicy</a> action. </p>", "refs": { @@ -1773,6 +1779,7 @@ "ListVirtualMFADevicesResponse$IsTruncated": "<p>A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the <code>Marker</code> request parameter to retrieve more items. Note that IAM might return fewer than the <code>MaxItems</code> number of results even when there are more results available. We recommend that you check <code>IsTruncated</code> after every call to ensure that you receive all of your results.</p>", "LoginProfile$PasswordResetRequired": "<p>Specifies whether the user is required to set a new password on next sign-in.</p>", "ManagedPolicyDetail$IsAttachable": "<p>Specifies whether the policy can be attached to an IAM user, group, or role.</p>", + "OrganizationsDecisionDetail$AllowedByOrganizations": "<p>Specifies whether the simulated action is allowed by the AWS Organizations service control policies that impact the simulated user's account.</p>", "PasswordPolicy$RequireSymbols": "<p>Specifies whether to require symbols for IAM user passwords.</p>", "PasswordPolicy$RequireNumbers": "<p>Specifies whether to require numbers for IAM user passwords.</p>", "PasswordPolicy$RequireUppercaseCharacters": "<p>Specifies whether to require uppercase characters for IAM user passwords.</p>", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json index c476fe16..3ac7a424 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json @@ -138,26 +138,26 @@ "ListSAMLProviders": { "result_key": "SAMLProviderList" }, - "ListServerCertificates": { + "ListSSHPublicKeys": { "input_token": "Marker", "limit_key": "MaxItems", "more_results": "IsTruncated", "output_token": "Marker", - "result_key": "ServerCertificateMetadataList" + "result_key": "SSHPublicKeys" }, - "ListSigningCertificates": { + "ListServerCertificates": { "input_token": "Marker", "limit_key": "MaxItems", "more_results": "IsTruncated", "output_token": "Marker", - "result_key": "Certificates" + "result_key": "ServerCertificateMetadataList" }, - "ListSSHPublicKeys": { + "ListSigningCertificates": { "input_token": "Marker", "limit_key": "MaxItems", "more_results": "IsTruncated", "output_token": "Marker", - "result_key": "SSHPublicKeys" + "result_key": "Certificates" }, "ListUserPolicies": { "input_token": "Marker", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json index 0cf94f01..f1bf92df 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json @@ -214,6 +214,7 @@ }, "output":{"shape":"CreateVPCAssociationAuthorizationResponse"}, "errors":[ + {"shape":"ConcurrentModification"}, {"shape":"TooManyVPCAssociationAuthorizations"}, {"shape":"NoSuchHostedZone"}, {"shape":"InvalidVPCId"}, @@ -307,6 +308,7 @@ }, "output":{"shape":"DeleteVPCAssociationAuthorizationResponse"}, "errors":[ + {"shape":"ConcurrentModification"}, {"shape":"VPCAssociationAuthorizationNotFound"}, {"shape":"NoSuchHostedZone"}, {"shape":"InvalidVPCId"}, @@ -2836,7 +2838,7 @@ }, "SubnetMask":{ "type":"string", - "max":2, + "max":3, "min":0 }, "TTL":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json index 3cfcddc0..bcdde4ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json @@ -3,9 +3,9 @@ "service": null, "operations": { "AssociateVPCWithHostedZone": "<p>Associates an Amazon VPC with a private hosted zone. </p> <important> <p>To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public hosted zone into a private hosted zone.</p> </important> <p>Send a <code>POST</code> request to the <code>/2013-04-01/hostedzone/<i>hosted zone ID</i>/associatevpc</code> resource. The request body must include a document with an <code>AssociateVPCWithHostedZoneRequest</code> element. The response contains a <code>ChangeInfo</code> data type that you can use to track the progress of the request. </p> <note> <p>If you want to associate a VPC that was created by using one AWS account with a private hosted zone that was created by using a different account, the AWS account that created the private hosted zone must first submit a <code>CreateVPCAssociationAuthorization</code> request. Then the account that created the VPC must submit an <code>AssociateVPCWithHostedZone</code> request.</p> </note>", - "ChangeResourceRecordSets": "<p>Create, change, update, or delete authoritative DNS information on all Amazon Route 53 servers. Send a <code>POST</code> request to: </p> <p> <code>/2013-04-01/hostedzone/<i>Amazon Route 53 hosted Zone ID</i>/rrset</code> resource. </p> <p>The request body must include a document with a <code>ChangeResourceRecordSetsRequest</code> element. The request body contains a list of change items, known as a change batch. Change batches are considered transactional changes. When using the Amazon Route 53 API to change resource record sets, Amazon Route 53 either makes all or none of the changes in a change batch request. This ensures that Amazon Route 53 never partially implements the intended changes to the resource record sets in a hosted zone. </p> <p>For example, a change batch request that deletes the <code>CNAME</code> record for www.example.com and creates an alias resource record set for www.example.com. Amazon Route 53 deletes the first resource record set and creates the second resource record set in a single operation. If either the <code>DELETE</code> or the <code>CREATE</code> action fails, then both changes (plus any other changes in the batch) fail, and the original <code>CNAME</code> record continues to exist.</p> <important> <p>Due to the nature of transactional changes, you can't delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Amazon Route 53 returns an <code>InvalidChangeBatch</code> error.</p> </important> <note> <p>To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the Amazon Route 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, then associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), in the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing as expected. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html\">Using Traffic Flow to Route DNS Traffic</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </note> <p>Use <code>ChangeResourceRecordsSetsRequest</code> to perform the following actions:</p> <ul> <li> <p> <code>CREATE</code>: Creates a resource record set that has the specified values.</p> </li> <li> <p> <code>DELETE</code>: Deletes an existing resource record set that has the specified values.</p> </li> <li> <p> <code>UPSERT</code>: If a resource record set does not already exist, AWS creates it. If a resource set does exist, Amazon Route 53 updates it with the values in the request. </p> </li> </ul> <p>The values that you need to include in the request depend on the type of resource record set that you're creating, deleting, or updating:</p> <p> <b>Basic resource record sets (excluding alias, failover, geolocation, latency, and weighted resource record sets)</b> </p> <ul> <li> <p> <code>Name</code> </p> </li> <li> <p> <code>Type</code> </p> </li> <li> <p> <code>TTL</code> </p> </li> </ul> <p> <b>Failover, geolocation, latency, or weighted resource record sets (excluding alias resource record sets)</b> </p> <ul> <li> <p> <code>Name</code> </p> </li> <li> <p> <code>Type</code> </p> </li> <li> <p> <code>TTL</code> </p> </li> <li> <p> <code>SetIdentifier</code> </p> </li> </ul> <p> <b>Alias resource record sets (including failover alias, geolocation alias, latency alias, and weighted alias resource record sets)</b> </p> <ul> <li> <p> <code>Name</code> </p> </li> <li> <p> <code>Type</code> </p> </li> <li> <p> <code>AliasTarget</code> (includes <code>DNSName</code>, <code>EvaluateTargetHealth</code>, and <code>HostedZoneId</code>)</p> </li> <li> <p> <code>SetIdentifier</code> (for failover, geolocation, latency, and weighted resource record sets)</p> </li> </ul> <p>When you submit a <code>ChangeResourceRecordSets</code> request, Amazon Route 53 propagates your changes to all of the Amazon Route 53 authoritative DNS servers. While your changes are propagating, <code>GetChange</code> returns a status of <code>PENDING</code>. When propagation is complete, <code>GetChange</code> returns a status of <code>INSYNC</code>. Changes generally propagate to all Amazon Route 53 name servers in a few minutes. In rare circumstances, propagation can take up to 30 minutes. For more information, see <a>GetChange</a> </p> <p>For information about the limits on a <code>ChangeResourceRecordSets</code> request, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html\">Limits</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>", + "ChangeResourceRecordSets": "<p>Create, change, update, or delete authoritative DNS information on all Amazon Route 53 servers. Send a <code>POST</code> request to: </p> <p> <code>/2013-04-01/hostedzone/<i>Amazon Route 53 hosted Zone ID</i>/rrset</code> resource. </p> <p> <b>Change Batches and Transactional Changes</b> </p> <p>The request body must include a document with a <code>ChangeResourceRecordSetsRequest</code> element. The request body contains a list of change items, known as a change batch. Change batches are considered transactional changes. When using the Amazon Route 53 API to change resource record sets, Amazon Route 53 either makes all or none of the changes in a change batch request. This ensures that Amazon Route 53 never partially implements the intended changes to the resource record sets in a hosted zone. </p> <p>For example, a change batch request that deletes the <code>CNAME</code> record for www.example.com and creates an alias resource record set for www.example.com. Amazon Route 53 deletes the first resource record set and creates the second resource record set in a single operation. If either the <code>DELETE</code> or the <code>CREATE</code> action fails, then both changes (plus any other changes in the batch) fail, and the original <code>CNAME</code> record continues to exist.</p> <important> <p>Due to the nature of transactional changes, you can't delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Amazon Route 53 returns an <code>InvalidChangeBatch</code> error.</p> </important> <p> <b>Traffic Flow</b> </p> <p>To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the Amazon Route 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, then associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), in the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing as expected. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html\">Using Traffic Flow to Route DNS Traffic</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p> <b>Create, Delete, and Upsert</b> </p> <p>Use <code>ChangeResourceRecordsSetsRequest</code> to perform the following actions:</p> <ul> <li> <p> <code>CREATE</code>: Creates a resource record set that has the specified values.</p> </li> <li> <p> <code>DELETE</code>: Deletes an existing resource record set that has the specified values.</p> </li> <li> <p> <code>UPSERT</code>: If a resource record set does not already exist, AWS creates it. If a resource set does exist, Amazon Route 53 updates it with the values in the request. </p> </li> </ul> <p> <b>Syntaxes for Creating, Updating, and Deleting Resource Record Sets</b> </p> <p>The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as weighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax. </p> <p>For an example for each type of resource record set, see \"Examples.\"</p> <p>Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of resource record set that you can create, delete, or update by using <code>ChangeResourceRecordSets</code>. </p> <p> <b>Change Propagation to Amazon Route 53 DNS Servers</b> </p> <p>When you submit a <code>ChangeResourceRecordSets</code> request, Amazon Route 53 propagates your changes to all of the Amazon Route 53 authoritative DNS servers. While your changes are propagating, <code>GetChange</code> returns a status of <code>PENDING</code>. When propagation is complete, <code>GetChange</code> returns a status of <code>INSYNC</code>. Changes generally propagate to all Amazon Route 53 name servers in a few minutes. In rare circumstances, propagation can take up to 30 minutes. For more information, see <a>GetChange</a>.</p> <p> <b>Limits on ChangeResourceRecordSets Requests</b> </p> <p>For information about the limits on a <code>ChangeResourceRecordSets</code> request, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html\">Limits</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>", "ChangeTagsForResource": "<p>Adds, edits, or deletes tags for a health check or a hosted zone.</p> <p>For information about using tags for cost allocation, see <a href=\"http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html\">Using Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User Guide</i>.</p>", - "CreateHealthCheck": "<p>Creates a new health check.</p> <p>To create a new health check, send a <code>POST</code> request to the <code>/2013-04-01/healthcheck</code> resource. The request body must include a document with a <code>CreateHealthCheckRequest</code> element. The response returns the <code>CreateHealthCheckResponse</code> element, containing the health check ID specified when adding health check to a resource record set. For information about adding health checks to resource record sets, see <a>ResourceRecordSet$HealthCheckId</a> in <a>ChangeResourceRecordSets</a>. </p> <p>If you are registering EC2 instances with an Elastic Load Balancing (ELB) load balancer, do not create Amazon Route 53 health checks for the EC2 instances. When you register an EC2 instance with a load balancer, you configure settings for an ELB health check, which performs a similar function to an Amazon Route 53 health check.</p> <p>You can associate health checks with failover resource record sets in a private hosted zone. Note the following:</p> <ul> <li> <p>Amazon Route 53 health checkers are outside the VPC. To check the health of an endpoint within a VPC by IP address, you must assign a public IP address to the instance in the VPC.</p> </li> <li> <p>You can configure a health checker to check the health of an external resource that the instance relies on, such as a database server.</p> </li> <li> <p>You can create a CloudWatch metric, associate an alarm with the metric, and then create a health check that is based on the state of the alarm. For example, you might create a CloudWatch metric that checks the status of the Amazon EC2 <code>StatusCheckFailed</code> metric, add an alarm to the metric, and then create a health check that is based on the state of the alarm. For information about creating CloudWatch metrics and alarms by using the CloudWatch console, see the <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html\">Amazon CloudWatch User Guide</a>.</p> </li> </ul>", + "CreateHealthCheck": "<p>Creates a new health check.</p> <p>To create a new health check, send a <code>POST</code> request to the <code>/2013-04-01/healthcheck</code> resource. The request body must include a document with a <code>CreateHealthCheckRequest</code> element. The response returns the <code>CreateHealthCheckResponse</code> element, containing the health check ID specified when adding health check to a resource record set. For information about adding health checks to resource record sets, see <a>ResourceRecordSet$HealthCheckId</a> in <a>ChangeResourceRecordSets</a>. </p> <p>If you're registering EC2 instances with an Elastic Load Balancing (ELB) load balancer, do not create Amazon Route 53 health checks for the EC2 instances. When you register an EC2 instance with a load balancer, you configure settings for an ELB health check, which performs a similar function to an Amazon Route 53 health check.</p> <p>You can associate health checks with failover resource record sets in a private hosted zone. Note the following:</p> <ul> <li> <p>Amazon Route 53 health checkers are outside the VPC. To check the health of an endpoint within a VPC by IP address, you must assign a public IP address to the instance in the VPC.</p> </li> <li> <p>You can configure a health checker to check the health of an external resource that the instance relies on, such as a database server.</p> </li> <li> <p>You can create a CloudWatch metric, associate an alarm with the metric, and then create a health check that is based on the state of the alarm. For example, you might create a CloudWatch metric that checks the status of the Amazon EC2 <code>StatusCheckFailed</code> metric, add an alarm to the metric, and then create a health check that is based on the state of the alarm. For information about creating CloudWatch metrics and alarms by using the CloudWatch console, see the <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html\">Amazon CloudWatch User Guide</a>.</p> </li> </ul>", "CreateHostedZone": "<p>Creates a new public hosted zone, used to specify how the Domain Name System (DNS) routes traffic on the Internet for a domain, such as example.com, and its subdomains. </p> <important> <p>Public hosted zones can't be converted to a private hosted zone or vice versa. Instead, create a new hosted zone with the same name and create new resource record sets.</p> </important> <p>Send a <code>POST</code> request to the <code>/2013-04-01/hostedzone</code> resource. The request body must include a document with a <code>CreateHostedZoneRequest</code> element. The response returns the <code>CreateHostedZoneResponse</code> element containing metadata about the hosted zone.</p> <p>Fore more information about charges for hosted zones, see <a href=\"http://aws.amazon.com/route53/pricing/\">Amazon Route 53 Pricing</a>.</p> <p>Note the following:</p> <ul> <li> <p>You can't create a hosted zone for a top-level domain (TLD).</p> </li> <li> <p>Amazon Route 53 automatically creates a default SOA record and four NS records for the zone. For more information about SOA and NS records, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html\">NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> <li> <p>If your domain is registered with a registrar other than Amazon Route 53, you must update the name servers with your registrar to make Amazon Route 53 your DNS service. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/creating-migrating.html\">Configuring Amazon Route 53 as your DNS Service</a> in the <i>Amazon Route 53 Developer's Guide</i>.</p> </li> </ul> <p>After creating a zone, its initial status is <code>PENDING</code>. This means that it is not yet available on all DNS servers. The status of the zone changes to <code>INSYNC</code> when the NS and SOA records are available on all Amazon Route 53 DNS servers. </p> <p>When trying to create a hosted zone using a reusable delegation set, specify an optional DelegationSetId, and Amazon Route 53 would assign those 4 NS records for the zone, instead of allotting a new one.</p>", "CreateReusableDelegationSet": "<p>Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones. If a hosted zoned ID is specified, <code>CreateReusableDelegationSet</code> marks the delegation set associated with that zone as reusable</p> <p>Send a <code>POST</code> request to the <code>/2013-04-01/delegationset</code> resource. The request body must include a document with a <code>CreateReusableDelegationSetRequest</code> element.</p> <note> <p>A reusable delegation set can't be associated with a private hosted zone/</p> </note> <p>For more information, including a procedure on how to create and configure a reusable delegation set (also known as white label name servers), see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html\">Configuring White Label Name Servers</a>.</p>", "CreateTrafficPolicy": "<p>Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).</p> <p>Send a <code>POST</code> request to the <code>/2013-04-01/trafficpolicy</code> resource. The request body must include a document with a <code>CreateTrafficPolicyRequest</code> element. The response includes the <code>CreateTrafficPolicyResponse</code> element, which contains information about the new traffic policy.</p>", @@ -20,7 +20,7 @@ "DeleteVPCAssociationAuthorization": "<p>Removes authorization to submit an <code>AssociateVPCWithHostedZone</code> request to associate a specified VPC with a hosted zone that was created by a different account. You must use the account that created the hosted zone to submit a <code>DeleteVPCAssociationAuthorization</code> request.</p> <important> <p>Sending this request only prevents the AWS account that created the VPC from associating the VPC with the Amazon Route 53 hosted zone in the future. If the VPC is already associated with the hosted zone, <code>DeleteVPCAssociationAuthorization</code> won't disassociate the VPC from the hosted zone. If you want to delete an existing association, use <code>DisassociateVPCFromHostedZone</code>.</p> </important> <p>Send a <code>DELETE</code> request to the <code>/2013-04-01/hostedzone/<i>hosted zone ID</i>/deauthorizevpcassociation</code> resource. The request body must include a document with a <code>DeleteVPCAssociationAuthorizationRequest</code> element.</p>", "DisassociateVPCFromHostedZone": "<p>Disassociates a VPC from a Amazon Route 53 private hosted zone. </p> <note> <p>You can't disassociate the last VPC from a private hosted zone.</p> </note> <p>Send a <code>POST</code> request to the <code>/2013-04-01/hostedzone/<i>hosted zone ID</i>/disassociatevpc</code> resource. The request body must include a document with a <code>DisassociateVPCFromHostedZoneRequest</code> element. The response includes a <code>DisassociateVPCFromHostedZoneResponse</code> element.</p> <important> <p>You can't disassociate a VPC from a private hosted zone when only one VPC is associated with the hosted zone. You also can't convert a private hosted zone into a public hosted zone.</p> </important>", "GetChange": "<p>Returns the current status of a change batch request. The status is one of the following values:</p> <ul> <li> <p> <code>PENDING</code> indicates that the changes in this request have not replicated to all Amazon Route 53 DNS servers. This is the initial status of all change batch requests.</p> </li> <li> <p> <code>INSYNC</code> indicates that the changes have replicated to all Amazon Route 53 DNS servers. </p> </li> </ul>", - "GetCheckerIpRanges": "<p>Retrieves a list of the IP ranges used by Amazon Route 53 health checkers to check the health of your resources. Send a <code>GET</code> request to the <code>/<i>Amazon Route 53 API version</i>/checkeripranges</code> resource. Use these IP addresses to configure router and firewall rules to allow health checkers to check the health of your resources.</p>", + "GetCheckerIpRanges": "<p> <code>GetCheckerIpRanges</code> still works, but we recommend that you download ip-ranges.json, which includes IP address ranges for all AWS services. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html\">IP Address Ranges of Amazon Route 53 Servers</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>", "GetGeoLocation": "<p>Retrieves a single geo location. Send a <code>GET</code> request to the <code>/2013-04-01/geolocation</code> resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.</p>", "GetHealthCheck": "<p>Gets information about a specified health check. Send a <code>GET</code> request to the <code>/2013-04-01/healthcheck/<i>health check ID</i> </code> resource. For more information about using the console to perform this operation, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html\">Amazon Route 53 Health Checks and DNS Failover</a> in the Amazon Route 53 Developer Guide.</p>", "GetHealthCheckCount": "<p>To retrieve a count of all your health checks, send a <code>GET</code> request to the <code>/2013-04-01/healthcheckcount</code> resource.</p>", @@ -73,9 +73,9 @@ } }, "AliasTarget": { - "base": "<p> <i>Alias resource record sets only:</i> Information about the CloudFront distribution, Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set that you're redirecting queries to. The Elastic Beanstalk environment must have a regionalized subdomain.</p> <p>When creating resource record sets for a private hosted zone, note the following:</p> <ul> <li> <p>Resource record sets can't be created for CloudFront distributions in a private hosted zone.</p> </li> <li> <p>Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.</p> </li> <li> <p>For information about creating failover resource record sets in a private hosted zone, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html\">Configuring Failover in a Private Hosted Zone</a>.</p> </li> </ul>", + "base": "<p> <i>Alias resource record sets only:</i> Information about the CloudFront distribution, Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set that you're redirecting queries to. An Elastic Beanstalk environment must have a regionalized subdomain.</p> <p>When creating resource record sets for a private hosted zone, note the following:</p> <ul> <li> <p>Resource record sets can't be created for CloudFront distributions in a private hosted zone.</p> </li> <li> <p>Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.</p> </li> <li> <p>For information about creating failover resource record sets in a private hosted zone, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html\">Configuring Failover in a Private Hosted Zone</a>.</p> </li> </ul>", "refs": { - "ResourceRecordSet$AliasTarget": "<p> <i>Alias resource record sets only:</i> Information about the CloudFront distribution, AWS Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you are redirecting queries. The AWS Elastic Beanstalk environment must have a regionalized subdomain.</p> <p>If you're creating resource records sets for a private hosted zone, note the following:</p> <ul> <li> <p>You can't create alias resource record sets for CloudFront distributions in a private hosted zone.</p> </li> <li> <p>Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.</p> </li> <li> <p>For information about creating failover resource record sets in a private hosted zone, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html\">Configuring Failover in a Private Hosted Zone</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> </ul>" + "ResourceRecordSet$AliasTarget": "<p> <i>Alias resource record sets only:</i> Information about the CloudFront distribution, AWS Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you're redirecting queries. The AWS Elastic Beanstalk environment must have a regionalized subdomain.</p> <p>If you're creating resource records sets for a private hosted zone, note the following:</p> <ul> <li> <p>You can't create alias resource record sets for CloudFront distributions in a private hosted zone.</p> </li> <li> <p>Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.</p> </li> <li> <p>For information about creating failover resource record sets in a private hosted zone, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html\">Configuring Failover in a Private Hosted Zone</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> </ul>" } }, "AssociateVPCComment": { @@ -158,7 +158,7 @@ "CheckerIpRanges": { "base": null, "refs": { - "GetCheckerIpRangesResponse$CheckerIpRanges": "<p>A complex type that contains sorted list of IP ranges in CIDR format for Amazon Route 53 health checkers.</p>" + "GetCheckerIpRangesResponse$CheckerIpRanges": null } }, "ChildHealthCheckList": { @@ -177,7 +177,7 @@ "CloudWatchRegion": { "base": null, "refs": { - "AlarmIdentifier$Region": "<p>A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.</p> <p>For the current list of CloudWatch regions, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region\">Amazon CloudWatch</a> in <i>AWS Regions and Endpoints</i> in the <i>Amazon Web Services General Reference</i>.</p>" + "AlarmIdentifier$Region": "<p>A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.</p> <p>For the current list of CloudWatch regions, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region\">Amazon CloudWatch</a> in the <i>AWS Regions and Endpoints</i> chapter of the <i>Amazon Web Services General Reference</i>.</p>" } }, "ComparisonOperator": { @@ -267,14 +267,14 @@ } }, "CreateVPCAssociationAuthorizationResponse": { - "base": "<p>A complex type that contains the response information from a CreateVPCAssociationAuthorization request.</p>", + "base": "<p>A complex type that contains the response information from a <code>CreateVPCAssociationAuthorization</code> request.</p>", "refs": { } }, "DNSName": { "base": null, "refs": { - "AliasTarget$DNSName": "<p> <i>Alias resource record sets only:</i> The value that you specify depends on where you want to route queries:</p> <ul> <li> <p> <b>A CloudFront distribution:</b> Specify the domain name that CloudFront assigned when you created your distribution.</p> <p>Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is <i>acme.example.com</i>, your CloudFront distribution must include <i>acme.example.com</i> as one of the alternate domain names. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html\">Using Alternate Domain Names (CNAMEs)</a> in the <i>Amazon CloudFront Developer Guide</i>.</p> </li> <li> <p> <b>Elastic Beanstalk environment</b>: Specify the <code>CNAME</code> attribute for the environment. (The environment must have a regionalized domain name.) You can use the following methods to get the value of the CNAME attribute:</p> <ul> <li> <p> <i>AWS Management Console</i>: For information about how to get the value by using the console, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html\">Using Custom Domains with AWS Elastic Beanstalk</a> in the <i>AWS Elastic Beanstalk Developer Guide</i>.</p> </li> <li> <p> <i>Elastic Beanstalk API</i>: Use the <code>DescribeEnvironments</code> action to get the value of the <code>CNAME</code> attribute. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html\">DescribeEnvironments</a> in the <i>AWS Elastic Beanstalk API Reference</i>.</p> </li> <li> <p> <i>AWS CLI</i>: Use the <code>describe-environments</code> command to get the value of the <code>CNAME</code> attribute. For more information, see <a href=\"http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html\">describe-environments</a> in the <i>AWS Command Line Interface Reference</i>.</p> </li> </ul> </li> <li> <p> <b>An ELB load balancer:</b> Specify the DNS name that is associated with the load balancer. Get the DNS name by using the AWS Management Console, the ELB API, or the AWS CLI. Use the same method to get values for <code>HostedZoneId</code> and <code>DNSName</code>. If you get one value from the console and the other value from the API or the CLI, creating the resource record set will fail.</p> <ul> <li> <p> <i>AWS Management Console</i>: Go to the EC2 page, click <b>Load Balancers</b> in the navigation pane, choose the load balancer, choose the <b>Description</b> tab, and get the value of the <b>DNS name</b> field. (If you're routing traffic to a Classic Load Balancer, get the value that begins with <b>dualstack</b>.) Use the same process to get the value of the <b>Hosted zone</b> field. See <a>AliasTarget$HostedZoneId</a>.</p> </li> <li> <p> <i>Elastic Load Balancing API</i>: Use <code>DescribeLoadBalancers</code> to get the value of <code>DNSName</code> and <code>CanonicalHostedZoneNameId</code>. (You specify the value of <code>CanonicalHostedZoneNameId</code> for <a>AliasTarget$HostedZoneId</a>.) For more information, see the applicable guide:</p> <ul> <li> <p>Classic Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> <li> <p>Application Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> </ul> </li> <li> <p> <i>AWS CLI</i>: Use <code> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html\">describe-load-balancers</a> </code> to get the value of <code>DNSName</code> and <code>CanonicalHostedZoneNameId</code>. (You specify the value of <code>CanonicalHostedZoneNameId</code> for <a>AliasTarget$HostedZoneId</a>.)</p> </li> </ul> </li> <li> <p> <b>An Amazon S3 bucket that is configured as a static website:</b> Specify the domain name of the Amazon S3 website endpoint in which you created the bucket, for example, <code>s3-website-us-east-1.amazonaws.com</code>. For more information about valid values, see the table <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region\">Amazon Simple Storage Service (S3) Website Endpoints</a> in the <i>Amazon Web Services General Reference</i>. For more information about using S3 buckets for websites, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html\">Getting Started with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide.</i> </p> </li> <li> <p> <b>Another Amazon Route 53 resource record set</b>: Specify the value of the <code>Name</code> element for a resource record set in the current hosted zone.</p> </li> </ul>", + "AliasTarget$DNSName": "<p> <i>Alias resource record sets only:</i> The value that you specify depends on where you want to route queries:</p> <dl> <dt>CloudFront distribution</dt> <dd> <p>Specify the domain name that CloudFront assigned when you created your distribution.</p> <p>Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is <i>acme.example.com</i>, your CloudFront distribution must include <i>acme.example.com</i> as one of the alternate domain names. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html\">Using Alternate Domain Names (CNAMEs)</a> in the <i>Amazon CloudFront Developer Guide</i>.</p> </dd> <dt>Elastic Beanstalk environment</dt> <dd> <p>Specify the <code>CNAME</code> attribute for the environment. (The environment must have a regionalized domain name.) You can use the following methods to get the value of the CNAME attribute:</p> <ul> <li> <p> <i>AWS Management Console</i>: For information about how to get the value by using the console, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html\">Using Custom Domains with AWS Elastic Beanstalk</a> in the <i>AWS Elastic Beanstalk Developer Guide</i>.</p> </li> <li> <p> <i>Elastic Beanstalk API</i>: Use the <code>DescribeEnvironments</code> action to get the value of the <code>CNAME</code> attribute. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html\">DescribeEnvironments</a> in the <i>AWS Elastic Beanstalk API Reference</i>.</p> </li> <li> <p> <i>AWS CLI</i>: Use the <code>describe-environments</code> command to get the value of the <code>CNAME</code> attribute. For more information, see <a href=\"http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html\">describe-environments</a> in the <i>AWS Command Line Interface Reference</i>.</p> </li> </ul> </dd> <dt>ELB load balancer</dt> <dd> <p>Specify the DNS name that is associated with the load balancer. Get the DNS name by using the AWS Management Console, the ELB API, or the AWS CLI. </p> <ul> <li> <p> <b>AWS Management Console</b>: Go to the EC2 page, choose <b>Load Balancers</b> in the navigation pane, choose the load balancer, choose the <b>Description</b> tab, and get the value of the <b>DNS name</b> field. (If you're routing traffic to a Classic Load Balancer, get the value that begins with <b>dualstack</b>.) </p> </li> <li> <p> <b>Elastic Load Balancing API</b>: Use <code>DescribeLoadBalancers</code> to get the value of <code>DNSName</code>. For more information, see the applicable guide:</p> <ul> <li> <p>Classic Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> <li> <p>Application Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> </ul> </li> <li> <p> <b>AWS CLI</b>: Use <code> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html\">describe-load-balancers</a> </code> to get the value of <code>DNSName</code>.</p> </li> </ul> </dd> <dt>Amazon S3 bucket that is configured as a static website</dt> <dd> <p>Specify the domain name of the Amazon S3 website endpoint in which you created the bucket, for example, <code>s3-website-us-east-2.amazonaws.com</code>. For more information about valid values, see the table <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region\">Amazon Simple Storage Service (S3) Website Endpoints</a> in the <i>Amazon Web Services General Reference</i>. For more information about using S3 buckets for websites, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html\">Getting Started with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide.</i> </p> </dd> <dt>Another Amazon Route 53 resource record set</dt> <dd> <p>Specify the value of the <code>Name</code> element for a resource record set in the current hosted zone.</p> </dd> </dl>", "CreateHostedZoneRequest$Name": "<p>The name of the domain. For resource record types that include a domain name, specify a fully qualified domain name, for example, <i>www.example.com</i>. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats <i>www.example.com</i> (without a trailing dot) and <i>www.example.com.</i> (with a trailing dot) as identical.</p> <p>If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Amazon Route 53, change the name servers for your domain to the set of <code>NameServers</code> that <code>CreateHostedZone</code> returns in the DelegationSet element.</p>", "CreateTrafficPolicyInstanceRequest$Name": "<p>The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Amazon Route 53 creates for this traffic policy instance.</p>", "DelegationSetNameServers$member": null, @@ -425,7 +425,7 @@ "DimensionList": { "base": null, "refs": { - "CloudWatchAlarmConfiguration$Dimensions": "<p>For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric.For information, see <a href=\" http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html\">Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference</a> in the <i>Amazon CloudWatch User Guide</i>.</p>" + "CloudWatchAlarmConfiguration$Dimensions": "<p>For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric.For information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html\">Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference</a> in the <i>Amazon CloudWatch User Guide</i>.</p>" } }, "DisassociateVPCComment": { @@ -516,15 +516,15 @@ "FailureThreshold": { "base": null, "refs": { - "HealthCheckConfig$FailureThreshold": "<p>The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html\">How Amazon Route 53 Determines Whether an Endpoint Is Healthy</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>", - "UpdateHealthCheckRequest$FailureThreshold": "<p>The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html\">How Amazon Route 53 Determines Whether an Endpoint Is Healthy</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>" + "HealthCheckConfig$FailureThreshold": "<p>The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html\">How Amazon Route 53 Determines Whether an Endpoint Is Healthy</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>If you don't specify a value for <code>FailureThreshold</code>, the default value is three health checks.</p>", + "UpdateHealthCheckRequest$FailureThreshold": "<p>The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html\">How Amazon Route 53 Determines Whether an Endpoint Is Healthy</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>If you don't specify a value for <code>FailureThreshold</code>, the default value is three health checks.</p>" } }, "FullyQualifiedDomainName": { "base": null, "refs": { - "HealthCheckConfig$FullyQualifiedDomainName": "<p>Amazon Route 53 behavior depends on whether you specify a value for <code>IPAddress</code>.</p> <p> <b>If you specify a value for</b> <code>IPAddress</code>:</p> <p>Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 address and passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header for all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks.</p> <p>When Amazon Route 53 checks the health of an endpoint, here is how it constructs the <code>Host</code> header:</p> <ul> <li> <p>If you specify a value of <code>80</code> for <code>Port</code> and <code>HTTP</code> or <code>HTTP_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the Host header. </p> </li> <li> <p>If you specify a value of <code>443</code> for <code>Port</code> and <code>HTTPS</code> or <code>HTTPS_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the <code>Host</code> header.</p> </li> <li> <p>If you specify another value for <code>Port</code> and any value except <code>TCP</code> for <code>Type</code>, Amazon Route 53 passes <code>FullyQualifiedDomainName:Port</code> to the endpoint in the <code>Host</code> header.</p> </li> </ul> <p>If you don't specify a value for <code>FullyQualifiedDomainName</code>, Amazon Route 53 substitutes the value of <code>IPAddress</code> in the <code>Host</code> header in each of the preceding cases.</p> <p> <b>If you don't specify a value for <code>IPAddress</code> </b>:</p> <p>Amazon Route 53 sends a DNS request to the domain that you specify for <code>FullyQualifiedDomainName</code> at the interval that you specify for <code>RequestInterval</code>. Using an IPv4 address that DNS returns, Amazon Route 53 then checks the health of the endpoint.</p> <note> <p>If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 uses only IPv4 to send health checks to the endpoint. If there's no resource record set with a type of A for the name that you specify for <code>FullyQualifiedDomainName</code>, the health check fails with a \"DNS resolution failed\" error.</p> </note> <p>If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by <code>FullyQualifiedDomainName</code>, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as us-east-1-www.example.com), not the name of the resource record sets (www.example.com).</p> <important> <p>In this configuration, if you create a health check for which the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important> <p>In addition, if the value that you specify for <code>Type</code> is <code>HTTP</code>, <code>HTTPS</code>, <code>HTTP_STR_MATCH</code>, or <code>HTTPS_STR_MATCH</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header, as it does when you specify a value for <code>IPAddress</code>. If the value of <code>Type</code> is <code>TCP</code>, Amazon Route 53 doesn't pass a <code>Host</code> header.</p>", - "UpdateHealthCheckRequest$FullyQualifiedDomainName": "<p>Amazon Route 53 behavior depends on whether you specify a value for <code>IPAddress</code>.</p> <note> <p>If a health check already has a value for <code>IPAddress</code>, you can change the value. However, you can't update an existing health check to add or remove the value of <code>IPAddress</code>. </p> </note> <p> <b>If you specify a value for</b> <code>IPAddress</code>:</p> <p>Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 address and passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header for all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks.</p> <p>When Amazon Route 53 checks the health of an endpoint, here is how it constructs the <code>Host</code> header:</p> <ul> <li> <p>If you specify a value of <code>80</code> for <code>Port</code> and <code>HTTP</code> or <code>HTTP_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the <code>Host</code> header.</p> </li> <li> <p>If you specify a value of <code>443</code> for <code>Port</code> and <code>HTTPS</code> or <code>HTTPS_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the Host header.</p> </li> <li> <p>If you specify another value for <code>Port</code> and any value except <code>TCP</code> for <code>Type</code>, Amazon Route 53 passes <i> <code>FullyQualifiedDomainName</code>:<code>Port</code> </i> to the endpoint in the Host header.</p> </li> </ul> <p>If you don't specify a value for <code>FullyQualifiedDomainName</code>, Amazon Route 53 substitutes the value of <code>IPAddress</code> in the <code>Host</code> header in each of the above cases.</p> <p> <b>If you don't specify a value for</b> <code>IPAddress</code>:</p> <p>If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 sends a DNS request to the domain that you specify in <code>FullyQualifiedDomainName</code> at the interval you specify in <code>RequestInterval</code>. Using an IPv4 address that is returned by DNS, Amazon Route 53 then checks the health of the endpoint.</p> <note> <p>If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 uses only IPv4 to send health checks to the endpoint. If there's no resource record set with a type of A for the name that you specify for <code>FullyQualifiedDomainName</code>, the health check fails with a \"DNS resolution failed\" error.</p> </note> <p>If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by <code>FullyQualifiedDomainName</code>, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as <code>us-east-1-www.example.com</code>), not the name of the resource record sets (www.example.com).</p> <important> <p>In this configuration, if the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important> <p>In addition, if the value of <code>Type</code> is <code>HTTP</code>, <code>HTTPS</code>, <code>HTTP_STR_MATCH</code>, or <code>HTTPS_STR_MATCH</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header, as it does when you specify a value for <code>IPAddress</code>. If the value of <code>Type</code> is <code>TCP</code>, Amazon Route 53 doesn't pass a <code>Host</code> header.</p>" + "HealthCheckConfig$FullyQualifiedDomainName": "<p>Amazon Route 53 behavior depends on whether you specify a value for <code>IPAddress</code>.</p> <p> <b>If you specify a value for</b> <code>IPAddress</code>:</p> <p>Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 address and passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header for all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks.</p> <p>When Amazon Route 53 checks the health of an endpoint, here is how it constructs the <code>Host</code> header:</p> <ul> <li> <p>If you specify a value of <code>80</code> for <code>Port</code> and <code>HTTP</code> or <code>HTTP_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the Host header. </p> </li> <li> <p>If you specify a value of <code>443</code> for <code>Port</code> and <code>HTTPS</code> or <code>HTTPS_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the <code>Host</code> header.</p> </li> <li> <p>If you specify another value for <code>Port</code> and any value except <code>TCP</code> for <code>Type</code>, Amazon Route 53 passes <code>FullyQualifiedDomainName:Port</code> to the endpoint in the <code>Host</code> header.</p> </li> </ul> <p>If you don't specify a value for <code>FullyQualifiedDomainName</code>, Amazon Route 53 substitutes the value of <code>IPAddress</code> in the <code>Host</code> header in each of the preceding cases.</p> <p> <b>If you don't specify a value for <code>IPAddress</code> </b>:</p> <p>Amazon Route 53 sends a DNS request to the domain that you specify for <code>FullyQualifiedDomainName</code> at the interval that you specify for <code>RequestInterval</code>. Using an IPv4 address that DNS returns, Amazon Route 53 then checks the health of the endpoint.</p> <note> <p>If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 uses only IPv4 to send health checks to the endpoint. If there's no resource record set with a type of A for the name that you specify for <code>FullyQualifiedDomainName</code>, the health check fails with a \"DNS resolution failed\" error.</p> </note> <p>If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by <code>FullyQualifiedDomainName</code>, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as us-east-2-www.example.com), not the name of the resource record sets (www.example.com).</p> <important> <p>In this configuration, if you create a health check for which the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important> <p>In addition, if the value that you specify for <code>Type</code> is <code>HTTP</code>, <code>HTTPS</code>, <code>HTTP_STR_MATCH</code>, or <code>HTTPS_STR_MATCH</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header, as it does when you specify a value for <code>IPAddress</code>. If the value of <code>Type</code> is <code>TCP</code>, Amazon Route 53 doesn't pass a <code>Host</code> header.</p>", + "UpdateHealthCheckRequest$FullyQualifiedDomainName": "<p>Amazon Route 53 behavior depends on whether you specify a value for <code>IPAddress</code>.</p> <note> <p>If a health check already has a value for <code>IPAddress</code>, you can change the value. However, you can't update an existing health check to add or remove the value of <code>IPAddress</code>. </p> </note> <p> <b>If you specify a value for</b> <code>IPAddress</code>:</p> <p>Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 address and passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header for all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks.</p> <p>When Amazon Route 53 checks the health of an endpoint, here is how it constructs the <code>Host</code> header:</p> <ul> <li> <p>If you specify a value of <code>80</code> for <code>Port</code> and <code>HTTP</code> or <code>HTTP_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the <code>Host</code> header.</p> </li> <li> <p>If you specify a value of <code>443</code> for <code>Port</code> and <code>HTTPS</code> or <code>HTTPS_STR_MATCH</code> for <code>Type</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> to the endpoint in the Host header.</p> </li> <li> <p>If you specify another value for <code>Port</code> and any value except <code>TCP</code> for <code>Type</code>, Amazon Route 53 passes <i> <code>FullyQualifiedDomainName</code>:<code>Port</code> </i> to the endpoint in the Host header.</p> </li> </ul> <p>If you don't specify a value for <code>FullyQualifiedDomainName</code>, Amazon Route 53 substitutes the value of <code>IPAddress</code> in the <code>Host</code> header in each of the above cases.</p> <p> <b>If you don't specify a value for</b> <code>IPAddress</code>:</p> <p>If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 sends a DNS request to the domain that you specify in <code>FullyQualifiedDomainName</code> at the interval you specify in <code>RequestInterval</code>. Using an IPv4 address that is returned by DNS, Amazon Route 53 then checks the health of the endpoint.</p> <note> <p>If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 uses only IPv4 to send health checks to the endpoint. If there's no resource record set with a type of A for the name that you specify for <code>FullyQualifiedDomainName</code>, the health check fails with a \"DNS resolution failed\" error.</p> </note> <p>If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by <code>FullyQualifiedDomainName</code>, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as <code>us-east-2-www.example.com</code>), not the name of the resource record sets (www.example.com).</p> <important> <p>In this configuration, if the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important> <p>In addition, if the value of <code>Type</code> is <code>HTTP</code>, <code>HTTPS</code>, <code>HTTP_STR_MATCH</code>, or <code>HTTPS_STR_MATCH</code>, Amazon Route 53 passes the value of <code>FullyQualifiedDomainName</code> in the <code>Host</code> header, as it does when you specify a value for <code>IPAddress</code>. If the value of <code>Type</code> is <code>TCP</code>, Amazon Route 53 doesn't pass a <code>Host</code> header.</p>" } }, "GeoLocation": { @@ -605,12 +605,12 @@ } }, "GetCheckerIpRangesRequest": { - "base": "<p>Empty request.</p>", + "base": null, "refs": { } }, "GetCheckerIpRangesResponse": { - "base": "<p>A complex type that contains the <code>CheckerIpRanges</code> element.</p>", + "base": null, "refs": { } }, @@ -695,7 +695,7 @@ } }, "GetTrafficPolicyInstanceCountRequest": { - "base": "<p>To retrieve a count of all your traffic policy instances, send a <code>GET</code> request to the <code>/2013-04-01/trafficpolicyinstancecount</code> resource.</p>", + "base": "<p>Request to get the number of traffic policy instances that are associated with the current AWS account.</p>", "refs": { } }, @@ -734,7 +734,7 @@ } }, "HealthCheckAlreadyExists": { - "base": "<p> The health check you're attempting to create already exists.</p> <p>Amazon Route 53 returns this error when a health check has already been created with the specified value for <code>CallerReference</code>.</p>", + "base": "<p> The health check you're attempting to create already exists. Amazon Route 53 returns this error when a health check has already been created with the specified value for <code>CallerReference</code>.</p>", "refs": { } }, @@ -758,9 +758,9 @@ "DeleteHealthCheckRequest$HealthCheckId": "<p>The ID of the health check that you want to delete.</p>", "GetHealthCheckLastFailureReasonRequest$HealthCheckId": "<p>The ID for the health check for which you want the last failure reason. When you created the health check, <code>CreateHealthCheck</code> returned the ID in the response, in the <code>HealthCheckId</code> element.</p>", "GetHealthCheckRequest$HealthCheckId": "<p>The identifier that Amazon Route 53 assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long.</p>", - "GetHealthCheckStatusRequest$HealthCheckId": "<p>If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the <code>HealthCheckId</code> element and specify the ID of the applicable health check.</p> <p>Amazon Route 53 determines whether a resource record set is healthy by periodically sending a request to the endpoint that is specified in the health check. If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint is healthy. If the endpoint returns an HTTP status code of 400 or greater, or if the endpoint doesn't respond for a certain amount of time, Amazon Route 53 considers the endpoint unhealthy and also considers the resource record set unhealthy.</p> <p>The <code>HealthCheckId</code> element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:</p> <ul> <li> <p>You're checking the health of the resource record sets in a weighted, latency, geolocation, or failover resource record set, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.</p> </li> <li> <p>You set <code>EvaluateTargetHealth</code> to <code>true</code> for the resource record sets in an alias, weighted alias, latency alias, geolocation alias, or failover alias resource record set, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets. For more information about this configuration, see <code>EvaluateTargetHealth</code>.</p> <p>Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the <code>Value</code> element. When you add a <code>HealthCheckId</code> element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check.</p> </li> </ul> <p>For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of CountryCode is <code>*</code>), in that order, until it finds a resource record set for which the endpoint is healthy.</p> <p>If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as <code>us-east-1-www.example.com</code>), not the name of the resource record sets (example.com).</p> <important> <p>In this configuration, if you create a health check for which the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important>", + "GetHealthCheckStatusRequest$HealthCheckId": "<p>The ID for the health check for which you want the current status. When you created the health check, <code>CreateHealthCheck</code> returned the ID in the response, in the <code>HealthCheckId</code> element.</p> <note> <p>If you want to check the status of a calculated health check, you must use the Amazon Route 53 console or the CloudWatch console. You can't use <code>GetHealthCheckStatus</code> to get the status of a calculated health check.</p> </note>", "HealthCheck$Id": "<p>The identifier that Amazon Route 53assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long. </p>", - "ResourceRecordSet$HealthCheckId": "<p>If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the <code>HealthCheckId</code> element and specify the ID of the applicable health check.</p> <p>Amazon Route 53 determines whether a resource record set is healthy based on one of the following:</p> <ul> <li> <p>By periodically sending a request to the endpoint that is specified in the health check</p> </li> <li> <p>By aggregating the status of a specified group of health checks (calculated health checks)</p> </li> <li> <p>By determining the current state of a CloudWatch alarm (CloudWatch metric health checks)</p> </li> </ul> <p>For information about how Amazon Route 53 determines whether a health check is healthy, see <a>CreateHealthCheck</a>.</p> <p>The <code>HealthCheckId</code> element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:</p> <ul> <li> <p>You're checking the health of the resource record sets in a weighted, latency, geolocation, or failover resource record set, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.</p> </li> <li> <p>You set <code>EvaluateTargetHealth</code> to true for the resource record sets in an alias, weighted alias, latency alias, geolocation alias, or failover alias resource record set, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets.</p> </li> </ul> <important> <p>Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the <code>Value</code> element. When you add a <code>HealthCheckId</code> element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check. </p> </important> <p>For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of <code>CountryCode</code> is <code>*</code>), in that order, until it finds a resource record set for which the endpoint is healthy. </p> <p>If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each <code>HTTP</code> server that is serving content for <code>www.example.com</code>. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as <code>us-east-1-www.example.com</code>), not the name of the resource record sets (example.com).</p> <important> <p>n this configuration, if you create a health check for which the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important> <p>For more information, see the following topics in the <i>Amazon Route 53 Developer Guide</i>:</p> <ul> <li> <p> <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html\">Amazon Route 53 Health Checks and DNS Failover</a> </p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html\">Configuring Failover in a Private Hosted Zone</a> </p> </li> </ul>", + "ResourceRecordSet$HealthCheckId": "<p>If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the <code>HealthCheckId</code> element and specify the ID of the applicable health check.</p> <p>Amazon Route 53 determines whether a resource record set is healthy based on one of the following:</p> <ul> <li> <p>By periodically sending a request to the endpoint that is specified in the health check</p> </li> <li> <p>By aggregating the status of a specified group of health checks (calculated health checks)</p> </li> <li> <p>By determining the current state of a CloudWatch alarm (CloudWatch metric health checks)</p> </li> </ul> <p>For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html\">How Amazon Route 53 Determines Whether an Endpoint Is Healthy</a>.</p> <p>The <code>HealthCheckId</code> element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:</p> <ul> <li> <p>You're checking the health of the resource record sets in a group of weighted, latency, geolocation, or failover resource record sets, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.</p> </li> <li> <p>You set <code>EvaluateTargetHealth</code> to true for the resource record sets in a group of alias, weighted alias, latency alias, geolocation alias, or failover alias resource record sets, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets.</p> </li> </ul> <important> <p>Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the <code>Value</code> element. When you add a <code>HealthCheckId</code> element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check. </p> </important> <p>For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of <code>CountryCode</code> is <code>*</code>), in that order, until it finds a resource record set for which the endpoint is healthy. </p> <p>If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each <code>HTTP</code> server that is serving content for <code>www.example.com</code>. For the value of <code>FullyQualifiedDomainName</code>, specify the domain name of the server (such as <code>us-east-2-www.example.com</code>), not the name of the resource record sets (example.com).</p> <important> <p>n this configuration, if you create a health check for which the value of <code>FullyQualifiedDomainName</code> matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.</p> </important> <p>For more information, see the following topics in the <i>Amazon Route 53 Developer Guide</i>:</p> <ul> <li> <p> <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html\">Amazon Route 53 Health Checks and DNS Failover</a> </p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html\">Configuring Failover in a Private Hosted Zone</a> </p> </li> </ul>", "UpdateHealthCheckRequest$HealthCheckId": "<p>The ID for the health check for which you want detailed information. When you created the health check, <code>CreateHealthCheck</code> returned the ID in the response, in the <code>HealthCheckId</code> element.</p>" } }, @@ -790,7 +790,7 @@ } }, "HealthCheckRegion": { - "base": "<p>An Amazon EC2 Region that you want Amazon Route 53 to use to perform health checks.</p>", + "base": null, "refs": { "HealthCheckObservation$Region": "<p>The region of the Amazon Route 53 health checker that provided the status in StatusReport.</p>", "HealthCheckRegionList$member": null @@ -799,7 +799,7 @@ "HealthCheckRegionList": { "base": null, "refs": { - "HealthCheckConfig$Regions": "<p>A complex type that contains one Region element for each region from which you want Amazon Route 53 health checkers to check the specified endpoint.</p>", + "HealthCheckConfig$Regions": "<p>A complex type that contains one <code>Region</code> element for each region from which you want Amazon Route 53 health checkers to check the specified endpoint.</p> <p>If you don't specify any regions, Amazon Route 53 health checkers automatically performs checks from all of the regions that are listed under <b>Valid Values</b>.</p> <p>If you update a health check to remove a region that has been performing health checks, Amazon Route 53 will briefly continue to perform checks from that region to ensure that some health checkers are always checking the endpoint (for example, if you replace three regions with four different regions). </p>", "UpdateHealthCheckRequest$Regions": "<p>A complex type that contains one Region element for each region from which you want Amazon Route 53 health checkers to check the specified endpoint.</p>" } }, @@ -844,7 +844,7 @@ } }, "HostedZoneAlreadyExists": { - "base": "<p>The hosted zone you are trying to create already exists. Amazon Route 53 returns this error when a hosted zone has already been created with the specified <code>CallerReference</code>.</p>", + "base": "<p>The hosted zone you're trying to create already exists. Amazon Route 53 returns this error when a hosted zone has already been created with the specified <code>CallerReference</code>.</p>", "refs": { } }, @@ -887,11 +887,11 @@ "IPAddress": { "base": null, "refs": { - "HealthCheckConfig$IPAddress": "<p>The IPv4 or IPv6 IP address of the endpoint that you want Amazon Route 53 to perform health checks on. If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in <code>FullyQualifiedDomainName</code> at the interval that you specify in <code>RequestInterval</code>. Using an IP address returned by DNS, Amazon Route 53 then checks the health of the endpoint.</p> <p>If the endpoint is an EC2 instance, we recommend that you create an Elastic IP address, associate it with your EC2 instance, and specify the Elastic IP address for <code>IPAddress</code>. This ensures that the IP address of your instance will never change.</p> <p>For more information, see <a>HealthCheckConfig$FullyQualifiedDomainName</a>.</p> <p>Constraints: Amazon Route 53 can't check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you can't create health checks, see the following documents:</p> <ul> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5735\">RFC 5735, Special Use IPv4 Addresses</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc6598\">RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5156\">RFC 5156, Special-Use IPv6 Addresses</a> </p> </li> </ul> <p>When the value of <code>Type</code> is <code>CALCULATED</code> or <code>CLOUDWATCH_METRIC</code>, omit <code>IPAddress</code>.</p>", + "HealthCheckConfig$IPAddress": "<p>The IPv4 or IPv6 IP address of the endpoint that you want Amazon Route 53 to perform health checks on. If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in <code>FullyQualifiedDomainName</code> at the interval that you specify in <code>RequestInterval</code>. Using an IP address returned by DNS, Amazon Route 53 then checks the health of the endpoint.</p> <p>Use one of the following formats for the value of <code>IPAddress</code>: </p> <ul> <li> <p> <b>IPv4 address</b>: four values between 0 and 255, separated by periods (.), for example, <code>192.0.2.44</code>.</p> </li> <li> <p> <b>IPv6 address</b>: eight groups of four hexadecimal values, separated by colons (:), for example, <code>2001:0db8:85a3:0000:0000:abcd:0001:2345</code>. You can also shorten IPv6 addresses as described in RFC 5952, for example, <code>2001:db8:85a3::abcd:1:2345</code>.</p> </li> </ul> <p>If the endpoint is an EC2 instance, we recommend that you create an Elastic IP address, associate it with your EC2 instance, and specify the Elastic IP address for <code>IPAddress</code>. This ensures that the IP address of your instance will never change.</p> <p>For more information, see <a>HealthCheckConfig$FullyQualifiedDomainName</a>.</p> <p>Constraints: Amazon Route 53 can't check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you can't create health checks, see the following documents:</p> <ul> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5735\">RFC 5735, Special Use IPv4 Addresses</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc6598\">RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5156\">RFC 5156, Special-Use IPv6 Addresses</a> </p> </li> </ul> <p>When the value of <code>Type</code> is <code>CALCULATED</code> or <code>CLOUDWATCH_METRIC</code>, omit <code>IPAddress</code>.</p>", "HealthCheckObservation$IPAddress": "<p>The IP address of the Amazon Route 53 health checker that provided the failure reason in <code>StatusReport</code>.</p>", "TestDNSAnswerRequest$ResolverIP": "<p>If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, <code>TestDnsAnswer</code> uses the IP address of a DNS resolver in the AWS US East region.</p>", "TestDNSAnswerRequest$EDNS0ClientSubnetIP": "<p>If the resolver that you specified for resolverip supports EDNS0, specify the IP address of a client in the applicable location.</p>", - "UpdateHealthCheckRequest$IPAddress": "<p>The IPv4 or IPv6 IP address for the endpoint that you want Amazon Route 53 to perform health checks on. If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in <code>FullyQualifiedDomainName</code> at the interval that you specify in <code>RequestInterval</code>. Using an IP address that is returned by DNS, Amazon Route 53 then checks the health of the endpoint.</p> <p>If the endpoint is an EC2 instance, we recommend that you create an Elastic IP address, associate it with your EC2 instance, and specify the Elastic IP address for <code>IPAddress</code>. This ensures that the IP address of your instance never changes. For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html\">Elastic IP Addresses (EIP)</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p> <note> <p>If a health check already has a value for <code>IPAddress</code>, you can change the value. However, you can't update an existing health check to add or remove the value of <code>IPAddress</code>. </p> </note> <p>For more information, see <a>UpdateHealthCheckRequest$FullyQualifiedDomainName</a>.</p> <p>Constraints: Amazon Route 53 can't check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you can't create health checks, see the following documents:</p> <ul> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5735\">RFC 5735, Special Use IPv4 Addresses</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc6598\">RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5156\">RFC 5156, Special-Use IPv6 Addresses</a> </p> </li> </ul>" + "UpdateHealthCheckRequest$IPAddress": "<p>The IPv4 or IPv6 IP address for the endpoint that you want Amazon Route 53 to perform health checks on. If you don't specify a value for <code>IPAddress</code>, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in <code>FullyQualifiedDomainName</code> at the interval that you specify in <code>RequestInterval</code>. Using an IP address that is returned by DNS, Amazon Route 53 then checks the health of the endpoint.</p> <p>Use one of the following formats for the value of <code>IPAddress</code>: </p> <ul> <li> <p> <b>IPv4 address</b>: four values between 0 and 255, separated by periods (.), for example, <code>192.0.2.44</code>.</p> </li> <li> <p> <b>IPv6 address</b>: eight groups of four hexadecimal values, separated by colons (:), for example, <code>2001:0db8:85a3:0000:0000:abcd:0001:2345</code>. You can also shorten IPv6 addresses as described in RFC 5952, for example, <code>2001:db8:85a3::abcd:1:2345</code>.</p> </li> </ul> <p>If the endpoint is an EC2 instance, we recommend that you create an Elastic IP address, associate it with your EC2 instance, and specify the Elastic IP address for <code>IPAddress</code>. This ensures that the IP address of your instance never changes. For more information, see <a href=\"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html\">Elastic IP Addresses (EIP)</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p> <note> <p>If a health check already has a value for <code>IPAddress</code>, you can change the value. However, you can't update an existing health check to add or remove the value of <code>IPAddress</code>. </p> </note> <p>For more information, see <a>UpdateHealthCheckRequest$FullyQualifiedDomainName</a>.</p> <p>Constraints: Amazon Route 53 can't check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you can't create health checks, see the following documents:</p> <ul> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5735\">RFC 5735, Special Use IPv4 Addresses</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc6598\">RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space</a> </p> </li> <li> <p> <a href=\"https://tools.ietf.org/html/rfc5156\">RFC 5156, Special-Use IPv6 Addresses</a> </p> </li> </ul>" } }, "IPAddressCidr": { @@ -901,7 +901,7 @@ } }, "IncompatibleVersion": { - "base": "<p>The resource you are trying to access is unsupported on this Amazon Route 53 endpoint. Please consider using a newer endpoint or a tool that does so.</p>", + "base": "<p>The resource you're trying to access is unsupported on this Amazon Route 53 endpoint.</p>", "refs": { } }, @@ -913,7 +913,7 @@ } }, "InvalidArgument": { - "base": "<p>Parameter name and problem.</p>", + "base": "<p>Parameter name is invalid.</p>", "refs": { } }, @@ -1081,7 +1081,7 @@ } }, "ListTrafficPolicyInstancesRequest": { - "base": "<p>A complex type that contains the information about the request to list your traffic policy instances.</p>", + "base": "<p>A request to get information about the traffic policy instances that you created by using the current AWS account.</p>", "refs": { } }, @@ -1285,7 +1285,7 @@ "RData": { "base": null, "refs": { - "ResourceRecord$Value": "<p>The current or new DNS record value, not to exceed 4,000 characters. In the case of a <code>DELETE</code> action, if the current value does not match the actual value, an error is returned. For descriptions about how to format <code>Value</code> for different record types, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html\">Supported DNS Resource Record Types</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>You can specify more than one value for all record types except <code>CNAME</code> and <code>SOA</code>. </p> <note> <p>If you are creating an alias resource record set, omit <code>Value</code>.</p> </note>" + "ResourceRecord$Value": "<p>The current or new DNS record value, not to exceed 4,000 characters. In the case of a <code>DELETE</code> action, if the current value does not match the actual value, an error is returned. For descriptions about how to format <code>Value</code> for different record types, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html\">Supported DNS Resource Record Types</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>You can specify more than one value for all record types except <code>CNAME</code> and <code>SOA</code>. </p> <note> <p>If you're creating an alias resource record set, omit <code>Value</code>.</p> </note>" } }, "RRType": { @@ -1322,7 +1322,7 @@ "RequestInterval": { "base": null, "refs": { - "HealthCheckConfig$RequestInterval": "<p>The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request. Each Amazon Route 53 health checker makes requests at this interval.</p> <important> <p>You can't change the value of <code>RequestInterval</code> after you create a health check.</p> </important>" + "HealthCheckConfig$RequestInterval": "<p>The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health check request. Each Amazon Route 53 health checker makes requests at this interval.</p> <important> <p>You can't change the value of <code>RequestInterval</code> after you create a health check.</p> </important> <p>If you don't specify a value for <code>RequestInterval</code>, the default value is <code>30</code> seconds.</p>" } }, "ResourceDescription": { @@ -1337,7 +1337,7 @@ "ResourceId": { "base": null, "refs": { - "AliasTarget$HostedZoneId": "<p> <i>Alias resource records sets only</i>: The value used depends on where the queries are routed:</p> <dl> <dt>A CloudFront distribution</dt> <dd> <p>Specify <code>Z2FDTNDATAQYW2</code>.</p> <note> <p>Alias resource record sets for CloudFront can't be created in a private zone.</p> </note> </dd> <dt>Elastic Beanstalk environment</dt> <dd> <p>Specify the hosted zone ID for the region in which you created the environment. The environment must have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region\">AWS Elastic Beanstalk</a> in the Regions and Endpoints chapter of the <i>Amazon Web Services General Reference</i>.</p> </dd> <dt>ELB load balancer</dt> <dd> <p>Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the hosted zone ID:</p> <ul> <li> <p>AWS Management Console: Go to the Amazon EC2 page, click <b>Load Balancers</b> in the navigation pane, select the load balancer, and get the value of the <b>Hosted zone</b> field on the <b>Description</b> tab. Use the same process to get the value of <b>DNS name</b>. (You specify the value of <b>DNS name</b> for <a>AliasTarget$DNSName</a>.)</p> </li> <li> <p> <i>Elastic Load Balancing API</i>: Use <code>DescribeLoadBalancers</code> to get the value of <code>CanonicalHostedZoneNameId</code> and <code>DNSName</code>. (You specify the value of <code>DNSName</code> for <a>AliasTarget$DNSName</a>.) For more information, see the applicable guide:</p> <ul> <li> <p>Classic Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> <li> <p>Application Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> </ul> </li> <li> <p>AWS CLI: Use <code> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html\">describe-load-balancers</a> </code> to get the value of <code>CanonicalHostedZoneNameID</code> and <code>DNSName</code>. (You specify the value of <code>DNSName</code> for <a>AliasTarget$DNSName</a>.)</p> </li> </ul> </dd> <dt>An Amazon S3 bucket configured as a static website</dt> <dd> <p>Specify the hosted zone ID for the region that you created the bucket in. For more information about valid values, see the table <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region\">Amazon Simple Storage Service Website Endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p> </dd> <dt>Another Amazon Route 53 resource record set in your hosted zone</dt> <dd> <p>Specify the hosted zone ID of your hosted zone. (An alias resource record set can't reference a resource record set in a different hosted zone.)</p> </dd> </dl>", + "AliasTarget$HostedZoneId": "<p> <i>Alias resource records sets only</i>: The value used depends on where you want to route traffic:</p> <dl> <dt>CloudFront distribution</dt> <dd> <p>Specify <code>Z2FDTNDATAQYW2</code>.</p> <note> <p>Alias resource record sets for CloudFront can't be created in a private zone.</p> </note> </dd> <dt>Elastic Beanstalk environment</dt> <dd> <p>Specify the hosted zone ID for the region in which you created the environment. The environment must have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region\">AWS Elastic Beanstalk</a> in the \"AWS Regions and Endpoints\" chapter of the <i>Amazon Web Services General Reference</i>.</p> </dd> <dt>ELB load balancer</dt> <dd> <p>Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the hosted zone ID:</p> <ul> <li> <p> <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region\">Elastic Load Balancing</a> table in the \"AWS Regions and Endpoints\" chapter of the <i>Amazon Web Services General Reference</i>: Use the value in the \"Amazon Route 53 Hosted Zone ID\" column that corresponds with the region that you created your load balancer in.</p> </li> <li> <p> <b>AWS Management Console</b>: Go to the Amazon EC2 page, click <b>Load Balancers</b> in the navigation pane, select the load balancer, and get the value of the <b>Hosted zone</b> field on the <b>Description</b> tab.</p> </li> <li> <p> <b>Elastic Load Balancing API</b>: Use <code>DescribeLoadBalancers</code> to get the value of <code>CanonicalHostedZoneNameId</code>. For more information, see the applicable guide:</p> <ul> <li> <p>Classic Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> <li> <p>Application Load Balancer: <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html\">DescribeLoadBalancers</a> </p> </li> </ul> </li> <li> <p> <b>AWS CLI</b>: Use <code> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html\">describe-load-balancers</a> </code> to get the value of <code>CanonicalHostedZoneNameID</code>.</p> </li> </ul> </dd> <dt>An Amazon S3 bucket configured as a static website</dt> <dd> <p>Specify the hosted zone ID for the region that you created the bucket in. For more information about valid values, see the <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region\">Amazon Simple Storage Service Website Endpoints</a> table in the \"AWS Regions and Endpoints\" chapter of the <i>Amazon Web Services General Reference</i>.</p> </dd> <dt>Another Amazon Route 53 resource record set in your hosted zone</dt> <dd> <p>Specify the hosted zone ID of your hosted zone. (An alias resource record set can't reference a resource record set in a different hosted zone.)</p> </dd> </dl>", "AssociateVPCWithHostedZoneRequest$HostedZoneId": "<p>The ID of the private hosted zone that you want to associate an Amazon VPC with.</p> <p>Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.</p>", "ChangeInfo$Id": "<p>The ID of the request.</p>", "ChangeResourceRecordSetsRequest$HostedZoneId": "<p>The ID of the hosted zone that contains the resource record sets that you want to change.</p>", @@ -1380,7 +1380,7 @@ } }, "ResourceRecord": { - "base": "<p>Information specific to the resource record.</p> <note> <p>If you are creating an alias resource record set, omit <code>ResourceRecord</code>.</p> </note>", + "base": "<p>Information specific to the resource record.</p> <note> <p>If you're creating an alias resource record set, omit <code>ResourceRecord</code>.</p> </note>", "refs": { "ResourceRecords$member": null } @@ -1409,7 +1409,7 @@ "ResourceRecordSetRegion": { "base": null, "refs": { - "ResourceRecordSet$Region": "<p> <i>Latency-based resource record sets only:</i> The Amazon EC2 Region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type.</p> <note> <p>Creating latency and latency alias resource record sets in private hosted zones is not supported.</p> </note> <p>When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Amazon Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Amazon Route 53 then returns the value that is associated with the selected resource record set.</p> <p>Note the following:</p> <ul> <li> <p>You can only specify one <code>ResourceRecord</code> per latency resource record set.</p> </li> <li> <p>You can only create one latency resource record set for each Amazon EC2 Region.</p> </li> <li> <p>You are not required to create latency resource record sets for all Amazon EC2 Regions. Amazon Route 53 will choose the region with the best latency from among the regions for which you create latency resource record sets.</p> </li> <li> <p>You can't create non-latency resource record sets that have the same values for the <code>Name</code> and <code>Type</code> elements as latency resource record sets.</p> </li> </ul>" + "ResourceRecordSet$Region": "<p> <i>Latency-based resource record sets only:</i> The Amazon EC2 Region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type.</p> <note> <p>Creating latency and latency alias resource record sets in private hosted zones is not supported.</p> </note> <p>When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Amazon Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Amazon Route 53 then returns the value that is associated with the selected resource record set.</p> <p>Note the following:</p> <ul> <li> <p>You can only specify one <code>ResourceRecord</code> per latency resource record set.</p> </li> <li> <p>You can only create one latency resource record set for each Amazon EC2 Region.</p> </li> <li> <p>You aren't required to create latency resource record sets for all Amazon EC2 Regions. Amazon Route 53 will choose the region with the best latency from among the regions for which you create latency resource record sets.</p> </li> <li> <p>You can't create non-latency resource record sets that have the same values for the <code>Name</code> and <code>Type</code> elements as latency resource record sets.</p> </li> </ul>" } }, "ResourceRecordSetWeight": { @@ -1427,7 +1427,7 @@ "ResourceRecords": { "base": null, "refs": { - "ResourceRecordSet$ResourceRecords": "<p>Information about the resource records to act upon.</p> <note> <p>If you are creating an alias resource record set, omit <code>ResourceRecords</code>.</p> </note>" + "ResourceRecordSet$ResourceRecords": "<p>Information about the resource records to act upon.</p> <note> <p>If you're creating an alias resource record set, omit <code>ResourceRecords</code>.</p> </note>" } }, "ResourceTagSet": { @@ -1567,7 +1567,7 @@ } }, "ThrottlingException": { - "base": "<p></p>", + "base": "<p>The limit on the number of requests per second was exceeded.</p>", "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json index 0ea7e3b0..d757c2b9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json @@ -1,5 +1,762 @@ { "version": "1.0", "examples": { + "AssociateVPCWithHostedZone": [ + { + "input": { + "Comment": "", + "HostedZoneId": "Z3M3LMPEXAMPLE", + "VPC": { + "VPCId": "vpc-1a2b3c4d", + "VPCRegion": "us-east-2" + } + }, + "output": { + "ChangeInfo": { + "Comment": "", + "Id": "/change/C3HC6WDB2UANE2", + "Status": "INSYNC", + "SubmittedAt": "2017-01-31T01:36:41.958Z" + } + }, + "comments": { + "input": { + }, + "output": { + "Status": "Valid values are PENDING and INSYNC.", + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example associates the VPC with ID vpc-1a2b3c4d with the hosted zone with ID Z3M3LMPEXAMPLE.", + "id": "to-associate-a-vpc-with-a-hosted-zone-1484069228699", + "title": "To associate a VPC with a hosted zone" + } + ], + "ChangeResourceRecordSets": [ + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "Web server for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Web server for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates a resource record set that routes Internet traffic to a resource with an IP address of 192.0.2.44.", + "id": "to-create-update-or-delete-resource-record-sets-1484344703668", + "title": "To create a basic resource record set" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "Seattle data center", + "TTL": 60, + "Type": "A", + "Weight": 100 + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "Portland data center", + "TTL": 60, + "Type": "A", + "Weight": 200 + } + } + ], + "Comment": "Web servers for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Web servers for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53. TTLs must be the same for all weighted resource record sets that have the same name and type.", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two weighted resource record sets. The resource with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other resource will get the rest of the traffic for example.com.", + "id": "to-create-weighted-resource-record-sets-1484348208522", + "title": "To create weighted resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "d123rk29d0stfj.cloudfront.net", + "EvaluateTargetHealth": false, + "HostedZoneId": "Z2FDTNDATAQYW2" + }, + "Name": "example.com", + "Type": "A" + } + } + ], + "Comment": "CloudFront distribution for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "CloudFront distribution for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates an alias resource record set that routes traffic to a CloudFront distribution.", + "id": "to-create-an-alias-resource-record-set-1484348404062", + "title": "To create an alias resource record set" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "Name": "example.com", + "SetIdentifier": "Ohio region", + "Type": "A", + "Weight": 100 + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1H1FL5HABSF5" + }, + "Name": "example.com", + "SetIdentifier": "Oregon region", + "Type": "A", + "Weight": 200 + } + } + ], + "Comment": "ELB load balancers for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "ELB load balancers for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two weighted alias resource record sets that route traffic to ELB load balancers. The resource with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other resource will get the rest of the traffic for example.com.", + "id": "to-create-weighted-alias-resource-record-sets-1484349467416", + "title": "To create weighted alias resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba", + "Name": "example.com", + "Region": "us-east-2", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "Ohio region", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba", + "Name": "example.com", + "Region": "us-west-2", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "Oregon region", + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "EC2 instances for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "EC2 instances for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two latency resource record sets that route traffic to EC2 instances. Traffic for example.com is routed either to the Ohio region or the Oregon region, depending on the latency between the user and those regions.", + "id": "to-create-latency-resource-record-sets-1484350219917", + "title": "To create latency resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "Name": "example.com", + "Region": "us-east-2", + "SetIdentifier": "Ohio region", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1H1FL5HABSF5" + }, + "Name": "example.com", + "Region": "us-west-2", + "SetIdentifier": "Oregon region", + "Type": "A" + } + } + ], + "Comment": "ELB load balancers for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "ELB load balancers for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two latency alias resource record sets that route traffic for example.com to ELB load balancers. Requests are routed either to the Ohio region or the Oregon region, depending on the latency between the user and those regions.", + "id": "to-create-latency-alias-resource-record-sets-1484601774179", + "title": "To create latency alias resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "Failover": "PRIMARY", + "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "Ohio region", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "Failover": "SECONDARY", + "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "Oregon region", + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "Failover configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Failover configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates primary and secondary failover resource record sets that route traffic to EC2 instances. Traffic is generally routed to the primary resource, in the Ohio region. If that resource is unavailable, traffic is routed to the secondary resource, in the Oregon region.", + "id": "to-create-failover-resource-record-sets-1484604541740", + "title": "To create failover resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "Failover": "PRIMARY", + "Name": "example.com", + "SetIdentifier": "Ohio region", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1H1FL5HABSF5" + }, + "Failover": "SECONDARY", + "Name": "example.com", + "SetIdentifier": "Oregon region", + "Type": "A" + } + } + ], + "Comment": "Failover alias configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Failover alias configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates primary and secondary failover alias resource record sets that route traffic to ELB load balancers. Traffic is generally routed to the primary resource, in the Ohio region. If that resource is unavailable, traffic is routed to the secondary resource, in the Oregon region.", + "id": "to-create-failover-alias-resource-record-sets-1484607497724", + "title": "To create failover alias resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "ContinentCode": "NA" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "North America", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "ContinentCode": "SA" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "South America", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "ContinentCode": "EU" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.46" + } + ], + "SetIdentifier": "Europe", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "CountryCode": "*" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.47" + } + ], + "SetIdentifier": "Other locations", + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "Geolocation configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Geolocation configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates four geolocation resource record sets that use IPv4 addresses to route traffic to resources such as web servers running on EC2 instances. Traffic is routed to one of four IP addresses, for North America (NA), for South America (SA), for Europe (EU), and for all other locations (*).", + "id": "to-create-geolocation-resource-record-sets-1484612462466", + "title": "To create geolocation resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "GeoLocation": { + "ContinentCode": "NA" + }, + "Name": "example.com", + "SetIdentifier": "North America", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-234567890.sa-east-1.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z2P70J7HTTTPLU" + }, + "GeoLocation": { + "ContinentCode": "SA" + }, + "Name": "example.com", + "SetIdentifier": "South America", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-234567890.eu-central-1.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z215JYRZR1TBD5" + }, + "GeoLocation": { + "ContinentCode": "EU" + }, + "Name": "example.com", + "SetIdentifier": "Europe", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-234567890.ap-southeast-1.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1LMS91P8CMLE5" + }, + "GeoLocation": { + "CountryCode": "*" + }, + "Name": "example.com", + "SetIdentifier": "Other locations", + "Type": "A" + } + } + ], + "Comment": "Geolocation alias configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Geolocation alias configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates four geolocation alias resource record sets that route traffic to ELB load balancers. Traffic is routed to one of four IP addresses, for North America (NA), for South America (SA), for Europe (EU), and for all other locations (*).", + "id": "to-create-geolocation-alias-resource-record-sets-1484612871203", + "title": "To create geolocation alias resource record sets" + } + ], + "ChangeTagsForResource": [ + { + "input": { + "AddTags": [ + { + "Key": "apex", + "Value": "3874" + }, + { + "Key": "acme", + "Value": "4938" + } + ], + "RemoveTagKeys": [ + "Nadir" + ], + "ResourceId": "Z3M3LMPEXAMPLE", + "ResourceType": "hostedzone" + }, + "output": { + }, + "comments": { + "input": { + "ResourceType": "Valid values are healthcheck and hostedzone." + }, + "output": { + } + }, + "description": "The following example adds two tags and removes one tag from the hosted zone with ID Z3M3LMPEXAMPLE.", + "id": "to-add-or-remove-tags-from-a-hosted-zone-or-health-check-1484084752409", + "title": "To add or remove tags from a hosted zone or health check" + } + ], + "GetHostedZone": [ + { + "input": { + "Id": "Z3M3LMPEXAMPLE" + }, + "output": { + "DelegationSet": { + "NameServers": [ + "ns-2048.awsdns-64.com", + "ns-2049.awsdns-65.net", + "ns-2050.awsdns-66.org", + "ns-2051.awsdns-67.co.uk" + ] + }, + "HostedZone": { + "CallerReference": "C741617D-04E4-F8DE-B9D7-0D150FC61C2E", + "Config": { + "PrivateZone": false + }, + "Id": "/hostedzone/Z3M3LMPEXAMPLE", + "Name": "myawsbucket.com.", + "ResourceRecordSetCount": 8 + } + }, + "comments": { + "input": { + }, + "output": { + "Id": "The ID of the hosted zone that you specified in the GetHostedZone request.", + "Name": "The name of the hosted zone.", + "NameServers": "The servers that you specify in your domain configuration.", + "PrivateZone": "True if this is a private hosted zone, false if it's a public hosted zone." + } + }, + "description": "The following example gets information about the Z3M3LMPEXAMPLE hosted zone.", + "id": "to-get-information-about-a-hosted-zone-1481752361124", + "title": "To get information about a hosted zone" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json index 1074ab30..88074c28 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json @@ -159,6 +159,13 @@ "ShardIterator":{"shape":"ShardIterator"} } }, + "Identity":{ + "type":"structure", + "members":{ + "PrincipalId":{"shape":"String"}, + "Type":{"shape":"String"} + } + }, "InternalServerError":{ "type":"structure", "members":{ @@ -257,7 +264,8 @@ "eventVersion":{"shape":"String"}, "eventSource":{"shape":"String"}, "awsRegion":{"shape":"String"}, - "dynamodb":{"shape":"StreamRecord"} + "dynamodb":{"shape":"StreamRecord"}, + "userIdentity":{"shape":"Identity"} } }, "RecordList":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json index 583c171b..827a7046 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json @@ -1,11 +1,11 @@ { "version": "2.0", - "service": "<fullname>Amazon DynamoDB</fullname> <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application development with Streams, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html\">Capturing Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer Guide.</p> <p>The following are short descriptions of each low-level DynamoDB Streams action:</p> <ul> <li> <p> <i>DescribeStream</i> - Returns detailed information about a particular stream.</p> </li> <li> <p> <i>GetRecords</i> - Retrieves the stream records from within a shard.</p> </li> <li> <p> <i>GetShardIterator</i> - Returns information on how to retrieve the streams record from a shard with a given shard ID.</p> </li> <li> <p> <i>ListStreams</i> - Returns a list of all the streams associated with the current AWS account and endpoint.</p> </li> </ul>", + "service": "<fullname>Amazon DynamoDB</fullname> <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application development with Streams, see <a href=\"http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html\">Capturing Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer Guide.</p>", "operations": { - "DescribeStream": "<p>Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table.</p> <note> <p>You can call <i>DescribeStream</i> at a maximum rate of 10 times per second.</p> </note> <p>Each shard in the stream has a <code>SequenceNumberRange</code> associated with it. If the <code>SequenceNumberRange</code> has a <code>StartingSequenceNumber</code> but no <code>EndingSequenceNumber</code>, then the shard is still open (able to receive more stream records). If both <code>StartingSequenceNumber</code> and <code>EndingSequenceNumber</code> are present, then that shard is closed and can no longer receive more data.</p>", + "DescribeStream": "<p>Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table.</p> <note> <p>You can call <code>DescribeStream</code> at a maximum rate of 10 times per second.</p> </note> <p>Each shard in the stream has a <code>SequenceNumberRange</code> associated with it. If the <code>SequenceNumberRange</code> has a <code>StartingSequenceNumber</code> but no <code>EndingSequenceNumber</code>, then the shard is still open (able to receive more stream records). If both <code>StartingSequenceNumber</code> and <code>EndingSequenceNumber</code> are present, then that shard is closed and can no longer receive more data.</p>", "GetRecords": "<p>Retrieves the stream records from a given shard.</p> <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard iterator specifies the position in the shard from which you want to start reading stream records sequentially. If there are no stream records available in the portion of the shard that the iterator points to, <code>GetRecords</code> returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains stream records.</p> <note> <p> <code>GetRecords</code> can retrieve a maximum of 1 MB of data or 1000 stream records, whichever comes first.</p> </note>", "GetShardIterator": "<p>Returns a shard iterator. A shard iterator provides information about how to retrieve the stream records from within a shard. Use the shard iterator in a subsequent <code>GetRecords</code> request to read the stream records from the shard.</p> <note> <p>A shard iterator expires 15 minutes after it is returned to the requester.</p> </note>", - "ListStreams": "<p>Returns an array of stream ARNs associated with the current account and endpoint. If the <code>TableName</code> parameter is present, then <i>ListStreams</i> will return only the streams ARNs for that table.</p> <note> <p>You can call <i>ListStreams</i> at a maximum rate of 5 times per second.</p> </note>" + "ListStreams": "<p>Returns an array of stream ARNs associated with the current account and endpoint. If the <code>TableName</code> parameter is present, then <code>ListStreams</code> will return only the streams ARNs for that table.</p> <note> <p>You can call <code>ListStreams</code> at a maximum rate of 5 times per second.</p> </note>" }, "shapes": { "AttributeMap": { @@ -58,12 +58,12 @@ } }, "DescribeStreamInput": { - "base": "<p>Represents the input of a <i>DescribeStream</i> operation.</p>", + "base": "<p>Represents the input of a <code>DescribeStream</code> operation.</p>", "refs": { } }, "DescribeStreamOutput": { - "base": "<p>Represents the output of a <i>DescribeStream</i> operation.</p>", + "base": "<p>Represents the output of a <code>DescribeStream</code> operation.</p>", "refs": { } }, @@ -78,30 +78,36 @@ } }, "ExpiredIteratorException": { - "base": "<p>The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the <i>GetShardIterator</i> action.</p>", + "base": "<p>The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the <code>GetShardIterator</code> action.</p>", "refs": { } }, "GetRecordsInput": { - "base": "<p>Represents the input of a <i>GetRecords</i> operation.</p>", + "base": "<p>Represents the input of a <code>GetRecords</code> operation.</p>", "refs": { } }, "GetRecordsOutput": { - "base": "<p>Represents the output of a <i>GetRecords</i> operation.</p>", + "base": "<p>Represents the output of a <code>GetRecords</code> operation.</p>", "refs": { } }, "GetShardIteratorInput": { - "base": "<p>Represents the input of a <i>GetShardIterator</i> operation.</p>", + "base": "<p>Represents the input of a <code>GetShardIterator</code> operation.</p>", "refs": { } }, "GetShardIteratorOutput": { - "base": "<p>Represents the output of a <i>GetShardIterator</i> operation.</p>", + "base": "<p>Represents the output of a <code>GetShardIterator</code> operation.</p>", "refs": { } }, + "Identity": { + "base": "<p>Contains details about the type of identity that made the request.</p>", + "refs": { + "Record$userIdentity": "<p>Items that are deleted by the Time to Live process after expiration have the following fields: </p> <ul> <li> <p>Records[].userIdentity.type</p> <p>\"Service\"</p> </li> <li> <p>Records[].userIdentity.principalId</p> <p>\"dynamodb.amazonaws.com\"</p> </li> </ul>" + } + }, "InternalServerError": { "base": "<p>An error occurred on the server side.</p>", "refs": { @@ -120,7 +126,7 @@ } }, "KeySchemaElement": { - "base": "<p>Represents <i>a single element</i> of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.</p> <p>A <i>KeySchemaElement</i> represents exactly one attribute of the primary key. For example, a simple primary key (partition key) would be represented by one <i>KeySchemaElement</i>. A composite primary key (partition key and sort key) would require one <i>KeySchemaElement</i> for the partition key, and another <i>KeySchemaElement</i> for the sort key.</p> <note> <p>The partition key of an item is also known as its <i>hash attribute</i>. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p> <p>The sort key of an item is also known as its <i>range attribute</i>. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p> </note>", + "base": "<p>Represents <i>a single element</i> of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.</p> <p>A <code>KeySchemaElement</code> represents exactly one attribute of the primary key. For example, a simple primary key (partition key) would be represented by one <code>KeySchemaElement</code>. A composite primary key (partition key and sort key) would require one <code>KeySchemaElement</code> for the partition key, and another <code>KeySchemaElement</code> for the sort key.</p> <note> <p>The partition key of an item is also known as its <i>hash attribute</i>. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p> <p>The sort key of an item is also known as its <i>range attribute</i>. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p> </note>", "refs": { "KeySchema$member": null } @@ -143,12 +149,12 @@ } }, "ListStreamsInput": { - "base": "<p>Represents the input of a <i>ListStreams</i> operation.</p>", + "base": "<p>Represents the input of a <code>ListStreams</code> operation.</p>", "refs": { } }, "ListStreamsOutput": { - "base": "<p>Represents the output of a <i>ListStreams</i> operation.</p>", + "base": "<p>Represents the output of a <code>ListStreams</code> operation.</p>", "refs": { } }, @@ -316,12 +322,14 @@ "String": { "base": null, "refs": { + "Identity$PrincipalId": "<p>A unique identifier for the entity that made the call. For Time To Live, the principalId is \"dynamodb.amazonaws.com\".</p>", + "Identity$Type": "<p>The type of the identity. For Time To Live, the type is \"Service\".</p>", "Record$eventID": "<p>A globally unique identifier for the event that was recorded in this stream record.</p>", - "Record$eventVersion": "<p>The version number of the stream record format. This number is updated whenever the structure of <i>Record</i> is modified.</p> <p>Client applications must not assume that <i>eventVersion</i> will remain at a particular value, as this number is subject to change at any time. In general, <i>eventVersion</i> will only increase as the low-level DynamoDB Streams API evolves.</p>", - "Record$eventSource": "<p>The AWS service from which the stream record originated. For DynamoDB Streams, this is <i>aws:dynamodb</i>.</p>", - "Record$awsRegion": "<p>The region in which the <i>GetRecords</i> request was received.</p>", - "Stream$StreamLabel": "<p>A timestamp, in ISO 8601 format, for this stream.</p> <p>Note that <i>LatestStreamLabel</i> is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:</p> <ul> <li> <p>the AWS customer ID.</p> </li> <li> <p>the table name</p> </li> <li> <p>the <i>StreamLabel</i> </p> </li> </ul>", - "StreamDescription$StreamLabel": "<p>A timestamp, in ISO 8601 format, for this stream.</p> <p>Note that <i>LatestStreamLabel</i> is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:</p> <ul> <li> <p>the AWS customer ID.</p> </li> <li> <p>the table name</p> </li> <li> <p>the <i>StreamLabel</i> </p> </li> </ul>" + "Record$eventVersion": "<p>The version number of the stream record format. This number is updated whenever the structure of <code>Record</code> is modified.</p> <p>Client applications must not assume that <code>eventVersion</code> will remain at a particular value, as this number is subject to change at any time. In general, <code>eventVersion</code> will only increase as the low-level DynamoDB Streams API evolves.</p>", + "Record$eventSource": "<p>The AWS service from which the stream record originated. For DynamoDB Streams, this is <code>aws:dynamodb</code>.</p>", + "Record$awsRegion": "<p>The region in which the <code>GetRecords</code> request was received.</p>", + "Stream$StreamLabel": "<p>A timestamp, in ISO 8601 format, for this stream.</p> <p>Note that <code>LatestStreamLabel</code> is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:</p> <ul> <li> <p>the AWS customer ID.</p> </li> <li> <p>the table name</p> </li> <li> <p>the <code>StreamLabel</code> </p> </li> </ul>", + "StreamDescription$StreamLabel": "<p>A timestamp, in ISO 8601 format, for this stream.</p> <p>Note that <code>LatestStreamLabel</code> is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:</p> <ul> <li> <p>the AWS customer ID.</p> </li> <li> <p>the table name</p> </li> <li> <p>the <code>StreamLabel</code> </p> </li> </ul>" } }, "StringAttributeValue": { @@ -346,7 +354,7 @@ } }, "TrimmedDataAccessException": { - "base": "<p>The operation attempted to read past the oldest stream record in a shard.</p> <p>In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if:</p> <ul> <li><p>You request a shard iterator with a sequence number older than the trim point (24 hours).</p> </li> <li><p>You obtain a shard iterator, but before you use the iterator in a <i>GetRecords</i> request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists.</p> </li> </ul>", + "base": "<p>The operation attempted to read past the oldest stream record in a shard.</p> <p>In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if:</p> <ul> <li><p>You request a shard iterator with a sequence number older than the trim point (24 hours).</p> </li> <li><p>You obtain a shard iterator, but before you use the iterator in a <code>GetRecords</code> request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists.</p> </li> </ul>", "refs": { } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json index e0afcd3e..4c20fc55 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json @@ -1137,6 +1137,11 @@ "Rule":{"shape":"Rule"} } }, + "GetSampledRequestsMaxItems":{ + "type":"long", + "max":500, + "min":1 + }, "GetSampledRequestsRequest":{ "type":"structure", "required":[ @@ -1149,7 +1154,7 @@ "WebAclId":{"shape":"ResourceId"}, "RuleId":{"shape":"ResourceId"}, "TimeWindow":{"shape":"TimeWindow"}, - "MaxItems":{"shape":"ListMaxItems"} + "MaxItems":{"shape":"GetSampledRequestsMaxItems"} } }, "GetSampledRequestsResponse":{ @@ -1345,11 +1350,6 @@ "IPSets":{"shape":"IPSetSummaries"} } }, - "ListMaxItems":{ - "type":"long", - "max":100, - "min":1 - }, "ListResourcesForWebACLRequest":{ "type":"structure", "required":["WebACLId"], diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json index 6976cde6..fe76b87f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json @@ -23,7 +23,7 @@ "GetChangeTokenStatus": "<p>Returns the status of a <code>ChangeToken</code> that you got by calling <a>GetChangeToken</a>. <code>ChangeTokenStatus</code> is one of the following values:</p> <ul> <li> <p> <code>PROVISIONED</code>: You requested the change token by calling <code>GetChangeToken</code>, but you haven't used it yet in a call to create, update, or delete an AWS WAF object.</p> </li> <li> <p> <code>PENDING</code>: AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.</p> </li> <li> <p> <code>IN_SYNC</code>: Propagation is complete.</p> </li> </ul>", "GetIPSet": "<p>Returns the <a>IPSet</a> that is specified by <code>IPSetId</code>.</p>", "GetRule": "<p>Returns the <a>Rule</a> that is specified by the <code>RuleId</code> that you included in the <code>GetRule</code> request.</p>", - "GetSampledRequests": "<p>Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 100 requests, and you can specify any time range in the previous three hours.</p> <p> <code>GetSampledRequests</code> returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, <code>GetSampledRequests</code> returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.</p>", + "GetSampledRequests": "<p>Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any time range in the previous three hours.</p> <p> <code>GetSampledRequests</code> returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, <code>GetSampledRequests</code> returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.</p>", "GetSizeConstraintSet": "<p>Returns the <a>SizeConstraintSet</a> specified by <code>SizeConstraintSetId</code>.</p>", "GetSqlInjectionMatchSet": "<p>Returns the <a>SqlInjectionMatchSet</a> that is specified by <code>SqlInjectionMatchSetId</code>.</p>", "GetWebACL": "<p>Returns the <a>WebACL</a> that is specified by <code>WebACLId</code>.</p>", @@ -42,7 +42,7 @@ "UpdateRule": "<p>Inserts or deletes <a>Predicate</a> objects in a <code>Rule</code>. Each <code>Predicate</code> object identifies a predicate, such as a <a>ByteMatchSet</a> or an <a>IPSet</a>, that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a <code>Rule</code>, a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a <code>Rule</code>: </p> <ul> <li> <p>A <code>ByteMatchSet</code> that matches the value <code>BadBot</code> in the <code>User-Agent</code> header</p> </li> <li> <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44</code> </p> </li> </ul> <p>You then add the <code>Rule</code> to a <code>WebACL</code> and specify that you want to block requests that satisfy the <code>Rule</code>. For a request to be blocked, the <code>User-Agent</code> header in the request must contain the value <code>BadBot</code> <i>and</i> the request must originate from the IP address 192.0.2.44.</p> <p>To create and configure a <code>Rule</code>, perform the following steps:</p> <ol> <li> <p>Create and update the predicates that you want to include in the <code>Rule</code>.</p> </li> <li> <p>Create the <code>Rule</code>. See <a>CreateRule</a>.</p> </li> <li> <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateRule</a> request.</p> </li> <li> <p>Submit an <code>UpdateRule</code> request to add predicates to the <code>Rule</code>.</p> </li> <li> <p>Create and update a <code>WebACL</code> that contains the <code>Rule</code>. See <a>CreateWebACL</a>.</p> </li> </ol> <p>If you want to replace one <code>ByteMatchSet</code> or <code>IPSet</code> with another, you delete the existing one and add the new one.</p> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", "UpdateSizeConstraintSet": "<p>Inserts or deletes <a>SizeConstraint</a> objects (filters) in a <a>SizeConstraintSet</a>. For each <code>SizeConstraint</code> object, you specify the following values: </p> <ul> <li> <p>Whether to insert or delete the object from the array. If you want to change a <code>SizeConstraintSetUpdate</code> object, you delete the existing object and add a new one.</p> </li> <li> <p>The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the <code>User-Agent</code> header.</p> </li> <li> <p>Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first <code>8192</code> bytes of your request to AWS WAF.</p> </li> <li> <p>A <code>ComparisonOperator</code> used for evaluating the selected part of the request against the specified <code>Size</code>, such as equals, greater than, less than, and so on.</p> </li> <li> <p>The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.</p> </li> </ul> <p>For example, you can add a <code>SizeConstraintSetUpdate</code> object that matches web requests in which the length of the <code>User-Agent</code> header is greater than 100 bytes. You can then configure AWS WAF to block those requests.</p> <p>To create and configure a <code>SizeConstraintSet</code>, perform the following steps:</p> <ol> <li> <p>Create a <code>SizeConstraintSet.</code> For more information, see <a>CreateSizeConstraintSet</a>.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <code>UpdateSizeConstraintSet</code> request.</p> </li> <li> <p>Submit an <code>UpdateSizeConstraintSet</code> request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.</p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", "UpdateSqlInjectionMatchSet": "<p>Inserts or deletes <a>SqlInjectionMatchTuple</a> objects (filters) in a <a>SqlInjectionMatchSet</a>. For each <code>SqlInjectionMatchTuple</code> object, you specify the following values:</p> <ul> <li> <p> <code>Action</code>: Whether to insert the object into or delete the object from the array. To change a <code>SqlInjectionMatchTuple</code>, you delete the existing object and add a new one.</p> </li> <li> <p> <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.</p> </li> <li> <p> <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code.</p> </li> </ul> <p>You use <code>SqlInjectionMatchSet</code> objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a <code>SqlInjectionMatchSet</code> with the applicable settings, and then configure AWS WAF to block the requests. </p> <p>To create and configure a <code>SqlInjectionMatchSet</code>, perform the following steps:</p> <ol> <li> <p>Submit a <a>CreateSqlInjectionMatchSet</a> request.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateIPSet</a> request.</p> </li> <li> <p>Submit an <code>UpdateSqlInjectionMatchSet</code> request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.</p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", - "UpdateWebACL": "<p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>WebACL</code>. Each <code>Rule</code> identifies web requests that you want to allow, block, or count. When you update a <code>WebACL</code>, you specify the following values:</p> <ul> <li> <p>A default action for the <code>WebACL</code>, either <code>ALLOW</code> or <code>BLOCK</code>. AWS WAF performs the default action if a request doesn't match the criteria in any of the <code>Rules</code> in a <code>WebACL</code>.</p> </li> <li> <p>The <code>Rules</code> that you want to add and/or delete. If you want to replace one <code>Rule</code> with another, you delete the existing <code>Rule</code> and add the new one.</p> </li> <li> <p>For each <code>Rule</code>, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the <code>Rule</code>.</p> </li> <li> <p>The order in which you want AWS WAF to evaluate the <code>Rules</code> in a <code>WebACL</code>. If you add more than one <code>Rule</code> to a <code>WebACL</code>, AWS WAF evaluates each request against the <code>Rules</code> in order based on the value of <code>Priority</code>. (The <code>Rule</code> that has the lowest value for <code>Priority</code> is evaluated first.) When a web request matches all of the predicates (such as <code>ByteMatchSets</code> and <code>IPSets</code>) in a <code>Rule</code>, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining <code>Rules</code> in the <code>WebACL</code>, if any. </p> </li> <li> <p>The CloudFront distribution that you want to associate with the <code>WebACL</code>.</p> </li> </ul> <p>To create and configure a <code>WebACL</code>, perform the following steps:</p> <ol> <li> <p>Create and update the predicates that you want to include in <code>Rules</code>. For more information, see <a>CreateByteMatchSet</a>, <a>UpdateByteMatchSet</a>, <a>CreateIPSet</a>, <a>UpdateIPSet</a>, <a>CreateSqlInjectionMatchSet</a>, and <a>UpdateSqlInjectionMatchSet</a>.</p> </li> <li> <p>Create and update the <code>Rules</code> that you want to include in the <code>WebACL</code>. For more information, see <a>CreateRule</a> and <a>UpdateRule</a>.</p> </li> <li> <p>Create a <code>WebACL</code>. See <a>CreateWebACL</a>.</p> </li> <li> <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateWebACL</a> request.</p> </li> <li> <p>Submit an <code>UpdateWebACL</code> request to specify the <code>Rules</code> that you want to include in the <code>WebACL</code>, to specify the default action, and to associate the <code>WebACL</code> with a CloudFront distribution. </p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", + "UpdateWebACL": "<p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>WebACL</code>. Each <code>Rule</code> identifies web requests that you want to allow, block, or count. When you update a <code>WebACL</code>, you specify the following values:</p> <ul> <li> <p>A default action for the <code>WebACL</code>, either <code>ALLOW</code> or <code>BLOCK</code>. AWS WAF performs the default action if a request doesn't match the criteria in any of the <code>Rules</code> in a <code>WebACL</code>.</p> </li> <li> <p>The <code>Rules</code> that you want to add and/or delete. If you want to replace one <code>Rule</code> with another, you delete the existing <code>Rule</code> and add the new one.</p> </li> <li> <p>For each <code>Rule</code>, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the <code>Rule</code>.</p> </li> <li> <p>The order in which you want AWS WAF to evaluate the <code>Rules</code> in a <code>WebACL</code>. If you add more than one <code>Rule</code> to a <code>WebACL</code>, AWS WAF evaluates each request against the <code>Rules</code> in order based on the value of <code>Priority</code>. (The <code>Rule</code> that has the lowest value for <code>Priority</code> is evaluated first.) When a web request matches all of the predicates (such as <code>ByteMatchSets</code> and <code>IPSets</code>) in a <code>Rule</code>, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining <code>Rules</code> in the <code>WebACL</code>, if any. </p> </li> </ul> <p>To create and configure a <code>WebACL</code>, perform the following steps:</p> <ol> <li> <p>Create and update the predicates that you want to include in <code>Rules</code>. For more information, see <a>CreateByteMatchSet</a>, <a>UpdateByteMatchSet</a>, <a>CreateIPSet</a>, <a>UpdateIPSet</a>, <a>CreateSqlInjectionMatchSet</a>, and <a>UpdateSqlInjectionMatchSet</a>.</p> </li> <li> <p>Create and update the <code>Rules</code> that you want to include in the <code>WebACL</code>. For more information, see <a>CreateRule</a> and <a>UpdateRule</a>.</p> </li> <li> <p>Create a <code>WebACL</code>. See <a>CreateWebACL</a>.</p> </li> <li> <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateWebACL</a> request.</p> </li> <li> <p>Submit an <code>UpdateWebACL</code> request to specify the <code>Rules</code> that you want to include in the <code>WebACL</code>, to specify the default action, and to associate the <code>WebACL</code> with a CloudFront distribution. </p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", "UpdateXssMatchSet": "<p>Inserts or deletes <a>XssMatchTuple</a> objects (filters) in an <a>XssMatchSet</a>. For each <code>XssMatchTuple</code> object, you specify the following values:</p> <ul> <li> <p> <code>Action</code>: Whether to insert the object into or delete the object from the array. To change a <code>XssMatchTuple</code>, you delete the existing object and add a new one.</p> </li> <li> <p> <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.</p> </li> <li> <p> <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.</p> </li> </ul> <p>You use <code>XssMatchSet</code> objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an <code>XssMatchSet</code> with the applicable settings, and then configure AWS WAF to block the requests. </p> <p>To create and configure an <code>XssMatchSet</code>, perform the following steps:</p> <ol> <li> <p>Submit a <a>CreateXssMatchSet</a> request.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateIPSet</a> request.</p> </li> <li> <p>Submit an <code>UpdateXssMatchSet</code> request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.</p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>" }, "shapes": { @@ -413,6 +413,12 @@ "refs": { } }, + "GetSampledRequestsMaxItems": { + "base": null, + "refs": { + "GetSampledRequestsRequest$MaxItems": "<p>The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of <code>MaxItems</code>, <code>GetSampledRequests</code> returns information about all of them. </p>" + } + }, "GetSampledRequestsRequest": { "base": null, "refs": { @@ -597,12 +603,6 @@ "refs": { } }, - "ListMaxItems": { - "base": null, - "refs": { - "GetSampledRequestsRequest$MaxItems": "<p>The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of <code>MaxItems</code>, <code>GetSampledRequests</code> returns information about all of them. </p>" - } - }, "ListResourcesForWebACLRequest": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json index 185fadba..3b5dcb44 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json @@ -1,7 +1,6 @@ { "version":"2.0", "metadata":{ - "uid":"waf-2015-08-24", "apiVersion":"2015-08-24", "endpointPrefix":"waf", "jsonVersion":"1.1", @@ -1049,6 +1048,11 @@ "Rule":{"shape":"Rule"} } }, + "GetSampledRequestsMaxItems":{ + "type":"long", + "max":500, + "min":1 + }, "GetSampledRequestsRequest":{ "type":"structure", "required":[ @@ -1061,7 +1065,7 @@ "WebAclId":{"shape":"ResourceId"}, "RuleId":{"shape":"ResourceId"}, "TimeWindow":{"shape":"TimeWindow"}, - "MaxItems":{"shape":"ListMaxItems"} + "MaxItems":{"shape":"GetSampledRequestsMaxItems"} } }, "GetSampledRequestsResponse":{ @@ -1244,11 +1248,6 @@ "IPSets":{"shape":"IPSetSummaries"} } }, - "ListMaxItems":{ - "type":"long", - "max":100, - "min":1 - }, "ListRulesRequest":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json index b349e58e..8dfa0a97 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json @@ -21,7 +21,7 @@ "GetChangeTokenStatus": "<p>Returns the status of a <code>ChangeToken</code> that you got by calling <a>GetChangeToken</a>. <code>ChangeTokenStatus</code> is one of the following values:</p> <ul> <li> <p> <code>PROVISIONED</code>: You requested the change token by calling <code>GetChangeToken</code>, but you haven't used it yet in a call to create, update, or delete an AWS WAF object.</p> </li> <li> <p> <code>PENDING</code>: AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.</p> </li> <li> <p> <code>IN_SYNC</code>: Propagation is complete.</p> </li> </ul>", "GetIPSet": "<p>Returns the <a>IPSet</a> that is specified by <code>IPSetId</code>.</p>", "GetRule": "<p>Returns the <a>Rule</a> that is specified by the <code>RuleId</code> that you included in the <code>GetRule</code> request.</p>", - "GetSampledRequests": "<p>Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 100 requests, and you can specify any time range in the previous three hours.</p> <p> <code>GetSampledRequests</code> returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, <code>GetSampledRequests</code> returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.</p>", + "GetSampledRequests": "<p>Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any time range in the previous three hours.</p> <p> <code>GetSampledRequests</code> returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, <code>GetSampledRequests</code> returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.</p>", "GetSizeConstraintSet": "<p>Returns the <a>SizeConstraintSet</a> specified by <code>SizeConstraintSetId</code>.</p>", "GetSqlInjectionMatchSet": "<p>Returns the <a>SqlInjectionMatchSet</a> that is specified by <code>SqlInjectionMatchSetId</code>.</p>", "GetWebACL": "<p>Returns the <a>WebACL</a> that is specified by <code>WebACLId</code>.</p>", @@ -38,7 +38,7 @@ "UpdateRule": "<p>Inserts or deletes <a>Predicate</a> objects in a <code>Rule</code>. Each <code>Predicate</code> object identifies a predicate, such as a <a>ByteMatchSet</a> or an <a>IPSet</a>, that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a <code>Rule</code>, a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a <code>Rule</code>: </p> <ul> <li> <p>A <code>ByteMatchSet</code> that matches the value <code>BadBot</code> in the <code>User-Agent</code> header</p> </li> <li> <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44</code> </p> </li> </ul> <p>You then add the <code>Rule</code> to a <code>WebACL</code> and specify that you want to block requests that satisfy the <code>Rule</code>. For a request to be blocked, the <code>User-Agent</code> header in the request must contain the value <code>BadBot</code> <i>and</i> the request must originate from the IP address 192.0.2.44.</p> <p>To create and configure a <code>Rule</code>, perform the following steps:</p> <ol> <li> <p>Create and update the predicates that you want to include in the <code>Rule</code>.</p> </li> <li> <p>Create the <code>Rule</code>. See <a>CreateRule</a>.</p> </li> <li> <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateRule</a> request.</p> </li> <li> <p>Submit an <code>UpdateRule</code> request to add predicates to the <code>Rule</code>.</p> </li> <li> <p>Create and update a <code>WebACL</code> that contains the <code>Rule</code>. See <a>CreateWebACL</a>.</p> </li> </ol> <p>If you want to replace one <code>ByteMatchSet</code> or <code>IPSet</code> with another, you delete the existing one and add the new one.</p> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", "UpdateSizeConstraintSet": "<p>Inserts or deletes <a>SizeConstraint</a> objects (filters) in a <a>SizeConstraintSet</a>. For each <code>SizeConstraint</code> object, you specify the following values: </p> <ul> <li> <p>Whether to insert or delete the object from the array. If you want to change a <code>SizeConstraintSetUpdate</code> object, you delete the existing object and add a new one.</p> </li> <li> <p>The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the <code>User-Agent</code> header.</p> </li> <li> <p>Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first <code>8192</code> bytes of your request to AWS WAF.</p> </li> <li> <p>A <code>ComparisonOperator</code> used for evaluating the selected part of the request against the specified <code>Size</code>, such as equals, greater than, less than, and so on.</p> </li> <li> <p>The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.</p> </li> </ul> <p>For example, you can add a <code>SizeConstraintSetUpdate</code> object that matches web requests in which the length of the <code>User-Agent</code> header is greater than 100 bytes. You can then configure AWS WAF to block those requests.</p> <p>To create and configure a <code>SizeConstraintSet</code>, perform the following steps:</p> <ol> <li> <p>Create a <code>SizeConstraintSet.</code> For more information, see <a>CreateSizeConstraintSet</a>.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <code>UpdateSizeConstraintSet</code> request.</p> </li> <li> <p>Submit an <code>UpdateSizeConstraintSet</code> request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.</p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", "UpdateSqlInjectionMatchSet": "<p>Inserts or deletes <a>SqlInjectionMatchTuple</a> objects (filters) in a <a>SqlInjectionMatchSet</a>. For each <code>SqlInjectionMatchTuple</code> object, you specify the following values:</p> <ul> <li> <p> <code>Action</code>: Whether to insert the object into or delete the object from the array. To change a <code>SqlInjectionMatchTuple</code>, you delete the existing object and add a new one.</p> </li> <li> <p> <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.</p> </li> <li> <p> <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code.</p> </li> </ul> <p>You use <code>SqlInjectionMatchSet</code> objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a <code>SqlInjectionMatchSet</code> with the applicable settings, and then configure AWS WAF to block the requests. </p> <p>To create and configure a <code>SqlInjectionMatchSet</code>, perform the following steps:</p> <ol> <li> <p>Submit a <a>CreateSqlInjectionMatchSet</a> request.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateIPSet</a> request.</p> </li> <li> <p>Submit an <code>UpdateSqlInjectionMatchSet</code> request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.</p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", - "UpdateWebACL": "<p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>WebACL</code>. Each <code>Rule</code> identifies web requests that you want to allow, block, or count. When you update a <code>WebACL</code>, you specify the following values:</p> <ul> <li> <p>A default action for the <code>WebACL</code>, either <code>ALLOW</code> or <code>BLOCK</code>. AWS WAF performs the default action if a request doesn't match the criteria in any of the <code>Rules</code> in a <code>WebACL</code>.</p> </li> <li> <p>The <code>Rules</code> that you want to add and/or delete. If you want to replace one <code>Rule</code> with another, you delete the existing <code>Rule</code> and add the new one.</p> </li> <li> <p>For each <code>Rule</code>, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the <code>Rule</code>.</p> </li> <li> <p>The order in which you want AWS WAF to evaluate the <code>Rules</code> in a <code>WebACL</code>. If you add more than one <code>Rule</code> to a <code>WebACL</code>, AWS WAF evaluates each request against the <code>Rules</code> in order based on the value of <code>Priority</code>. (The <code>Rule</code> that has the lowest value for <code>Priority</code> is evaluated first.) When a web request matches all of the predicates (such as <code>ByteMatchSets</code> and <code>IPSets</code>) in a <code>Rule</code>, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining <code>Rules</code> in the <code>WebACL</code>, if any. </p> </li> <li> <p>The CloudFront distribution that you want to associate with the <code>WebACL</code>.</p> </li> </ul> <p>To create and configure a <code>WebACL</code>, perform the following steps:</p> <ol> <li> <p>Create and update the predicates that you want to include in <code>Rules</code>. For more information, see <a>CreateByteMatchSet</a>, <a>UpdateByteMatchSet</a>, <a>CreateIPSet</a>, <a>UpdateIPSet</a>, <a>CreateSqlInjectionMatchSet</a>, and <a>UpdateSqlInjectionMatchSet</a>.</p> </li> <li> <p>Create and update the <code>Rules</code> that you want to include in the <code>WebACL</code>. For more information, see <a>CreateRule</a> and <a>UpdateRule</a>.</p> </li> <li> <p>Create a <code>WebACL</code>. See <a>CreateWebACL</a>.</p> </li> <li> <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateWebACL</a> request.</p> </li> <li> <p>Submit an <code>UpdateWebACL</code> request to specify the <code>Rules</code> that you want to include in the <code>WebACL</code>, to specify the default action, and to associate the <code>WebACL</code> with a CloudFront distribution. </p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", + "UpdateWebACL": "<p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>WebACL</code>. Each <code>Rule</code> identifies web requests that you want to allow, block, or count. When you update a <code>WebACL</code>, you specify the following values:</p> <ul> <li> <p>A default action for the <code>WebACL</code>, either <code>ALLOW</code> or <code>BLOCK</code>. AWS WAF performs the default action if a request doesn't match the criteria in any of the <code>Rules</code> in a <code>WebACL</code>.</p> </li> <li> <p>The <code>Rules</code> that you want to add and/or delete. If you want to replace one <code>Rule</code> with another, you delete the existing <code>Rule</code> and add the new one.</p> </li> <li> <p>For each <code>Rule</code>, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the <code>Rule</code>.</p> </li> <li> <p>The order in which you want AWS WAF to evaluate the <code>Rules</code> in a <code>WebACL</code>. If you add more than one <code>Rule</code> to a <code>WebACL</code>, AWS WAF evaluates each request against the <code>Rules</code> in order based on the value of <code>Priority</code>. (The <code>Rule</code> that has the lowest value for <code>Priority</code> is evaluated first.) When a web request matches all of the predicates (such as <code>ByteMatchSets</code> and <code>IPSets</code>) in a <code>Rule</code>, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining <code>Rules</code> in the <code>WebACL</code>, if any. </p> </li> </ul> <p>To create and configure a <code>WebACL</code>, perform the following steps:</p> <ol> <li> <p>Create and update the predicates that you want to include in <code>Rules</code>. For more information, see <a>CreateByteMatchSet</a>, <a>UpdateByteMatchSet</a>, <a>CreateIPSet</a>, <a>UpdateIPSet</a>, <a>CreateSqlInjectionMatchSet</a>, and <a>UpdateSqlInjectionMatchSet</a>.</p> </li> <li> <p>Create and update the <code>Rules</code> that you want to include in the <code>WebACL</code>. For more information, see <a>CreateRule</a> and <a>UpdateRule</a>.</p> </li> <li> <p>Create a <code>WebACL</code>. See <a>CreateWebACL</a>.</p> </li> <li> <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateWebACL</a> request.</p> </li> <li> <p>Submit an <code>UpdateWebACL</code> request to specify the <code>Rules</code> that you want to include in the <code>WebACL</code>, to specify the default action, and to associate the <code>WebACL</code> with a CloudFront distribution. </p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>", "UpdateXssMatchSet": "<p>Inserts or deletes <a>XssMatchTuple</a> objects (filters) in an <a>XssMatchSet</a>. For each <code>XssMatchTuple</code> object, you specify the following values:</p> <ul> <li> <p> <code>Action</code>: Whether to insert the object into or delete the object from the array. To change a <code>XssMatchTuple</code>, you delete the existing object and add a new one.</p> </li> <li> <p> <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.</p> </li> <li> <p> <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.</p> </li> </ul> <p>You use <code>XssMatchSet</code> objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an <code>XssMatchSet</code> with the applicable settings, and then configure AWS WAF to block the requests. </p> <p>To create and configure an <code>XssMatchSet</code>, perform the following steps:</p> <ol> <li> <p>Submit a <a>CreateXssMatchSet</a> request.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an <a>UpdateIPSet</a> request.</p> </li> <li> <p>Submit an <code>UpdateXssMatchSet</code> request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.</p> </li> </ol> <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href=\"http://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>" }, "shapes": { @@ -389,6 +389,12 @@ "refs": { } }, + "GetSampledRequestsMaxItems": { + "base": null, + "refs": { + "GetSampledRequestsRequest$MaxItems": "<p>The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of <code>MaxItems</code>, <code>GetSampledRequests</code> returns information about all of them. </p>" + } + }, "GetSampledRequestsRequest": { "base": null, "refs": { @@ -563,12 +569,6 @@ "refs": { } }, - "ListMaxItems": { - "base": null, - "refs": { - "GetSampledRequestsRequest$MaxItems": "<p>The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of <code>MaxItems</code>, <code>GetSampledRequests</code> returns information about all of them. </p>" - } - }, "ListRulesRequest": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go index f36eda9e..a0600e0b 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go @@ -545,7 +545,7 @@ var tplInterface = template.Must(template.New("interface").Parse(` // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mock{{ .StructName }}Client{} // diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go index f273caa9..f3e5f736 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go @@ -209,11 +209,7 @@ func (o *Operation) InterfaceSignature() string { // tplExample defines the template for rendering an Operation example var tplExample = template.Must(template.New("operationExample").Parse(` func Example{{ .API.StructName }}_{{ .ExportedName }}() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := {{ .API.PackageName }}.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go index 65d9daa8..bede8989 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockACMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go index 154e453f..97d97b76 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleACM_AddTagsToCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -48,11 +44,7 @@ func ExampleACM_AddTagsToCertificate() { } func ExampleACM_DeleteCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -73,11 +65,7 @@ func ExampleACM_DeleteCertificate() { } func ExampleACM_DescribeCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -98,11 +86,7 @@ func ExampleACM_DescribeCertificate() { } func ExampleACM_GetCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -123,11 +107,7 @@ func ExampleACM_GetCertificate() { } func ExampleACM_ImportCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -151,11 +131,7 @@ func ExampleACM_ImportCertificate() { } func ExampleACM_ListCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -181,11 +157,7 @@ func ExampleACM_ListCertificates() { } func ExampleACM_ListTagsForCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -206,11 +178,7 @@ func ExampleACM_ListTagsForCertificate() { } func ExampleACM_RemoveTagsFromCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -238,11 +206,7 @@ func ExampleACM_RemoveTagsFromCertificate() { } func ExampleACM_RequestCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -275,11 +239,7 @@ func ExampleACM_RequestCertificate() { } func ExampleACM_ResendValidationEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go index 74926b8d..97062499 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAPIGatewayClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go index 341a233c..663f2680 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleAPIGateway_CreateApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -53,11 +49,7 @@ func ExampleAPIGateway_CreateApiKey() { } func ExampleAPIGateway_CreateAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -90,11 +82,7 @@ func ExampleAPIGateway_CreateAuthorizer() { } func ExampleAPIGateway_CreateBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -118,11 +106,7 @@ func ExampleAPIGateway_CreateBasePathMapping() { } func ExampleAPIGateway_CreateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -152,11 +136,7 @@ func ExampleAPIGateway_CreateDeployment() { } func ExampleAPIGateway_CreateDocumentationPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -185,11 +165,7 @@ func ExampleAPIGateway_CreateDocumentationPart() { } func ExampleAPIGateway_CreateDocumentationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -213,11 +189,7 @@ func ExampleAPIGateway_CreateDocumentationVersion() { } func ExampleAPIGateway_CreateDomainName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -242,11 +214,7 @@ func ExampleAPIGateway_CreateDomainName() { } func ExampleAPIGateway_CreateModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -271,11 +239,7 @@ func ExampleAPIGateway_CreateModel() { } func ExampleAPIGateway_CreateResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -298,11 +262,7 @@ func ExampleAPIGateway_CreateResource() { } func ExampleAPIGateway_CreateRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -330,11 +290,7 @@ func ExampleAPIGateway_CreateRestApi() { } func ExampleAPIGateway_CreateStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -365,11 +321,7 @@ func ExampleAPIGateway_CreateStage() { } func ExampleAPIGateway_CreateUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -407,11 +359,7 @@ func ExampleAPIGateway_CreateUsagePlan() { } func ExampleAPIGateway_CreateUsagePlanKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -434,11 +382,7 @@ func ExampleAPIGateway_CreateUsagePlanKey() { } func ExampleAPIGateway_DeleteApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -459,11 +403,7 @@ func ExampleAPIGateway_DeleteApiKey() { } func ExampleAPIGateway_DeleteAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -485,11 +425,7 @@ func ExampleAPIGateway_DeleteAuthorizer() { } func ExampleAPIGateway_DeleteBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -511,11 +447,7 @@ func ExampleAPIGateway_DeleteBasePathMapping() { } func ExampleAPIGateway_DeleteClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -536,11 +468,7 @@ func ExampleAPIGateway_DeleteClientCertificate() { } func ExampleAPIGateway_DeleteDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -562,11 +490,7 @@ func ExampleAPIGateway_DeleteDeployment() { } func ExampleAPIGateway_DeleteDocumentationPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -588,11 +512,7 @@ func ExampleAPIGateway_DeleteDocumentationPart() { } func ExampleAPIGateway_DeleteDocumentationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -614,11 +534,7 @@ func ExampleAPIGateway_DeleteDocumentationVersion() { } func ExampleAPIGateway_DeleteDomainName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -639,11 +555,7 @@ func ExampleAPIGateway_DeleteDomainName() { } func ExampleAPIGateway_DeleteIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -666,11 +578,7 @@ func ExampleAPIGateway_DeleteIntegration() { } func ExampleAPIGateway_DeleteIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -694,11 +602,7 @@ func ExampleAPIGateway_DeleteIntegrationResponse() { } func ExampleAPIGateway_DeleteMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -721,11 +625,7 @@ func ExampleAPIGateway_DeleteMethod() { } func ExampleAPIGateway_DeleteMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -749,11 +649,7 @@ func ExampleAPIGateway_DeleteMethodResponse() { } func ExampleAPIGateway_DeleteModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -775,11 +671,7 @@ func ExampleAPIGateway_DeleteModel() { } func ExampleAPIGateway_DeleteResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -801,11 +693,7 @@ func ExampleAPIGateway_DeleteResource() { } func ExampleAPIGateway_DeleteRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -826,11 +714,7 @@ func ExampleAPIGateway_DeleteRestApi() { } func ExampleAPIGateway_DeleteStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -852,11 +736,7 @@ func ExampleAPIGateway_DeleteStage() { } func ExampleAPIGateway_DeleteUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -877,11 +757,7 @@ func ExampleAPIGateway_DeleteUsagePlan() { } func ExampleAPIGateway_DeleteUsagePlanKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -903,11 +779,7 @@ func ExampleAPIGateway_DeleteUsagePlanKey() { } func ExampleAPIGateway_FlushStageAuthorizersCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -929,11 +801,7 @@ func ExampleAPIGateway_FlushStageAuthorizersCache() { } func ExampleAPIGateway_FlushStageCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -955,11 +823,7 @@ func ExampleAPIGateway_FlushStageCache() { } func ExampleAPIGateway_GenerateClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -980,11 +844,7 @@ func ExampleAPIGateway_GenerateClientCertificate() { } func ExampleAPIGateway_GetAccount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1003,11 +863,7 @@ func ExampleAPIGateway_GetAccount() { } func ExampleAPIGateway_GetApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1029,11 +885,7 @@ func ExampleAPIGateway_GetApiKey() { } func ExampleAPIGateway_GetApiKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1058,11 +910,7 @@ func ExampleAPIGateway_GetApiKeys() { } func ExampleAPIGateway_GetAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1084,11 +932,7 @@ func ExampleAPIGateway_GetAuthorizer() { } func ExampleAPIGateway_GetAuthorizers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1111,11 +955,7 @@ func ExampleAPIGateway_GetAuthorizers() { } func ExampleAPIGateway_GetBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1137,11 +977,7 @@ func ExampleAPIGateway_GetBasePathMapping() { } func ExampleAPIGateway_GetBasePathMappings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1164,11 +1000,7 @@ func ExampleAPIGateway_GetBasePathMappings() { } func ExampleAPIGateway_GetClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1189,11 +1021,7 @@ func ExampleAPIGateway_GetClientCertificate() { } func ExampleAPIGateway_GetClientCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1215,11 +1043,7 @@ func ExampleAPIGateway_GetClientCertificates() { } func ExampleAPIGateway_GetDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1241,11 +1065,7 @@ func ExampleAPIGateway_GetDeployment() { } func ExampleAPIGateway_GetDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1268,11 +1088,7 @@ func ExampleAPIGateway_GetDeployments() { } func ExampleAPIGateway_GetDocumentationPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1294,11 +1110,7 @@ func ExampleAPIGateway_GetDocumentationPart() { } func ExampleAPIGateway_GetDocumentationParts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1324,11 +1136,7 @@ func ExampleAPIGateway_GetDocumentationParts() { } func ExampleAPIGateway_GetDocumentationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1350,11 +1158,7 @@ func ExampleAPIGateway_GetDocumentationVersion() { } func ExampleAPIGateway_GetDocumentationVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1377,11 +1181,7 @@ func ExampleAPIGateway_GetDocumentationVersions() { } func ExampleAPIGateway_GetDomainName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1402,11 +1202,7 @@ func ExampleAPIGateway_GetDomainName() { } func ExampleAPIGateway_GetDomainNames() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1428,11 +1224,7 @@ func ExampleAPIGateway_GetDomainNames() { } func ExampleAPIGateway_GetExport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1460,11 +1252,7 @@ func ExampleAPIGateway_GetExport() { } func ExampleAPIGateway_GetIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1487,11 +1275,7 @@ func ExampleAPIGateway_GetIntegration() { } func ExampleAPIGateway_GetIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1515,11 +1299,7 @@ func ExampleAPIGateway_GetIntegrationResponse() { } func ExampleAPIGateway_GetMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1542,11 +1322,7 @@ func ExampleAPIGateway_GetMethod() { } func ExampleAPIGateway_GetMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1570,11 +1346,7 @@ func ExampleAPIGateway_GetMethodResponse() { } func ExampleAPIGateway_GetModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1597,11 +1369,7 @@ func ExampleAPIGateway_GetModel() { } func ExampleAPIGateway_GetModelTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1623,11 +1391,7 @@ func ExampleAPIGateway_GetModelTemplate() { } func ExampleAPIGateway_GetModels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1650,11 +1414,7 @@ func ExampleAPIGateway_GetModels() { } func ExampleAPIGateway_GetResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1676,11 +1436,7 @@ func ExampleAPIGateway_GetResource() { } func ExampleAPIGateway_GetResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1703,11 +1459,7 @@ func ExampleAPIGateway_GetResources() { } func ExampleAPIGateway_GetRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1728,11 +1480,7 @@ func ExampleAPIGateway_GetRestApi() { } func ExampleAPIGateway_GetRestApis() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1754,11 +1502,7 @@ func ExampleAPIGateway_GetRestApis() { } func ExampleAPIGateway_GetSdk() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1785,11 +1529,7 @@ func ExampleAPIGateway_GetSdk() { } func ExampleAPIGateway_GetSdkType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1810,11 +1550,7 @@ func ExampleAPIGateway_GetSdkType() { } func ExampleAPIGateway_GetSdkTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1836,11 +1572,7 @@ func ExampleAPIGateway_GetSdkTypes() { } func ExampleAPIGateway_GetStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1862,11 +1594,7 @@ func ExampleAPIGateway_GetStage() { } func ExampleAPIGateway_GetStages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1888,11 +1616,7 @@ func ExampleAPIGateway_GetStages() { } func ExampleAPIGateway_GetUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1918,11 +1642,7 @@ func ExampleAPIGateway_GetUsage() { } func ExampleAPIGateway_GetUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1943,11 +1663,7 @@ func ExampleAPIGateway_GetUsagePlan() { } func ExampleAPIGateway_GetUsagePlanKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1969,11 +1685,7 @@ func ExampleAPIGateway_GetUsagePlanKey() { } func ExampleAPIGateway_GetUsagePlanKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1997,11 +1709,7 @@ func ExampleAPIGateway_GetUsagePlanKeys() { } func ExampleAPIGateway_GetUsagePlans() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2024,11 +1732,7 @@ func ExampleAPIGateway_GetUsagePlans() { } func ExampleAPIGateway_ImportApiKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2051,11 +1755,7 @@ func ExampleAPIGateway_ImportApiKeys() { } func ExampleAPIGateway_ImportDocumentationParts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2079,11 +1779,7 @@ func ExampleAPIGateway_ImportDocumentationParts() { } func ExampleAPIGateway_ImportRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2109,11 +1805,7 @@ func ExampleAPIGateway_ImportRestApi() { } func ExampleAPIGateway_PutIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2155,11 +1847,7 @@ func ExampleAPIGateway_PutIntegration() { } func ExampleAPIGateway_PutIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2193,11 +1881,7 @@ func ExampleAPIGateway_PutIntegrationResponse() { } func ExampleAPIGateway_PutMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2232,11 +1916,7 @@ func ExampleAPIGateway_PutMethod() { } func ExampleAPIGateway_PutMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2268,11 +1948,7 @@ func ExampleAPIGateway_PutMethodResponse() { } func ExampleAPIGateway_PutRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2300,11 +1976,7 @@ func ExampleAPIGateway_PutRestApi() { } func ExampleAPIGateway_TestInvokeAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2340,11 +2012,7 @@ func ExampleAPIGateway_TestInvokeAuthorizer() { } func ExampleAPIGateway_TestInvokeMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2378,11 +2046,7 @@ func ExampleAPIGateway_TestInvokeMethod() { } func ExampleAPIGateway_UpdateAccount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2411,11 +2075,7 @@ func ExampleAPIGateway_UpdateAccount() { } func ExampleAPIGateway_UpdateApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2445,11 +2105,7 @@ func ExampleAPIGateway_UpdateApiKey() { } func ExampleAPIGateway_UpdateAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2480,11 +2136,7 @@ func ExampleAPIGateway_UpdateAuthorizer() { } func ExampleAPIGateway_UpdateBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2515,11 +2167,7 @@ func ExampleAPIGateway_UpdateBasePathMapping() { } func ExampleAPIGateway_UpdateClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2549,11 +2197,7 @@ func ExampleAPIGateway_UpdateClientCertificate() { } func ExampleAPIGateway_UpdateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2584,11 +2228,7 @@ func ExampleAPIGateway_UpdateDeployment() { } func ExampleAPIGateway_UpdateDocumentationPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2619,11 +2259,7 @@ func ExampleAPIGateway_UpdateDocumentationPart() { } func ExampleAPIGateway_UpdateDocumentationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2654,11 +2290,7 @@ func ExampleAPIGateway_UpdateDocumentationVersion() { } func ExampleAPIGateway_UpdateDomainName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2688,11 +2320,7 @@ func ExampleAPIGateway_UpdateDomainName() { } func ExampleAPIGateway_UpdateIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2724,11 +2352,7 @@ func ExampleAPIGateway_UpdateIntegration() { } func ExampleAPIGateway_UpdateIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2761,11 +2385,7 @@ func ExampleAPIGateway_UpdateIntegrationResponse() { } func ExampleAPIGateway_UpdateMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2797,11 +2417,7 @@ func ExampleAPIGateway_UpdateMethod() { } func ExampleAPIGateway_UpdateMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2834,11 +2450,7 @@ func ExampleAPIGateway_UpdateMethodResponse() { } func ExampleAPIGateway_UpdateModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2869,11 +2481,7 @@ func ExampleAPIGateway_UpdateModel() { } func ExampleAPIGateway_UpdateResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2904,11 +2512,7 @@ func ExampleAPIGateway_UpdateResource() { } func ExampleAPIGateway_UpdateRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2938,11 +2542,7 @@ func ExampleAPIGateway_UpdateRestApi() { } func ExampleAPIGateway_UpdateStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2973,11 +2573,7 @@ func ExampleAPIGateway_UpdateStage() { } func ExampleAPIGateway_UpdateUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -3008,11 +2604,7 @@ func ExampleAPIGateway_UpdateUsage() { } func ExampleAPIGateway_UpdateUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go index eb39954d..126f7d45 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationAutoScalingClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go index 952643a6..d4b597e2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleApplicationAutoScaling_DeleteScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -44,11 +40,7 @@ func ExampleApplicationAutoScaling_DeleteScalingPolicy() { } func ExampleApplicationAutoScaling_DeregisterScalableTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -71,11 +63,7 @@ func ExampleApplicationAutoScaling_DeregisterScalableTarget() { } func ExampleApplicationAutoScaling_DescribeScalableTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -103,11 +91,7 @@ func ExampleApplicationAutoScaling_DescribeScalableTargets() { } func ExampleApplicationAutoScaling_DescribeScalingActivities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -132,11 +116,7 @@ func ExampleApplicationAutoScaling_DescribeScalingActivities() { } func ExampleApplicationAutoScaling_DescribeScalingPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -165,11 +145,7 @@ func ExampleApplicationAutoScaling_DescribeScalingPolicies() { } func ExampleApplicationAutoScaling_PutScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -208,11 +184,7 @@ func ExampleApplicationAutoScaling_PutScalingPolicy() { } func ExampleApplicationAutoScaling_RegisterScalableTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go index 88b846af..df629e11 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationDiscoveryServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go index 9bbdbadc..62b12615 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleApplicationDiscoveryService_AssociateConfigurationItemsToApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -45,11 +41,7 @@ func ExampleApplicationDiscoveryService_AssociateConfigurationItemsToApplication } func ExampleApplicationDiscoveryService_CreateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -71,11 +63,7 @@ func ExampleApplicationDiscoveryService_CreateApplication() { } func ExampleApplicationDiscoveryService_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -106,11 +94,7 @@ func ExampleApplicationDiscoveryService_CreateTags() { } func ExampleApplicationDiscoveryService_DeleteApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -134,11 +118,7 @@ func ExampleApplicationDiscoveryService_DeleteApplications() { } func ExampleApplicationDiscoveryService_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -169,11 +149,7 @@ func ExampleApplicationDiscoveryService_DeleteTags() { } func ExampleApplicationDiscoveryService_DescribeAgents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -210,11 +186,7 @@ func ExampleApplicationDiscoveryService_DescribeAgents() { } func ExampleApplicationDiscoveryService_DescribeConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -238,11 +210,7 @@ func ExampleApplicationDiscoveryService_DescribeConfigurations() { } func ExampleApplicationDiscoveryService_DescribeExportConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -268,11 +236,7 @@ func ExampleApplicationDiscoveryService_DescribeExportConfigurations() { } func ExampleApplicationDiscoveryService_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -304,11 +268,7 @@ func ExampleApplicationDiscoveryService_DescribeTags() { } func ExampleApplicationDiscoveryService_DisassociateConfigurationItemsFromApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -333,11 +293,7 @@ func ExampleApplicationDiscoveryService_DisassociateConfigurationItemsFromApplic } func ExampleApplicationDiscoveryService_ExportConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -356,11 +312,7 @@ func ExampleApplicationDiscoveryService_ExportConfigurations() { } func ExampleApplicationDiscoveryService_GetDiscoverySummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -379,11 +331,7 @@ func ExampleApplicationDiscoveryService_GetDiscoverySummary() { } func ExampleApplicationDiscoveryService_ListConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -424,11 +372,7 @@ func ExampleApplicationDiscoveryService_ListConfigurations() { } func ExampleApplicationDiscoveryService_ListServerNeighbors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -456,11 +400,7 @@ func ExampleApplicationDiscoveryService_ListServerNeighbors() { } func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -484,11 +424,7 @@ func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() { } func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -512,11 +448,7 @@ func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() { } func ExampleApplicationDiscoveryService_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go index c0ec0324..6e2137f8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAppStreamClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go index 03d82872..fd6b4d12 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleAppStream_AssociateFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -42,11 +38,7 @@ func ExampleAppStream_AssociateFleet() { } func ExampleAppStream_CreateFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -82,11 +74,7 @@ func ExampleAppStream_CreateFleet() { } func ExampleAppStream_CreateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -109,11 +97,7 @@ func ExampleAppStream_CreateStack() { } func ExampleAppStream_CreateStreamingURL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -139,11 +123,7 @@ func ExampleAppStream_CreateStreamingURL() { } func ExampleAppStream_DeleteFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -164,11 +144,7 @@ func ExampleAppStream_DeleteFleet() { } func ExampleAppStream_DeleteStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -189,11 +165,7 @@ func ExampleAppStream_DeleteStack() { } func ExampleAppStream_DescribeFleets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -218,11 +190,7 @@ func ExampleAppStream_DescribeFleets() { } func ExampleAppStream_DescribeImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -246,11 +214,7 @@ func ExampleAppStream_DescribeImages() { } func ExampleAppStream_DescribeSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -275,11 +239,7 @@ func ExampleAppStream_DescribeSessions() { } func ExampleAppStream_DescribeStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -304,11 +264,7 @@ func ExampleAppStream_DescribeStacks() { } func ExampleAppStream_DisassociateFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -330,11 +286,7 @@ func ExampleAppStream_DisassociateFleet() { } func ExampleAppStream_ExpireSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -355,11 +307,7 @@ func ExampleAppStream_ExpireSession() { } func ExampleAppStream_ListAssociatedFleets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -381,11 +329,7 @@ func ExampleAppStream_ListAssociatedFleets() { } func ExampleAppStream_ListAssociatedStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -407,11 +351,7 @@ func ExampleAppStream_ListAssociatedStacks() { } func ExampleAppStream_StartFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -432,11 +372,7 @@ func ExampleAppStream_StartFleet() { } func ExampleAppStream_StopFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -457,11 +393,7 @@ func ExampleAppStream_StopFleet() { } func ExampleAppStream_UpdateFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) @@ -498,11 +430,7 @@ func ExampleAppStream_UpdateFleet() { } func ExampleAppStream_UpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := appstream.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go index b7edd1ed..c7650312 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAutoScalingClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go index 9e92ca77..55e6120b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleAutoScaling_AttachInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -45,11 +41,7 @@ func ExampleAutoScaling_AttachInstances() { } func ExampleAutoScaling_AttachLoadBalancerTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -74,11 +66,7 @@ func ExampleAutoScaling_AttachLoadBalancerTargetGroups() { } func ExampleAutoScaling_AttachLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -103,11 +91,7 @@ func ExampleAutoScaling_AttachLoadBalancers() { } func ExampleAutoScaling_CompleteLifecycleAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -132,11 +116,7 @@ func ExampleAutoScaling_CompleteLifecycleAction() { } func ExampleAutoScaling_CreateAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -194,11 +174,7 @@ func ExampleAutoScaling_CreateAutoScalingGroup() { } func ExampleAutoScaling_CreateLaunchConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -259,11 +235,7 @@ func ExampleAutoScaling_CreateLaunchConfiguration() { } func ExampleAutoScaling_CreateOrUpdateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -293,11 +265,7 @@ func ExampleAutoScaling_CreateOrUpdateTags() { } func ExampleAutoScaling_DeleteAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -319,11 +287,7 @@ func ExampleAutoScaling_DeleteAutoScalingGroup() { } func ExampleAutoScaling_DeleteLaunchConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -344,11 +308,7 @@ func ExampleAutoScaling_DeleteLaunchConfiguration() { } func ExampleAutoScaling_DeleteLifecycleHook() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -370,11 +330,7 @@ func ExampleAutoScaling_DeleteLifecycleHook() { } func ExampleAutoScaling_DeleteNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -396,11 +352,7 @@ func ExampleAutoScaling_DeleteNotificationConfiguration() { } func ExampleAutoScaling_DeletePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -422,11 +374,7 @@ func ExampleAutoScaling_DeletePolicy() { } func ExampleAutoScaling_DeleteScheduledAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -448,11 +396,7 @@ func ExampleAutoScaling_DeleteScheduledAction() { } func ExampleAutoScaling_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -482,11 +426,7 @@ func ExampleAutoScaling_DeleteTags() { } func ExampleAutoScaling_DescribeAccountLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -505,11 +445,7 @@ func ExampleAutoScaling_DescribeAccountLimits() { } func ExampleAutoScaling_DescribeAdjustmentTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -528,11 +464,7 @@ func ExampleAutoScaling_DescribeAdjustmentTypes() { } func ExampleAutoScaling_DescribeAutoScalingGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -558,11 +490,7 @@ func ExampleAutoScaling_DescribeAutoScalingGroups() { } func ExampleAutoScaling_DescribeAutoScalingInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -588,11 +516,7 @@ func ExampleAutoScaling_DescribeAutoScalingInstances() { } func ExampleAutoScaling_DescribeAutoScalingNotificationTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -611,11 +535,7 @@ func ExampleAutoScaling_DescribeAutoScalingNotificationTypes() { } func ExampleAutoScaling_DescribeLaunchConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -641,11 +561,7 @@ func ExampleAutoScaling_DescribeLaunchConfigurations() { } func ExampleAutoScaling_DescribeLifecycleHookTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -664,11 +580,7 @@ func ExampleAutoScaling_DescribeLifecycleHookTypes() { } func ExampleAutoScaling_DescribeLifecycleHooks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -693,11 +605,7 @@ func ExampleAutoScaling_DescribeLifecycleHooks() { } func ExampleAutoScaling_DescribeLoadBalancerTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -720,11 +628,7 @@ func ExampleAutoScaling_DescribeLoadBalancerTargetGroups() { } func ExampleAutoScaling_DescribeLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -747,11 +651,7 @@ func ExampleAutoScaling_DescribeLoadBalancers() { } func ExampleAutoScaling_DescribeMetricCollectionTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -770,11 +670,7 @@ func ExampleAutoScaling_DescribeMetricCollectionTypes() { } func ExampleAutoScaling_DescribeNotificationConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -800,11 +696,7 @@ func ExampleAutoScaling_DescribeNotificationConfigurations() { } func ExampleAutoScaling_DescribePolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -835,11 +727,7 @@ func ExampleAutoScaling_DescribePolicies() { } func ExampleAutoScaling_DescribeScalingActivities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -866,11 +754,7 @@ func ExampleAutoScaling_DescribeScalingActivities() { } func ExampleAutoScaling_DescribeScalingProcessTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -889,11 +773,7 @@ func ExampleAutoScaling_DescribeScalingProcessTypes() { } func ExampleAutoScaling_DescribeScheduledActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -922,11 +802,7 @@ func ExampleAutoScaling_DescribeScheduledActions() { } func ExampleAutoScaling_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -958,11 +834,7 @@ func ExampleAutoScaling_DescribeTags() { } func ExampleAutoScaling_DescribeTerminationPolicyTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -981,11 +853,7 @@ func ExampleAutoScaling_DescribeTerminationPolicyTypes() { } func ExampleAutoScaling_DetachInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1011,11 +879,7 @@ func ExampleAutoScaling_DetachInstances() { } func ExampleAutoScaling_DetachLoadBalancerTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1040,11 +904,7 @@ func ExampleAutoScaling_DetachLoadBalancerTargetGroups() { } func ExampleAutoScaling_DetachLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1069,11 +929,7 @@ func ExampleAutoScaling_DetachLoadBalancers() { } func ExampleAutoScaling_DisableMetricsCollection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1098,11 +954,7 @@ func ExampleAutoScaling_DisableMetricsCollection() { } func ExampleAutoScaling_EnableMetricsCollection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1128,11 +980,7 @@ func ExampleAutoScaling_EnableMetricsCollection() { } func ExampleAutoScaling_EnterStandby() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1158,11 +1006,7 @@ func ExampleAutoScaling_EnterStandby() { } func ExampleAutoScaling_ExecutePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1187,11 +1031,7 @@ func ExampleAutoScaling_ExecutePolicy() { } func ExampleAutoScaling_ExitStandby() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1216,11 +1056,7 @@ func ExampleAutoScaling_ExitStandby() { } func ExampleAutoScaling_PutLifecycleHook() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1248,11 +1084,7 @@ func ExampleAutoScaling_PutLifecycleHook() { } func ExampleAutoScaling_PutNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1278,11 +1110,7 @@ func ExampleAutoScaling_PutNotificationConfiguration() { } func ExampleAutoScaling_PutScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1320,11 +1148,7 @@ func ExampleAutoScaling_PutScalingPolicy() { } func ExampleAutoScaling_PutScheduledUpdateGroupAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1353,11 +1177,7 @@ func ExampleAutoScaling_PutScheduledUpdateGroupAction() { } func ExampleAutoScaling_RecordLifecycleActionHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1381,11 +1201,7 @@ func ExampleAutoScaling_RecordLifecycleActionHeartbeat() { } func ExampleAutoScaling_ResumeProcesses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1410,11 +1226,7 @@ func ExampleAutoScaling_ResumeProcesses() { } func ExampleAutoScaling_SetDesiredCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1437,11 +1249,7 @@ func ExampleAutoScaling_SetDesiredCapacity() { } func ExampleAutoScaling_SetInstanceHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1464,11 +1272,7 @@ func ExampleAutoScaling_SetInstanceHealth() { } func ExampleAutoScaling_SetInstanceProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1494,11 +1298,7 @@ func ExampleAutoScaling_SetInstanceProtection() { } func ExampleAutoScaling_SuspendProcesses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1523,11 +1323,7 @@ func ExampleAutoScaling_SuspendProcesses() { } func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1549,11 +1345,7 @@ func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup() { } func ExampleAutoScaling_UpdateAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go index 4361ab95..395a13db 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockBatchClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go index cc9019c0..e1bb5dd0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleBatch_CancelJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -42,11 +38,7 @@ func ExampleBatch_CancelJob() { } func ExampleBatch_CreateComputeEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -96,11 +88,7 @@ func ExampleBatch_CreateComputeEnvironment() { } func ExampleBatch_CreateJobQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -130,11 +118,7 @@ func ExampleBatch_CreateJobQueue() { } func ExampleBatch_DeleteComputeEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -155,11 +139,7 @@ func ExampleBatch_DeleteComputeEnvironment() { } func ExampleBatch_DeleteJobQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -180,11 +160,7 @@ func ExampleBatch_DeleteJobQueue() { } func ExampleBatch_DeregisterJobDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -205,11 +181,7 @@ func ExampleBatch_DeregisterJobDefinition() { } func ExampleBatch_DescribeComputeEnvironments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -235,11 +207,7 @@ func ExampleBatch_DescribeComputeEnvironments() { } func ExampleBatch_DescribeJobDefinitions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -267,11 +235,7 @@ func ExampleBatch_DescribeJobDefinitions() { } func ExampleBatch_DescribeJobQueues() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -297,11 +261,7 @@ func ExampleBatch_DescribeJobQueues() { } func ExampleBatch_DescribeJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -325,11 +285,7 @@ func ExampleBatch_DescribeJobs() { } func ExampleBatch_ListJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -353,11 +309,7 @@ func ExampleBatch_ListJobs() { } func ExampleBatch_RegisterJobDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -428,11 +380,7 @@ func ExampleBatch_RegisterJobDefinition() { } func ExampleBatch_SubmitJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -480,11 +428,7 @@ func ExampleBatch_SubmitJob() { } func ExampleBatch_TerminateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -506,11 +450,7 @@ func ExampleBatch_TerminateJob() { } func ExampleBatch_UpdateComputeEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) @@ -538,11 +478,7 @@ func ExampleBatch_UpdateComputeEnvironment() { } func ExampleBatch_UpdateJobQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := batch.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go index 0212f22c..84748915 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockBudgetsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go index 84d1c3ac..655216b0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleBudgets_CreateBudget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -93,11 +89,7 @@ func ExampleBudgets_CreateBudget() { } func ExampleBudgets_CreateNotification() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -131,11 +123,7 @@ func ExampleBudgets_CreateNotification() { } func ExampleBudgets_CreateSubscriber() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -166,11 +154,7 @@ func ExampleBudgets_CreateSubscriber() { } func ExampleBudgets_DeleteBudget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -192,11 +176,7 @@ func ExampleBudgets_DeleteBudget() { } func ExampleBudgets_DeleteNotification() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -223,11 +203,7 @@ func ExampleBudgets_DeleteNotification() { } func ExampleBudgets_DeleteSubscriber() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -258,11 +234,7 @@ func ExampleBudgets_DeleteSubscriber() { } func ExampleBudgets_DescribeBudget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -284,11 +256,7 @@ func ExampleBudgets_DescribeBudget() { } func ExampleBudgets_DescribeBudgets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -311,11 +279,7 @@ func ExampleBudgets_DescribeBudgets() { } func ExampleBudgets_DescribeNotificationsForBudget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -339,11 +303,7 @@ func ExampleBudgets_DescribeNotificationsForBudget() { } func ExampleBudgets_DescribeSubscribersForNotification() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -372,11 +332,7 @@ func ExampleBudgets_DescribeSubscribersForNotification() { } func ExampleBudgets_UpdateBudget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -432,11 +388,7 @@ func ExampleBudgets_UpdateBudget() { } func ExampleBudgets_UpdateNotification() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) @@ -468,11 +420,7 @@ func ExampleBudgets_UpdateNotification() { } func ExampleBudgets_UpdateSubscriber() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := budgets.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go index f5aa0c6d..d37c0940 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go @@ -3412,10 +3412,7 @@ func (c *CloudDirectory) ListObjectAttributesRequest(input *ListObjectAttributes // ListObjectAttributes API operation for Amazon CloudDirectory. // -// Lists all attributes associated with an object. This also supports common -// namespace prefix (key) listing. For example, if you want to retrieve all -// attributes associated with facet1, key can be facet1. If key is empty, all -// attributes are returned in a paginated list. +// Lists all attributes associated with an object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go index 8acfacfb..3f12d824 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudDirectoryClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go index ba8a4da4..bef47084 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudDirectory_AddFacetToObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -65,11 +61,7 @@ func ExampleCloudDirectory_AddFacetToObject() { } func ExampleCloudDirectory_ApplySchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -91,11 +83,7 @@ func ExampleCloudDirectory_ApplySchema() { } func ExampleCloudDirectory_AttachObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -123,11 +111,7 @@ func ExampleCloudDirectory_AttachObject() { } func ExampleCloudDirectory_AttachPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -154,11 +138,7 @@ func ExampleCloudDirectory_AttachPolicy() { } func ExampleCloudDirectory_AttachToIndex() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -185,11 +165,7 @@ func ExampleCloudDirectory_AttachToIndex() { } func ExampleCloudDirectory_BatchRead() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -230,11 +206,7 @@ func ExampleCloudDirectory_BatchRead() { } func ExampleCloudDirectory_BatchWrite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -372,11 +344,7 @@ func ExampleCloudDirectory_BatchWrite() { } func ExampleCloudDirectory_CreateDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -398,11 +366,7 @@ func ExampleCloudDirectory_CreateDirectory() { } func ExampleCloudDirectory_CreateFacet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -457,11 +421,7 @@ func ExampleCloudDirectory_CreateFacet() { } func ExampleCloudDirectory_CreateIndex() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -495,11 +455,7 @@ func ExampleCloudDirectory_CreateIndex() { } func ExampleCloudDirectory_CreateObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -548,11 +504,7 @@ func ExampleCloudDirectory_CreateObject() { } func ExampleCloudDirectory_CreateSchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -573,11 +525,7 @@ func ExampleCloudDirectory_CreateSchema() { } func ExampleCloudDirectory_DeleteDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -598,11 +546,7 @@ func ExampleCloudDirectory_DeleteDirectory() { } func ExampleCloudDirectory_DeleteFacet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -624,11 +568,7 @@ func ExampleCloudDirectory_DeleteFacet() { } func ExampleCloudDirectory_DeleteObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -652,11 +592,7 @@ func ExampleCloudDirectory_DeleteObject() { } func ExampleCloudDirectory_DeleteSchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -677,11 +613,7 @@ func ExampleCloudDirectory_DeleteSchema() { } func ExampleCloudDirectory_DetachFromIndex() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -708,11 +640,7 @@ func ExampleCloudDirectory_DetachFromIndex() { } func ExampleCloudDirectory_DetachObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -737,11 +665,7 @@ func ExampleCloudDirectory_DetachObject() { } func ExampleCloudDirectory_DetachPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -768,11 +692,7 @@ func ExampleCloudDirectory_DetachPolicy() { } func ExampleCloudDirectory_DisableDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -793,11 +713,7 @@ func ExampleCloudDirectory_DisableDirectory() { } func ExampleCloudDirectory_EnableDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -818,11 +734,7 @@ func ExampleCloudDirectory_EnableDirectory() { } func ExampleCloudDirectory_GetDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -843,11 +755,7 @@ func ExampleCloudDirectory_GetDirectory() { } func ExampleCloudDirectory_GetFacet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -869,11 +777,7 @@ func ExampleCloudDirectory_GetFacet() { } func ExampleCloudDirectory_GetObjectInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -898,11 +802,7 @@ func ExampleCloudDirectory_GetObjectInformation() { } func ExampleCloudDirectory_GetSchemaAsJson() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -923,11 +823,7 @@ func ExampleCloudDirectory_GetSchemaAsJson() { } func ExampleCloudDirectory_ListAppliedSchemaArns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -950,11 +846,7 @@ func ExampleCloudDirectory_ListAppliedSchemaArns() { } func ExampleCloudDirectory_ListAttachedIndices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -981,11 +873,7 @@ func ExampleCloudDirectory_ListAttachedIndices() { } func ExampleCloudDirectory_ListDevelopmentSchemaArns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1007,11 +895,7 @@ func ExampleCloudDirectory_ListDevelopmentSchemaArns() { } func ExampleCloudDirectory_ListDirectories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1034,11 +918,7 @@ func ExampleCloudDirectory_ListDirectories() { } func ExampleCloudDirectory_ListFacetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1062,11 +942,7 @@ func ExampleCloudDirectory_ListFacetAttributes() { } func ExampleCloudDirectory_ListFacetNames() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1089,11 +965,7 @@ func ExampleCloudDirectory_ListFacetNames() { } func ExampleCloudDirectory_ListIndex() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1148,11 +1020,7 @@ func ExampleCloudDirectory_ListIndex() { } func ExampleCloudDirectory_ListObjectAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1179,11 +1047,7 @@ func ExampleCloudDirectory_ListObjectAttributes() { } func ExampleCloudDirectory_ListObjectChildren() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1210,11 +1074,7 @@ func ExampleCloudDirectory_ListObjectChildren() { } func ExampleCloudDirectory_ListObjectParents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1241,11 +1101,7 @@ func ExampleCloudDirectory_ListObjectParents() { } func ExampleCloudDirectory_ListObjectPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1272,11 +1128,7 @@ func ExampleCloudDirectory_ListObjectPolicies() { } func ExampleCloudDirectory_ListPolicyAttachments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1303,11 +1155,7 @@ func ExampleCloudDirectory_ListPolicyAttachments() { } func ExampleCloudDirectory_ListPublishedSchemaArns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1329,11 +1177,7 @@ func ExampleCloudDirectory_ListPublishedSchemaArns() { } func ExampleCloudDirectory_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1356,11 +1200,7 @@ func ExampleCloudDirectory_ListTagsForResource() { } func ExampleCloudDirectory_LookupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1386,11 +1226,7 @@ func ExampleCloudDirectory_LookupPolicy() { } func ExampleCloudDirectory_PublishSchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1413,11 +1249,7 @@ func ExampleCloudDirectory_PublishSchema() { } func ExampleCloudDirectory_PutSchemaFromJson() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1439,11 +1271,7 @@ func ExampleCloudDirectory_PutSchemaFromJson() { } func ExampleCloudDirectory_RemoveFacetFromObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1471,11 +1299,7 @@ func ExampleCloudDirectory_RemoveFacetFromObject() { } func ExampleCloudDirectory_TagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1503,11 +1327,7 @@ func ExampleCloudDirectory_TagResource() { } func ExampleCloudDirectory_UntagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1532,11 +1352,7 @@ func ExampleCloudDirectory_UntagResource() { } func ExampleCloudDirectory_UpdateFacet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1594,11 +1410,7 @@ func ExampleCloudDirectory_UpdateFacet() { } func ExampleCloudDirectory_UpdateObjectAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) @@ -1642,11 +1454,7 @@ func ExampleCloudDirectory_UpdateObjectAttributes() { } func ExampleCloudDirectory_UpdateSchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := clouddirectory.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go index b4d5c65e..3e67d09e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudFormationClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go index 2c81258b..f9109d4c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudFormation_CancelUpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudFormation_CancelUpdateStack() { } func ExampleCloudFormation_ContinueUpdateRollback() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -71,11 +63,7 @@ func ExampleCloudFormation_ContinueUpdateRollback() { } func ExampleCloudFormation_CreateChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -131,11 +119,7 @@ func ExampleCloudFormation_CreateChangeSet() { } func ExampleCloudFormation_CreateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -191,11 +175,7 @@ func ExampleCloudFormation_CreateStack() { } func ExampleCloudFormation_DeleteChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -217,11 +197,7 @@ func ExampleCloudFormation_DeleteChangeSet() { } func ExampleCloudFormation_DeleteStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -247,11 +223,7 @@ func ExampleCloudFormation_DeleteStack() { } func ExampleCloudFormation_DescribeAccountLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -272,11 +244,7 @@ func ExampleCloudFormation_DescribeAccountLimits() { } func ExampleCloudFormation_DescribeChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -299,11 +267,7 @@ func ExampleCloudFormation_DescribeChangeSet() { } func ExampleCloudFormation_DescribeStackEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -325,11 +289,7 @@ func ExampleCloudFormation_DescribeStackEvents() { } func ExampleCloudFormation_DescribeStackResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -351,11 +311,7 @@ func ExampleCloudFormation_DescribeStackResource() { } func ExampleCloudFormation_DescribeStackResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -378,11 +334,7 @@ func ExampleCloudFormation_DescribeStackResources() { } func ExampleCloudFormation_DescribeStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -404,11 +356,7 @@ func ExampleCloudFormation_DescribeStacks() { } func ExampleCloudFormation_EstimateTemplateCost() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -438,11 +386,7 @@ func ExampleCloudFormation_EstimateTemplateCost() { } func ExampleCloudFormation_ExecuteChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -464,11 +408,7 @@ func ExampleCloudFormation_ExecuteChangeSet() { } func ExampleCloudFormation_GetStackPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -489,11 +429,7 @@ func ExampleCloudFormation_GetStackPolicy() { } func ExampleCloudFormation_GetTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -516,11 +452,7 @@ func ExampleCloudFormation_GetTemplate() { } func ExampleCloudFormation_GetTemplateSummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -543,11 +475,7 @@ func ExampleCloudFormation_GetTemplateSummary() { } func ExampleCloudFormation_ListChangeSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -569,11 +497,7 @@ func ExampleCloudFormation_ListChangeSets() { } func ExampleCloudFormation_ListExports() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -594,11 +518,7 @@ func ExampleCloudFormation_ListExports() { } func ExampleCloudFormation_ListImports() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -620,11 +540,7 @@ func ExampleCloudFormation_ListImports() { } func ExampleCloudFormation_ListStackResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -646,11 +562,7 @@ func ExampleCloudFormation_ListStackResources() { } func ExampleCloudFormation_ListStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -675,11 +587,7 @@ func ExampleCloudFormation_ListStacks() { } func ExampleCloudFormation_SetStackPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -702,11 +610,7 @@ func ExampleCloudFormation_SetStackPolicy() { } func ExampleCloudFormation_SignalResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -730,11 +634,7 @@ func ExampleCloudFormation_SignalResource() { } func ExampleCloudFormation_UpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -790,11 +690,7 @@ func ExampleCloudFormation_UpdateStack() { } func ExampleCloudFormation_ValidateTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go index 3f2c2ec9..49753570 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudFrontClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go index 7ee82710..c8d43895 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudFront_CreateCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -44,11 +40,7 @@ func ExampleCloudFront_CreateCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_CreateDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -301,11 +293,7 @@ func ExampleCloudFront_CreateDistribution() { } func ExampleCloudFront_CreateDistributionWithTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -569,11 +557,7 @@ func ExampleCloudFront_CreateDistributionWithTags() { } func ExampleCloudFront_CreateInvalidation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -604,11 +588,7 @@ func ExampleCloudFront_CreateInvalidation() { } func ExampleCloudFront_CreateStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -658,11 +638,7 @@ func ExampleCloudFront_CreateStreamingDistribution() { } func ExampleCloudFront_CreateStreamingDistributionWithTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -723,11 +699,7 @@ func ExampleCloudFront_CreateStreamingDistributionWithTags() { } func ExampleCloudFront_DeleteCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -749,11 +721,7 @@ func ExampleCloudFront_DeleteCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_DeleteDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -775,11 +743,7 @@ func ExampleCloudFront_DeleteDistribution() { } func ExampleCloudFront_DeleteStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -801,11 +765,7 @@ func ExampleCloudFront_DeleteStreamingDistribution() { } func ExampleCloudFront_GetCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -826,11 +786,7 @@ func ExampleCloudFront_GetCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_GetCloudFrontOriginAccessIdentityConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -851,11 +807,7 @@ func ExampleCloudFront_GetCloudFrontOriginAccessIdentityConfig() { } func ExampleCloudFront_GetDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -876,11 +828,7 @@ func ExampleCloudFront_GetDistribution() { } func ExampleCloudFront_GetDistributionConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -901,11 +849,7 @@ func ExampleCloudFront_GetDistributionConfig() { } func ExampleCloudFront_GetInvalidation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -927,11 +871,7 @@ func ExampleCloudFront_GetInvalidation() { } func ExampleCloudFront_GetStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -952,11 +892,7 @@ func ExampleCloudFront_GetStreamingDistribution() { } func ExampleCloudFront_GetStreamingDistributionConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -977,11 +913,7 @@ func ExampleCloudFront_GetStreamingDistributionConfig() { } func ExampleCloudFront_ListCloudFrontOriginAccessIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1003,11 +935,7 @@ func ExampleCloudFront_ListCloudFrontOriginAccessIdentities() { } func ExampleCloudFront_ListDistributions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1029,11 +957,7 @@ func ExampleCloudFront_ListDistributions() { } func ExampleCloudFront_ListDistributionsByWebACLId() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1056,11 +980,7 @@ func ExampleCloudFront_ListDistributionsByWebACLId() { } func ExampleCloudFront_ListInvalidations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1083,11 +1003,7 @@ func ExampleCloudFront_ListInvalidations() { } func ExampleCloudFront_ListStreamingDistributions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1109,11 +1025,7 @@ func ExampleCloudFront_ListStreamingDistributions() { } func ExampleCloudFront_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1134,11 +1046,7 @@ func ExampleCloudFront_ListTagsForResource() { } func ExampleCloudFront_TagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1168,11 +1076,7 @@ func ExampleCloudFront_TagResource() { } func ExampleCloudFront_UntagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1199,11 +1103,7 @@ func ExampleCloudFront_UntagResource() { } func ExampleCloudFront_UpdateCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1229,11 +1129,7 @@ func ExampleCloudFront_UpdateCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_UpdateDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1488,11 +1384,7 @@ func ExampleCloudFront_UpdateDistribution() { } func ExampleCloudFront_UpdateStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go index 3d3cb8f4..6e921a97 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudHSMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go index bdc7099e..e56080f2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudHSM_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -48,11 +44,7 @@ func ExampleCloudHSM_AddTagsToResource() { } func ExampleCloudHSM_CreateHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -73,11 +65,7 @@ func ExampleCloudHSM_CreateHapg() { } func ExampleCloudHSM_CreateHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -105,11 +93,7 @@ func ExampleCloudHSM_CreateHsm() { } func ExampleCloudHSM_CreateLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -131,11 +115,7 @@ func ExampleCloudHSM_CreateLunaClient() { } func ExampleCloudHSM_DeleteHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -156,11 +136,7 @@ func ExampleCloudHSM_DeleteHapg() { } func ExampleCloudHSM_DeleteHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -181,11 +157,7 @@ func ExampleCloudHSM_DeleteHsm() { } func ExampleCloudHSM_DeleteLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -206,11 +178,7 @@ func ExampleCloudHSM_DeleteLunaClient() { } func ExampleCloudHSM_DescribeHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -231,11 +199,7 @@ func ExampleCloudHSM_DescribeHapg() { } func ExampleCloudHSM_DescribeHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -257,11 +221,7 @@ func ExampleCloudHSM_DescribeHsm() { } func ExampleCloudHSM_DescribeLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -283,11 +243,7 @@ func ExampleCloudHSM_DescribeLunaClient() { } func ExampleCloudHSM_GetConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -313,11 +269,7 @@ func ExampleCloudHSM_GetConfig() { } func ExampleCloudHSM_ListAvailableZones() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -336,11 +288,7 @@ func ExampleCloudHSM_ListAvailableZones() { } func ExampleCloudHSM_ListHapgs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -361,11 +309,7 @@ func ExampleCloudHSM_ListHapgs() { } func ExampleCloudHSM_ListHsms() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -386,11 +330,7 @@ func ExampleCloudHSM_ListHsms() { } func ExampleCloudHSM_ListLunaClients() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -411,11 +351,7 @@ func ExampleCloudHSM_ListLunaClients() { } func ExampleCloudHSM_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -436,11 +372,7 @@ func ExampleCloudHSM_ListTagsForResource() { } func ExampleCloudHSM_ModifyHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -466,11 +398,7 @@ func ExampleCloudHSM_ModifyHapg() { } func ExampleCloudHSM_ModifyHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -496,11 +424,7 @@ func ExampleCloudHSM_ModifyHsm() { } func ExampleCloudHSM_ModifyLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -522,11 +446,7 @@ func ExampleCloudHSM_ModifyLunaClient() { } func ExampleCloudHSM_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go index fbfc5b37..f9a22fb4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudSearchClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go index 0e9eed48..cc82d343 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudSearch_BuildSuggesters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudSearch_BuildSuggesters() { } func ExampleCloudSearch_CreateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -66,11 +58,7 @@ func ExampleCloudSearch_CreateDomain() { } func ExampleCloudSearch_DefineAnalysisScheme() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -102,11 +90,7 @@ func ExampleCloudSearch_DefineAnalysisScheme() { } func ExampleCloudSearch_DefineExpression() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -131,11 +115,7 @@ func ExampleCloudSearch_DefineExpression() { } func ExampleCloudSearch_DefineIndexField() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -243,11 +223,7 @@ func ExampleCloudSearch_DefineIndexField() { } func ExampleCloudSearch_DefineSuggester() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -276,11 +252,7 @@ func ExampleCloudSearch_DefineSuggester() { } func ExampleCloudSearch_DeleteAnalysisScheme() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -302,11 +274,7 @@ func ExampleCloudSearch_DeleteAnalysisScheme() { } func ExampleCloudSearch_DeleteDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -327,11 +295,7 @@ func ExampleCloudSearch_DeleteDomain() { } func ExampleCloudSearch_DeleteExpression() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -353,11 +317,7 @@ func ExampleCloudSearch_DeleteExpression() { } func ExampleCloudSearch_DeleteIndexField() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -379,11 +339,7 @@ func ExampleCloudSearch_DeleteIndexField() { } func ExampleCloudSearch_DeleteSuggester() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -405,11 +361,7 @@ func ExampleCloudSearch_DeleteSuggester() { } func ExampleCloudSearch_DescribeAnalysisSchemes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -435,11 +387,7 @@ func ExampleCloudSearch_DescribeAnalysisSchemes() { } func ExampleCloudSearch_DescribeAvailabilityOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -461,11 +409,7 @@ func ExampleCloudSearch_DescribeAvailabilityOptions() { } func ExampleCloudSearch_DescribeDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -489,11 +433,7 @@ func ExampleCloudSearch_DescribeDomains() { } func ExampleCloudSearch_DescribeExpressions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -519,11 +459,7 @@ func ExampleCloudSearch_DescribeExpressions() { } func ExampleCloudSearch_DescribeIndexFields() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -549,11 +485,7 @@ func ExampleCloudSearch_DescribeIndexFields() { } func ExampleCloudSearch_DescribeScalingParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -574,11 +506,7 @@ func ExampleCloudSearch_DescribeScalingParameters() { } func ExampleCloudSearch_DescribeServiceAccessPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -600,11 +528,7 @@ func ExampleCloudSearch_DescribeServiceAccessPolicies() { } func ExampleCloudSearch_DescribeSuggesters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -630,11 +554,7 @@ func ExampleCloudSearch_DescribeSuggesters() { } func ExampleCloudSearch_IndexDocuments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -655,11 +575,7 @@ func ExampleCloudSearch_IndexDocuments() { } func ExampleCloudSearch_ListDomainNames() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -678,11 +594,7 @@ func ExampleCloudSearch_ListDomainNames() { } func ExampleCloudSearch_UpdateAvailabilityOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -704,11 +616,7 @@ func ExampleCloudSearch_UpdateAvailabilityOptions() { } func ExampleCloudSearch_UpdateScalingParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -734,11 +642,7 @@ func ExampleCloudSearch_UpdateScalingParameters() { } func ExampleCloudSearch_UpdateServiceAccessPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go index a1fef6c8..f085c2da 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudSearchDomainClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go index 6588fa3e..64affe1f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudSearchDomain_Search() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearchdomain.New(sess) @@ -54,11 +50,7 @@ func ExampleCloudSearchDomain_Search() { } func ExampleCloudSearchDomain_Suggest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearchdomain.New(sess) @@ -81,11 +73,7 @@ func ExampleCloudSearchDomain_Suggest() { } func ExampleCloudSearchDomain_UploadDocuments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearchdomain.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go index fb62207e..2226a4cc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudTrailClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go index 82c96b59..42810f72 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudTrail_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -48,11 +44,7 @@ func ExampleCloudTrail_AddTags() { } func ExampleCloudTrail_CreateTrail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -82,11 +74,7 @@ func ExampleCloudTrail_CreateTrail() { } func ExampleCloudTrail_DeleteTrail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -107,11 +95,7 @@ func ExampleCloudTrail_DeleteTrail() { } func ExampleCloudTrail_DescribeTrails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -136,11 +120,7 @@ func ExampleCloudTrail_DescribeTrails() { } func ExampleCloudTrail_GetEventSelectors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -161,11 +141,7 @@ func ExampleCloudTrail_GetEventSelectors() { } func ExampleCloudTrail_GetTrailStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -186,11 +162,7 @@ func ExampleCloudTrail_GetTrailStatus() { } func ExampleCloudTrail_ListPublicKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -213,11 +185,7 @@ func ExampleCloudTrail_ListPublicKeys() { } func ExampleCloudTrail_ListTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -242,11 +210,7 @@ func ExampleCloudTrail_ListTags() { } func ExampleCloudTrail_LookupEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -277,11 +241,7 @@ func ExampleCloudTrail_LookupEvents() { } func ExampleCloudTrail_PutEventSelectors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -319,11 +279,7 @@ func ExampleCloudTrail_PutEventSelectors() { } func ExampleCloudTrail_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -351,11 +307,7 @@ func ExampleCloudTrail_RemoveTags() { } func ExampleCloudTrail_StartLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -376,11 +328,7 @@ func ExampleCloudTrail_StartLogging() { } func ExampleCloudTrail_StopLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -401,11 +349,7 @@ func ExampleCloudTrail_StopLogging() { } func ExampleCloudTrail_UpdateTrail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go index 74f084df..04f1e7aa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudWatchClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go index 6ea7776c..2d139a69 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatch_DeleteAlarms() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -44,11 +40,7 @@ func ExampleCloudWatch_DeleteAlarms() { } func ExampleCloudWatch_DescribeAlarmHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -74,11 +66,7 @@ func ExampleCloudWatch_DescribeAlarmHistory() { } func ExampleCloudWatch_DescribeAlarms() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -107,11 +95,7 @@ func ExampleCloudWatch_DescribeAlarms() { } func ExampleCloudWatch_DescribeAlarmsForMetric() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -144,11 +128,7 @@ func ExampleCloudWatch_DescribeAlarmsForMetric() { } func ExampleCloudWatch_DisableAlarmActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -172,11 +152,7 @@ func ExampleCloudWatch_DisableAlarmActions() { } func ExampleCloudWatch_EnableAlarmActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -200,11 +176,7 @@ func ExampleCloudWatch_EnableAlarmActions() { } func ExampleCloudWatch_GetMetricStatistics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -245,11 +217,7 @@ func ExampleCloudWatch_GetMetricStatistics() { } func ExampleCloudWatch_ListMetrics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -279,11 +247,7 @@ func ExampleCloudWatch_ListMetrics() { } func ExampleCloudWatch_PutMetricAlarm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -334,11 +298,7 @@ func ExampleCloudWatch_PutMetricAlarm() { } func ExampleCloudWatch_PutMetricData() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -381,11 +341,7 @@ func ExampleCloudWatch_PutMetricData() { } func ExampleCloudWatch_SetAlarmState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go index 34a67389..c2be49ef 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudWatchEventsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go index f4f3587e..7a0ab23e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatchEvents_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudWatchEvents_DeleteRule() { } func ExampleCloudWatchEvents_DescribeRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -66,11 +58,7 @@ func ExampleCloudWatchEvents_DescribeRule() { } func ExampleCloudWatchEvents_DisableRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -91,11 +79,7 @@ func ExampleCloudWatchEvents_DisableRule() { } func ExampleCloudWatchEvents_EnableRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -116,11 +100,7 @@ func ExampleCloudWatchEvents_EnableRule() { } func ExampleCloudWatchEvents_ListRuleNamesByTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -143,11 +123,7 @@ func ExampleCloudWatchEvents_ListRuleNamesByTarget() { } func ExampleCloudWatchEvents_ListRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -170,11 +146,7 @@ func ExampleCloudWatchEvents_ListRules() { } func ExampleCloudWatchEvents_ListTargetsByRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -197,11 +169,7 @@ func ExampleCloudWatchEvents_ListTargetsByRule() { } func ExampleCloudWatchEvents_PutEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -234,11 +202,7 @@ func ExampleCloudWatchEvents_PutEvents() { } func ExampleCloudWatchEvents_PutRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -264,11 +228,7 @@ func ExampleCloudWatchEvents_PutRule() { } func ExampleCloudWatchEvents_PutTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -298,11 +258,7 @@ func ExampleCloudWatchEvents_PutTargets() { } func ExampleCloudWatchEvents_RemoveTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -327,11 +283,7 @@ func ExampleCloudWatchEvents_RemoveTargets() { } func ExampleCloudWatchEvents_TestEventPattern() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go index e20c51a2..a21ee26f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudWatchLogsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go index d44b859a..1d83971d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatchLogs_CancelExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudWatchLogs_CancelExportTask() { } func ExampleCloudWatchLogs_CreateExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -72,11 +64,7 @@ func ExampleCloudWatchLogs_CreateExportTask() { } func ExampleCloudWatchLogs_CreateLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -101,11 +89,7 @@ func ExampleCloudWatchLogs_CreateLogGroup() { } func ExampleCloudWatchLogs_CreateLogStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -127,11 +111,7 @@ func ExampleCloudWatchLogs_CreateLogStream() { } func ExampleCloudWatchLogs_DeleteDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -152,11 +132,7 @@ func ExampleCloudWatchLogs_DeleteDestination() { } func ExampleCloudWatchLogs_DeleteLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -177,11 +153,7 @@ func ExampleCloudWatchLogs_DeleteLogGroup() { } func ExampleCloudWatchLogs_DeleteLogStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -203,11 +175,7 @@ func ExampleCloudWatchLogs_DeleteLogStream() { } func ExampleCloudWatchLogs_DeleteMetricFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -229,11 +197,7 @@ func ExampleCloudWatchLogs_DeleteMetricFilter() { } func ExampleCloudWatchLogs_DeleteRetentionPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -254,11 +218,7 @@ func ExampleCloudWatchLogs_DeleteRetentionPolicy() { } func ExampleCloudWatchLogs_DeleteSubscriptionFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -280,11 +240,7 @@ func ExampleCloudWatchLogs_DeleteSubscriptionFilter() { } func ExampleCloudWatchLogs_DescribeDestinations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -307,11 +263,7 @@ func ExampleCloudWatchLogs_DescribeDestinations() { } func ExampleCloudWatchLogs_DescribeExportTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -335,11 +287,7 @@ func ExampleCloudWatchLogs_DescribeExportTasks() { } func ExampleCloudWatchLogs_DescribeLogGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -362,11 +310,7 @@ func ExampleCloudWatchLogs_DescribeLogGroups() { } func ExampleCloudWatchLogs_DescribeLogStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -392,11 +336,7 @@ func ExampleCloudWatchLogs_DescribeLogStreams() { } func ExampleCloudWatchLogs_DescribeMetricFilters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -422,11 +362,7 @@ func ExampleCloudWatchLogs_DescribeMetricFilters() { } func ExampleCloudWatchLogs_DescribeSubscriptionFilters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -450,11 +386,7 @@ func ExampleCloudWatchLogs_DescribeSubscriptionFilters() { } func ExampleCloudWatchLogs_FilterLogEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -485,11 +417,7 @@ func ExampleCloudWatchLogs_FilterLogEvents() { } func ExampleCloudWatchLogs_GetLogEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -516,11 +444,7 @@ func ExampleCloudWatchLogs_GetLogEvents() { } func ExampleCloudWatchLogs_ListTagsLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -541,11 +465,7 @@ func ExampleCloudWatchLogs_ListTagsLogGroup() { } func ExampleCloudWatchLogs_PutDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -568,11 +488,7 @@ func ExampleCloudWatchLogs_PutDestination() { } func ExampleCloudWatchLogs_PutDestinationPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -594,11 +510,7 @@ func ExampleCloudWatchLogs_PutDestinationPolicy() { } func ExampleCloudWatchLogs_PutLogEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -628,11 +540,7 @@ func ExampleCloudWatchLogs_PutLogEvents() { } func ExampleCloudWatchLogs_PutMetricFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -664,11 +572,7 @@ func ExampleCloudWatchLogs_PutMetricFilter() { } func ExampleCloudWatchLogs_PutRetentionPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -690,11 +594,7 @@ func ExampleCloudWatchLogs_PutRetentionPolicy() { } func ExampleCloudWatchLogs_PutSubscriptionFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -720,11 +620,7 @@ func ExampleCloudWatchLogs_PutSubscriptionFilter() { } func ExampleCloudWatchLogs_TagLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -749,11 +645,7 @@ func ExampleCloudWatchLogs_TagLogGroup() { } func ExampleCloudWatchLogs_TestMetricFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -778,11 +670,7 @@ func ExampleCloudWatchLogs_TestMetricFilter() { } func ExampleCloudWatchLogs_UntagLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go index 44156b71..525a368b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodeBuildClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go index 769fd9df..73cc91da 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeBuild_BatchGetBuilds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -44,11 +40,7 @@ func ExampleCodeBuild_BatchGetBuilds() { } func ExampleCodeBuild_BatchGetProjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -72,11 +64,7 @@ func ExampleCodeBuild_BatchGetProjects() { } func ExampleCodeBuild_CreateProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -137,11 +125,7 @@ func ExampleCodeBuild_CreateProject() { } func ExampleCodeBuild_DeleteProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -162,11 +146,7 @@ func ExampleCodeBuild_DeleteProject() { } func ExampleCodeBuild_ListBuilds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -188,11 +168,7 @@ func ExampleCodeBuild_ListBuilds() { } func ExampleCodeBuild_ListBuildsForProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -215,11 +191,7 @@ func ExampleCodeBuild_ListBuildsForProject() { } func ExampleCodeBuild_ListCuratedEnvironmentImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -238,11 +210,7 @@ func ExampleCodeBuild_ListCuratedEnvironmentImages() { } func ExampleCodeBuild_ListProjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -265,11 +233,7 @@ func ExampleCodeBuild_ListProjects() { } func ExampleCodeBuild_StartBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -308,11 +272,7 @@ func ExampleCodeBuild_StartBuild() { } func ExampleCodeBuild_StopBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) @@ -333,11 +293,7 @@ func ExampleCodeBuild_StopBuild() { } func ExampleCodeBuild_UpdateProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codebuild.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go index aee20dd1..dfda76c5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodeCommitClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go index 09181fc5..b4f3acfe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeCommit_BatchGetRepositories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -44,11 +40,7 @@ func ExampleCodeCommit_BatchGetRepositories() { } func ExampleCodeCommit_CreateBranch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -71,11 +63,7 @@ func ExampleCodeCommit_CreateBranch() { } func ExampleCodeCommit_CreateRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -97,11 +85,7 @@ func ExampleCodeCommit_CreateRepository() { } func ExampleCodeCommit_DeleteRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -122,11 +106,7 @@ func ExampleCodeCommit_DeleteRepository() { } func ExampleCodeCommit_GetBlob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -148,11 +128,7 @@ func ExampleCodeCommit_GetBlob() { } func ExampleCodeCommit_GetBranch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -174,11 +150,7 @@ func ExampleCodeCommit_GetBranch() { } func ExampleCodeCommit_GetCommit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -200,11 +172,7 @@ func ExampleCodeCommit_GetCommit() { } func ExampleCodeCommit_GetDifferences() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -231,11 +199,7 @@ func ExampleCodeCommit_GetDifferences() { } func ExampleCodeCommit_GetRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -256,11 +220,7 @@ func ExampleCodeCommit_GetRepository() { } func ExampleCodeCommit_GetRepositoryTriggers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -281,11 +241,7 @@ func ExampleCodeCommit_GetRepositoryTriggers() { } func ExampleCodeCommit_ListBranches() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -307,11 +263,7 @@ func ExampleCodeCommit_ListBranches() { } func ExampleCodeCommit_ListRepositories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -334,11 +286,7 @@ func ExampleCodeCommit_ListRepositories() { } func ExampleCodeCommit_PutRepositoryTriggers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -375,11 +323,7 @@ func ExampleCodeCommit_PutRepositoryTriggers() { } func ExampleCodeCommit_TestRepositoryTriggers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -416,11 +360,7 @@ func ExampleCodeCommit_TestRepositoryTriggers() { } func ExampleCodeCommit_UpdateDefaultBranch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -442,11 +382,7 @@ func ExampleCodeCommit_UpdateDefaultBranch() { } func ExampleCodeCommit_UpdateRepositoryDescription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -468,11 +404,7 @@ func ExampleCodeCommit_UpdateRepositoryDescription() { } func ExampleCodeCommit_UpdateRepositoryName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go index 0c4a623c..de6235a1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodeDeployClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go index eb0544eb..914e32f1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeDeploy_AddTagsToOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -51,11 +47,7 @@ func ExampleCodeDeploy_AddTagsToOnPremisesInstances() { } func ExampleCodeDeploy_BatchGetApplicationRevisions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -93,11 +85,7 @@ func ExampleCodeDeploy_BatchGetApplicationRevisions() { } func ExampleCodeDeploy_BatchGetApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -121,11 +109,7 @@ func ExampleCodeDeploy_BatchGetApplications() { } func ExampleCodeDeploy_BatchGetDeploymentGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -150,11 +134,7 @@ func ExampleCodeDeploy_BatchGetDeploymentGroups() { } func ExampleCodeDeploy_BatchGetDeploymentInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -179,11 +159,7 @@ func ExampleCodeDeploy_BatchGetDeploymentInstances() { } func ExampleCodeDeploy_BatchGetDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -207,11 +183,7 @@ func ExampleCodeDeploy_BatchGetDeployments() { } func ExampleCodeDeploy_BatchGetOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -235,11 +207,7 @@ func ExampleCodeDeploy_BatchGetOnPremisesInstances() { } func ExampleCodeDeploy_ContinueDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -260,11 +228,7 @@ func ExampleCodeDeploy_ContinueDeployment() { } func ExampleCodeDeploy_CreateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -285,11 +249,7 @@ func ExampleCodeDeploy_CreateApplication() { } func ExampleCodeDeploy_CreateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -350,11 +310,7 @@ func ExampleCodeDeploy_CreateDeployment() { } func ExampleCodeDeploy_CreateDeploymentConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -379,11 +335,7 @@ func ExampleCodeDeploy_CreateDeploymentConfig() { } func ExampleCodeDeploy_CreateDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -480,11 +432,7 @@ func ExampleCodeDeploy_CreateDeploymentGroup() { } func ExampleCodeDeploy_DeleteApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -505,11 +453,7 @@ func ExampleCodeDeploy_DeleteApplication() { } func ExampleCodeDeploy_DeleteDeploymentConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -530,11 +474,7 @@ func ExampleCodeDeploy_DeleteDeploymentConfig() { } func ExampleCodeDeploy_DeleteDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -556,11 +496,7 @@ func ExampleCodeDeploy_DeleteDeploymentGroup() { } func ExampleCodeDeploy_DeregisterOnPremisesInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -581,11 +517,7 @@ func ExampleCodeDeploy_DeregisterOnPremisesInstance() { } func ExampleCodeDeploy_GetApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -606,11 +538,7 @@ func ExampleCodeDeploy_GetApplication() { } func ExampleCodeDeploy_GetApplicationRevision() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -645,11 +573,7 @@ func ExampleCodeDeploy_GetApplicationRevision() { } func ExampleCodeDeploy_GetDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -670,11 +594,7 @@ func ExampleCodeDeploy_GetDeployment() { } func ExampleCodeDeploy_GetDeploymentConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -695,11 +615,7 @@ func ExampleCodeDeploy_GetDeploymentConfig() { } func ExampleCodeDeploy_GetDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -721,11 +637,7 @@ func ExampleCodeDeploy_GetDeploymentGroup() { } func ExampleCodeDeploy_GetDeploymentInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -747,11 +659,7 @@ func ExampleCodeDeploy_GetDeploymentInstance() { } func ExampleCodeDeploy_GetOnPremisesInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -772,11 +680,7 @@ func ExampleCodeDeploy_GetOnPremisesInstance() { } func ExampleCodeDeploy_ListApplicationRevisions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -803,11 +707,7 @@ func ExampleCodeDeploy_ListApplicationRevisions() { } func ExampleCodeDeploy_ListApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -828,11 +728,7 @@ func ExampleCodeDeploy_ListApplications() { } func ExampleCodeDeploy_ListDeploymentConfigs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -853,11 +749,7 @@ func ExampleCodeDeploy_ListDeploymentConfigs() { } func ExampleCodeDeploy_ListDeploymentGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -879,11 +771,7 @@ func ExampleCodeDeploy_ListDeploymentGroups() { } func ExampleCodeDeploy_ListDeploymentInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -913,11 +801,7 @@ func ExampleCodeDeploy_ListDeploymentInstances() { } func ExampleCodeDeploy_ListDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -948,11 +832,7 @@ func ExampleCodeDeploy_ListDeployments() { } func ExampleCodeDeploy_ListOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -982,11 +862,7 @@ func ExampleCodeDeploy_ListOnPremisesInstances() { } func ExampleCodeDeploy_RegisterApplicationRevision() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1022,11 +898,7 @@ func ExampleCodeDeploy_RegisterApplicationRevision() { } func ExampleCodeDeploy_RegisterOnPremisesInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1049,11 +921,7 @@ func ExampleCodeDeploy_RegisterOnPremisesInstance() { } func ExampleCodeDeploy_RemoveTagsFromOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1084,11 +952,7 @@ func ExampleCodeDeploy_RemoveTagsFromOnPremisesInstances() { } func ExampleCodeDeploy_SkipWaitTimeForInstanceTermination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1109,11 +973,7 @@ func ExampleCodeDeploy_SkipWaitTimeForInstanceTermination() { } func ExampleCodeDeploy_StopDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1135,11 +995,7 @@ func ExampleCodeDeploy_StopDeployment() { } func ExampleCodeDeploy_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1161,11 +1017,7 @@ func ExampleCodeDeploy_UpdateApplication() { } func ExampleCodeDeploy_UpdateDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go index c477084c..12309d95 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodePipelineClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go index 5cf624c0..4a5cb27a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodePipeline_AcknowledgeJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -42,11 +38,7 @@ func ExampleCodePipeline_AcknowledgeJob() { } func ExampleCodePipeline_AcknowledgeThirdPartyJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -69,11 +61,7 @@ func ExampleCodePipeline_AcknowledgeThirdPartyJob() { } func ExampleCodePipeline_CreateCustomActionType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -122,11 +110,7 @@ func ExampleCodePipeline_CreateCustomActionType() { } func ExampleCodePipeline_CreatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -202,11 +186,7 @@ func ExampleCodePipeline_CreatePipeline() { } func ExampleCodePipeline_DeleteCustomActionType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -229,11 +209,7 @@ func ExampleCodePipeline_DeleteCustomActionType() { } func ExampleCodePipeline_DeletePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -254,11 +230,7 @@ func ExampleCodePipeline_DeletePipeline() { } func ExampleCodePipeline_DisableStageTransition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -282,11 +254,7 @@ func ExampleCodePipeline_DisableStageTransition() { } func ExampleCodePipeline_EnableStageTransition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -309,11 +277,7 @@ func ExampleCodePipeline_EnableStageTransition() { } func ExampleCodePipeline_GetJobDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -334,11 +298,7 @@ func ExampleCodePipeline_GetJobDetails() { } func ExampleCodePipeline_GetPipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -360,11 +320,7 @@ func ExampleCodePipeline_GetPipeline() { } func ExampleCodePipeline_GetPipelineExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -386,11 +342,7 @@ func ExampleCodePipeline_GetPipelineExecution() { } func ExampleCodePipeline_GetPipelineState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -411,11 +363,7 @@ func ExampleCodePipeline_GetPipelineState() { } func ExampleCodePipeline_GetThirdPartyJobDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -437,11 +385,7 @@ func ExampleCodePipeline_GetThirdPartyJobDetails() { } func ExampleCodePipeline_ListActionTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -463,11 +407,7 @@ func ExampleCodePipeline_ListActionTypes() { } func ExampleCodePipeline_ListPipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -488,11 +428,7 @@ func ExampleCodePipeline_ListPipelines() { } func ExampleCodePipeline_PollForJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -523,11 +459,7 @@ func ExampleCodePipeline_PollForJobs() { } func ExampleCodePipeline_PollForThirdPartyJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -554,11 +486,7 @@ func ExampleCodePipeline_PollForThirdPartyJobs() { } func ExampleCodePipeline_PutActionRevision() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -586,11 +514,7 @@ func ExampleCodePipeline_PutActionRevision() { } func ExampleCodePipeline_PutApprovalResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -618,11 +542,7 @@ func ExampleCodePipeline_PutApprovalResult() { } func ExampleCodePipeline_PutJobFailureResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -648,11 +568,7 @@ func ExampleCodePipeline_PutJobFailureResult() { } func ExampleCodePipeline_PutJobSuccessResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -685,11 +601,7 @@ func ExampleCodePipeline_PutJobSuccessResult() { } func ExampleCodePipeline_PutThirdPartyJobFailureResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -716,11 +628,7 @@ func ExampleCodePipeline_PutThirdPartyJobFailureResult() { } func ExampleCodePipeline_PutThirdPartyJobSuccessResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -754,11 +662,7 @@ func ExampleCodePipeline_PutThirdPartyJobSuccessResult() { } func ExampleCodePipeline_RetryStageExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -782,11 +686,7 @@ func ExampleCodePipeline_RetryStageExecution() { } func ExampleCodePipeline_StartPipelineExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -807,11 +707,7 @@ func ExampleCodePipeline_StartPipelineExecution() { } func ExampleCodePipeline_UpdatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go index 24710ec6..e5a68758 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCognitoIdentityClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go index 6ec49e54..be37de54 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoIdentity_CreateIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -63,11 +59,7 @@ func ExampleCognitoIdentity_CreateIdentityPool() { } func ExampleCognitoIdentity_DeleteIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -91,11 +83,7 @@ func ExampleCognitoIdentity_DeleteIdentities() { } func ExampleCognitoIdentity_DeleteIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -116,11 +104,7 @@ func ExampleCognitoIdentity_DeleteIdentityPool() { } func ExampleCognitoIdentity_DescribeIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -141,11 +125,7 @@ func ExampleCognitoIdentity_DescribeIdentity() { } func ExampleCognitoIdentity_DescribeIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -166,11 +146,7 @@ func ExampleCognitoIdentity_DescribeIdentityPool() { } func ExampleCognitoIdentity_GetCredentialsForIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -196,11 +172,7 @@ func ExampleCognitoIdentity_GetCredentialsForIdentity() { } func ExampleCognitoIdentity_GetId() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -226,11 +198,7 @@ func ExampleCognitoIdentity_GetId() { } func ExampleCognitoIdentity_GetIdentityPoolRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -251,11 +219,7 @@ func ExampleCognitoIdentity_GetIdentityPoolRoles() { } func ExampleCognitoIdentity_GetOpenIdToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -280,11 +244,7 @@ func ExampleCognitoIdentity_GetOpenIdToken() { } func ExampleCognitoIdentity_GetOpenIdTokenForDeveloperIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -311,11 +271,7 @@ func ExampleCognitoIdentity_GetOpenIdTokenForDeveloperIdentity() { } func ExampleCognitoIdentity_ListIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -339,11 +295,7 @@ func ExampleCognitoIdentity_ListIdentities() { } func ExampleCognitoIdentity_ListIdentityPools() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -365,11 +317,7 @@ func ExampleCognitoIdentity_ListIdentityPools() { } func ExampleCognitoIdentity_LookupDeveloperIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -394,11 +342,7 @@ func ExampleCognitoIdentity_LookupDeveloperIdentity() { } func ExampleCognitoIdentity_MergeDeveloperIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -422,11 +366,7 @@ func ExampleCognitoIdentity_MergeDeveloperIdentities() { } func ExampleCognitoIdentity_SetIdentityPoolRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -469,11 +409,7 @@ func ExampleCognitoIdentity_SetIdentityPoolRoles() { } func ExampleCognitoIdentity_UnlinkDeveloperIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -497,11 +433,7 @@ func ExampleCognitoIdentity_UnlinkDeveloperIdentity() { } func ExampleCognitoIdentity_UnlinkIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -530,11 +462,7 @@ func ExampleCognitoIdentity_UnlinkIdentity() { } func ExampleCognitoIdentity_UpdateIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go index 5434d3b1..837e1330 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCognitoIdentityProviderClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go index 382dc139..1c693f3f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoIdentityProvider_AddCustomAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -59,11 +55,7 @@ func ExampleCognitoIdentityProvider_AddCustomAttributes() { } func ExampleCognitoIdentityProvider_AdminAddUserToGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -86,11 +78,7 @@ func ExampleCognitoIdentityProvider_AdminAddUserToGroup() { } func ExampleCognitoIdentityProvider_AdminConfirmSignUp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -112,11 +100,7 @@ func ExampleCognitoIdentityProvider_AdminConfirmSignUp() { } func ExampleCognitoIdentityProvider_AdminCreateUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -159,11 +143,7 @@ func ExampleCognitoIdentityProvider_AdminCreateUser() { } func ExampleCognitoIdentityProvider_AdminDeleteUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -185,11 +165,7 @@ func ExampleCognitoIdentityProvider_AdminDeleteUser() { } func ExampleCognitoIdentityProvider_AdminDeleteUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -215,11 +191,7 @@ func ExampleCognitoIdentityProvider_AdminDeleteUserAttributes() { } func ExampleCognitoIdentityProvider_AdminDisableUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -241,11 +213,7 @@ func ExampleCognitoIdentityProvider_AdminDisableUser() { } func ExampleCognitoIdentityProvider_AdminEnableUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -267,11 +235,7 @@ func ExampleCognitoIdentityProvider_AdminEnableUser() { } func ExampleCognitoIdentityProvider_AdminForgetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -294,11 +258,7 @@ func ExampleCognitoIdentityProvider_AdminForgetDevice() { } func ExampleCognitoIdentityProvider_AdminGetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -321,11 +281,7 @@ func ExampleCognitoIdentityProvider_AdminGetDevice() { } func ExampleCognitoIdentityProvider_AdminGetUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -347,11 +303,7 @@ func ExampleCognitoIdentityProvider_AdminGetUser() { } func ExampleCognitoIdentityProvider_AdminInitiateAuth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -382,11 +334,7 @@ func ExampleCognitoIdentityProvider_AdminInitiateAuth() { } func ExampleCognitoIdentityProvider_AdminListDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -410,11 +358,7 @@ func ExampleCognitoIdentityProvider_AdminListDevices() { } func ExampleCognitoIdentityProvider_AdminListGroupsForUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -438,11 +382,7 @@ func ExampleCognitoIdentityProvider_AdminListGroupsForUser() { } func ExampleCognitoIdentityProvider_AdminRemoveUserFromGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -465,11 +405,7 @@ func ExampleCognitoIdentityProvider_AdminRemoveUserFromGroup() { } func ExampleCognitoIdentityProvider_AdminResetUserPassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -491,11 +427,7 @@ func ExampleCognitoIdentityProvider_AdminResetUserPassword() { } func ExampleCognitoIdentityProvider_AdminRespondToAuthChallenge() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -523,11 +455,7 @@ func ExampleCognitoIdentityProvider_AdminRespondToAuthChallenge() { } func ExampleCognitoIdentityProvider_AdminSetUserSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -556,11 +484,7 @@ func ExampleCognitoIdentityProvider_AdminSetUserSettings() { } func ExampleCognitoIdentityProvider_AdminUpdateDeviceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -584,11 +508,7 @@ func ExampleCognitoIdentityProvider_AdminUpdateDeviceStatus() { } func ExampleCognitoIdentityProvider_AdminUpdateUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -617,11 +537,7 @@ func ExampleCognitoIdentityProvider_AdminUpdateUserAttributes() { } func ExampleCognitoIdentityProvider_AdminUserGlobalSignOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -643,11 +559,7 @@ func ExampleCognitoIdentityProvider_AdminUserGlobalSignOut() { } func ExampleCognitoIdentityProvider_ChangePassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -670,11 +582,7 @@ func ExampleCognitoIdentityProvider_ChangePassword() { } func ExampleCognitoIdentityProvider_ConfirmDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -701,11 +609,7 @@ func ExampleCognitoIdentityProvider_ConfirmDevice() { } func ExampleCognitoIdentityProvider_ConfirmForgotPassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -730,11 +634,7 @@ func ExampleCognitoIdentityProvider_ConfirmForgotPassword() { } func ExampleCognitoIdentityProvider_ConfirmSignUp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -759,11 +659,7 @@ func ExampleCognitoIdentityProvider_ConfirmSignUp() { } func ExampleCognitoIdentityProvider_CreateGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -788,11 +684,7 @@ func ExampleCognitoIdentityProvider_CreateGroup() { } func ExampleCognitoIdentityProvider_CreateUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -815,11 +707,7 @@ func ExampleCognitoIdentityProvider_CreateUserImportJob() { } func ExampleCognitoIdentityProvider_CreateUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -915,11 +803,7 @@ func ExampleCognitoIdentityProvider_CreateUserPool() { } func ExampleCognitoIdentityProvider_CreateUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -955,11 +839,7 @@ func ExampleCognitoIdentityProvider_CreateUserPoolClient() { } func ExampleCognitoIdentityProvider_DeleteGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -981,11 +861,7 @@ func ExampleCognitoIdentityProvider_DeleteGroup() { } func ExampleCognitoIdentityProvider_DeleteUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1006,11 +882,7 @@ func ExampleCognitoIdentityProvider_DeleteUser() { } func ExampleCognitoIdentityProvider_DeleteUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1035,11 +907,7 @@ func ExampleCognitoIdentityProvider_DeleteUserAttributes() { } func ExampleCognitoIdentityProvider_DeleteUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1060,11 +928,7 @@ func ExampleCognitoIdentityProvider_DeleteUserPool() { } func ExampleCognitoIdentityProvider_DeleteUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1086,11 +950,7 @@ func ExampleCognitoIdentityProvider_DeleteUserPoolClient() { } func ExampleCognitoIdentityProvider_DescribeUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1112,11 +972,7 @@ func ExampleCognitoIdentityProvider_DescribeUserImportJob() { } func ExampleCognitoIdentityProvider_DescribeUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1137,11 +993,7 @@ func ExampleCognitoIdentityProvider_DescribeUserPool() { } func ExampleCognitoIdentityProvider_DescribeUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1163,11 +1015,7 @@ func ExampleCognitoIdentityProvider_DescribeUserPoolClient() { } func ExampleCognitoIdentityProvider_ForgetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1189,11 +1037,7 @@ func ExampleCognitoIdentityProvider_ForgetDevice() { } func ExampleCognitoIdentityProvider_ForgotPassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1216,11 +1060,7 @@ func ExampleCognitoIdentityProvider_ForgotPassword() { } func ExampleCognitoIdentityProvider_GetCSVHeader() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1241,11 +1081,7 @@ func ExampleCognitoIdentityProvider_GetCSVHeader() { } func ExampleCognitoIdentityProvider_GetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1267,11 +1103,7 @@ func ExampleCognitoIdentityProvider_GetDevice() { } func ExampleCognitoIdentityProvider_GetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1293,11 +1125,7 @@ func ExampleCognitoIdentityProvider_GetGroup() { } func ExampleCognitoIdentityProvider_GetUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1318,11 +1146,7 @@ func ExampleCognitoIdentityProvider_GetUser() { } func ExampleCognitoIdentityProvider_GetUserAttributeVerificationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1344,11 +1168,7 @@ func ExampleCognitoIdentityProvider_GetUserAttributeVerificationCode() { } func ExampleCognitoIdentityProvider_GlobalSignOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1369,11 +1189,7 @@ func ExampleCognitoIdentityProvider_GlobalSignOut() { } func ExampleCognitoIdentityProvider_InitiateAuth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1403,11 +1219,7 @@ func ExampleCognitoIdentityProvider_InitiateAuth() { } func ExampleCognitoIdentityProvider_ListDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1430,11 +1242,7 @@ func ExampleCognitoIdentityProvider_ListDevices() { } func ExampleCognitoIdentityProvider_ListGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1457,11 +1265,7 @@ func ExampleCognitoIdentityProvider_ListGroups() { } func ExampleCognitoIdentityProvider_ListUserImportJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1484,11 +1288,7 @@ func ExampleCognitoIdentityProvider_ListUserImportJobs() { } func ExampleCognitoIdentityProvider_ListUserPoolClients() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1511,11 +1311,7 @@ func ExampleCognitoIdentityProvider_ListUserPoolClients() { } func ExampleCognitoIdentityProvider_ListUserPools() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1537,11 +1333,7 @@ func ExampleCognitoIdentityProvider_ListUserPools() { } func ExampleCognitoIdentityProvider_ListUsers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1569,11 +1361,7 @@ func ExampleCognitoIdentityProvider_ListUsers() { } func ExampleCognitoIdentityProvider_ListUsersInGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1597,11 +1385,7 @@ func ExampleCognitoIdentityProvider_ListUsersInGroup() { } func ExampleCognitoIdentityProvider_ResendConfirmationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1624,11 +1408,7 @@ func ExampleCognitoIdentityProvider_ResendConfirmationCode() { } func ExampleCognitoIdentityProvider_RespondToAuthChallenge() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1655,11 +1435,7 @@ func ExampleCognitoIdentityProvider_RespondToAuthChallenge() { } func ExampleCognitoIdentityProvider_SetUserSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1687,11 +1463,7 @@ func ExampleCognitoIdentityProvider_SetUserSettings() { } func ExampleCognitoIdentityProvider_SignUp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1729,11 +1501,7 @@ func ExampleCognitoIdentityProvider_SignUp() { } func ExampleCognitoIdentityProvider_StartUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1755,11 +1523,7 @@ func ExampleCognitoIdentityProvider_StartUserImportJob() { } func ExampleCognitoIdentityProvider_StopUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1781,11 +1545,7 @@ func ExampleCognitoIdentityProvider_StopUserImportJob() { } func ExampleCognitoIdentityProvider_UpdateDeviceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1808,11 +1568,7 @@ func ExampleCognitoIdentityProvider_UpdateDeviceStatus() { } func ExampleCognitoIdentityProvider_UpdateGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1837,11 +1593,7 @@ func ExampleCognitoIdentityProvider_UpdateGroup() { } func ExampleCognitoIdentityProvider_UpdateUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1869,11 +1621,7 @@ func ExampleCognitoIdentityProvider_UpdateUserAttributes() { } func ExampleCognitoIdentityProvider_UpdateUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1947,11 +1695,7 @@ func ExampleCognitoIdentityProvider_UpdateUserPool() { } func ExampleCognitoIdentityProvider_UpdateUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1987,11 +1731,7 @@ func ExampleCognitoIdentityProvider_UpdateUserPoolClient() { } func ExampleCognitoIdentityProvider_VerifyUserAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go index 5bd83e9b..a65279ad 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCognitoSyncClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go index 2aa1735a..25968435 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoSync_BulkPublish() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -41,11 +37,7 @@ func ExampleCognitoSync_BulkPublish() { } func ExampleCognitoSync_DeleteDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -68,11 +60,7 @@ func ExampleCognitoSync_DeleteDataset() { } func ExampleCognitoSync_DescribeDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -95,11 +83,7 @@ func ExampleCognitoSync_DescribeDataset() { } func ExampleCognitoSync_DescribeIdentityPoolUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -120,11 +104,7 @@ func ExampleCognitoSync_DescribeIdentityPoolUsage() { } func ExampleCognitoSync_DescribeIdentityUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -146,11 +126,7 @@ func ExampleCognitoSync_DescribeIdentityUsage() { } func ExampleCognitoSync_GetBulkPublishDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -171,11 +147,7 @@ func ExampleCognitoSync_GetBulkPublishDetails() { } func ExampleCognitoSync_GetCognitoEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -196,11 +168,7 @@ func ExampleCognitoSync_GetCognitoEvents() { } func ExampleCognitoSync_GetIdentityPoolConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -221,11 +189,7 @@ func ExampleCognitoSync_GetIdentityPoolConfiguration() { } func ExampleCognitoSync_ListDatasets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -249,11 +213,7 @@ func ExampleCognitoSync_ListDatasets() { } func ExampleCognitoSync_ListIdentityPoolUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -275,11 +235,7 @@ func ExampleCognitoSync_ListIdentityPoolUsage() { } func ExampleCognitoSync_ListRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -306,11 +262,7 @@ func ExampleCognitoSync_ListRecords() { } func ExampleCognitoSync_RegisterDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -334,11 +286,7 @@ func ExampleCognitoSync_RegisterDevice() { } func ExampleCognitoSync_SetCognitoEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -363,11 +311,7 @@ func ExampleCognitoSync_SetCognitoEvents() { } func ExampleCognitoSync_SetIdentityPoolConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -400,11 +344,7 @@ func ExampleCognitoSync_SetIdentityPoolConfiguration() { } func ExampleCognitoSync_SubscribeToDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -428,11 +368,7 @@ func ExampleCognitoSync_SubscribeToDataset() { } func ExampleCognitoSync_UnsubscribeFromDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -456,11 +392,7 @@ func ExampleCognitoSync_UnsubscribeFromDataset() { } func ExampleCognitoSync_UpdateRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go index bfcdc72c..cd99a728 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockConfigServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go index 6d4b2cdf..9b4ab8d5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleConfigService_DeleteConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -41,11 +37,7 @@ func ExampleConfigService_DeleteConfigRule() { } func ExampleConfigService_DeleteConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -66,11 +58,7 @@ func ExampleConfigService_DeleteConfigurationRecorder() { } func ExampleConfigService_DeleteDeliveryChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -91,11 +79,7 @@ func ExampleConfigService_DeleteDeliveryChannel() { } func ExampleConfigService_DeleteEvaluationResults() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -116,11 +100,7 @@ func ExampleConfigService_DeleteEvaluationResults() { } func ExampleConfigService_DeliverConfigSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -141,11 +121,7 @@ func ExampleConfigService_DeliverConfigSnapshot() { } func ExampleConfigService_DescribeComplianceByConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -174,11 +150,7 @@ func ExampleConfigService_DescribeComplianceByConfigRule() { } func ExampleConfigService_DescribeComplianceByResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -206,11 +178,7 @@ func ExampleConfigService_DescribeComplianceByResource() { } func ExampleConfigService_DescribeConfigRuleEvaluationStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -236,11 +204,7 @@ func ExampleConfigService_DescribeConfigRuleEvaluationStatus() { } func ExampleConfigService_DescribeConfigRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -265,11 +229,7 @@ func ExampleConfigService_DescribeConfigRules() { } func ExampleConfigService_DescribeConfigurationRecorderStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -293,11 +253,7 @@ func ExampleConfigService_DescribeConfigurationRecorderStatus() { } func ExampleConfigService_DescribeConfigurationRecorders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -321,11 +277,7 @@ func ExampleConfigService_DescribeConfigurationRecorders() { } func ExampleConfigService_DescribeDeliveryChannelStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -349,11 +301,7 @@ func ExampleConfigService_DescribeDeliveryChannelStatus() { } func ExampleConfigService_DescribeDeliveryChannels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -377,11 +325,7 @@ func ExampleConfigService_DescribeDeliveryChannels() { } func ExampleConfigService_GetComplianceDetailsByConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -408,11 +352,7 @@ func ExampleConfigService_GetComplianceDetailsByConfigRule() { } func ExampleConfigService_GetComplianceDetailsByResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -439,11 +379,7 @@ func ExampleConfigService_GetComplianceDetailsByResource() { } func ExampleConfigService_GetComplianceSummaryByConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -462,11 +398,7 @@ func ExampleConfigService_GetComplianceSummaryByConfigRule() { } func ExampleConfigService_GetComplianceSummaryByResourceType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -490,11 +422,7 @@ func ExampleConfigService_GetComplianceSummaryByResourceType() { } func ExampleConfigService_GetResourceConfigHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -521,11 +449,7 @@ func ExampleConfigService_GetResourceConfigHistory() { } func ExampleConfigService_ListDiscoveredResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -554,11 +478,7 @@ func ExampleConfigService_ListDiscoveredResources() { } func ExampleConfigService_PutConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -608,11 +528,7 @@ func ExampleConfigService_PutConfigRule() { } func ExampleConfigService_PutConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -644,11 +560,7 @@ func ExampleConfigService_PutConfigurationRecorder() { } func ExampleConfigService_PutDeliveryChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -677,11 +589,7 @@ func ExampleConfigService_PutDeliveryChannel() { } func ExampleConfigService_PutEvaluations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -713,11 +621,7 @@ func ExampleConfigService_PutEvaluations() { } func ExampleConfigService_StartConfigRulesEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -741,11 +645,7 @@ func ExampleConfigService_StartConfigRulesEvaluation() { } func ExampleConfigService_StartConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -766,11 +666,7 @@ func ExampleConfigService_StartConfigurationRecorder() { } func ExampleConfigService_StopConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go index f21384b9..99d5e6c7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCostandUsageReportServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go index 13d5406e..80494aec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCostandUsageReportService_DeleteReportDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := costandusagereportservice.New(sess) @@ -41,11 +37,7 @@ func ExampleCostandUsageReportService_DeleteReportDefinition() { } func ExampleCostandUsageReportService_DescribeReportDefinitions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := costandusagereportservice.New(sess) @@ -67,11 +59,7 @@ func ExampleCostandUsageReportService_DescribeReportDefinitions() { } func ExampleCostandUsageReportService_PutReportDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := costandusagereportservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go index 85f3d2ea..a7066abb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDatabaseMigrationServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go index 7e7fe4dc..7848361b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDatabaseMigrationService_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -48,11 +44,7 @@ func ExampleDatabaseMigrationService_AddTagsToResource() { } func ExampleDatabaseMigrationService_CreateEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -91,11 +83,7 @@ func ExampleDatabaseMigrationService_CreateEndpoint() { } func ExampleDatabaseMigrationService_CreateReplicationInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -137,11 +125,7 @@ func ExampleDatabaseMigrationService_CreateReplicationInstance() { } func ExampleDatabaseMigrationService_CreateReplicationSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -174,11 +158,7 @@ func ExampleDatabaseMigrationService_CreateReplicationSubnetGroup() { } func ExampleDatabaseMigrationService_CreateReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -213,11 +193,7 @@ func ExampleDatabaseMigrationService_CreateReplicationTask() { } func ExampleDatabaseMigrationService_DeleteCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -238,11 +214,7 @@ func ExampleDatabaseMigrationService_DeleteCertificate() { } func ExampleDatabaseMigrationService_DeleteEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -263,11 +235,7 @@ func ExampleDatabaseMigrationService_DeleteEndpoint() { } func ExampleDatabaseMigrationService_DeleteReplicationInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -288,11 +256,7 @@ func ExampleDatabaseMigrationService_DeleteReplicationInstance() { } func ExampleDatabaseMigrationService_DeleteReplicationSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -313,11 +277,7 @@ func ExampleDatabaseMigrationService_DeleteReplicationSubnetGroup() { } func ExampleDatabaseMigrationService_DeleteReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -338,11 +298,7 @@ func ExampleDatabaseMigrationService_DeleteReplicationTask() { } func ExampleDatabaseMigrationService_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -361,11 +317,7 @@ func ExampleDatabaseMigrationService_DescribeAccountAttributes() { } func ExampleDatabaseMigrationService_DescribeCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -397,11 +349,7 @@ func ExampleDatabaseMigrationService_DescribeCertificates() { } func ExampleDatabaseMigrationService_DescribeConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -433,11 +381,7 @@ func ExampleDatabaseMigrationService_DescribeConnections() { } func ExampleDatabaseMigrationService_DescribeEndpointTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -469,11 +413,7 @@ func ExampleDatabaseMigrationService_DescribeEndpointTypes() { } func ExampleDatabaseMigrationService_DescribeEndpoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -505,11 +445,7 @@ func ExampleDatabaseMigrationService_DescribeEndpoints() { } func ExampleDatabaseMigrationService_DescribeOrderableReplicationInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -531,11 +467,7 @@ func ExampleDatabaseMigrationService_DescribeOrderableReplicationInstances() { } func ExampleDatabaseMigrationService_DescribeRefreshSchemasStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -556,11 +488,7 @@ func ExampleDatabaseMigrationService_DescribeRefreshSchemasStatus() { } func ExampleDatabaseMigrationService_DescribeReplicationInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -592,11 +520,7 @@ func ExampleDatabaseMigrationService_DescribeReplicationInstances() { } func ExampleDatabaseMigrationService_DescribeReplicationSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -628,11 +552,7 @@ func ExampleDatabaseMigrationService_DescribeReplicationSubnetGroups() { } func ExampleDatabaseMigrationService_DescribeReplicationTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -664,11 +584,7 @@ func ExampleDatabaseMigrationService_DescribeReplicationTasks() { } func ExampleDatabaseMigrationService_DescribeSchemas() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -691,11 +607,7 @@ func ExampleDatabaseMigrationService_DescribeSchemas() { } func ExampleDatabaseMigrationService_DescribeTableStatistics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -718,11 +630,7 @@ func ExampleDatabaseMigrationService_DescribeTableStatistics() { } func ExampleDatabaseMigrationService_ImportCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -745,11 +653,7 @@ func ExampleDatabaseMigrationService_ImportCertificate() { } func ExampleDatabaseMigrationService_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -770,11 +674,7 @@ func ExampleDatabaseMigrationService_ListTagsForResource() { } func ExampleDatabaseMigrationService_ModifyEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -806,11 +706,7 @@ func ExampleDatabaseMigrationService_ModifyEndpoint() { } func ExampleDatabaseMigrationService_ModifyReplicationInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -844,11 +740,7 @@ func ExampleDatabaseMigrationService_ModifyReplicationInstance() { } func ExampleDatabaseMigrationService_ModifyReplicationSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -874,11 +766,7 @@ func ExampleDatabaseMigrationService_ModifyReplicationSubnetGroup() { } func ExampleDatabaseMigrationService_ModifyReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -904,11 +792,7 @@ func ExampleDatabaseMigrationService_ModifyReplicationTask() { } func ExampleDatabaseMigrationService_RefreshSchemas() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -930,11 +814,7 @@ func ExampleDatabaseMigrationService_RefreshSchemas() { } func ExampleDatabaseMigrationService_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -959,11 +839,7 @@ func ExampleDatabaseMigrationService_RemoveTagsFromResource() { } func ExampleDatabaseMigrationService_StartReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -986,11 +862,7 @@ func ExampleDatabaseMigrationService_StartReplicationTask() { } func ExampleDatabaseMigrationService_StopReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -1011,11 +883,7 @@ func ExampleDatabaseMigrationService_StopReplicationTask() { } func ExampleDatabaseMigrationService_TestConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go index f547d376..93834358 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDataPipelineClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go index d68f720b..33b7ef19 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDataPipeline_ActivatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -49,11 +45,7 @@ func ExampleDataPipeline_ActivatePipeline() { } func ExampleDataPipeline_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -81,11 +73,7 @@ func ExampleDataPipeline_AddTags() { } func ExampleDataPipeline_CreatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -115,11 +103,7 @@ func ExampleDataPipeline_CreatePipeline() { } func ExampleDataPipeline_DeactivatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -141,11 +125,7 @@ func ExampleDataPipeline_DeactivatePipeline() { } func ExampleDataPipeline_DeletePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -166,11 +146,7 @@ func ExampleDataPipeline_DeletePipeline() { } func ExampleDataPipeline_DescribeObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -197,11 +173,7 @@ func ExampleDataPipeline_DescribeObjects() { } func ExampleDataPipeline_DescribePipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -225,11 +197,7 @@ func ExampleDataPipeline_DescribePipelines() { } func ExampleDataPipeline_EvaluateExpression() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -252,11 +220,7 @@ func ExampleDataPipeline_EvaluateExpression() { } func ExampleDataPipeline_GetPipelineDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -278,11 +242,7 @@ func ExampleDataPipeline_GetPipelineDefinition() { } func ExampleDataPipeline_ListPipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -303,11 +263,7 @@ func ExampleDataPipeline_ListPipelines() { } func ExampleDataPipeline_PollForTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -333,11 +289,7 @@ func ExampleDataPipeline_PollForTask() { } func ExampleDataPipeline_PutPipelineDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -393,11 +345,7 @@ func ExampleDataPipeline_PutPipelineDefinition() { } func ExampleDataPipeline_QueryObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -436,11 +384,7 @@ func ExampleDataPipeline_QueryObjects() { } func ExampleDataPipeline_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -465,11 +409,7 @@ func ExampleDataPipeline_RemoveTags() { } func ExampleDataPipeline_ReportTaskProgress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -498,11 +438,7 @@ func ExampleDataPipeline_ReportTaskProgress() { } func ExampleDataPipeline_ReportTaskRunnerHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -525,11 +461,7 @@ func ExampleDataPipeline_ReportTaskRunnerHeartbeat() { } func ExampleDataPipeline_SetStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -555,11 +487,7 @@ func ExampleDataPipeline_SetStatus() { } func ExampleDataPipeline_SetTaskStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -584,11 +512,7 @@ func ExampleDataPipeline_SetTaskStatus() { } func ExampleDataPipeline_ValidatePipelineDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go index 9e62f732..f4a79c1d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDeviceFarmClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go index 3843e7c5..5f4b5427 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDeviceFarm_CreateDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -51,11 +47,7 @@ func ExampleDeviceFarm_CreateDevicePool() { } func ExampleDeviceFarm_CreateProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -76,11 +68,7 @@ func ExampleDeviceFarm_CreateProject() { } func ExampleDeviceFarm_CreateRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -106,11 +94,7 @@ func ExampleDeviceFarm_CreateRemoteAccessSession() { } func ExampleDeviceFarm_CreateUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -134,11 +118,7 @@ func ExampleDeviceFarm_CreateUpload() { } func ExampleDeviceFarm_DeleteDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -159,11 +139,7 @@ func ExampleDeviceFarm_DeleteDevicePool() { } func ExampleDeviceFarm_DeleteProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -184,11 +160,7 @@ func ExampleDeviceFarm_DeleteProject() { } func ExampleDeviceFarm_DeleteRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -209,11 +181,7 @@ func ExampleDeviceFarm_DeleteRemoteAccessSession() { } func ExampleDeviceFarm_DeleteRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -234,11 +202,7 @@ func ExampleDeviceFarm_DeleteRun() { } func ExampleDeviceFarm_DeleteUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -259,11 +223,7 @@ func ExampleDeviceFarm_DeleteUpload() { } func ExampleDeviceFarm_GetAccountSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -282,11 +242,7 @@ func ExampleDeviceFarm_GetAccountSettings() { } func ExampleDeviceFarm_GetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -307,11 +263,7 @@ func ExampleDeviceFarm_GetDevice() { } func ExampleDeviceFarm_GetDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -332,11 +284,7 @@ func ExampleDeviceFarm_GetDevicePool() { } func ExampleDeviceFarm_GetDevicePoolCompatibility() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -359,11 +307,7 @@ func ExampleDeviceFarm_GetDevicePoolCompatibility() { } func ExampleDeviceFarm_GetJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -384,11 +328,7 @@ func ExampleDeviceFarm_GetJob() { } func ExampleDeviceFarm_GetOfferingStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -409,11 +349,7 @@ func ExampleDeviceFarm_GetOfferingStatus() { } func ExampleDeviceFarm_GetProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -434,11 +370,7 @@ func ExampleDeviceFarm_GetProject() { } func ExampleDeviceFarm_GetRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -459,11 +391,7 @@ func ExampleDeviceFarm_GetRemoteAccessSession() { } func ExampleDeviceFarm_GetRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -484,11 +412,7 @@ func ExampleDeviceFarm_GetRun() { } func ExampleDeviceFarm_GetSuite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -509,11 +433,7 @@ func ExampleDeviceFarm_GetSuite() { } func ExampleDeviceFarm_GetTest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -534,11 +454,7 @@ func ExampleDeviceFarm_GetTest() { } func ExampleDeviceFarm_GetUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -559,11 +475,7 @@ func ExampleDeviceFarm_GetUpload() { } func ExampleDeviceFarm_InstallToRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -585,11 +497,7 @@ func ExampleDeviceFarm_InstallToRemoteAccessSession() { } func ExampleDeviceFarm_ListArtifacts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -612,11 +520,7 @@ func ExampleDeviceFarm_ListArtifacts() { } func ExampleDeviceFarm_ListDevicePools() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -639,11 +543,7 @@ func ExampleDeviceFarm_ListDevicePools() { } func ExampleDeviceFarm_ListDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -665,11 +565,7 @@ func ExampleDeviceFarm_ListDevices() { } func ExampleDeviceFarm_ListJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -691,11 +587,7 @@ func ExampleDeviceFarm_ListJobs() { } func ExampleDeviceFarm_ListOfferingTransactions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -716,11 +608,7 @@ func ExampleDeviceFarm_ListOfferingTransactions() { } func ExampleDeviceFarm_ListOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -741,11 +629,7 @@ func ExampleDeviceFarm_ListOfferings() { } func ExampleDeviceFarm_ListProjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -767,11 +651,7 @@ func ExampleDeviceFarm_ListProjects() { } func ExampleDeviceFarm_ListRemoteAccessSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -793,11 +673,7 @@ func ExampleDeviceFarm_ListRemoteAccessSessions() { } func ExampleDeviceFarm_ListRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -819,11 +695,7 @@ func ExampleDeviceFarm_ListRuns() { } func ExampleDeviceFarm_ListSamples() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -845,11 +717,7 @@ func ExampleDeviceFarm_ListSamples() { } func ExampleDeviceFarm_ListSuites() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -871,11 +739,7 @@ func ExampleDeviceFarm_ListSuites() { } func ExampleDeviceFarm_ListTests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -897,11 +761,7 @@ func ExampleDeviceFarm_ListTests() { } func ExampleDeviceFarm_ListUniqueProblems() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -923,11 +783,7 @@ func ExampleDeviceFarm_ListUniqueProblems() { } func ExampleDeviceFarm_ListUploads() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -949,11 +805,7 @@ func ExampleDeviceFarm_ListUploads() { } func ExampleDeviceFarm_PurchaseOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -975,11 +827,7 @@ func ExampleDeviceFarm_PurchaseOffering() { } func ExampleDeviceFarm_RenewOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1001,11 +849,7 @@ func ExampleDeviceFarm_RenewOffering() { } func ExampleDeviceFarm_ScheduleRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1058,11 +902,7 @@ func ExampleDeviceFarm_ScheduleRun() { } func ExampleDeviceFarm_StopRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1083,11 +923,7 @@ func ExampleDeviceFarm_StopRemoteAccessSession() { } func ExampleDeviceFarm_StopRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1108,11 +944,7 @@ func ExampleDeviceFarm_StopRun() { } func ExampleDeviceFarm_UpdateDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1143,11 +975,7 @@ func ExampleDeviceFarm_UpdateDevicePool() { } func ExampleDeviceFarm_UpdateProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go index 008de6c2..63c73e44 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDirectConnectClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go index 99b3a563..3ac8b959 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDirectConnect_AllocateConnectionOnInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -45,11 +41,7 @@ func ExampleDirectConnect_AllocateConnectionOnInterconnect() { } func ExampleDirectConnect_AllocateHostedConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -74,11 +66,7 @@ func ExampleDirectConnect_AllocateHostedConnection() { } func ExampleDirectConnect_AllocatePrivateVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -109,11 +97,7 @@ func ExampleDirectConnect_AllocatePrivateVirtualInterface() { } func ExampleDirectConnect_AllocatePublicVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -150,11 +134,7 @@ func ExampleDirectConnect_AllocatePublicVirtualInterface() { } func ExampleDirectConnect_AssociateConnectionWithLag() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -176,11 +156,7 @@ func ExampleDirectConnect_AssociateConnectionWithLag() { } func ExampleDirectConnect_AssociateHostedConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -202,11 +178,7 @@ func ExampleDirectConnect_AssociateHostedConnection() { } func ExampleDirectConnect_AssociateVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -228,11 +200,7 @@ func ExampleDirectConnect_AssociateVirtualInterface() { } func ExampleDirectConnect_ConfirmConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -253,11 +221,7 @@ func ExampleDirectConnect_ConfirmConnection() { } func ExampleDirectConnect_ConfirmPrivateVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -279,11 +243,7 @@ func ExampleDirectConnect_ConfirmPrivateVirtualInterface() { } func ExampleDirectConnect_ConfirmPublicVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -304,11 +264,7 @@ func ExampleDirectConnect_ConfirmPublicVirtualInterface() { } func ExampleDirectConnect_CreateBGPPeer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -336,11 +292,7 @@ func ExampleDirectConnect_CreateBGPPeer() { } func ExampleDirectConnect_CreateConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -364,11 +316,7 @@ func ExampleDirectConnect_CreateConnection() { } func ExampleDirectConnect_CreateInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -392,11 +340,7 @@ func ExampleDirectConnect_CreateInterconnect() { } func ExampleDirectConnect_CreateLag() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -421,11 +365,7 @@ func ExampleDirectConnect_CreateLag() { } func ExampleDirectConnect_CreatePrivateVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -456,11 +396,7 @@ func ExampleDirectConnect_CreatePrivateVirtualInterface() { } func ExampleDirectConnect_CreatePublicVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -496,11 +432,7 @@ func ExampleDirectConnect_CreatePublicVirtualInterface() { } func ExampleDirectConnect_DeleteBGPPeer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -523,11 +455,7 @@ func ExampleDirectConnect_DeleteBGPPeer() { } func ExampleDirectConnect_DeleteConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -548,11 +476,7 @@ func ExampleDirectConnect_DeleteConnection() { } func ExampleDirectConnect_DeleteInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -573,11 +497,7 @@ func ExampleDirectConnect_DeleteInterconnect() { } func ExampleDirectConnect_DeleteLag() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -598,11 +518,7 @@ func ExampleDirectConnect_DeleteLag() { } func ExampleDirectConnect_DeleteVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -623,11 +539,7 @@ func ExampleDirectConnect_DeleteVirtualInterface() { } func ExampleDirectConnect_DescribeConnectionLoa() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -650,11 +562,7 @@ func ExampleDirectConnect_DescribeConnectionLoa() { } func ExampleDirectConnect_DescribeConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -675,11 +583,7 @@ func ExampleDirectConnect_DescribeConnections() { } func ExampleDirectConnect_DescribeConnectionsOnInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -700,11 +604,7 @@ func ExampleDirectConnect_DescribeConnectionsOnInterconnect() { } func ExampleDirectConnect_DescribeHostedConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -725,11 +625,7 @@ func ExampleDirectConnect_DescribeHostedConnections() { } func ExampleDirectConnect_DescribeInterconnectLoa() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -752,11 +648,7 @@ func ExampleDirectConnect_DescribeInterconnectLoa() { } func ExampleDirectConnect_DescribeInterconnects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -777,11 +669,7 @@ func ExampleDirectConnect_DescribeInterconnects() { } func ExampleDirectConnect_DescribeLags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -802,11 +690,7 @@ func ExampleDirectConnect_DescribeLags() { } func ExampleDirectConnect_DescribeLoa() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -829,11 +713,7 @@ func ExampleDirectConnect_DescribeLoa() { } func ExampleDirectConnect_DescribeLocations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -852,11 +732,7 @@ func ExampleDirectConnect_DescribeLocations() { } func ExampleDirectConnect_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -880,11 +756,7 @@ func ExampleDirectConnect_DescribeTags() { } func ExampleDirectConnect_DescribeVirtualGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -903,11 +775,7 @@ func ExampleDirectConnect_DescribeVirtualGateways() { } func ExampleDirectConnect_DescribeVirtualInterfaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -929,11 +797,7 @@ func ExampleDirectConnect_DescribeVirtualInterfaces() { } func ExampleDirectConnect_DisassociateConnectionFromLag() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -955,11 +819,7 @@ func ExampleDirectConnect_DisassociateConnectionFromLag() { } func ExampleDirectConnect_TagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -987,11 +847,7 @@ func ExampleDirectConnect_TagResource() { } func ExampleDirectConnect_UntagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -1016,11 +872,7 @@ func ExampleDirectConnect_UntagResource() { } func ExampleDirectConnect_UpdateLag() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go index 3e3af91a..51aa33de 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDirectoryServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go index 3e4ce976..5e7a4c08 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDirectoryService_AddIpRoutes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -49,11 +45,7 @@ func ExampleDirectoryService_AddIpRoutes() { } func ExampleDirectoryService_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -81,11 +73,7 @@ func ExampleDirectoryService_AddTagsToResource() { } func ExampleDirectoryService_CancelSchemaExtension() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -107,11 +95,7 @@ func ExampleDirectoryService_CancelSchemaExtension() { } func ExampleDirectoryService_ConnectDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -148,11 +132,7 @@ func ExampleDirectoryService_ConnectDirectory() { } func ExampleDirectoryService_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -174,11 +154,7 @@ func ExampleDirectoryService_CreateAlias() { } func ExampleDirectoryService_CreateComputer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -209,11 +185,7 @@ func ExampleDirectoryService_CreateComputer() { } func ExampleDirectoryService_CreateConditionalForwarder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -239,11 +211,7 @@ func ExampleDirectoryService_CreateConditionalForwarder() { } func ExampleDirectoryService_CreateDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -275,11 +243,7 @@ func ExampleDirectoryService_CreateDirectory() { } func ExampleDirectoryService_CreateMicrosoftAD() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -310,11 +274,7 @@ func ExampleDirectoryService_CreateMicrosoftAD() { } func ExampleDirectoryService_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -336,11 +296,7 @@ func ExampleDirectoryService_CreateSnapshot() { } func ExampleDirectoryService_CreateTrust() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -369,11 +325,7 @@ func ExampleDirectoryService_CreateTrust() { } func ExampleDirectoryService_DeleteConditionalForwarder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -395,11 +347,7 @@ func ExampleDirectoryService_DeleteConditionalForwarder() { } func ExampleDirectoryService_DeleteDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -420,11 +368,7 @@ func ExampleDirectoryService_DeleteDirectory() { } func ExampleDirectoryService_DeleteSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -445,11 +389,7 @@ func ExampleDirectoryService_DeleteSnapshot() { } func ExampleDirectoryService_DeleteTrust() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -471,11 +411,7 @@ func ExampleDirectoryService_DeleteTrust() { } func ExampleDirectoryService_DeregisterEventTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -497,11 +433,7 @@ func ExampleDirectoryService_DeregisterEventTopic() { } func ExampleDirectoryService_DescribeConditionalForwarders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -526,11 +458,7 @@ func ExampleDirectoryService_DescribeConditionalForwarders() { } func ExampleDirectoryService_DescribeDirectories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -556,11 +484,7 @@ func ExampleDirectoryService_DescribeDirectories() { } func ExampleDirectoryService_DescribeEventTopics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -585,11 +509,7 @@ func ExampleDirectoryService_DescribeEventTopics() { } func ExampleDirectoryService_DescribeSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -616,11 +536,7 @@ func ExampleDirectoryService_DescribeSnapshots() { } func ExampleDirectoryService_DescribeTrusts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -647,11 +563,7 @@ func ExampleDirectoryService_DescribeTrusts() { } func ExampleDirectoryService_DisableRadius() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -672,11 +584,7 @@ func ExampleDirectoryService_DisableRadius() { } func ExampleDirectoryService_DisableSso() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -699,11 +607,7 @@ func ExampleDirectoryService_DisableSso() { } func ExampleDirectoryService_EnableRadius() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -737,11 +641,7 @@ func ExampleDirectoryService_EnableRadius() { } func ExampleDirectoryService_EnableSso() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -764,11 +664,7 @@ func ExampleDirectoryService_EnableSso() { } func ExampleDirectoryService_GetDirectoryLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -787,11 +683,7 @@ func ExampleDirectoryService_GetDirectoryLimits() { } func ExampleDirectoryService_GetSnapshotLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -812,11 +704,7 @@ func ExampleDirectoryService_GetSnapshotLimits() { } func ExampleDirectoryService_ListIpRoutes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -839,11 +727,7 @@ func ExampleDirectoryService_ListIpRoutes() { } func ExampleDirectoryService_ListSchemaExtensions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -866,11 +750,7 @@ func ExampleDirectoryService_ListSchemaExtensions() { } func ExampleDirectoryService_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -893,11 +773,7 @@ func ExampleDirectoryService_ListTagsForResource() { } func ExampleDirectoryService_RegisterEventTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -919,11 +795,7 @@ func ExampleDirectoryService_RegisterEventTopic() { } func ExampleDirectoryService_RemoveIpRoutes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -948,11 +820,7 @@ func ExampleDirectoryService_RemoveIpRoutes() { } func ExampleDirectoryService_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -977,11 +845,7 @@ func ExampleDirectoryService_RemoveTagsFromResource() { } func ExampleDirectoryService_RestoreFromSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -1002,11 +866,7 @@ func ExampleDirectoryService_RestoreFromSnapshot() { } func ExampleDirectoryService_StartSchemaExtension() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -1030,11 +890,7 @@ func ExampleDirectoryService_StartSchemaExtension() { } func ExampleDirectoryService_UpdateConditionalForwarder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -1060,11 +916,7 @@ func ExampleDirectoryService_UpdateConditionalForwarder() { } func ExampleDirectoryService_UpdateRadius() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -1098,11 +950,7 @@ func ExampleDirectoryService_UpdateRadius() { } func ExampleDirectoryService_VerifyTrust() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go index b43a399b..55dfb23c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go @@ -808,6 +808,75 @@ func (c *DynamoDB) DescribeTable(input *DescribeTableInput) (*DescribeTableOutpu return out, err } +const opDescribeTimeToLive = "DescribeTimeToLive" + +// DescribeTimeToLiveRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTimeToLive operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeTimeToLive for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeTimeToLive method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeTimeToLiveRequest method. +// req, resp := client.DescribeTimeToLiveRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLive +func (c *DynamoDB) DescribeTimeToLiveRequest(input *DescribeTimeToLiveInput) (req *request.Request, output *DescribeTimeToLiveOutput) { + op := &request.Operation{ + Name: opDescribeTimeToLive, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTimeToLiveInput{} + } + + output = &DescribeTimeToLiveOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTimeToLive API operation for Amazon DynamoDB. +// +// Gives a description of the Time to Live (TTL) status on the specified table. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation DescribeTimeToLive for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLive +func (c *DynamoDB) DescribeTimeToLive(input *DescribeTimeToLiveInput) (*DescribeTimeToLiveOutput, error) { + req, out := c.DescribeTimeToLiveRequest(input) + err := req.Send() + return out, err +} + const opGetItem = "GetItem" // GetItemRequest generates a "aws/request.Request" representing the @@ -1804,6 +1873,117 @@ func (c *DynamoDB) UpdateTable(input *UpdateTableInput) (*UpdateTableOutput, err return out, err } +const opUpdateTimeToLive = "UpdateTimeToLive" + +// UpdateTimeToLiveRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTimeToLive operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateTimeToLive for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateTimeToLive method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateTimeToLiveRequest method. +// req, resp := client.UpdateTimeToLiveRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLive +func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *request.Request, output *UpdateTimeToLiveOutput) { + op := &request.Operation{ + Name: opUpdateTimeToLive, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateTimeToLiveInput{} + } + + output = &UpdateTimeToLiveOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTimeToLive API operation for Amazon DynamoDB. +// +// Specify the lifetime of individual table items. The database automatically +// removes the item at the expiration of the item. The UpdateTimeToLive method +// will enable or disable TTL for the specified table. A successful UpdateTimeToLive +// call returns the current TimeToLiveSpecification; it may take up to one hour +// for the change to fully process. +// +// TTL compares the current time in epoch time format to the time stored in +// the TTL attribute of an item. If the epoch time value stored in the attribute +// is less than the current time, the item is marked as expired and subsequently +// deleted. +// +// The epoch time format is the number of seconds elapsed since 12:00:00 AM +// January 1st, 1970 UTC. +// +// DynamoDB deletes expired items on a best-effort basis to ensure availability +// of throughput for other data operations. +// +// DynamoDB typically deletes expired items within two days of expiration. The +// exact duration within which an item gets deleted after expiration is specific +// to the nature of the workload. Items that have expired and not been deleted +// will still show up in reads, queries, and scans. +// +// As items are deleted, they are removed from any Local Secondary Index and +// Global Secondary Index immediately in the same eventually consistent way +// as a standard delete operation. +// +// For more information, see Time To Live (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html) +// in the Amazon DynamoDB Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation UpdateTimeToLive for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLive +func (c *DynamoDB) UpdateTimeToLive(input *UpdateTimeToLiveInput) (*UpdateTimeToLiveOutput, error) { + req, out := c.UpdateTimeToLiveRequest(input) + err := req.Send() + return out, err +} + // Represents an attribute for describing the key schema for the table and indexes. // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AttributeDefinition type AttributeDefinition struct { @@ -3207,7 +3387,7 @@ type DeleteItemInput struct { // // These function names are case-sensitive. // - // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // * Logical operators: AND | OR | NOT // @@ -3733,6 +3913,71 @@ func (s *DescribeTableOutput) SetTable(v *TableDescription) *DescribeTableOutput return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLiveInput +type DescribeTimeToLiveInput struct { + _ struct{} `type:"structure"` + + // The name of the table to be described. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTimeToLiveInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTimeToLiveInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTimeToLiveInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTimeToLiveInput"} + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TableName != nil && len(*s.TableName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTableName sets the TableName field's value. +func (s *DescribeTimeToLiveInput) SetTableName(v string) *DescribeTimeToLiveInput { + s.TableName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLiveOutput +type DescribeTimeToLiveOutput struct { + _ struct{} `type:"structure"` + + TimeToLiveDescription *TimeToLiveDescription `type:"structure"` +} + +// String returns the string representation +func (s DescribeTimeToLiveOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTimeToLiveOutput) GoString() string { + return s.String() +} + +// SetTimeToLiveDescription sets the TimeToLiveDescription field's value. +func (s *DescribeTimeToLiveOutput) SetTimeToLiveDescription(v *TimeToLiveDescription) *DescribeTimeToLiveOutput { + s.TimeToLiveDescription = v + return s +} + // Represents a condition to be compared with an attribute value. This condition // can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison // evaluates to true, the operation succeeds; if not, the operation fails. You @@ -5308,7 +5553,7 @@ type PutItemInput struct { // // These function names are case-sensitive. // - // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // * Logical operators: AND | OR | NOT // @@ -7151,6 +7396,100 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The description of the Time to Live (TTL) status on the specified table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TimeToLiveDescription +type TimeToLiveDescription struct { + _ struct{} `type:"structure"` + + // The name of the Time to Live attribute for items in the table. + AttributeName *string `min:"1" type:"string"` + + // The Time to Live status for the table. + TimeToLiveStatus *string `type:"string" enum:"TimeToLiveStatus"` +} + +// String returns the string representation +func (s TimeToLiveDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimeToLiveDescription) GoString() string { + return s.String() +} + +// SetAttributeName sets the AttributeName field's value. +func (s *TimeToLiveDescription) SetAttributeName(v string) *TimeToLiveDescription { + s.AttributeName = &v + return s +} + +// SetTimeToLiveStatus sets the TimeToLiveStatus field's value. +func (s *TimeToLiveDescription) SetTimeToLiveStatus(v string) *TimeToLiveDescription { + s.TimeToLiveStatus = &v + return s +} + +// Represents the settings used to enable or disable Time to Live for the specified +// table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TimeToLiveSpecification +type TimeToLiveSpecification struct { + _ struct{} `type:"structure"` + + // The name of the Time to Live attribute used to store the expiration time + // for items in the table. + // + // AttributeName is a required field + AttributeName *string `min:"1" type:"string" required:"true"` + + // Indicates whether Time To Live is to be enabled (true) or disabled (false) + // on the table. + // + // Enabled is a required field + Enabled *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s TimeToLiveSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimeToLiveSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimeToLiveSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimeToLiveSpecification"} + if s.AttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeName")) + } + if s.AttributeName != nil && len(*s.AttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) + } + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeName sets the AttributeName field's value. +func (s *TimeToLiveSpecification) SetAttributeName(v string) *TimeToLiveSpecification { + s.AttributeName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *TimeToLiveSpecification) SetEnabled(v bool) *TimeToLiveSpecification { + s.Enabled = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResourceInput type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -7311,7 +7650,7 @@ type UpdateItemInput struct { // // These function names are case-sensitive. // - // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // * Logical operators: AND | OR | NOT // @@ -7430,14 +7769,17 @@ type UpdateItemInput struct { // * NONE - If ReturnValues is not specified, or if its value is NONE, then // nothing is returned. (This setting is the default for ReturnValues.) // - // * ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then - // the content of the old item is returned. + // * ALL_OLD - Returns all of the attributes of the item, as they appeared + // before the UpdateItem operation. // - // * UPDATED_OLD - The old versions of only the updated attributes are returned. + // * UPDATED_OLD - Returns only the updated attributes, as they appeared + // before the UpdateItem operation. // - // * ALL_NEW - All of the attributes of the new version of the item are returned. + // * ALL_NEW - Returns all of the attributes of the item, as they appear + // after the UpdateItem operation. // - // * UPDATED_NEW - The new versions of only the updated attributes are returned. + // * UPDATED_NEW - Returns only the updated attributes, as they appear after + // the UpdateItem operation. // // There is no additional cost associated with requesting a return value aside // from the small network and processing overhead of receiving a larger response. @@ -7842,6 +8184,93 @@ func (s *UpdateTableOutput) SetTableDescription(v *TableDescription) *UpdateTabl return s } +// Represents the input of an UpdateTimeToLive operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLiveInput +type UpdateTimeToLiveInput struct { + _ struct{} `type:"structure"` + + // The name of the table to be configured. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` + + // Represents the settings used to enable or disable Time to Live for the specified + // table. + // + // TimeToLiveSpecification is a required field + TimeToLiveSpecification *TimeToLiveSpecification `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateTimeToLiveInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTimeToLiveInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateTimeToLiveInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateTimeToLiveInput"} + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TableName != nil && len(*s.TableName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + } + if s.TimeToLiveSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("TimeToLiveSpecification")) + } + if s.TimeToLiveSpecification != nil { + if err := s.TimeToLiveSpecification.Validate(); err != nil { + invalidParams.AddNested("TimeToLiveSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTableName sets the TableName field's value. +func (s *UpdateTimeToLiveInput) SetTableName(v string) *UpdateTimeToLiveInput { + s.TableName = &v + return s +} + +// SetTimeToLiveSpecification sets the TimeToLiveSpecification field's value. +func (s *UpdateTimeToLiveInput) SetTimeToLiveSpecification(v *TimeToLiveSpecification) *UpdateTimeToLiveInput { + s.TimeToLiveSpecification = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLiveOutput +type UpdateTimeToLiveOutput struct { + _ struct{} `type:"structure"` + + // Represents the output of an UpdateTimeToLive operation. + TimeToLiveSpecification *TimeToLiveSpecification `type:"structure"` +} + +// String returns the string representation +func (s UpdateTimeToLiveOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTimeToLiveOutput) GoString() string { + return s.String() +} + +// SetTimeToLiveSpecification sets the TimeToLiveSpecification field's value. +func (s *UpdateTimeToLiveOutput) SetTimeToLiveSpecification(v *TimeToLiveSpecification) *UpdateTimeToLiveOutput { + s.TimeToLiveSpecification = v + return s +} + // Represents an operation to perform - either DeleteItem or PutItem. You can // only request one of these operations, not both, in a single WriteRequest. // If you do need to perform both of these operations, you will need to provide @@ -8075,3 +8504,17 @@ const ( // TableStatusActive is a TableStatus enum value TableStatusActive = "ACTIVE" ) + +const ( + // TimeToLiveStatusEnabling is a TimeToLiveStatus enum value + TimeToLiveStatusEnabling = "ENABLING" + + // TimeToLiveStatusDisabling is a TimeToLiveStatus enum value + TimeToLiveStatusDisabling = "DISABLING" + + // TimeToLiveStatusEnabled is a TimeToLiveStatus enum value + TimeToLiveStatusEnabled = "ENABLED" + + // TimeToLiveStatusDisabled is a TimeToLiveStatus enum value + TimeToLiveStatusDisabled = "DISABLED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go index b603b584..03fd9126 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go @@ -31,11 +31,7 @@ // // Marshal Go value type for DynamoDB.PutItem: // -// sess, err := session.NewSession() -// if err != nil { -// fmt.Println("Failed create session", err) -// return -// } +// sess := session.Must(session.NewSession()) // // svc := dynamodb.New(sess) // item, err := dynamodbattribute.MarshalMap(r) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go index 5888d777..021d71a0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDynamoDBClient{} // @@ -89,6 +89,10 @@ type DynamoDBAPI interface { DescribeTable(*dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error) + DescribeTimeToLiveRequest(*dynamodb.DescribeTimeToLiveInput) (*request.Request, *dynamodb.DescribeTimeToLiveOutput) + + DescribeTimeToLive(*dynamodb.DescribeTimeToLiveInput) (*dynamodb.DescribeTimeToLiveOutput, error) + GetItemRequest(*dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput) GetItem(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) @@ -135,6 +139,10 @@ type DynamoDBAPI interface { UpdateTable(*dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error) + UpdateTimeToLiveRequest(*dynamodb.UpdateTimeToLiveInput) (*request.Request, *dynamodb.UpdateTimeToLiveOutput) + + UpdateTimeToLive(*dynamodb.UpdateTimeToLiveInput) (*dynamodb.UpdateTimeToLiveOutput, error) + WaitUntilTableExists(*dynamodb.DescribeTableInput) error WaitUntilTableNotExists(*dynamodb.DescribeTableInput) error diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go index 8ed90713..dbde8506 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDynamoDB_BatchGetItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -93,11 +89,7 @@ func ExampleDynamoDB_BatchGetItem() { } func ExampleDynamoDB_BatchWriteItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -199,11 +191,7 @@ func ExampleDynamoDB_BatchWriteItem() { } func ExampleDynamoDB_CreateTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -290,11 +278,7 @@ func ExampleDynamoDB_CreateTable() { } func ExampleDynamoDB_DeleteItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -464,11 +448,7 @@ func ExampleDynamoDB_DeleteItem() { } func ExampleDynamoDB_DeleteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -489,11 +469,7 @@ func ExampleDynamoDB_DeleteTable() { } func ExampleDynamoDB_DescribeLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -512,11 +488,7 @@ func ExampleDynamoDB_DescribeLimits() { } func ExampleDynamoDB_DescribeTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -536,13 +508,30 @@ func ExampleDynamoDB_DescribeTable() { fmt.Println(resp) } -func ExampleDynamoDB_GetItem() { - sess, err := session.NewSession() +func ExampleDynamoDB_DescribeTimeToLive() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.DescribeTimeToLiveInput{ + TableName: aws.String("TableName"), // Required + } + resp, err := svc.DescribeTimeToLive(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDynamoDB_GetItem() { + sess := session.Must(session.NewSession()) + svc := dynamodb.New(sess) params := &dynamodb.GetItemInput{ @@ -607,11 +596,7 @@ func ExampleDynamoDB_GetItem() { } func ExampleDynamoDB_ListTables() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -633,11 +618,7 @@ func ExampleDynamoDB_ListTables() { } func ExampleDynamoDB_ListTagsOfResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -659,11 +640,7 @@ func ExampleDynamoDB_ListTagsOfResource() { } func ExampleDynamoDB_PutItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -833,11 +810,7 @@ func ExampleDynamoDB_PutItem() { } func ExampleDynamoDB_Query() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1024,11 +997,7 @@ func ExampleDynamoDB_Query() { } func ExampleDynamoDB_Scan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1175,11 +1144,7 @@ func ExampleDynamoDB_Scan() { } func ExampleDynamoDB_TagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1207,11 +1172,7 @@ func ExampleDynamoDB_TagResource() { } func ExampleDynamoDB_UntagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1236,11 +1197,7 @@ func ExampleDynamoDB_UntagResource() { } func ExampleDynamoDB_UpdateItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1448,11 +1405,7 @@ func ExampleDynamoDB_UpdateItem() { } func ExampleDynamoDB_UpdateTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1522,3 +1475,28 @@ func ExampleDynamoDB_UpdateTable() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleDynamoDB_UpdateTimeToLive() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.UpdateTimeToLiveInput{ + TableName: aws.String("TableName"), // Required + TimeToLiveSpecification: &dynamodb.TimeToLiveSpecification{ // Required + AttributeName: aws.String("TimeToLiveAttributeName"), // Required + Enabled: aws.Bool(true), // Required + }, + } + resp, err := svc.UpdateTimeToLive(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go index 57b6548d..22c18c3b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go @@ -670,6 +670,41 @@ func (s *GetShardIteratorOutput) SetShardIterator(v string) *GetShardIteratorOut return s } +// Contains details about the type of identity that made the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/Identity +type Identity struct { + _ struct{} `type:"structure"` + + // A unique identifier for the entity that made the call. For Time To Live, + // the principalId is "dynamodb.amazonaws.com". + PrincipalId *string `type:"string"` + + // The type of the identity. For Time To Live, the type is "Service". + Type *string `type:"string"` +} + +// String returns the string representation +func (s Identity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Identity) GoString() string { + return s.String() +} + +// SetPrincipalId sets the PrincipalId field's value. +func (s *Identity) SetPrincipalId(v string) *Identity { + s.PrincipalId = &v + return s +} + +// SetType sets the Type field's value. +func (s *Identity) SetType(v string) *Identity { + s.Type = &v + return s +} + // Represents the input of a ListStreams operation. // Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/ListStreamsInput type ListStreamsInput struct { @@ -814,6 +849,18 @@ type Record struct { // value, as this number is subject to change at any time. In general, eventVersion // will only increase as the low-level DynamoDB Streams API evolves. EventVersion *string `locationName:"eventVersion" type:"string"` + + // Items that are deleted by the Time to Live process after expiration have + // the following fields: + // + // * Records[].userIdentity.type + // + // "Service" + // + // * Records[].userIdentity.principalId + // + // "dynamodb.amazonaws.com" + UserIdentity *Identity `locationName:"userIdentity" type:"structure"` } // String returns the string representation @@ -862,6 +909,12 @@ func (s *Record) SetEventVersion(v string) *Record { return s } +// SetUserIdentity sets the UserIdentity field's value. +func (s *Record) SetUserIdentity(v *Identity) *Record { + s.UserIdentity = v + return s +} + // The beginning and ending sequence numbers for the stream records contained // within a shard. // Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/SequenceNumberRange diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go index 0955bf94..88cb1176 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDynamoDBStreamsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go index 40e37d94..69e8b7e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDynamoDBStreams_DescribeStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) @@ -43,11 +39,7 @@ func ExampleDynamoDBStreams_DescribeStream() { } func ExampleDynamoDBStreams_GetRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) @@ -69,11 +61,7 @@ func ExampleDynamoDBStreams_GetRecords() { } func ExampleDynamoDBStreams_GetShardIterator() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) @@ -97,11 +85,7 @@ func ExampleDynamoDBStreams_GetShardIterator() { } func ExampleDynamoDBStreams_ListStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go index e33f0fd7..2e025a10 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go @@ -15,18 +15,6 @@ import ( // stream records. To learn more about application development with Streams, // see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) // in the Amazon DynamoDB Developer Guide. -// -// The following are short descriptions of each low-level DynamoDB Streams action: -// -// * DescribeStream - Returns detailed information about a particular stream. -// -// * GetRecords - Retrieves the stream records from within a shard. -// -// * GetShardIterator - Returns information on how to retrieve the streams -// record from a shard with a given shard ID. -// -// * ListStreams - Returns a list of all the streams associated with the -// current AWS account and endpoint. // The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. // Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10 diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go index cb4ded4b..83191e2d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go @@ -9921,7 +9921,7 @@ func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModifica // // You can also use CloudWatch Events to check the status of a modification // to an EBS volume. For information about CloudWatch Events, see the Amazon -// CloudWatch Events User Guide (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html). +// CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). // For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -13080,30 +13080,29 @@ func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Reques // without stopping the instance or detaching the volume from it. For more information // about modifying an EBS volume running Linux, see Modifying the Size, IOPS, // or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). -// For more information about modifying an EBS volume running Windows, see Expanding -// the Storage Space of an EBS Volume on Windows (http://docs.aws.amazon.com/docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). +// For more information about modifying an EBS volume running Windows, see Modifying +// the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). // // When you complete a resize operation on your volume, you need to extend the // volume's file-system size to take advantage of the new storage capacity. // For information about extending a Linux file system, see Extending a Linux // File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux). // For information about extending a Windows file system, see Extending a Windows -// File System (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows). +// File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows). // // You can use CloudWatch Events to check the status of a modification to an // EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch -// Events User Guide (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html). +// Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). // You can also track the status of a modification using the DescribeVolumesModifications -// (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVolumesModifications.html) // API. For information about tracking status changes using either method, see -// Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). +// Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). // -// With previous-generation volumes and instance types, resizing an EBS volume -// may require detaching and reattaching the volume or stopping and restarting -// the instance. For more information about modifying an EBS volume running -// Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). +// With previous-generation instance types, resizing an EBS volume may require +// detaching and reattaching the volume or stopping and restarting the instance. +// For more information about modifying an EBS volume running Linux, see Modifying +// the Size, IOPS, or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). // For more information about modifying an EBS volume running Windows, see Modifying -// the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). +// the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). // // If you reach the maximum volume modification rate per volume limit, you will // need to wait at least six hours before applying further modifications to @@ -13854,31 +13853,27 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // in a single request, so you don't have to register the AMI yourself. // // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from -// a snapshot of a root device volume. For more information, see Launching an -// Instance from a Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html) +// a snapshot of a root device volume. You specify the snapshot using the block +// device mapping. For more information, see Launching an Instance from a Snapshot +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html) // in the Amazon Elastic Compute Cloud User Guide. // +// You can't register an image where a secondary (non-root) snapshot has AWS +// Marketplace product codes. +// // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE -// Linux Enterprise Server (SLES), use the EC2 billingProduct code associated -// with an AMI to verify subscription status for package updates. Creating an -// AMI from an EBS snapshot does not maintain this billing code, and subsequent +// Linux Enterprise Server (SLES), use the EC2 billing product code associated +// with an AMI to verify the subscription status for package updates. Creating +// an AMI from an EBS snapshot does not maintain this billing code, and subsequent // instances launched from such an AMI will not be able to connect to package -// update infrastructure. -// -// Similarly, although you can create a Windows AMI from a snapshot, you can't -// successfully launch an instance from the AMI. -// -// To create Windows AMIs or to create AMIs for Linux operating systems that -// must retain AMI billing codes to work properly, see CreateImage. +// update infrastructure. To create an AMI that must retain billing codes, see +// CreateImage. // // If needed, you can deregister an AMI at any time. Any modifications you make // to an AMI backed by an instance store volume invalidates its registration. // If you make changes to an image, deregister the previous image and register // the new image. // -// You can't register an image where a secondary (non-root) snapshot has AWS -// Marketplace product codes. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -40467,6 +40462,8 @@ type ModifyVolumeInput struct { // Only valid for Provisioned IOPS SSD (io1) volumes. For more information about // io1 IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops). + // + // Default: If no IOPS value is specified, the existing value is retained. Iops *int64 `type:"integer"` // Target size in GiB of the volume to be modified. Target volume size must @@ -40482,10 +40479,10 @@ type ModifyVolumeInput struct { // Target EBS volume type of the volume to be modified // - // Valid values are io1 | gp2 | sc1 | st1 - // // The API does not support modifications for volume type standard. You also // cannot change the type of a volume to standard. + // + // Default: If no type is specified, the existing type is retained. VolumeType *string `type:"string" enum:"VolumeType"` } @@ -43248,6 +43245,9 @@ type RegisterImageInput struct { // the architecture specified in the manifest file. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"` + // The billing product codes. + BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"` + // One or more block device mapping entries. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` @@ -43333,6 +43333,12 @@ func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput { return s } +// SetBillingProducts sets the BillingProducts field's value. +func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput { + s.BillingProducts = v + return s +} + // SetBlockDeviceMappings sets the BlockDeviceMappings field's value. func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput { s.BlockDeviceMappings = v @@ -51527,8 +51533,8 @@ type VolumeModification struct { // Modification completion or failure time. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"` - // Current state of modification. Possible values are modifying | optimizing - // | complete | failed. Modification state is null for unmodified volumes. + // Current state of modification. Modification state is null for unmodified + // volumes. ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"` // Original IOPS rate of the volume being modified. @@ -53314,6 +53320,24 @@ const ( // InstanceTypeI28xlarge is a InstanceType enum value InstanceTypeI28xlarge = "i2.8xlarge" + // InstanceTypeI3Large is a InstanceType enum value + InstanceTypeI3Large = "i3.large" + + // InstanceTypeI3Xlarge is a InstanceType enum value + InstanceTypeI3Xlarge = "i3.xlarge" + + // InstanceTypeI32xlarge is a InstanceType enum value + InstanceTypeI32xlarge = "i3.2xlarge" + + // InstanceTypeI34xlarge is a InstanceType enum value + InstanceTypeI34xlarge = "i3.4xlarge" + + // InstanceTypeI38xlarge is a InstanceType enum value + InstanceTypeI38xlarge = "i3.8xlarge" + + // InstanceTypeI316xlarge is a InstanceType enum value + InstanceTypeI316xlarge = "i3.16xlarge" + // InstanceTypeHi14xlarge is a InstanceType enum value InstanceTypeHi14xlarge = "hi1.4xlarge" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go index 81e9f45c..8eb9aea9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockEC2Client{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go index 5d87a3b5..e2090441 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEC2_AcceptReservedInstancesExchangeQuote() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -52,11 +48,7 @@ func ExampleEC2_AcceptReservedInstancesExchangeQuote() { } func ExampleEC2_AcceptVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -78,11 +70,7 @@ func ExampleEC2_AcceptVpcPeeringConnection() { } func ExampleEC2_AllocateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -104,11 +92,7 @@ func ExampleEC2_AllocateAddress() { } func ExampleEC2_AllocateHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -133,11 +117,7 @@ func ExampleEC2_AllocateHosts() { } func ExampleEC2_AssignIpv6Addresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -163,11 +143,7 @@ func ExampleEC2_AssignIpv6Addresses() { } func ExampleEC2_AssignPrivateIpAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -194,11 +170,7 @@ func ExampleEC2_AssignPrivateIpAddresses() { } func ExampleEC2_AssociateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -225,11 +197,7 @@ func ExampleEC2_AssociateAddress() { } func ExampleEC2_AssociateDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -252,11 +220,7 @@ func ExampleEC2_AssociateDhcpOptions() { } func ExampleEC2_AssociateIamInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -281,11 +245,7 @@ func ExampleEC2_AssociateIamInstanceProfile() { } func ExampleEC2_AssociateRouteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -308,11 +268,7 @@ func ExampleEC2_AssociateRouteTable() { } func ExampleEC2_AssociateSubnetCidrBlock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -334,11 +290,7 @@ func ExampleEC2_AssociateSubnetCidrBlock() { } func ExampleEC2_AssociateVpcCidrBlock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -360,11 +312,7 @@ func ExampleEC2_AssociateVpcCidrBlock() { } func ExampleEC2_AttachClassicLinkVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -391,11 +339,7 @@ func ExampleEC2_AttachClassicLinkVpc() { } func ExampleEC2_AttachInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -418,11 +362,7 @@ func ExampleEC2_AttachInternetGateway() { } func ExampleEC2_AttachNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -446,11 +386,7 @@ func ExampleEC2_AttachNetworkInterface() { } func ExampleEC2_AttachVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -474,11 +410,7 @@ func ExampleEC2_AttachVolume() { } func ExampleEC2_AttachVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -501,11 +433,7 @@ func ExampleEC2_AttachVpnGateway() { } func ExampleEC2_AuthorizeSecurityGroupEgress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -570,11 +498,7 @@ func ExampleEC2_AuthorizeSecurityGroupEgress() { } func ExampleEC2_AuthorizeSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -640,11 +564,7 @@ func ExampleEC2_AuthorizeSecurityGroupIngress() { } func ExampleEC2_BundleInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -675,11 +595,7 @@ func ExampleEC2_BundleInstance() { } func ExampleEC2_CancelBundleTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -701,11 +617,7 @@ func ExampleEC2_CancelBundleTask() { } func ExampleEC2_CancelConversionTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -728,11 +640,7 @@ func ExampleEC2_CancelConversionTask() { } func ExampleEC2_CancelExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -753,11 +661,7 @@ func ExampleEC2_CancelExportTask() { } func ExampleEC2_CancelImportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -780,11 +684,7 @@ func ExampleEC2_CancelImportTask() { } func ExampleEC2_CancelReservedInstancesListing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -805,11 +705,7 @@ func ExampleEC2_CancelReservedInstancesListing() { } func ExampleEC2_CancelSpotFleetRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -835,11 +731,7 @@ func ExampleEC2_CancelSpotFleetRequests() { } func ExampleEC2_CancelSpotInstanceRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -864,11 +756,7 @@ func ExampleEC2_CancelSpotInstanceRequests() { } func ExampleEC2_ConfirmProductInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -891,11 +779,7 @@ func ExampleEC2_ConfirmProductInstance() { } func ExampleEC2_CopyImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -923,11 +807,7 @@ func ExampleEC2_CopyImage() { } func ExampleEC2_CopySnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -955,11 +835,7 @@ func ExampleEC2_CopySnapshot() { } func ExampleEC2_CreateCustomerGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -983,11 +859,7 @@ func ExampleEC2_CreateCustomerGateway() { } func ExampleEC2_CreateDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1018,11 +890,7 @@ func ExampleEC2_CreateDhcpOptions() { } func ExampleEC2_CreateEgressOnlyInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1045,11 +913,7 @@ func ExampleEC2_CreateEgressOnlyInternetGateway() { } func ExampleEC2_CreateFlowLogs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1078,11 +942,7 @@ func ExampleEC2_CreateFlowLogs() { } func ExampleEC2_CreateImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1123,11 +983,7 @@ func ExampleEC2_CreateImage() { } func ExampleEC2_CreateInstanceExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1156,11 +1012,7 @@ func ExampleEC2_CreateInstanceExportTask() { } func ExampleEC2_CreateInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1181,11 +1033,7 @@ func ExampleEC2_CreateInternetGateway() { } func ExampleEC2_CreateKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1207,11 +1055,7 @@ func ExampleEC2_CreateKeyPair() { } func ExampleEC2_CreateNatGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1234,11 +1078,7 @@ func ExampleEC2_CreateNatGateway() { } func ExampleEC2_CreateNetworkAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1260,11 +1100,7 @@ func ExampleEC2_CreateNetworkAcl() { } func ExampleEC2_CreateNetworkAclEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1300,11 +1136,7 @@ func ExampleEC2_CreateNetworkAclEntry() { } func ExampleEC2_CreateNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1347,11 +1179,7 @@ func ExampleEC2_CreateNetworkInterface() { } func ExampleEC2_CreatePlacementGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1374,11 +1202,7 @@ func ExampleEC2_CreatePlacementGroup() { } func ExampleEC2_CreateReservedInstancesListing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1409,11 +1233,7 @@ func ExampleEC2_CreateReservedInstancesListing() { } func ExampleEC2_CreateRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1443,11 +1263,7 @@ func ExampleEC2_CreateRoute() { } func ExampleEC2_CreateRouteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1469,11 +1285,7 @@ func ExampleEC2_CreateRouteTable() { } func ExampleEC2_CreateSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1497,11 +1309,7 @@ func ExampleEC2_CreateSecurityGroup() { } func ExampleEC2_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1524,11 +1332,7 @@ func ExampleEC2_CreateSnapshot() { } func ExampleEC2_CreateSpotDatafeedSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1551,11 +1355,7 @@ func ExampleEC2_CreateSpotDatafeedSubscription() { } func ExampleEC2_CreateSubnet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1580,11 +1380,7 @@ func ExampleEC2_CreateSubnet() { } func ExampleEC2_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1616,11 +1412,7 @@ func ExampleEC2_CreateTags() { } func ExampleEC2_CreateVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1648,11 +1440,7 @@ func ExampleEC2_CreateVolume() { } func ExampleEC2_CreateVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1676,11 +1464,7 @@ func ExampleEC2_CreateVpc() { } func ExampleEC2_CreateVpcEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1709,11 +1493,7 @@ func ExampleEC2_CreateVpcEndpoint() { } func ExampleEC2_CreateVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1737,11 +1517,7 @@ func ExampleEC2_CreateVpcPeeringConnection() { } func ExampleEC2_CreateVpnConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1768,11 +1544,7 @@ func ExampleEC2_CreateVpnConnection() { } func ExampleEC2_CreateVpnConnectionRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1794,11 +1566,7 @@ func ExampleEC2_CreateVpnConnectionRoute() { } func ExampleEC2_CreateVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1821,11 +1589,7 @@ func ExampleEC2_CreateVpnGateway() { } func ExampleEC2_DeleteCustomerGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1847,11 +1611,7 @@ func ExampleEC2_DeleteCustomerGateway() { } func ExampleEC2_DeleteDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1873,11 +1633,7 @@ func ExampleEC2_DeleteDhcpOptions() { } func ExampleEC2_DeleteEgressOnlyInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1899,11 +1655,7 @@ func ExampleEC2_DeleteEgressOnlyInternetGateway() { } func ExampleEC2_DeleteFlowLogs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1927,11 +1679,7 @@ func ExampleEC2_DeleteFlowLogs() { } func ExampleEC2_DeleteInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1953,11 +1701,7 @@ func ExampleEC2_DeleteInternetGateway() { } func ExampleEC2_DeleteKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1979,11 +1723,7 @@ func ExampleEC2_DeleteKeyPair() { } func ExampleEC2_DeleteNatGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2004,11 +1744,7 @@ func ExampleEC2_DeleteNatGateway() { } func ExampleEC2_DeleteNetworkAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2030,11 +1766,7 @@ func ExampleEC2_DeleteNetworkAcl() { } func ExampleEC2_DeleteNetworkAclEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2058,11 +1790,7 @@ func ExampleEC2_DeleteNetworkAclEntry() { } func ExampleEC2_DeleteNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2084,11 +1812,7 @@ func ExampleEC2_DeleteNetworkInterface() { } func ExampleEC2_DeletePlacementGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2110,11 +1834,7 @@ func ExampleEC2_DeletePlacementGroup() { } func ExampleEC2_DeleteRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2138,11 +1858,7 @@ func ExampleEC2_DeleteRoute() { } func ExampleEC2_DeleteRouteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2164,11 +1880,7 @@ func ExampleEC2_DeleteRouteTable() { } func ExampleEC2_DeleteSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2191,11 +1903,7 @@ func ExampleEC2_DeleteSecurityGroup() { } func ExampleEC2_DeleteSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2217,11 +1925,7 @@ func ExampleEC2_DeleteSnapshot() { } func ExampleEC2_DeleteSpotDatafeedSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2242,11 +1946,7 @@ func ExampleEC2_DeleteSpotDatafeedSubscription() { } func ExampleEC2_DeleteSubnet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2268,11 +1968,7 @@ func ExampleEC2_DeleteSubnet() { } func ExampleEC2_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2304,11 +2000,7 @@ func ExampleEC2_DeleteTags() { } func ExampleEC2_DeleteVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2330,11 +2022,7 @@ func ExampleEC2_DeleteVolume() { } func ExampleEC2_DeleteVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2356,11 +2044,7 @@ func ExampleEC2_DeleteVpc() { } func ExampleEC2_DeleteVpcEndpoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2385,11 +2069,7 @@ func ExampleEC2_DeleteVpcEndpoints() { } func ExampleEC2_DeleteVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2411,11 +2091,7 @@ func ExampleEC2_DeleteVpcPeeringConnection() { } func ExampleEC2_DeleteVpnConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2437,11 +2113,7 @@ func ExampleEC2_DeleteVpnConnection() { } func ExampleEC2_DeleteVpnConnectionRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2463,11 +2135,7 @@ func ExampleEC2_DeleteVpnConnectionRoute() { } func ExampleEC2_DeleteVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2489,11 +2157,7 @@ func ExampleEC2_DeleteVpnGateway() { } func ExampleEC2_DeregisterImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2515,11 +2179,7 @@ func ExampleEC2_DeregisterImage() { } func ExampleEC2_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2544,11 +2204,7 @@ func ExampleEC2_DescribeAccountAttributes() { } func ExampleEC2_DescribeAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2587,11 +2243,7 @@ func ExampleEC2_DescribeAddresses() { } func ExampleEC2_DescribeAvailabilityZones() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2626,11 +2278,7 @@ func ExampleEC2_DescribeAvailabilityZones() { } func ExampleEC2_DescribeBundleTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2665,11 +2313,7 @@ func ExampleEC2_DescribeBundleTasks() { } func ExampleEC2_DescribeClassicLinkInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2706,11 +2350,7 @@ func ExampleEC2_DescribeClassicLinkInstances() { } func ExampleEC2_DescribeConversionTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2735,11 +2375,7 @@ func ExampleEC2_DescribeConversionTasks() { } func ExampleEC2_DescribeCustomerGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2774,11 +2410,7 @@ func ExampleEC2_DescribeCustomerGateways() { } func ExampleEC2_DescribeDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2813,11 +2445,7 @@ func ExampleEC2_DescribeDhcpOptions() { } func ExampleEC2_DescribeEgressOnlyInternetGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2844,11 +2472,7 @@ func ExampleEC2_DescribeEgressOnlyInternetGateways() { } func ExampleEC2_DescribeExportTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2872,11 +2496,7 @@ func ExampleEC2_DescribeExportTasks() { } func ExampleEC2_DescribeFlowLogs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2912,11 +2532,7 @@ func ExampleEC2_DescribeFlowLogs() { } func ExampleEC2_DescribeHostReservationOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2951,11 +2567,7 @@ func ExampleEC2_DescribeHostReservationOfferings() { } func ExampleEC2_DescribeHostReservations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2991,11 +2603,7 @@ func ExampleEC2_DescribeHostReservations() { } func ExampleEC2_DescribeHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3031,11 +2639,7 @@ func ExampleEC2_DescribeHosts() { } func ExampleEC2_DescribeIamInstanceProfileAssociations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3071,11 +2675,7 @@ func ExampleEC2_DescribeIamInstanceProfileAssociations() { } func ExampleEC2_DescribeIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3096,11 +2696,7 @@ func ExampleEC2_DescribeIdFormat() { } func ExampleEC2_DescribeIdentityIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3122,11 +2718,7 @@ func ExampleEC2_DescribeIdentityIdFormat() { } func ExampleEC2_DescribeImageAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3149,11 +2741,7 @@ func ExampleEC2_DescribeImageAttribute() { } func ExampleEC2_DescribeImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3196,11 +2784,7 @@ func ExampleEC2_DescribeImages() { } func ExampleEC2_DescribeImportImageTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3237,11 +2821,7 @@ func ExampleEC2_DescribeImportImageTasks() { } func ExampleEC2_DescribeImportSnapshotTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3278,11 +2858,7 @@ func ExampleEC2_DescribeImportSnapshotTasks() { } func ExampleEC2_DescribeInstanceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3305,11 +2881,7 @@ func ExampleEC2_DescribeInstanceAttribute() { } func ExampleEC2_DescribeInstanceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3347,11 +2919,7 @@ func ExampleEC2_DescribeInstanceStatus() { } func ExampleEC2_DescribeInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3388,11 +2956,7 @@ func ExampleEC2_DescribeInstances() { } func ExampleEC2_DescribeInternetGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3427,11 +2991,7 @@ func ExampleEC2_DescribeInternetGateways() { } func ExampleEC2_DescribeKeyPairs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3466,11 +3026,7 @@ func ExampleEC2_DescribeKeyPairs() { } func ExampleEC2_DescribeMovingAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3507,11 +3063,7 @@ func ExampleEC2_DescribeMovingAddresses() { } func ExampleEC2_DescribeNatGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3547,11 +3099,7 @@ func ExampleEC2_DescribeNatGateways() { } func ExampleEC2_DescribeNetworkAcls() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3586,11 +3134,7 @@ func ExampleEC2_DescribeNetworkAcls() { } func ExampleEC2_DescribeNetworkInterfaceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3613,11 +3157,7 @@ func ExampleEC2_DescribeNetworkInterfaceAttribute() { } func ExampleEC2_DescribeNetworkInterfaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3652,11 +3192,7 @@ func ExampleEC2_DescribeNetworkInterfaces() { } func ExampleEC2_DescribePlacementGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3691,11 +3227,7 @@ func ExampleEC2_DescribePlacementGroups() { } func ExampleEC2_DescribePrefixLists() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3732,11 +3264,7 @@ func ExampleEC2_DescribePrefixLists() { } func ExampleEC2_DescribeRegions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3771,11 +3299,7 @@ func ExampleEC2_DescribeRegions() { } func ExampleEC2_DescribeReservedInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3812,11 +3336,7 @@ func ExampleEC2_DescribeReservedInstances() { } func ExampleEC2_DescribeReservedInstancesListings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3848,11 +3368,7 @@ func ExampleEC2_DescribeReservedInstancesListings() { } func ExampleEC2_DescribeReservedInstancesModifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3887,11 +3403,7 @@ func ExampleEC2_DescribeReservedInstancesModifications() { } func ExampleEC2_DescribeReservedInstancesOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3938,11 +3450,7 @@ func ExampleEC2_DescribeReservedInstancesOfferings() { } func ExampleEC2_DescribeRouteTables() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3977,11 +3485,7 @@ func ExampleEC2_DescribeRouteTables() { } func ExampleEC2_DescribeScheduledInstanceAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4030,11 +3534,7 @@ func ExampleEC2_DescribeScheduledInstanceAvailability() { } func ExampleEC2_DescribeScheduledInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4075,11 +3575,7 @@ func ExampleEC2_DescribeScheduledInstances() { } func ExampleEC2_DescribeSecurityGroupReferences() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4104,11 +3600,7 @@ func ExampleEC2_DescribeSecurityGroupReferences() { } func ExampleEC2_DescribeSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4147,11 +3639,7 @@ func ExampleEC2_DescribeSecurityGroups() { } func ExampleEC2_DescribeSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4174,11 +3662,7 @@ func ExampleEC2_DescribeSnapshotAttribute() { } func ExampleEC2_DescribeSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4223,11 +3707,7 @@ func ExampleEC2_DescribeSnapshots() { } func ExampleEC2_DescribeSpotDatafeedSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4248,11 +3728,7 @@ func ExampleEC2_DescribeSpotDatafeedSubscription() { } func ExampleEC2_DescribeSpotFleetInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4276,11 +3752,7 @@ func ExampleEC2_DescribeSpotFleetInstances() { } func ExampleEC2_DescribeSpotFleetRequestHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4306,11 +3778,7 @@ func ExampleEC2_DescribeSpotFleetRequestHistory() { } func ExampleEC2_DescribeSpotFleetRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4337,11 +3805,7 @@ func ExampleEC2_DescribeSpotFleetRequests() { } func ExampleEC2_DescribeSpotInstanceRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4376,11 +3840,7 @@ func ExampleEC2_DescribeSpotInstanceRequests() { } func ExampleEC2_DescribeSpotPriceHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4424,11 +3884,7 @@ func ExampleEC2_DescribeSpotPriceHistory() { } func ExampleEC2_DescribeStaleSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4452,11 +3908,7 @@ func ExampleEC2_DescribeStaleSecurityGroups() { } func ExampleEC2_DescribeSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4491,11 +3943,7 @@ func ExampleEC2_DescribeSubnets() { } func ExampleEC2_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4528,11 +3976,7 @@ func ExampleEC2_DescribeTags() { } func ExampleEC2_DescribeVolumeAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4555,11 +3999,7 @@ func ExampleEC2_DescribeVolumeAttribute() { } func ExampleEC2_DescribeVolumeStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4596,11 +4036,7 @@ func ExampleEC2_DescribeVolumeStatus() { } func ExampleEC2_DescribeVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4637,11 +4073,7 @@ func ExampleEC2_DescribeVolumes() { } func ExampleEC2_DescribeVolumesModifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4677,12 +4109,8 @@ func ExampleEC2_DescribeVolumesModifications() { fmt.Println(resp) } -func ExampleEC2_DescribeVpcAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleEC2_DescribeVpcAttribute() { + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4705,11 +4133,7 @@ func ExampleEC2_DescribeVpcAttribute() { } func ExampleEC2_DescribeVpcClassicLink() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4744,11 +4168,7 @@ func ExampleEC2_DescribeVpcClassicLink() { } func ExampleEC2_DescribeVpcClassicLinkDnsSupport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4774,11 +4194,7 @@ func ExampleEC2_DescribeVpcClassicLinkDnsSupport() { } func ExampleEC2_DescribeVpcEndpointServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4801,11 +4217,7 @@ func ExampleEC2_DescribeVpcEndpointServices() { } func ExampleEC2_DescribeVpcEndpoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4842,11 +4254,7 @@ func ExampleEC2_DescribeVpcEndpoints() { } func ExampleEC2_DescribeVpcPeeringConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4881,11 +4289,7 @@ func ExampleEC2_DescribeVpcPeeringConnections() { } func ExampleEC2_DescribeVpcs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4920,11 +4324,7 @@ func ExampleEC2_DescribeVpcs() { } func ExampleEC2_DescribeVpnConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4959,11 +4359,7 @@ func ExampleEC2_DescribeVpnConnections() { } func ExampleEC2_DescribeVpnGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4998,11 +4394,7 @@ func ExampleEC2_DescribeVpnGateways() { } func ExampleEC2_DetachClassicLinkVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5025,11 +4417,7 @@ func ExampleEC2_DetachClassicLinkVpc() { } func ExampleEC2_DetachInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5052,11 +4440,7 @@ func ExampleEC2_DetachInternetGateway() { } func ExampleEC2_DetachNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5079,11 +4463,7 @@ func ExampleEC2_DetachNetworkInterface() { } func ExampleEC2_DetachVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5108,11 +4488,7 @@ func ExampleEC2_DetachVolume() { } func ExampleEC2_DetachVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5135,11 +4511,7 @@ func ExampleEC2_DetachVpnGateway() { } func ExampleEC2_DisableVgwRoutePropagation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5161,11 +4533,7 @@ func ExampleEC2_DisableVgwRoutePropagation() { } func ExampleEC2_DisableVpcClassicLink() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5187,11 +4555,7 @@ func ExampleEC2_DisableVpcClassicLink() { } func ExampleEC2_DisableVpcClassicLinkDnsSupport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5212,11 +4576,7 @@ func ExampleEC2_DisableVpcClassicLinkDnsSupport() { } func ExampleEC2_DisassociateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5239,11 +4599,7 @@ func ExampleEC2_DisassociateAddress() { } func ExampleEC2_DisassociateIamInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5264,11 +4620,7 @@ func ExampleEC2_DisassociateIamInstanceProfile() { } func ExampleEC2_DisassociateRouteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5290,11 +4642,7 @@ func ExampleEC2_DisassociateRouteTable() { } func ExampleEC2_DisassociateSubnetCidrBlock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5315,11 +4663,7 @@ func ExampleEC2_DisassociateSubnetCidrBlock() { } func ExampleEC2_DisassociateVpcCidrBlock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5340,11 +4684,7 @@ func ExampleEC2_DisassociateVpcCidrBlock() { } func ExampleEC2_EnableVgwRoutePropagation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5366,11 +4706,7 @@ func ExampleEC2_EnableVgwRoutePropagation() { } func ExampleEC2_EnableVolumeIO() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5392,11 +4728,7 @@ func ExampleEC2_EnableVolumeIO() { } func ExampleEC2_EnableVpcClassicLink() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5418,11 +4750,7 @@ func ExampleEC2_EnableVpcClassicLink() { } func ExampleEC2_EnableVpcClassicLinkDnsSupport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5443,11 +4771,7 @@ func ExampleEC2_EnableVpcClassicLinkDnsSupport() { } func ExampleEC2_GetConsoleOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5469,11 +4793,7 @@ func ExampleEC2_GetConsoleOutput() { } func ExampleEC2_GetConsoleScreenshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5496,11 +4816,7 @@ func ExampleEC2_GetConsoleScreenshot() { } func ExampleEC2_GetHostReservationPurchasePreview() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5525,11 +4841,7 @@ func ExampleEC2_GetHostReservationPurchasePreview() { } func ExampleEC2_GetPasswordData() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5551,11 +4863,7 @@ func ExampleEC2_GetPasswordData() { } func ExampleEC2_GetReservedInstancesExchangeQuote() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5587,11 +4895,7 @@ func ExampleEC2_GetReservedInstancesExchangeQuote() { } func ExampleEC2_ImportImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5639,11 +4943,7 @@ func ExampleEC2_ImportImage() { } func ExampleEC2_ImportInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5707,11 +5007,7 @@ func ExampleEC2_ImportInstance() { } func ExampleEC2_ImportKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5734,11 +5030,7 @@ func ExampleEC2_ImportKeyPair() { } func ExampleEC2_ImportSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5777,11 +5069,7 @@ func ExampleEC2_ImportSnapshot() { } func ExampleEC2_ImportVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5812,11 +5100,7 @@ func ExampleEC2_ImportVolume() { } func ExampleEC2_ModifyHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5841,11 +5125,7 @@ func ExampleEC2_ModifyHosts() { } func ExampleEC2_ModifyIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5867,11 +5147,7 @@ func ExampleEC2_ModifyIdFormat() { } func ExampleEC2_ModifyIdentityIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5894,11 +5170,7 @@ func ExampleEC2_ModifyIdentityIdFormat() { } func ExampleEC2_ModifyImageAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5954,11 +5226,7 @@ func ExampleEC2_ModifyImageAttribute() { } func ExampleEC2_ModifyInstanceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6028,11 +5296,7 @@ func ExampleEC2_ModifyInstanceAttribute() { } func ExampleEC2_ModifyInstancePlacement() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6056,11 +5320,7 @@ func ExampleEC2_ModifyInstancePlacement() { } func ExampleEC2_ModifyNetworkInterfaceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6096,11 +5356,7 @@ func ExampleEC2_ModifyNetworkInterfaceAttribute() { } func ExampleEC2_ModifyReservedInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6135,11 +5391,7 @@ func ExampleEC2_ModifyReservedInstances() { } func ExampleEC2_ModifySnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6187,11 +5439,7 @@ func ExampleEC2_ModifySnapshotAttribute() { } func ExampleEC2_ModifySpotFleetRequest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6214,11 +5462,7 @@ func ExampleEC2_ModifySpotFleetRequest() { } func ExampleEC2_ModifySubnetAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6245,11 +5489,7 @@ func ExampleEC2_ModifySubnetAttribute() { } func ExampleEC2_ModifyVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6274,11 +5514,7 @@ func ExampleEC2_ModifyVolume() { } func ExampleEC2_ModifyVolumeAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6303,11 +5539,7 @@ func ExampleEC2_ModifyVolumeAttribute() { } func ExampleEC2_ModifyVpcAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6334,11 +5566,7 @@ func ExampleEC2_ModifyVpcAttribute() { } func ExampleEC2_ModifyVpcEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6370,11 +5598,7 @@ func ExampleEC2_ModifyVpcEndpoint() { } func ExampleEC2_ModifyVpcPeeringConnectionOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6406,11 +5630,7 @@ func ExampleEC2_ModifyVpcPeeringConnectionOptions() { } func ExampleEC2_MonitorInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6435,11 +5655,7 @@ func ExampleEC2_MonitorInstances() { } func ExampleEC2_MoveAddressToVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6461,11 +5677,7 @@ func ExampleEC2_MoveAddressToVpc() { } func ExampleEC2_PurchaseHostReservation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6493,11 +5705,7 @@ func ExampleEC2_PurchaseHostReservation() { } func ExampleEC2_PurchaseReservedInstancesOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6524,11 +5732,7 @@ func ExampleEC2_PurchaseReservedInstancesOffering() { } func ExampleEC2_PurchaseScheduledInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6557,11 +5761,7 @@ func ExampleEC2_PurchaseScheduledInstances() { } func ExampleEC2_RebootInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6586,17 +5786,17 @@ func ExampleEC2_RebootInstances() { } func ExampleEC2_RegisterImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.RegisterImageInput{ Name: aws.String("String"), // Required Architecture: aws.String("ArchitectureValues"), + BillingProducts: []*string{ + aws.String("String"), // Required + // More values... + }, BlockDeviceMappings: []*ec2.BlockDeviceMapping{ { // Required DeviceName: aws.String("String"), @@ -6637,11 +5837,7 @@ func ExampleEC2_RegisterImage() { } func ExampleEC2_RejectVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6663,11 +5859,7 @@ func ExampleEC2_RejectVpcPeeringConnection() { } func ExampleEC2_ReleaseAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6690,11 +5882,7 @@ func ExampleEC2_ReleaseAddress() { } func ExampleEC2_ReleaseHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6718,11 +5906,7 @@ func ExampleEC2_ReleaseHosts() { } func ExampleEC2_ReplaceIamInstanceProfileAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6747,11 +5931,7 @@ func ExampleEC2_ReplaceIamInstanceProfileAssociation() { } func ExampleEC2_ReplaceNetworkAclAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6774,11 +5954,7 @@ func ExampleEC2_ReplaceNetworkAclAssociation() { } func ExampleEC2_ReplaceNetworkAclEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6814,11 +5990,7 @@ func ExampleEC2_ReplaceNetworkAclEntry() { } func ExampleEC2_ReplaceRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6848,11 +6020,7 @@ func ExampleEC2_ReplaceRoute() { } func ExampleEC2_ReplaceRouteTableAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6875,11 +6043,7 @@ func ExampleEC2_ReplaceRouteTableAssociation() { } func ExampleEC2_ReportInstanceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6912,11 +6076,7 @@ func ExampleEC2_ReportInstanceStatus() { } func ExampleEC2_RequestSpotFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7033,11 +6193,7 @@ func ExampleEC2_RequestSpotFleet() { } func ExampleEC2_RequestSpotInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7145,11 +6301,7 @@ func ExampleEC2_RequestSpotInstances() { } func ExampleEC2_ResetImageAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7172,11 +6324,7 @@ func ExampleEC2_ResetImageAttribute() { } func ExampleEC2_ResetInstanceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7199,11 +6347,7 @@ func ExampleEC2_ResetInstanceAttribute() { } func ExampleEC2_ResetNetworkInterfaceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7226,11 +6370,7 @@ func ExampleEC2_ResetNetworkInterfaceAttribute() { } func ExampleEC2_ResetSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7253,11 +6393,7 @@ func ExampleEC2_ResetSnapshotAttribute() { } func ExampleEC2_RestoreAddressToClassic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7279,11 +6415,7 @@ func ExampleEC2_RestoreAddressToClassic() { } func ExampleEC2_RevokeSecurityGroupEgress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7348,11 +6480,7 @@ func ExampleEC2_RevokeSecurityGroupEgress() { } func ExampleEC2_RevokeSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7418,11 +6546,7 @@ func ExampleEC2_RevokeSecurityGroupIngress() { } func ExampleEC2_RunInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7534,11 +6658,7 @@ func ExampleEC2_RunInstances() { } func ExampleEC2_RunScheduledInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7634,11 +6754,7 @@ func ExampleEC2_RunScheduledInstances() { } func ExampleEC2_StartInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7664,11 +6780,7 @@ func ExampleEC2_StartInstances() { } func ExampleEC2_StopInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7694,11 +6806,7 @@ func ExampleEC2_StopInstances() { } func ExampleEC2_TerminateInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7723,11 +6831,7 @@ func ExampleEC2_TerminateInstances() { } func ExampleEC2_UnassignIpv6Addresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7752,11 +6856,7 @@ func ExampleEC2_UnassignIpv6Addresses() { } func ExampleEC2_UnassignPrivateIpAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7781,11 +6881,7 @@ func ExampleEC2_UnassignPrivateIpAddresses() { } func ExampleEC2_UnmonitorInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go index b5a84ee3..2bf0e561 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockECRClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go index 7287ecd6..5973632d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleECR_BatchCheckLayerAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -46,11 +42,7 @@ func ExampleECR_BatchCheckLayerAvailability() { } func ExampleECR_BatchDeleteImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -79,11 +71,7 @@ func ExampleECR_BatchDeleteImage() { } func ExampleECR_BatchGetImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -116,11 +104,7 @@ func ExampleECR_BatchGetImage() { } func ExampleECR_CompleteLayerUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -147,11 +131,7 @@ func ExampleECR_CompleteLayerUpload() { } func ExampleECR_CreateRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -172,11 +152,7 @@ func ExampleECR_CreateRepository() { } func ExampleECR_DeleteRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -199,11 +175,7 @@ func ExampleECR_DeleteRepository() { } func ExampleECR_DeleteRepositoryPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -225,11 +197,7 @@ func ExampleECR_DeleteRepositoryPolicy() { } func ExampleECR_DescribeImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -263,11 +231,7 @@ func ExampleECR_DescribeImages() { } func ExampleECR_DescribeRepositories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -294,11 +258,7 @@ func ExampleECR_DescribeRepositories() { } func ExampleECR_GetAuthorizationToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -322,11 +282,7 @@ func ExampleECR_GetAuthorizationToken() { } func ExampleECR_GetDownloadUrlForLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -349,11 +305,7 @@ func ExampleECR_GetDownloadUrlForLayer() { } func ExampleECR_GetRepositoryPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -375,11 +327,7 @@ func ExampleECR_GetRepositoryPolicy() { } func ExampleECR_InitiateLayerUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -401,11 +349,7 @@ func ExampleECR_InitiateLayerUpload() { } func ExampleECR_ListImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -432,11 +376,7 @@ func ExampleECR_ListImages() { } func ExampleECR_PutImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -460,11 +400,7 @@ func ExampleECR_PutImage() { } func ExampleECR_SetRepositoryPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -488,11 +424,7 @@ func ExampleECR_SetRepositoryPolicy() { } func ExampleECR_UploadLayerPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go index db7edb8a..404e99a9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockECSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go index 4ad685e4..5d3659cf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleECS_CreateCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -41,11 +37,7 @@ func ExampleECS_CreateCluster() { } func ExampleECS_CreateService() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -98,11 +90,7 @@ func ExampleECS_CreateService() { } func ExampleECS_DeleteAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -132,11 +120,7 @@ func ExampleECS_DeleteAttributes() { } func ExampleECS_DeleteCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -157,11 +141,7 @@ func ExampleECS_DeleteCluster() { } func ExampleECS_DeleteService() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -183,11 +163,7 @@ func ExampleECS_DeleteService() { } func ExampleECS_DeregisterContainerInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -210,11 +186,7 @@ func ExampleECS_DeregisterContainerInstance() { } func ExampleECS_DeregisterTaskDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -235,11 +207,7 @@ func ExampleECS_DeregisterTaskDefinition() { } func ExampleECS_DescribeClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -263,11 +231,7 @@ func ExampleECS_DescribeClusters() { } func ExampleECS_DescribeContainerInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -292,11 +256,7 @@ func ExampleECS_DescribeContainerInstances() { } func ExampleECS_DescribeServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -321,11 +281,7 @@ func ExampleECS_DescribeServices() { } func ExampleECS_DescribeTaskDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -346,11 +302,7 @@ func ExampleECS_DescribeTaskDefinition() { } func ExampleECS_DescribeTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -375,11 +327,7 @@ func ExampleECS_DescribeTasks() { } func ExampleECS_DiscoverPollEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -401,11 +349,7 @@ func ExampleECS_DiscoverPollEndpoint() { } func ExampleECS_ListAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -431,11 +375,7 @@ func ExampleECS_ListAttributes() { } func ExampleECS_ListClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -457,11 +397,7 @@ func ExampleECS_ListClusters() { } func ExampleECS_ListContainerInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -486,11 +422,7 @@ func ExampleECS_ListContainerInstances() { } func ExampleECS_ListServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -513,11 +445,7 @@ func ExampleECS_ListServices() { } func ExampleECS_ListTaskDefinitionFamilies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -541,11 +469,7 @@ func ExampleECS_ListTaskDefinitionFamilies() { } func ExampleECS_ListTaskDefinitions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -570,11 +494,7 @@ func ExampleECS_ListTaskDefinitions() { } func ExampleECS_ListTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -602,11 +522,7 @@ func ExampleECS_ListTasks() { } func ExampleECS_PutAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -636,11 +552,7 @@ func ExampleECS_PutAttributes() { } func ExampleECS_RegisterContainerInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -692,11 +604,7 @@ func ExampleECS_RegisterContainerInstance() { } func ExampleECS_RegisterTaskDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -832,11 +740,7 @@ func ExampleECS_RegisterTaskDefinition() { } func ExampleECS_RunTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -895,11 +799,7 @@ func ExampleECS_RunTask() { } func ExampleECS_StartTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -947,11 +847,7 @@ func ExampleECS_StartTask() { } func ExampleECS_StopTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -974,11 +870,7 @@ func ExampleECS_StopTask() { } func ExampleECS_SubmitContainerStateChange() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -1013,11 +905,7 @@ func ExampleECS_SubmitContainerStateChange() { } func ExampleECS_SubmitTaskStateChange() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -1041,11 +929,7 @@ func ExampleECS_SubmitTaskStateChange() { } func ExampleECS_UpdateContainerAgent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -1067,11 +951,7 @@ func ExampleECS_UpdateContainerAgent() { } func ExampleECS_UpdateContainerInstancesState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -1097,11 +977,7 @@ func ExampleECS_UpdateContainerInstancesState() { } func ExampleECS_UpdateService() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go index e28fcc81..cada2584 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockEFSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go index 6fc3dddf..28dbf6c0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEFS_CreateFileSystem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -42,11 +38,7 @@ func ExampleEFS_CreateFileSystem() { } func ExampleEFS_CreateMountTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -73,11 +65,7 @@ func ExampleEFS_CreateMountTarget() { } func ExampleEFS_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -105,11 +93,7 @@ func ExampleEFS_CreateTags() { } func ExampleEFS_DeleteFileSystem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -130,11 +114,7 @@ func ExampleEFS_DeleteFileSystem() { } func ExampleEFS_DeleteMountTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -155,11 +135,7 @@ func ExampleEFS_DeleteMountTarget() { } func ExampleEFS_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -184,11 +160,7 @@ func ExampleEFS_DeleteTags() { } func ExampleEFS_DescribeFileSystems() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -212,11 +184,7 @@ func ExampleEFS_DescribeFileSystems() { } func ExampleEFS_DescribeMountTargetSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -237,11 +205,7 @@ func ExampleEFS_DescribeMountTargetSecurityGroups() { } func ExampleEFS_DescribeMountTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -265,11 +229,7 @@ func ExampleEFS_DescribeMountTargets() { } func ExampleEFS_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -292,11 +252,7 @@ func ExampleEFS_DescribeTags() { } func ExampleEFS_ModifyMountTargetSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go index 72354fb7..21bcf34e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElastiCacheClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go index 5f337bec..3d30497f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElastiCache_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -48,11 +44,7 @@ func ExampleElastiCache_AddTagsToResource() { } func ExampleElastiCache_AuthorizeCacheSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -75,11 +67,7 @@ func ExampleElastiCache_AuthorizeCacheSecurityGroupIngress() { } func ExampleElastiCache_CopySnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -102,11 +90,7 @@ func ExampleElastiCache_CopySnapshot() { } func ExampleElastiCache_CreateCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -167,11 +151,7 @@ func ExampleElastiCache_CreateCacheCluster() { } func ExampleElastiCache_CreateCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -194,11 +174,7 @@ func ExampleElastiCache_CreateCacheParameterGroup() { } func ExampleElastiCache_CreateCacheSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -220,11 +196,7 @@ func ExampleElastiCache_CreateCacheSecurityGroup() { } func ExampleElastiCache_CreateCacheSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -250,11 +222,7 @@ func ExampleElastiCache_CreateCacheSubnetGroup() { } func ExampleElastiCache_CreateReplicationGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -329,11 +297,7 @@ func ExampleElastiCache_CreateReplicationGroup() { } func ExampleElastiCache_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -356,11 +320,7 @@ func ExampleElastiCache_CreateSnapshot() { } func ExampleElastiCache_DeleteCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -382,11 +342,7 @@ func ExampleElastiCache_DeleteCacheCluster() { } func ExampleElastiCache_DeleteCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -407,11 +363,7 @@ func ExampleElastiCache_DeleteCacheParameterGroup() { } func ExampleElastiCache_DeleteCacheSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -432,11 +384,7 @@ func ExampleElastiCache_DeleteCacheSecurityGroup() { } func ExampleElastiCache_DeleteCacheSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -457,11 +405,7 @@ func ExampleElastiCache_DeleteCacheSubnetGroup() { } func ExampleElastiCache_DeleteReplicationGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -484,11 +428,7 @@ func ExampleElastiCache_DeleteReplicationGroup() { } func ExampleElastiCache_DeleteSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -509,11 +449,7 @@ func ExampleElastiCache_DeleteSnapshot() { } func ExampleElastiCache_DescribeCacheClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -537,11 +473,7 @@ func ExampleElastiCache_DescribeCacheClusters() { } func ExampleElastiCache_DescribeCacheEngineVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -567,11 +499,7 @@ func ExampleElastiCache_DescribeCacheEngineVersions() { } func ExampleElastiCache_DescribeCacheParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -594,11 +522,7 @@ func ExampleElastiCache_DescribeCacheParameterGroups() { } func ExampleElastiCache_DescribeCacheParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -622,11 +546,7 @@ func ExampleElastiCache_DescribeCacheParameters() { } func ExampleElastiCache_DescribeCacheSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -649,11 +569,7 @@ func ExampleElastiCache_DescribeCacheSecurityGroups() { } func ExampleElastiCache_DescribeCacheSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -676,11 +592,7 @@ func ExampleElastiCache_DescribeCacheSubnetGroups() { } func ExampleElastiCache_DescribeEngineDefaultParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -703,11 +615,7 @@ func ExampleElastiCache_DescribeEngineDefaultParameters() { } func ExampleElastiCache_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -734,11 +642,7 @@ func ExampleElastiCache_DescribeEvents() { } func ExampleElastiCache_DescribeReplicationGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -761,11 +665,7 @@ func ExampleElastiCache_DescribeReplicationGroups() { } func ExampleElastiCache_DescribeReservedCacheNodes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -793,11 +693,7 @@ func ExampleElastiCache_DescribeReservedCacheNodes() { } func ExampleElastiCache_DescribeReservedCacheNodesOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -824,11 +720,7 @@ func ExampleElastiCache_DescribeReservedCacheNodesOfferings() { } func ExampleElastiCache_DescribeSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -855,11 +747,7 @@ func ExampleElastiCache_DescribeSnapshots() { } func ExampleElastiCache_ListAllowedNodeTypeModifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -881,11 +769,7 @@ func ExampleElastiCache_ListAllowedNodeTypeModifications() { } func ExampleElastiCache_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -906,11 +790,7 @@ func ExampleElastiCache_ListTagsForResource() { } func ExampleElastiCache_ModifyCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -959,11 +839,7 @@ func ExampleElastiCache_ModifyCacheCluster() { } func ExampleElastiCache_ModifyCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -991,11 +867,7 @@ func ExampleElastiCache_ModifyCacheParameterGroup() { } func ExampleElastiCache_ModifyCacheSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1021,11 +893,7 @@ func ExampleElastiCache_ModifyCacheSubnetGroup() { } func ExampleElastiCache_ModifyReplicationGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1068,11 +936,7 @@ func ExampleElastiCache_ModifyReplicationGroup() { } func ExampleElastiCache_PurchaseReservedCacheNodesOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1095,11 +959,7 @@ func ExampleElastiCache_PurchaseReservedCacheNodesOffering() { } func ExampleElastiCache_RebootCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1124,11 +984,7 @@ func ExampleElastiCache_RebootCacheCluster() { } func ExampleElastiCache_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1153,11 +1009,7 @@ func ExampleElastiCache_RemoveTagsFromResource() { } func ExampleElastiCache_ResetCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1186,11 +1038,7 @@ func ExampleElastiCache_ResetCacheParameterGroup() { } func ExampleElastiCache_RevokeCacheSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go index e1ea45df..7f4e1f13 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go @@ -606,6 +606,79 @@ func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*En return out, err } +const opCreatePlatformVersion = "CreatePlatformVersion" + +// CreatePlatformVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreatePlatformVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreatePlatformVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreatePlatformVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreatePlatformVersionRequest method. +// req, resp := client.CreatePlatformVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion +func (c *ElasticBeanstalk) CreatePlatformVersionRequest(input *CreatePlatformVersionInput) (req *request.Request, output *CreatePlatformVersionOutput) { + op := &request.Operation{ + Name: opCreatePlatformVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreatePlatformVersionInput{} + } + + output = &CreatePlatformVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreatePlatformVersion API operation for AWS Elastic Beanstalk. +// +// Create a new version of your custom platform. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreatePlatformVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// * ErrCodeTooManyPlatformsException "TooManyPlatformsException" +// You have exceeded the maximum number of allowed platforms associated with +// the account. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion +func (c *ElasticBeanstalk) CreatePlatformVersion(input *CreatePlatformVersionInput) (*CreatePlatformVersionOutput, error) { + req, out := c.CreatePlatformVersionRequest(input) + err := req.Send() + return out, err +} + const opCreateStorageLocation = "CreateStorageLocation" // CreateStorageLocationRequest generates a "aws/request.Request" representing the @@ -982,6 +1055,83 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironme return out, err } +const opDeletePlatformVersion = "DeletePlatformVersion" + +// DeletePlatformVersionRequest generates a "aws/request.Request" representing the +// client's request for the DeletePlatformVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeletePlatformVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeletePlatformVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeletePlatformVersionRequest method. +// req, resp := client.DeletePlatformVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion +func (c *ElasticBeanstalk) DeletePlatformVersionRequest(input *DeletePlatformVersionInput) (req *request.Request, output *DeletePlatformVersionOutput) { + op := &request.Operation{ + Name: opDeletePlatformVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeletePlatformVersionInput{} + } + + output = &DeletePlatformVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeletePlatformVersion API operation for AWS Elastic Beanstalk. +// +// Deletes the specified version of a custom platform. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DeletePlatformVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeOperationInProgressException "OperationInProgressFailure" +// Unable to perform the specified operation because another operation that +// effects an element in this activity is already in progress. +// +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// * ErrCodePlatformVersionStillReferencedException "PlatformVersionStillReferencedException" +// You cannot delete the platform version because there are still environments +// running on it. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion +func (c *ElasticBeanstalk) DeletePlatformVersion(input *DeletePlatformVersionInput) (*DeletePlatformVersionOutput, error) { + req, out := c.DeletePlatformVersionRequest(input) + err := req.Send() + return out, err +} + const opDescribeApplicationVersions = "DescribeApplicationVersions" // DescribeApplicationVersionsRequest generates a "aws/request.Request" representing the @@ -1738,6 +1888,75 @@ func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealt return out, err } +const opDescribePlatformVersion = "DescribePlatformVersion" + +// DescribePlatformVersionRequest generates a "aws/request.Request" representing the +// client's request for the DescribePlatformVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePlatformVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePlatformVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePlatformVersionRequest method. +// req, resp := client.DescribePlatformVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion +func (c *ElasticBeanstalk) DescribePlatformVersionRequest(input *DescribePlatformVersionInput) (req *request.Request, output *DescribePlatformVersionOutput) { + op := &request.Operation{ + Name: opDescribePlatformVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePlatformVersionInput{} + } + + output = &DescribePlatformVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePlatformVersion API operation for AWS Elastic Beanstalk. +// +// Describes the version of the platform. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribePlatformVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion +func (c *ElasticBeanstalk) DescribePlatformVersion(input *DescribePlatformVersionInput) (*DescribePlatformVersionOutput, error) { + req, out := c.DescribePlatformVersionRequest(input) + err := req.Send() + return out, err +} + const opListAvailableSolutionStacks = "ListAvailableSolutionStacks" // ListAvailableSolutionStacksRequest generates a "aws/request.Request" representing the @@ -1783,7 +2002,8 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailab // ListAvailableSolutionStacks API operation for AWS Elastic Beanstalk. // -// Returns a list of the available solution stack names. +// Returns a list of the available solution stack names, with the public version +// first and then in reverse chronological order. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1798,6 +2018,75 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolut return out, err } +const opListPlatformVersions = "ListPlatformVersions" + +// ListPlatformVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListPlatformVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPlatformVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPlatformVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPlatformVersionsRequest method. +// req, resp := client.ListPlatformVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions +func (c *ElasticBeanstalk) ListPlatformVersionsRequest(input *ListPlatformVersionsInput) (req *request.Request, output *ListPlatformVersionsOutput) { + op := &request.Operation{ + Name: opListPlatformVersions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPlatformVersionsInput{} + } + + output = &ListPlatformVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPlatformVersions API operation for AWS Elastic Beanstalk. +// +// Lists the available platforms. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation ListPlatformVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions +func (c *ElasticBeanstalk) ListPlatformVersions(input *ListPlatformVersionsInput) (*ListPlatformVersionsOutput, error) { + req, out := c.ListPlatformVersionsRequest(input) + err := req.Send() + return out, err +} + const opRebuildEnvironment = "RebuildEnvironment" // RebuildEnvironmentRequest generates a "aws/request.Request" representing the @@ -2797,7 +3086,7 @@ type ApplicationMetrics struct { Duration *int64 `type:"integer"` // Represents the average latency for the slowest X percent of requests over - // the last 10 seconds. Latencies are in seconds with one milisecond resolution. + // the last 10 seconds. Latencies are in seconds with one millisecond resolution. Latency *Latency `type:"structure"` // Average number of requests handled by the web server per second over the @@ -3311,6 +3600,31 @@ func (s *BuildConfiguration) SetTimeoutInMinutes(v int64) *BuildConfiguration { return s } +// The builder used to build the custom platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Builder +type Builder struct { + _ struct{} `type:"structure"` + + // The ARN of the builder. + ARN *string `type:"string"` +} + +// String returns the string representation +func (s Builder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Builder) GoString() string { + return s.String() +} + +// SetARN sets the ARN field's value. +func (s *Builder) SetARN(v string) *Builder { + s.ARN = &v + return s +} + // CPU utilization metrics for an instance. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CPUUtilization type CPUUtilization struct { @@ -3806,6 +4120,9 @@ type ConfigurationSettingsDescription struct { // set. OptionSettings []*ConfigurationOptionSetting `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The name of the solution stack this configuration set uses. SolutionStackName *string `type:"string"` @@ -3866,6 +4183,12 @@ func (s *ConfigurationSettingsDescription) SetOptionSettings(v []*ConfigurationO return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *ConfigurationSettingsDescription) SetPlatformArn(v string) *ConfigurationSettingsDescription { + s.PlatformArn = &v + return s +} + // SetSolutionStackName sets the SolutionStackName field's value. func (s *ConfigurationSettingsDescription) SetSolutionStackName(v string) *ConfigurationSettingsDescription { s.SolutionStackName = &v @@ -4110,6 +4433,9 @@ type CreateConfigurationTemplateInput struct { // solution stack or the source configuration template. OptionSettings []*ConfigurationOptionSetting `type:"list"` + // The ARN of the custome platform. + PlatformArn *string `type:"string"` + // The name of the solution stack used by this configuration. The solution stack // specifies the operating system, architecture, and application server for // a configuration template. It determines the set of configuration options @@ -4221,6 +4547,12 @@ func (s *CreateConfigurationTemplateInput) SetOptionSettings(v []*ConfigurationO return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *CreateConfigurationTemplateInput) SetPlatformArn(v string) *CreateConfigurationTemplateInput { + s.PlatformArn = &v + return s +} + // SetSolutionStackName sets the SolutionStackName field's value. func (s *CreateConfigurationTemplateInput) SetSolutionStackName(v string) *CreateConfigurationTemplateInput { s.SolutionStackName = &v @@ -4287,14 +4619,12 @@ type CreateEnvironmentInput struct { // set for this new environment. OptionsToRemove []*OptionSpecification `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // This is an alternative to specifying a template name. If specified, AWS Elastic // Beanstalk sets the configuration values to the default values associated // with the specified solution stack. - // - // Condition: You must specify either this or a TemplateName, but not both. - // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination - // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter - // error. SolutionStackName *string `type:"string"` // This specifies the tags applied to resources in the environment. @@ -4303,11 +4633,6 @@ type CreateEnvironmentInput struct { // The name of the configuration template to use in deployment. If no configuration // template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue // error. - // - // Condition: You must specify either this parameter or a SolutionStackName, - // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination - // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter - // error. TemplateName *string `min:"1" type:"string"` // This specifies the tier to use for creating this environment. @@ -4436,6 +4761,12 @@ func (s *CreateEnvironmentInput) SetOptionsToRemove(v []*OptionSpecification) *C return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *CreateEnvironmentInput) SetPlatformArn(v string) *CreateEnvironmentInput { + s.PlatformArn = &v + return s +} + // SetSolutionStackName sets the SolutionStackName field's value. func (s *CreateEnvironmentInput) SetSolutionStackName(v string) *CreateEnvironmentInput { s.SolutionStackName = &v @@ -4466,18 +4797,150 @@ func (s *CreateEnvironmentInput) SetVersionLabel(v string) *CreateEnvironmentInp return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocationInput -type CreateStorageLocationInput struct { +// Request to create a new platform version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersionRequest +type CreatePlatformVersionInput struct { _ struct{} `type:"structure"` -} -// String returns the string representation -func (s CreateStorageLocationInput) String() string { - return awsutil.Prettify(s) -} + // The name of the builder environment. + EnvironmentName *string `min:"4" type:"string"` -// GoString returns the string representation -func (s CreateStorageLocationInput) GoString() string { + // The configuration option settings to apply to the builder environment. + OptionSettings []*ConfigurationOptionSetting `type:"list"` + + // The location of the platform definition archive in Amazon S3. + // + // PlatformDefinitionBundle is a required field + PlatformDefinitionBundle *S3Location `type:"structure" required:"true"` + + // The name of your custom platform. + // + // PlatformName is a required field + PlatformName *string `type:"string" required:"true"` + + // The number, such as 1.0.2, for the new platform version. + // + // PlatformVersion is a required field + PlatformVersion *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreatePlatformVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePlatformVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePlatformVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePlatformVersionInput"} + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) + } + if s.PlatformDefinitionBundle == nil { + invalidParams.Add(request.NewErrParamRequired("PlatformDefinitionBundle")) + } + if s.PlatformName == nil { + invalidParams.Add(request.NewErrParamRequired("PlatformName")) + } + if s.PlatformVersion == nil { + invalidParams.Add(request.NewErrParamRequired("PlatformVersion")) + } + if s.OptionSettings != nil { + for i, v := range s.OptionSettings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *CreatePlatformVersionInput) SetEnvironmentName(v string) *CreatePlatformVersionInput { + s.EnvironmentName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *CreatePlatformVersionInput) SetOptionSettings(v []*ConfigurationOptionSetting) *CreatePlatformVersionInput { + s.OptionSettings = v + return s +} + +// SetPlatformDefinitionBundle sets the PlatformDefinitionBundle field's value. +func (s *CreatePlatformVersionInput) SetPlatformDefinitionBundle(v *S3Location) *CreatePlatformVersionInput { + s.PlatformDefinitionBundle = v + return s +} + +// SetPlatformName sets the PlatformName field's value. +func (s *CreatePlatformVersionInput) SetPlatformName(v string) *CreatePlatformVersionInput { + s.PlatformName = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *CreatePlatformVersionInput) SetPlatformVersion(v string) *CreatePlatformVersionInput { + s.PlatformVersion = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersionResult +type CreatePlatformVersionOutput struct { + _ struct{} `type:"structure"` + + // The builder used to create the custom platform. + Builder *Builder `type:"structure"` + + // Detailed information about the new version of the custom platform. + PlatformSummary *PlatformSummary `type:"structure"` +} + +// String returns the string representation +func (s CreatePlatformVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePlatformVersionOutput) GoString() string { + return s.String() +} + +// SetBuilder sets the Builder field's value. +func (s *CreatePlatformVersionOutput) SetBuilder(v *Builder) *CreatePlatformVersionOutput { + s.Builder = v + return s +} + +// SetPlatformSummary sets the PlatformSummary field's value. +func (s *CreatePlatformVersionOutput) SetPlatformSummary(v *PlatformSummary) *CreatePlatformVersionOutput { + s.PlatformSummary = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocationInput +type CreateStorageLocationInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateStorageLocationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStorageLocationInput) GoString() string { return s.String() } @@ -4506,6 +4969,40 @@ func (s *CreateStorageLocationOutput) SetS3Bucket(v string) *CreateStorageLocati return s } +// A custom AMI available to platforms. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CustomAmi +type CustomAmi struct { + _ struct{} `type:"structure"` + + // THe ID of the image used to create the custom AMI. + ImageId *string `type:"string"` + + // The type of virtualization used to create the custom AMI. + VirtualizationType *string `type:"string"` +} + +// String returns the string representation +func (s CustomAmi) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomAmi) GoString() string { + return s.String() +} + +// SetImageId sets the ImageId field's value. +func (s *CustomAmi) SetImageId(v string) *CustomAmi { + s.ImageId = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *CustomAmi) SetVirtualizationType(v string) *CustomAmi { + s.VirtualizationType = &v + return s +} + // Request to delete an application. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationMessage type DeleteApplicationInput struct { @@ -4810,6 +5307,54 @@ func (s DeleteEnvironmentConfigurationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersionRequest +type DeletePlatformVersionInput struct { + _ struct{} `type:"structure"` + + // The ARN of the version of the custom platform. + PlatformArn *string `type:"string"` +} + +// String returns the string representation +func (s DeletePlatformVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePlatformVersionInput) GoString() string { + return s.String() +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DeletePlatformVersionInput) SetPlatformArn(v string) *DeletePlatformVersionInput { + s.PlatformArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersionResult +type DeletePlatformVersionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the version of the custom platform. + PlatformSummary *PlatformSummary `type:"structure"` +} + +// String returns the string representation +func (s DeletePlatformVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePlatformVersionOutput) GoString() string { + return s.String() +} + +// SetPlatformSummary sets the PlatformSummary field's value. +func (s *DeletePlatformVersionOutput) SetPlatformSummary(v *PlatformSummary) *DeletePlatformVersionOutput { + s.PlatformSummary = v + return s +} + // Information about an application version deployment. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Deployment type Deployment struct { @@ -5025,7 +5570,7 @@ func (s *DescribeApplicationsOutput) SetApplications(v []*ApplicationDescription return s } -// Result message containig a list of application version descriptions. +// Result message containing a list of application version descriptions. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationOptionsMessage type DescribeConfigurationOptionsInput struct { _ struct{} `type:"structure"` @@ -5041,6 +5586,9 @@ type DescribeConfigurationOptionsInput struct { // If specified, restricts the descriptions to only the specified options. Options []*OptionSpecification `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The name of the solution stack whose configuration options you want to describe. SolutionStackName *string `type:"string"` @@ -5106,6 +5654,12 @@ func (s *DescribeConfigurationOptionsInput) SetOptions(v []*OptionSpecification) return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribeConfigurationOptionsInput) SetPlatformArn(v string) *DescribeConfigurationOptionsInput { + s.PlatformArn = &v + return s +} + // SetSolutionStackName sets the SolutionStackName field's value. func (s *DescribeConfigurationOptionsInput) SetSolutionStackName(v string) *DescribeConfigurationOptionsInput { s.SolutionStackName = &v @@ -5126,6 +5680,9 @@ type DescribeConfigurationOptionsOutput struct { // A list of ConfigurationOptionDescription. Options []*ConfigurationOptionDescription `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The name of the solution stack these configuration options belong to. SolutionStackName *string `type:"string"` } @@ -5146,6 +5703,12 @@ func (s *DescribeConfigurationOptionsOutput) SetOptions(v []*ConfigurationOption return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribeConfigurationOptionsOutput) SetPlatformArn(v string) *DescribeConfigurationOptionsOutput { + s.PlatformArn = &v + return s +} + // SetSolutionStackName sets the SolutionStackName field's value. func (s *DescribeConfigurationOptionsOutput) SetSolutionStackName(v string) *DescribeConfigurationOptionsOutput { s.SolutionStackName = &v @@ -5780,6 +6343,9 @@ type DescribeEventsInput struct { // Pagination token. If specified, the events return the next batch of results. NextToken *string `type:"string"` + // The ARN of the version of the custom platform. + PlatformArn *string `type:"string"` + // If specified, AWS Elastic Beanstalk restricts the described events to include // only those associated with this request ID. RequestId *string `type:"string"` @@ -5872,6 +6438,12 @@ func (s *DescribeEventsInput) SetNextToken(v string) *DescribeEventsInput { return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribeEventsInput) SetPlatformArn(v string) *DescribeEventsInput { + s.PlatformArn = &v + return s +} + // SetRequestId sets the RequestId field's value. func (s *DescribeEventsInput) SetRequestId(v string) *DescribeEventsInput { s.RequestId = &v @@ -6050,6 +6622,54 @@ func (s *DescribeInstancesHealthOutput) SetRefreshedAt(v time.Time) *DescribeIns return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersionRequest +type DescribePlatformVersionInput struct { + _ struct{} `type:"structure"` + + // The ARN of the version of the platform. + PlatformArn *string `type:"string"` +} + +// String returns the string representation +func (s DescribePlatformVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePlatformVersionInput) GoString() string { + return s.String() +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribePlatformVersionInput) SetPlatformArn(v string) *DescribePlatformVersionInput { + s.PlatformArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersionResult +type DescribePlatformVersionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the version of the platform. + PlatformDescription *PlatformDescription `type:"structure"` +} + +// String returns the string representation +func (s DescribePlatformVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePlatformVersionOutput) GoString() string { + return s.String() +} + +// SetPlatformDescription sets the PlatformDescription field's value. +func (s *DescribePlatformVersionOutput) SetPlatformDescription(v *PlatformDescription) *DescribePlatformVersionOutput { + s.PlatformDescription = v + return s +} + // Describes the properties of an environment. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentDescription type EnvironmentDescription struct { @@ -6113,6 +6733,9 @@ type EnvironmentDescription struct { // For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). HealthStatus *string `type:"string" enum:"EnvironmentHealthStatus"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The description of the AWS resources used by this environment. Resources *EnvironmentResourcesDescription `type:"structure"` @@ -6226,6 +6849,12 @@ func (s *EnvironmentDescription) SetHealthStatus(v string) *EnvironmentDescripti return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *EnvironmentDescription) SetPlatformArn(v string) *EnvironmentDescription { + s.PlatformArn = &v + return s +} + // SetResources sets the Resources field's value. func (s *EnvironmentDescription) SetResources(v *EnvironmentResourcesDescription) *EnvironmentDescription { s.Resources = v @@ -6542,6 +7171,9 @@ type EventDescription struct { // The event message. Message *string `type:"string"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The web service request ID for the activity of this event. RequestId *string `type:"string"` @@ -6589,6 +7221,12 @@ func (s *EventDescription) SetMessage(v string) *EventDescription { return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *EventDescription) SetPlatformArn(v string) *EventDescription { + s.PlatformArn = &v + return s +} + // SetRequestId sets the RequestId field's value. func (s *EventDescription) SetRequestId(v string) *EventDescription { s.RequestId = &v @@ -6904,6 +7542,97 @@ func (s *ListAvailableSolutionStacksOutput) SetSolutionStacks(v []*string) *List return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersionsRequest +type ListPlatformVersionsInput struct { + _ struct{} `type:"structure"` + + // List only the platforms where the platform member value relates to one of + // the supplied values. + Filters []*PlatformFilter `type:"list"` + + // The maximum number of platform values returned in one call. + MaxRecords *int64 `min:"1" type:"integer"` + + // The starting index into the remaining list of platforms. Use the NextToken + // value from a previous ListPlatformVersion call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListPlatformVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlatformVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPlatformVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPlatformVersionsInput"} + if s.MaxRecords != nil && *s.MaxRecords < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListPlatformVersionsInput) SetFilters(v []*PlatformFilter) *ListPlatformVersionsInput { + s.Filters = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *ListPlatformVersionsInput) SetMaxRecords(v int64) *ListPlatformVersionsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformVersionsInput) SetNextToken(v string) *ListPlatformVersionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersionsResult +type ListPlatformVersionsOutput struct { + _ struct{} `type:"structure"` + + // The starting index into the remaining list of platforms. if this value is + // not null, you can use it in a subsequent ListPlatformVersion call. + NextToken *string `type:"string"` + + // Detailed information about the platforms. + PlatformSummaryList []*PlatformSummary `type:"list"` +} + +// String returns the string representation +func (s ListPlatformVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlatformVersionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformVersionsOutput) SetNextToken(v string) *ListPlatformVersionsOutput { + s.NextToken = &v + return s +} + +// SetPlatformSummaryList sets the PlatformSummaryList field's value. +func (s *ListPlatformVersionsOutput) SetPlatformSummaryList(v []*PlatformSummary) *ListPlatformVersionsOutput { + s.PlatformSummaryList = v + return s +} + // Describes the properties of a Listener for the LoadBalancer. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Listener type Listener struct { @@ -7369,6 +8098,394 @@ func (s *OptionSpecification) SetResourceName(v string) *OptionSpecification { return s } +// Detailed information about a platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformDescription +type PlatformDescription struct { + _ struct{} `type:"structure"` + + // The custom AMIs supported by the platform. + CustomAmiList []*CustomAmi `type:"list"` + + // The date when the platform was created. + DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The date when the platform was last updated. + DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The description of the platform. + Description *string `type:"string"` + + // The frameworks supported by the platform. + Frameworks []*PlatformFramework `type:"list"` + + // Information about the maintainer of the platform. + Maintainer *string `type:"string"` + + // The operating system used by the platform. + OperatingSystemName *string `type:"string"` + + // The version of the operating system used by the platform. + OperatingSystemVersion *string `type:"string"` + + // The ARN of the platform. + PlatformArn *string `type:"string"` + + // The category of the platform. + PlatformCategory *string `type:"string"` + + // The name of the platform. + PlatformName *string `type:"string"` + + // The AWS account ID of the person who created the platform. + PlatformOwner *string `type:"string"` + + // The status of the platform. + PlatformStatus *string `type:"string" enum:"PlatformStatus"` + + // The version of the platform. + PlatformVersion *string `type:"string"` + + // The programming languages supported by the platform. + ProgrammingLanguages []*PlatformProgrammingLanguage `type:"list"` + + // The name of the solution stack used by the platform. + SolutionStackName *string `type:"string"` + + // The additions supported by the platform. + SupportedAddonList []*string `type:"list"` + + // The tiers supported by the platform. + SupportedTierList []*string `type:"list"` +} + +// String returns the string representation +func (s PlatformDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformDescription) GoString() string { + return s.String() +} + +// SetCustomAmiList sets the CustomAmiList field's value. +func (s *PlatformDescription) SetCustomAmiList(v []*CustomAmi) *PlatformDescription { + s.CustomAmiList = v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *PlatformDescription) SetDateCreated(v time.Time) *PlatformDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *PlatformDescription) SetDateUpdated(v time.Time) *PlatformDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PlatformDescription) SetDescription(v string) *PlatformDescription { + s.Description = &v + return s +} + +// SetFrameworks sets the Frameworks field's value. +func (s *PlatformDescription) SetFrameworks(v []*PlatformFramework) *PlatformDescription { + s.Frameworks = v + return s +} + +// SetMaintainer sets the Maintainer field's value. +func (s *PlatformDescription) SetMaintainer(v string) *PlatformDescription { + s.Maintainer = &v + return s +} + +// SetOperatingSystemName sets the OperatingSystemName field's value. +func (s *PlatformDescription) SetOperatingSystemName(v string) *PlatformDescription { + s.OperatingSystemName = &v + return s +} + +// SetOperatingSystemVersion sets the OperatingSystemVersion field's value. +func (s *PlatformDescription) SetOperatingSystemVersion(v string) *PlatformDescription { + s.OperatingSystemVersion = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *PlatformDescription) SetPlatformArn(v string) *PlatformDescription { + s.PlatformArn = &v + return s +} + +// SetPlatformCategory sets the PlatformCategory field's value. +func (s *PlatformDescription) SetPlatformCategory(v string) *PlatformDescription { + s.PlatformCategory = &v + return s +} + +// SetPlatformName sets the PlatformName field's value. +func (s *PlatformDescription) SetPlatformName(v string) *PlatformDescription { + s.PlatformName = &v + return s +} + +// SetPlatformOwner sets the PlatformOwner field's value. +func (s *PlatformDescription) SetPlatformOwner(v string) *PlatformDescription { + s.PlatformOwner = &v + return s +} + +// SetPlatformStatus sets the PlatformStatus field's value. +func (s *PlatformDescription) SetPlatformStatus(v string) *PlatformDescription { + s.PlatformStatus = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *PlatformDescription) SetPlatformVersion(v string) *PlatformDescription { + s.PlatformVersion = &v + return s +} + +// SetProgrammingLanguages sets the ProgrammingLanguages field's value. +func (s *PlatformDescription) SetProgrammingLanguages(v []*PlatformProgrammingLanguage) *PlatformDescription { + s.ProgrammingLanguages = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *PlatformDescription) SetSolutionStackName(v string) *PlatformDescription { + s.SolutionStackName = &v + return s +} + +// SetSupportedAddonList sets the SupportedAddonList field's value. +func (s *PlatformDescription) SetSupportedAddonList(v []*string) *PlatformDescription { + s.SupportedAddonList = v + return s +} + +// SetSupportedTierList sets the SupportedTierList field's value. +func (s *PlatformDescription) SetSupportedTierList(v []*string) *PlatformDescription { + s.SupportedTierList = v + return s +} + +// Specify criteria to restrict the results when listing custom platforms. +// +// The filter is evaluated as the expression: +// +// TypeOperatorValues[i] +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformFilter +type PlatformFilter struct { + _ struct{} `type:"structure"` + + // The operator to apply to the Type with each of the Values. + // + // Valid Values: = (equal to) | != (not equal to) | < (less than) | <= (less + // than or equal to) | > (greater than) | >= (greater than or equal to) | contains + // | begins_with | ends_with + Operator *string `type:"string"` + + // The custom platform attribute to which the filter values are applied. + // + // Valid Values: PlatformName | PlatformVersion | PlatformStatus | PlatformOwner + Type *string `type:"string"` + + // The list of values applied to the custom platform attribute. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s PlatformFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformFilter) GoString() string { + return s.String() +} + +// SetOperator sets the Operator field's value. +func (s *PlatformFilter) SetOperator(v string) *PlatformFilter { + s.Operator = &v + return s +} + +// SetType sets the Type field's value. +func (s *PlatformFilter) SetType(v string) *PlatformFilter { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *PlatformFilter) SetValues(v []*string) *PlatformFilter { + s.Values = v + return s +} + +// A framework supported by the custom platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformFramework +type PlatformFramework struct { + _ struct{} `type:"structure"` + + // The name of the framework. + Name *string `type:"string"` + + // The version of the framework. + Version *string `type:"string"` +} + +// String returns the string representation +func (s PlatformFramework) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformFramework) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *PlatformFramework) SetName(v string) *PlatformFramework { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PlatformFramework) SetVersion(v string) *PlatformFramework { + s.Version = &v + return s +} + +// A programming language supported by the platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformProgrammingLanguage +type PlatformProgrammingLanguage struct { + _ struct{} `type:"structure"` + + // The name of the programming language. + Name *string `type:"string"` + + // The version of the programming language. + Version *string `type:"string"` +} + +// String returns the string representation +func (s PlatformProgrammingLanguage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformProgrammingLanguage) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *PlatformProgrammingLanguage) SetName(v string) *PlatformProgrammingLanguage { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PlatformProgrammingLanguage) SetVersion(v string) *PlatformProgrammingLanguage { + s.Version = &v + return s +} + +// Detailed information about a platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformSummary +type PlatformSummary struct { + _ struct{} `type:"structure"` + + // The operating system used by the platform. + OperatingSystemName *string `type:"string"` + + // The version of the operating system used by the platform. + OperatingSystemVersion *string `type:"string"` + + // The ARN of the platform. + PlatformArn *string `type:"string"` + + // The category of platform. + PlatformCategory *string `type:"string"` + + // The AWS account ID of the person who created the platform. + PlatformOwner *string `type:"string"` + + // The status of the platform. You can create an environment from the platform + // once it is ready. + PlatformStatus *string `type:"string" enum:"PlatformStatus"` + + // The additions associated with the platform. + SupportedAddonList []*string `type:"list"` + + // The tiers in which the platform runs. + SupportedTierList []*string `type:"list"` +} + +// String returns the string representation +func (s PlatformSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformSummary) GoString() string { + return s.String() +} + +// SetOperatingSystemName sets the OperatingSystemName field's value. +func (s *PlatformSummary) SetOperatingSystemName(v string) *PlatformSummary { + s.OperatingSystemName = &v + return s +} + +// SetOperatingSystemVersion sets the OperatingSystemVersion field's value. +func (s *PlatformSummary) SetOperatingSystemVersion(v string) *PlatformSummary { + s.OperatingSystemVersion = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *PlatformSummary) SetPlatformArn(v string) *PlatformSummary { + s.PlatformArn = &v + return s +} + +// SetPlatformCategory sets the PlatformCategory field's value. +func (s *PlatformSummary) SetPlatformCategory(v string) *PlatformSummary { + s.PlatformCategory = &v + return s +} + +// SetPlatformOwner sets the PlatformOwner field's value. +func (s *PlatformSummary) SetPlatformOwner(v string) *PlatformSummary { + s.PlatformOwner = &v + return s +} + +// SetPlatformStatus sets the PlatformStatus field's value. +func (s *PlatformSummary) SetPlatformStatus(v string) *PlatformSummary { + s.PlatformStatus = &v + return s +} + +// SetSupportedAddonList sets the SupportedAddonList field's value. +func (s *PlatformSummary) SetSupportedAddonList(v []*string) *PlatformSummary { + s.SupportedAddonList = v + return s +} + +// SetSupportedTierList sets the SupportedTierList field's value. +func (s *PlatformSummary) SetSupportedTierList(v []*string) *PlatformSummary { + s.SupportedTierList = v + return s +} + // Describes a queue. // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Queue type Queue struct { @@ -8210,8 +9327,8 @@ type SystemStatus struct { // CPU utilization metrics for the instance. CPUUtilization *CPUUtilization `type:"structure"` - // Load average in the last 1-minute and 5-minute periods. For more information, - // see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os). + // Load average in the last 1-minute, 5-minute, and 15-minute periods. For more + // information, see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os). LoadAverage []*float64 `type:"list"` } @@ -8785,6 +9902,9 @@ type UpdateEnvironmentInput struct { // set for this environment. OptionsToRemove []*OptionSpecification `type:"list"` + // The ARN of the platform, if used. + PlatformArn *string `type:"string"` + // This specifies the platform version that the environment will run after the // environment is updated. SolutionStackName *string `type:"string"` @@ -8903,6 +10023,12 @@ func (s *UpdateEnvironmentInput) SetOptionsToRemove(v []*OptionSpecification) *U return s } +// SetPlatformArn sets the PlatformArn field's value. +func (s *UpdateEnvironmentInput) SetPlatformArn(v string) *UpdateEnvironmentInput { + s.PlatformArn = &v + return s +} + // SetSolutionStackName sets the SolutionStackName field's value. func (s *UpdateEnvironmentInput) SetSolutionStackName(v string) *UpdateEnvironmentInput { s.SolutionStackName = &v @@ -9358,6 +10484,23 @@ const ( InstancesHealthAttributeAll = "All" ) +const ( + // PlatformStatusCreating is a PlatformStatus enum value + PlatformStatusCreating = "Creating" + + // PlatformStatusFailed is a PlatformStatus enum value + PlatformStatusFailed = "Failed" + + // PlatformStatusReady is a PlatformStatus enum value + PlatformStatusReady = "Ready" + + // PlatformStatusDeleting is a PlatformStatus enum value + PlatformStatusDeleting = "Deleting" + + // PlatformStatusDeleted is a PlatformStatus enum value + PlatformStatusDeleted = "Deleted" +) + const ( // SourceRepositoryCodeCommit is a SourceRepository enum value SourceRepositoryCodeCommit = "CodeCommit" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go index dd619ace..7bcbb74f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElasticBeanstalkClient{} // @@ -91,6 +91,10 @@ type ElasticBeanstalkAPI interface { CreateEnvironment(*elasticbeanstalk.CreateEnvironmentInput) (*elasticbeanstalk.EnvironmentDescription, error) + CreatePlatformVersionRequest(*elasticbeanstalk.CreatePlatformVersionInput) (*request.Request, *elasticbeanstalk.CreatePlatformVersionOutput) + + CreatePlatformVersion(*elasticbeanstalk.CreatePlatformVersionInput) (*elasticbeanstalk.CreatePlatformVersionOutput, error) + CreateStorageLocationRequest(*elasticbeanstalk.CreateStorageLocationInput) (*request.Request, *elasticbeanstalk.CreateStorageLocationOutput) CreateStorageLocation(*elasticbeanstalk.CreateStorageLocationInput) (*elasticbeanstalk.CreateStorageLocationOutput, error) @@ -111,6 +115,10 @@ type ElasticBeanstalkAPI interface { DeleteEnvironmentConfiguration(*elasticbeanstalk.DeleteEnvironmentConfigurationInput) (*elasticbeanstalk.DeleteEnvironmentConfigurationOutput, error) + DeletePlatformVersionRequest(*elasticbeanstalk.DeletePlatformVersionInput) (*request.Request, *elasticbeanstalk.DeletePlatformVersionOutput) + + DeletePlatformVersion(*elasticbeanstalk.DeletePlatformVersionInput) (*elasticbeanstalk.DeletePlatformVersionOutput, error) + DescribeApplicationVersionsRequest(*elasticbeanstalk.DescribeApplicationVersionsInput) (*request.Request, *elasticbeanstalk.DescribeApplicationVersionsOutput) DescribeApplicationVersions(*elasticbeanstalk.DescribeApplicationVersionsInput) (*elasticbeanstalk.DescribeApplicationVersionsOutput, error) @@ -157,10 +165,18 @@ type ElasticBeanstalkAPI interface { DescribeInstancesHealth(*elasticbeanstalk.DescribeInstancesHealthInput) (*elasticbeanstalk.DescribeInstancesHealthOutput, error) + DescribePlatformVersionRequest(*elasticbeanstalk.DescribePlatformVersionInput) (*request.Request, *elasticbeanstalk.DescribePlatformVersionOutput) + + DescribePlatformVersion(*elasticbeanstalk.DescribePlatformVersionInput) (*elasticbeanstalk.DescribePlatformVersionOutput, error) + ListAvailableSolutionStacksRequest(*elasticbeanstalk.ListAvailableSolutionStacksInput) (*request.Request, *elasticbeanstalk.ListAvailableSolutionStacksOutput) ListAvailableSolutionStacks(*elasticbeanstalk.ListAvailableSolutionStacksInput) (*elasticbeanstalk.ListAvailableSolutionStacksOutput, error) + ListPlatformVersionsRequest(*elasticbeanstalk.ListPlatformVersionsInput) (*request.Request, *elasticbeanstalk.ListPlatformVersionsOutput) + + ListPlatformVersions(*elasticbeanstalk.ListPlatformVersionsInput) (*elasticbeanstalk.ListPlatformVersionsOutput, error) + RebuildEnvironmentRequest(*elasticbeanstalk.RebuildEnvironmentInput) (*request.Request, *elasticbeanstalk.RebuildEnvironmentOutput) RebuildEnvironment(*elasticbeanstalk.RebuildEnvironmentInput) (*elasticbeanstalk.RebuildEnvironmentOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go index a8b13bc8..f185a055 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go @@ -37,6 +37,13 @@ const ( // effects an element in this activity is already in progress. ErrCodeOperationInProgressException = "OperationInProgressFailure" + // ErrCodePlatformVersionStillReferencedException for service response error code + // "PlatformVersionStillReferencedException". + // + // You cannot delete the platform version because there are still environments + // running on it. + ErrCodePlatformVersionStillReferencedException = "PlatformVersionStillReferencedException" + // ErrCodeS3LocationNotInServiceRegionException for service response error code // "S3LocationNotInServiceRegionException". // @@ -98,4 +105,11 @@ const ( // // The specified account has reached its limit of environments. ErrCodeTooManyEnvironmentsException = "TooManyEnvironmentsException" + + // ErrCodeTooManyPlatformsException for service response error code + // "TooManyPlatformsException". + // + // You have exceeded the maximum number of allowed platforms associated with + // the account. + ErrCodeTooManyPlatformsException = "TooManyPlatformsException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go index 5d1daa3a..9c9dbdef 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticBeanstalk_AbortEnvironmentUpdate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -42,11 +38,7 @@ func ExampleElasticBeanstalk_AbortEnvironmentUpdate() { } func ExampleElasticBeanstalk_ApplyEnvironmentManagedAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -69,11 +61,7 @@ func ExampleElasticBeanstalk_ApplyEnvironmentManagedAction() { } func ExampleElasticBeanstalk_CheckDNSAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -94,11 +82,7 @@ func ExampleElasticBeanstalk_CheckDNSAvailability() { } func ExampleElasticBeanstalk_ComposeEnvironments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -124,11 +108,7 @@ func ExampleElasticBeanstalk_ComposeEnvironments() { } func ExampleElasticBeanstalk_CreateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -165,11 +145,7 @@ func ExampleElasticBeanstalk_CreateApplication() { } func ExampleElasticBeanstalk_CreateApplicationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -210,11 +186,7 @@ func ExampleElasticBeanstalk_CreateApplicationVersion() { } func ExampleElasticBeanstalk_CreateConfigurationTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -232,6 +204,7 @@ func ExampleElasticBeanstalk_CreateConfigurationTemplate() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), SourceConfiguration: &elasticbeanstalk.SourceConfiguration{ ApplicationName: aws.String("ApplicationName"), @@ -252,11 +225,7 @@ func ExampleElasticBeanstalk_CreateConfigurationTemplate() { } func ExampleElasticBeanstalk_CreateEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -283,6 +252,7 @@ func ExampleElasticBeanstalk_CreateEnvironment() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), Tags: []*elasticbeanstalk.Tag{ { // Required @@ -312,13 +282,45 @@ func ExampleElasticBeanstalk_CreateEnvironment() { fmt.Println(resp) } -func ExampleElasticBeanstalk_CreateStorageLocation() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_CreatePlatformVersion() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.CreatePlatformVersionInput{ + PlatformDefinitionBundle: &elasticbeanstalk.S3Location{ // Required + S3Bucket: aws.String("S3Bucket"), + S3Key: aws.String("S3Key"), + }, + PlatformName: aws.String("PlatformName"), // Required + PlatformVersion: aws.String("PlatformVersion"), // Required + EnvironmentName: aws.String("EnvironmentName"), + OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ + { // Required + Namespace: aws.String("OptionNamespace"), + OptionName: aws.String("ConfigurationOptionName"), + ResourceName: aws.String("ResourceName"), + Value: aws.String("ConfigurationOptionValue"), + }, + // More values... + }, + } + resp, err := svc.CreatePlatformVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_CreateStorageLocation() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) var params *elasticbeanstalk.CreateStorageLocationInput @@ -336,11 +338,7 @@ func ExampleElasticBeanstalk_CreateStorageLocation() { } func ExampleElasticBeanstalk_DeleteApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -362,11 +360,7 @@ func ExampleElasticBeanstalk_DeleteApplication() { } func ExampleElasticBeanstalk_DeleteApplicationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -389,11 +383,7 @@ func ExampleElasticBeanstalk_DeleteApplicationVersion() { } func ExampleElasticBeanstalk_DeleteConfigurationTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -415,11 +405,7 @@ func ExampleElasticBeanstalk_DeleteConfigurationTemplate() { } func ExampleElasticBeanstalk_DeleteEnvironmentConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -440,13 +426,30 @@ func ExampleElasticBeanstalk_DeleteEnvironmentConfiguration() { fmt.Println(resp) } -func ExampleElasticBeanstalk_DescribeApplicationVersions() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_DeletePlatformVersion() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.DeletePlatformVersionInput{ + PlatformArn: aws.String("PlatformArn"), + } + resp, err := svc.DeletePlatformVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_DescribeApplicationVersions() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) params := &elasticbeanstalk.DescribeApplicationVersionsInput{ @@ -472,11 +475,7 @@ func ExampleElasticBeanstalk_DescribeApplicationVersions() { } func ExampleElasticBeanstalk_DescribeApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -500,11 +499,7 @@ func ExampleElasticBeanstalk_DescribeApplications() { } func ExampleElasticBeanstalk_DescribeConfigurationOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -519,6 +514,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationOptions() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), TemplateName: aws.String("ConfigurationTemplateName"), } @@ -536,11 +532,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationOptions() { } func ExampleElasticBeanstalk_DescribeConfigurationSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -563,11 +555,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationSettings() { } func ExampleElasticBeanstalk_DescribeEnvironmentHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -593,11 +581,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentHealth() { } func ExampleElasticBeanstalk_DescribeEnvironmentManagedActionHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -621,11 +605,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentManagedActionHistory() { } func ExampleElasticBeanstalk_DescribeEnvironmentManagedActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -648,11 +628,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentManagedActions() { } func ExampleElasticBeanstalk_DescribeEnvironmentResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -674,11 +650,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentResources() { } func ExampleElasticBeanstalk_DescribeEnvironments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -710,11 +682,7 @@ func ExampleElasticBeanstalk_DescribeEnvironments() { } func ExampleElasticBeanstalk_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -725,6 +693,7 @@ func ExampleElasticBeanstalk_DescribeEvents() { EnvironmentName: aws.String("EnvironmentName"), MaxRecords: aws.Int64(1), NextToken: aws.String("Token"), + PlatformArn: aws.String("PlatformArn"), RequestId: aws.String("RequestId"), Severity: aws.String("EventSeverity"), StartTime: aws.Time(time.Now()), @@ -745,11 +714,7 @@ func ExampleElasticBeanstalk_DescribeEvents() { } func ExampleElasticBeanstalk_DescribeInstancesHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -775,13 +740,30 @@ func ExampleElasticBeanstalk_DescribeInstancesHealth() { fmt.Println(resp) } -func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_DescribePlatformVersion() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.DescribePlatformVersionInput{ + PlatformArn: aws.String("PlatformArn"), + } + resp, err := svc.DescribePlatformVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) var params *elasticbeanstalk.ListAvailableSolutionStacksInput @@ -798,13 +780,42 @@ func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { fmt.Println(resp) } -func ExampleElasticBeanstalk_RebuildEnvironment() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_ListPlatformVersions() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.ListPlatformVersionsInput{ + Filters: []*elasticbeanstalk.PlatformFilter{ + { // Required + Operator: aws.String("PlatformFilterOperator"), + Type: aws.String("PlatformFilterType"), + Values: []*string{ + aws.String("PlatformFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxRecords: aws.Int64(1), + NextToken: aws.String("Token"), + } + resp, err := svc.ListPlatformVersions(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_RebuildEnvironment() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) params := &elasticbeanstalk.RebuildEnvironmentInput{ @@ -825,11 +836,7 @@ func ExampleElasticBeanstalk_RebuildEnvironment() { } func ExampleElasticBeanstalk_RequestEnvironmentInfo() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -852,11 +859,7 @@ func ExampleElasticBeanstalk_RequestEnvironmentInfo() { } func ExampleElasticBeanstalk_RestartAppServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -878,11 +881,7 @@ func ExampleElasticBeanstalk_RestartAppServer() { } func ExampleElasticBeanstalk_RetrieveEnvironmentInfo() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -905,11 +904,7 @@ func ExampleElasticBeanstalk_RetrieveEnvironmentInfo() { } func ExampleElasticBeanstalk_SwapEnvironmentCNAMEs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -933,11 +928,7 @@ func ExampleElasticBeanstalk_SwapEnvironmentCNAMEs() { } func ExampleElasticBeanstalk_TerminateEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -961,11 +952,7 @@ func ExampleElasticBeanstalk_TerminateEnvironment() { } func ExampleElasticBeanstalk_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -987,11 +974,7 @@ func ExampleElasticBeanstalk_UpdateApplication() { } func ExampleElasticBeanstalk_UpdateApplicationResourceLifecycle() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -1027,11 +1010,7 @@ func ExampleElasticBeanstalk_UpdateApplicationResourceLifecycle() { } func ExampleElasticBeanstalk_UpdateApplicationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -1054,11 +1033,7 @@ func ExampleElasticBeanstalk_UpdateApplicationVersion() { } func ExampleElasticBeanstalk_UpdateConfigurationTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -1098,11 +1073,7 @@ func ExampleElasticBeanstalk_UpdateConfigurationTemplate() { } func ExampleElasticBeanstalk_UpdateEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -1129,6 +1100,7 @@ func ExampleElasticBeanstalk_UpdateEnvironment() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), TemplateName: aws.String("ConfigurationTemplateName"), Tier: &elasticbeanstalk.EnvironmentTier{ @@ -1152,11 +1124,7 @@ func ExampleElasticBeanstalk_UpdateEnvironment() { } func ExampleElasticBeanstalk_ValidateConfigurationSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go index 06d58a51..64f26f65 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go @@ -500,6 +500,94 @@ func (c *ElasticsearchService) DescribeElasticsearchDomains(input *DescribeElast return out, err } +const opDescribeElasticsearchInstanceTypeLimits = "DescribeElasticsearchInstanceTypeLimits" + +// DescribeElasticsearchInstanceTypeLimitsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeElasticsearchInstanceTypeLimits operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeElasticsearchInstanceTypeLimits for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeElasticsearchInstanceTypeLimits method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeElasticsearchInstanceTypeLimitsRequest method. +// req, resp := client.DescribeElasticsearchInstanceTypeLimitsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimits +func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimitsRequest(input *DescribeElasticsearchInstanceTypeLimitsInput) (req *request.Request, output *DescribeElasticsearchInstanceTypeLimitsOutput) { + op := &request.Operation{ + Name: opDescribeElasticsearchInstanceTypeLimits, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}", + } + + if input == nil { + input = &DescribeElasticsearchInstanceTypeLimitsInput{} + } + + output = &DescribeElasticsearchInstanceTypeLimitsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeElasticsearchInstanceTypeLimits API operation for Amazon Elasticsearch Service. +// +// Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. +// When modifying existing Domain, specify the DomainName to know what Limits +// are supported for modifying. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation DescribeElasticsearchInstanceTypeLimits for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeInvalidTypeException "InvalidTypeException" +// An exception for trying to create or access sub-resource that is either invalid +// or not supported. Gives http status code of 409. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// An exception for trying to create more than allowed resources or sub-resources. +// Gives http status code of 409. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimits +func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimits(input *DescribeElasticsearchInstanceTypeLimitsInput) (*DescribeElasticsearchInstanceTypeLimitsOutput, error) { + req, out := c.DescribeElasticsearchInstanceTypeLimitsRequest(input) + err := req.Send() + return out, err +} + const opListDomainNames = "ListDomainNames" // ListDomainNamesRequest generates a "aws/request.Request" representing the @@ -570,6 +658,224 @@ func (c *ElasticsearchService) ListDomainNames(input *ListDomainNamesInput) (*Li return out, err } +const opListElasticsearchInstanceTypes = "ListElasticsearchInstanceTypes" + +// ListElasticsearchInstanceTypesRequest generates a "aws/request.Request" representing the +// client's request for the ListElasticsearchInstanceTypes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListElasticsearchInstanceTypes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListElasticsearchInstanceTypes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListElasticsearchInstanceTypesRequest method. +// req, resp := client.ListElasticsearchInstanceTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypes +func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *ListElasticsearchInstanceTypesInput) (req *request.Request, output *ListElasticsearchInstanceTypesOutput) { + op := &request.Operation{ + Name: opListElasticsearchInstanceTypes, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListElasticsearchInstanceTypesInput{} + } + + output = &ListElasticsearchInstanceTypesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListElasticsearchInstanceTypes API operation for Amazon Elasticsearch Service. +// +// List all Elasticsearch instance types that are supported for given ElasticsearchVersion +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation ListElasticsearchInstanceTypes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypes +func (c *ElasticsearchService) ListElasticsearchInstanceTypes(input *ListElasticsearchInstanceTypesInput) (*ListElasticsearchInstanceTypesOutput, error) { + req, out := c.ListElasticsearchInstanceTypesRequest(input) + err := req.Send() + return out, err +} + +// ListElasticsearchInstanceTypesPages iterates over the pages of a ListElasticsearchInstanceTypes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListElasticsearchInstanceTypes method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListElasticsearchInstanceTypes operation. +// pageNum := 0 +// err := client.ListElasticsearchInstanceTypesPages(params, +// func(page *ListElasticsearchInstanceTypesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ElasticsearchService) ListElasticsearchInstanceTypesPages(input *ListElasticsearchInstanceTypesInput, fn func(p *ListElasticsearchInstanceTypesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListElasticsearchInstanceTypesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListElasticsearchInstanceTypesOutput), lastPage) + }) +} + +const opListElasticsearchVersions = "ListElasticsearchVersions" + +// ListElasticsearchVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListElasticsearchVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListElasticsearchVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListElasticsearchVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListElasticsearchVersionsRequest method. +// req, resp := client.ListElasticsearchVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersions +func (c *ElasticsearchService) ListElasticsearchVersionsRequest(input *ListElasticsearchVersionsInput) (req *request.Request, output *ListElasticsearchVersionsOutput) { + op := &request.Operation{ + Name: opListElasticsearchVersions, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/versions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListElasticsearchVersionsInput{} + } + + output = &ListElasticsearchVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListElasticsearchVersions API operation for Amazon Elasticsearch Service. +// +// List all supported Elasticsearch versions +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation ListElasticsearchVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersions +func (c *ElasticsearchService) ListElasticsearchVersions(input *ListElasticsearchVersionsInput) (*ListElasticsearchVersionsOutput, error) { + req, out := c.ListElasticsearchVersionsRequest(input) + err := req.Send() + return out, err +} + +// ListElasticsearchVersionsPages iterates over the pages of a ListElasticsearchVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListElasticsearchVersions method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListElasticsearchVersions operation. +// pageNum := 0 +// err := client.ListElasticsearchVersionsPages(params, +// func(page *ListElasticsearchVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ElasticsearchService) ListElasticsearchVersionsPages(input *ListElasticsearchVersionsInput, fn func(p *ListElasticsearchVersionsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListElasticsearchVersionsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListElasticsearchVersionsOutput), lastPage) + }) +} + const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the @@ -934,6 +1240,46 @@ func (s AddTagsOutput) GoString() string { return s.String() } +// List of limits that are specific to a given InstanceType and for each of +// it's InstanceRole . +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AdditionalLimit +type AdditionalLimit struct { + _ struct{} `type:"structure"` + + // Name of Additional Limit is specific to a given InstanceType and for each + // of it's InstanceRole etc. Attributes and their details: MaximumNumberOfDataNodesSupported + // This attribute will be present in Master node only to specify how much data + // nodes upto which given ESPartitionInstanceTypecan support as master node. MaximumNumberOfDataNodesWithoutMasterNode + // This attribute will be present in Data node only to specify how much data + // nodes of given ESPartitionInstanceType + LimitName *string `type:"string"` + + // Value for given AdditionalLimit$LimitName . + LimitValues []*string `type:"list"` +} + +// String returns the string representation +func (s AdditionalLimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdditionalLimit) GoString() string { + return s.String() +} + +// SetLimitName sets the LimitName field's value. +func (s *AdditionalLimit) SetLimitName(v string) *AdditionalLimit { + s.LimitName = &v + return s +} + +// SetLimitValues sets the LimitValues field's value. +func (s *AdditionalLimit) SetLimitValues(v []*string) *AdditionalLimit { + s.LimitValues = v + return s +} + // Status of the advanced options for the specified Elasticsearch domain. Currently, // the following advanced options are available: // @@ -1400,6 +1746,104 @@ func (s *DescribeElasticsearchDomainsOutput) SetDomainStatusList(v []*Elasticsea return s } +// Container for the parameters to DescribeElasticsearchInstanceTypeLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimitsRequest +type DescribeElasticsearchInstanceTypeLimitsInput struct { + _ struct{} `type:"structure"` + + // DomainName represents the name of the Domain that we are trying to modify. + // This should be present only if we are querying for Elasticsearch Limits for + // existing domain. + DomainName *string `location:"querystring" locationName:"domainName" min:"3" type:"string"` + + // Version of Elasticsearch for which Limits are needed. + // + // ElasticsearchVersion is a required field + ElasticsearchVersion *string `location:"uri" locationName:"ElasticsearchVersion" type:"string" required:"true"` + + // The instance type for an Elasticsearch cluster for which Elasticsearch Limits + // are needed. + // + // InstanceType is a required field + InstanceType *string `location:"uri" locationName:"InstanceType" type:"string" required:"true" enum:"ESPartitionInstanceType"` +} + +// String returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeElasticsearchInstanceTypeLimitsInput"} + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + if s.ElasticsearchVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) SetDomainName(v string) *DescribeElasticsearchInstanceTypeLimitsInput { + s.DomainName = &v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) SetElasticsearchVersion(v string) *DescribeElasticsearchInstanceTypeLimitsInput { + s.ElasticsearchVersion = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) SetInstanceType(v string) *DescribeElasticsearchInstanceTypeLimitsInput { + s.InstanceType = &v + return s +} + +// Container for the parameters received from DescribeElasticsearchInstanceTypeLimits +// operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimitsResponse +type DescribeElasticsearchInstanceTypeLimitsOutput struct { + _ struct{} `type:"structure"` + + // Map of Role of the Instance and Limits that are applicable. Role performed + // by given Instance in Elasticsearch can be one of the following: Data: If + // the given InstanceType is used as Data node + // Master: If the given InstanceType is used as Master node + LimitsByRole map[string]*Limits `type:"map"` +} + +// String returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsOutput) GoString() string { + return s.String() +} + +// SetLimitsByRole sets the LimitsByRole field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsOutput) SetLimitsByRole(v map[string]*Limits) *DescribeElasticsearchInstanceTypeLimitsOutput { + s.LimitsByRole = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DomainInfo type DomainInfo struct { _ struct{} `type:"structure"` @@ -1895,6 +2339,114 @@ func (s *ElasticsearchVersionStatus) SetStatus(v *OptionStatus) *ElasticsearchVe return s } +// InstanceCountLimits represents the limits on number of instances that be +// created in Amazon Elasticsearch for given InstanceType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/InstanceCountLimits +type InstanceCountLimits struct { + _ struct{} `type:"structure"` + + // Maximum number of Instances that can be instantiated for given InstanceType. + MaximumInstanceCount *int64 `type:"integer"` + + // Minimum number of Instances that can be instantiated for given InstanceType. + MinimumInstanceCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s InstanceCountLimits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceCountLimits) GoString() string { + return s.String() +} + +// SetMaximumInstanceCount sets the MaximumInstanceCount field's value. +func (s *InstanceCountLimits) SetMaximumInstanceCount(v int64) *InstanceCountLimits { + s.MaximumInstanceCount = &v + return s +} + +// SetMinimumInstanceCount sets the MinimumInstanceCount field's value. +func (s *InstanceCountLimits) SetMinimumInstanceCount(v int64) *InstanceCountLimits { + s.MinimumInstanceCount = &v + return s +} + +// InstanceLimits represents the list of instance related attributes that are +// available for given InstanceType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/InstanceLimits +type InstanceLimits struct { + _ struct{} `type:"structure"` + + // InstanceCountLimits represents the limits on number of instances that be + // created in Amazon Elasticsearch for given InstanceType. + InstanceCountLimits *InstanceCountLimits `type:"structure"` +} + +// String returns the string representation +func (s InstanceLimits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceLimits) GoString() string { + return s.String() +} + +// SetInstanceCountLimits sets the InstanceCountLimits field's value. +func (s *InstanceLimits) SetInstanceCountLimits(v *InstanceCountLimits) *InstanceLimits { + s.InstanceCountLimits = v + return s +} + +// Limits for given InstanceType and for each of it's role. Limits contains following StorageTypes, InstanceLimitsand AdditionalLimits +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/Limits +type Limits struct { + _ struct{} `type:"structure"` + + // List of additional limits that are specific to a given InstanceType and for + // each of it's InstanceRole . + AdditionalLimits []*AdditionalLimit `type:"list"` + + // InstanceLimits represents the list of instance related attributes that are + // available for given InstanceType. + InstanceLimits *InstanceLimits `type:"structure"` + + // StorageType represents the list of storage related types and attributes that + // are available for given InstanceType. + StorageTypes []*StorageType `type:"list"` +} + +// String returns the string representation +func (s Limits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Limits) GoString() string { + return s.String() +} + +// SetAdditionalLimits sets the AdditionalLimits field's value. +func (s *Limits) SetAdditionalLimits(v []*AdditionalLimit) *Limits { + s.AdditionalLimits = v + return s +} + +// SetInstanceLimits sets the InstanceLimits field's value. +func (s *Limits) SetInstanceLimits(v *InstanceLimits) *Limits { + s.InstanceLimits = v + return s +} + +// SetStorageTypes sets the StorageTypes field's value. +func (s *Limits) SetStorageTypes(v []*StorageType) *Limits { + s.StorageTypes = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListDomainNamesInput type ListDomainNamesInput struct { _ struct{} `type:"structure"` @@ -1936,6 +2488,197 @@ func (s *ListDomainNamesOutput) SetDomainNames(v []*DomainInfo) *ListDomainNames return s } +// Container for the parameters to the ListElasticsearchInstanceTypes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypesRequest +type ListElasticsearchInstanceTypesInput struct { + _ struct{} `type:"structure"` + + // DomainName represents the name of the Domain that we are trying to modify. + // This should be present only if we are querying for list of available Elasticsearch + // instance types when modifying existing domain. + DomainName *string `location:"querystring" locationName:"domainName" min:"3" type:"string"` + + // Version of Elasticsearch for which list of supported elasticsearch instance + // types are needed. + // + // ElasticsearchVersion is a required field + ElasticsearchVersion *string `location:"uri" locationName:"ElasticsearchVersion" type:"string" required:"true"` + + // Set this value to limit the number of results returned. Value provided must + // be greater than 30 else it wont be honored. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // NextToken should be sent in case if earlier API call produced result containing + // NextToken. It is used for pagination. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchInstanceTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchInstanceTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListElasticsearchInstanceTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListElasticsearchInstanceTypesInput"} + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + if s.ElasticsearchVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *ListElasticsearchInstanceTypesInput) SetDomainName(v string) *ListElasticsearchInstanceTypesInput { + s.DomainName = &v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *ListElasticsearchInstanceTypesInput) SetElasticsearchVersion(v string) *ListElasticsearchInstanceTypesInput { + s.ElasticsearchVersion = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListElasticsearchInstanceTypesInput) SetMaxResults(v int64) *ListElasticsearchInstanceTypesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchInstanceTypesInput) SetNextToken(v string) *ListElasticsearchInstanceTypesInput { + s.NextToken = &v + return s +} + +// Container for the parameters returned by ListElasticsearchInstanceTypes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypesResponse +type ListElasticsearchInstanceTypesOutput struct { + _ struct{} `type:"structure"` + + // List of instance types supported by Amazon Elasticsearch service for given + // ElasticsearchVersion + ElasticsearchInstanceTypes []*string `type:"list"` + + // In case if there are more results available NextToken would be present, make + // further request to the same API with received NextToken to paginate remaining + // results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchInstanceTypesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchInstanceTypesOutput) GoString() string { + return s.String() +} + +// SetElasticsearchInstanceTypes sets the ElasticsearchInstanceTypes field's value. +func (s *ListElasticsearchInstanceTypesOutput) SetElasticsearchInstanceTypes(v []*string) *ListElasticsearchInstanceTypesOutput { + s.ElasticsearchInstanceTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchInstanceTypesOutput) SetNextToken(v string) *ListElasticsearchInstanceTypesOutput { + s.NextToken = &v + return s +} + +// Container for the parameters to the ListElasticsearchVersions operation. +// Use MaxResults to control the maximum number of results to retrieve in a +// single call. +// +// Use NextToken in response to retrieve more results. If the received response +// does not contain a NextToken, then there are no more results to retrieve. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersionsRequest +type ListElasticsearchVersionsInput struct { + _ struct{} `type:"structure"` + + // Set this value to limit the number of results returned. Value provided must + // be greater than 10 else it wont be honored. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // Paginated APIs accepts NextToken input to returns next page results and provides + // a NextToken output in the response which can be used by the client to retrieve + // more results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchVersionsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListElasticsearchVersionsInput) SetMaxResults(v int64) *ListElasticsearchVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchVersionsInput) SetNextToken(v string) *ListElasticsearchVersionsInput { + s.NextToken = &v + return s +} + +// Container for the parameters for response received from ListElasticsearchVersions +// operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersionsResponse +type ListElasticsearchVersionsOutput struct { + _ struct{} `type:"structure"` + + // List of supported elastic search versions. + ElasticsearchVersions []*string `type:"list"` + + // Paginated APIs accepts NextToken input to returns next page results and provides + // a NextToken output in the response which can be used by the client to retrieve + // more results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchVersionsOutput) GoString() string { + return s.String() +} + +// SetElasticsearchVersions sets the ElasticsearchVersions field's value. +func (s *ListElasticsearchVersionsOutput) SetElasticsearchVersions(v []*string) *ListElasticsearchVersionsOutput { + s.ElasticsearchVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchVersionsOutput) SetNextToken(v string) *ListElasticsearchVersionsOutput { + s.NextToken = &v + return s +} + // Container for the parameters to the ListTags operation. Specify the ARN for // the Elasticsearch domain to which the tags are attached that you want to // view are attached. @@ -2210,6 +2953,100 @@ func (s *SnapshotOptionsStatus) SetStatus(v *OptionStatus) *SnapshotOptionsStatu return s } +// StorageTypes represents the list of storage related types and their attributes +// that are available for given InstanceType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/StorageType +type StorageType struct { + _ struct{} `type:"structure"` + + // SubType of the given storage type. List of available sub-storage options: + // For "instance" storageType we wont have any storageSubType, in case of "ebs" + // storageType we will have following valid storageSubTypes standard + // gp2 + // io1 + // Refer VolumeType for more information regarding above EBS storage options. + StorageSubTypeName *string `type:"string"` + + // List of limits that are applicable for given storage type. + StorageTypeLimits []*StorageTypeLimit `type:"list"` + + // Type of the storage. List of available storage options: instance + // Inbuilt storage available for the given Instance ebs + // Elastic block storage that would be attached to the given Instance + StorageTypeName *string `type:"string"` +} + +// String returns the string representation +func (s StorageType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageType) GoString() string { + return s.String() +} + +// SetStorageSubTypeName sets the StorageSubTypeName field's value. +func (s *StorageType) SetStorageSubTypeName(v string) *StorageType { + s.StorageSubTypeName = &v + return s +} + +// SetStorageTypeLimits sets the StorageTypeLimits field's value. +func (s *StorageType) SetStorageTypeLimits(v []*StorageTypeLimit) *StorageType { + s.StorageTypeLimits = v + return s +} + +// SetStorageTypeName sets the StorageTypeName field's value. +func (s *StorageType) SetStorageTypeName(v string) *StorageType { + s.StorageTypeName = &v + return s +} + +// Limits that are applicable for given storage type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/StorageTypeLimit +type StorageTypeLimit struct { + _ struct{} `type:"structure"` + + // Name of storage limits that are applicable for given storage type. If StorageType + // is ebs, following storage options are applicable MinimumVolumeSize + // Minimum amount of volume size that is applicable for given storage type.It + // can be empty if it is not applicable. MaximumVolumeSize + // Maximum amount of volume size that is applicable for given storage type.It + // can be empty if it is not applicable. MaximumIops + // Maximum amount of Iops that is applicable for given storage type.It can + // be empty if it is not applicable. MinimumIops + // Minimum amount of Iops that is applicable for given storage type.It can + // be empty if it is not applicable. + LimitName *string `type:"string"` + + // Values for the StorageTypeLimit$LimitName . + LimitValues []*string `type:"list"` +} + +// String returns the string representation +func (s StorageTypeLimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageTypeLimit) GoString() string { + return s.String() +} + +// SetLimitName sets the LimitName field's value. +func (s *StorageTypeLimit) SetLimitName(v string) *StorageTypeLimit { + s.LimitName = &v + return s +} + +// SetLimitValues sets the LimitValues field's value. +func (s *StorageTypeLimit) SetLimitValues(v []*string) *StorageTypeLimit { + s.LimitValues = v + return s +} + // Specifies a key value pair for a resource tag. // Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/Tag type Tag struct { @@ -2449,6 +3286,51 @@ const ( // ESPartitionInstanceTypeI22xlargeElasticsearch is a ESPartitionInstanceType enum value ESPartitionInstanceTypeI22xlargeElasticsearch = "i2.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeD2XlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD2XlargeElasticsearch = "d2.xlarge.elasticsearch" + + // ESPartitionInstanceTypeD22xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD22xlargeElasticsearch = "d2.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeD24xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD24xlargeElasticsearch = "d2.4xlarge.elasticsearch" + + // ESPartitionInstanceTypeD28xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD28xlargeElasticsearch = "d2.8xlarge.elasticsearch" + + // ESPartitionInstanceTypeC4LargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC4LargeElasticsearch = "c4.large.elasticsearch" + + // ESPartitionInstanceTypeC4XlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC4XlargeElasticsearch = "c4.xlarge.elasticsearch" + + // ESPartitionInstanceTypeC42xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC42xlargeElasticsearch = "c4.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeC44xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC44xlargeElasticsearch = "c4.4xlarge.elasticsearch" + + // ESPartitionInstanceTypeC48xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC48xlargeElasticsearch = "c4.8xlarge.elasticsearch" + + // ESPartitionInstanceTypeR4LargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR4LargeElasticsearch = "r4.large.elasticsearch" + + // ESPartitionInstanceTypeR4XlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR4XlargeElasticsearch = "r4.xlarge.elasticsearch" + + // ESPartitionInstanceTypeR42xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR42xlargeElasticsearch = "r4.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeR44xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR44xlargeElasticsearch = "r4.4xlarge.elasticsearch" + + // ESPartitionInstanceTypeR48xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR48xlargeElasticsearch = "r4.8xlarge.elasticsearch" + + // ESPartitionInstanceTypeR416xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR416xlargeElasticsearch = "r4.16xlarge.elasticsearch" ) // The state of a requested change. One of the following: diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go index b84adcdf..29e91da4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElasticsearchServiceClient{} // @@ -83,10 +83,26 @@ type ElasticsearchServiceAPI interface { DescribeElasticsearchDomains(*elasticsearchservice.DescribeElasticsearchDomainsInput) (*elasticsearchservice.DescribeElasticsearchDomainsOutput, error) + DescribeElasticsearchInstanceTypeLimitsRequest(*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsOutput) + + DescribeElasticsearchInstanceTypeLimits(*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput) (*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsOutput, error) + ListDomainNamesRequest(*elasticsearchservice.ListDomainNamesInput) (*request.Request, *elasticsearchservice.ListDomainNamesOutput) ListDomainNames(*elasticsearchservice.ListDomainNamesInput) (*elasticsearchservice.ListDomainNamesOutput, error) + ListElasticsearchInstanceTypesRequest(*elasticsearchservice.ListElasticsearchInstanceTypesInput) (*request.Request, *elasticsearchservice.ListElasticsearchInstanceTypesOutput) + + ListElasticsearchInstanceTypes(*elasticsearchservice.ListElasticsearchInstanceTypesInput) (*elasticsearchservice.ListElasticsearchInstanceTypesOutput, error) + + ListElasticsearchInstanceTypesPages(*elasticsearchservice.ListElasticsearchInstanceTypesInput, func(*elasticsearchservice.ListElasticsearchInstanceTypesOutput, bool) bool) error + + ListElasticsearchVersionsRequest(*elasticsearchservice.ListElasticsearchVersionsInput) (*request.Request, *elasticsearchservice.ListElasticsearchVersionsOutput) + + ListElasticsearchVersions(*elasticsearchservice.ListElasticsearchVersionsInput) (*elasticsearchservice.ListElasticsearchVersionsOutput, error) + + ListElasticsearchVersionsPages(*elasticsearchservice.ListElasticsearchVersionsInput, func(*elasticsearchservice.ListElasticsearchVersionsOutput, bool) bool) error + ListTagsRequest(*elasticsearchservice.ListTagsInput) (*request.Request, *elasticsearchservice.ListTagsOutput) ListTags(*elasticsearchservice.ListTagsInput) (*elasticsearchservice.ListTagsOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go index d321ae87..eb50cda9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticsearchService_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -48,11 +44,7 @@ func ExampleElasticsearchService_AddTags() { } func ExampleElasticsearchService_CreateElasticsearchDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -96,11 +88,7 @@ func ExampleElasticsearchService_CreateElasticsearchDomain() { } func ExampleElasticsearchService_DeleteElasticsearchDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -121,11 +109,7 @@ func ExampleElasticsearchService_DeleteElasticsearchDomain() { } func ExampleElasticsearchService_DescribeElasticsearchDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -146,11 +130,7 @@ func ExampleElasticsearchService_DescribeElasticsearchDomain() { } func ExampleElasticsearchService_DescribeElasticsearchDomainConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -171,11 +151,7 @@ func ExampleElasticsearchService_DescribeElasticsearchDomainConfig() { } func ExampleElasticsearchService_DescribeElasticsearchDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -198,13 +174,32 @@ func ExampleElasticsearchService_DescribeElasticsearchDomains() { fmt.Println(resp) } -func ExampleElasticsearchService_ListDomainNames() { - sess, err := session.NewSession() +func ExampleElasticsearchService_DescribeElasticsearchInstanceTypeLimits() { + sess := session.Must(session.NewSession()) + + svc := elasticsearchservice.New(sess) + + params := &elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput{ + ElasticsearchVersion: aws.String("ElasticsearchVersionString"), // Required + InstanceType: aws.String("ESPartitionInstanceType"), // Required + DomainName: aws.String("DomainName"), + } + resp, err := svc.DescribeElasticsearchInstanceTypeLimits(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticsearchService_ListDomainNames() { + sess := session.Must(session.NewSession()) + svc := elasticsearchservice.New(sess) var params *elasticsearchservice.ListDomainNamesInput @@ -221,13 +216,55 @@ func ExampleElasticsearchService_ListDomainNames() { fmt.Println(resp) } -func ExampleElasticsearchService_ListTags() { - sess, err := session.NewSession() +func ExampleElasticsearchService_ListElasticsearchInstanceTypes() { + sess := session.Must(session.NewSession()) + + svc := elasticsearchservice.New(sess) + + params := &elasticsearchservice.ListElasticsearchInstanceTypesInput{ + ElasticsearchVersion: aws.String("ElasticsearchVersionString"), // Required + DomainName: aws.String("DomainName"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListElasticsearchInstanceTypes(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticsearchService_ListElasticsearchVersions() { + sess := session.Must(session.NewSession()) + + svc := elasticsearchservice.New(sess) + + params := &elasticsearchservice.ListElasticsearchVersionsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListElasticsearchVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticsearchService_ListTags() { + sess := session.Must(session.NewSession()) + svc := elasticsearchservice.New(sess) params := &elasticsearchservice.ListTagsInput{ @@ -247,11 +284,7 @@ func ExampleElasticsearchService_ListTags() { } func ExampleElasticsearchService_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -276,11 +309,7 @@ func ExampleElasticsearchService_RemoveTags() { } func ExampleElasticsearchService_UpdateElasticsearchDomainConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go index 60b6d06e..ededf3fb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElasticTranscoderClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go index 546b02c1..0b5dad87 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticTranscoder_CancelJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -41,11 +37,7 @@ func ExampleElasticTranscoder_CancelJob() { } func ExampleElasticTranscoder_CreateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -374,11 +366,7 @@ func ExampleElasticTranscoder_CreateJob() { } func ExampleElasticTranscoder_CreatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -439,11 +427,7 @@ func ExampleElasticTranscoder_CreatePipeline() { } func ExampleElasticTranscoder_CreatePreset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -523,11 +507,7 @@ func ExampleElasticTranscoder_CreatePreset() { } func ExampleElasticTranscoder_DeletePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -548,11 +528,7 @@ func ExampleElasticTranscoder_DeletePipeline() { } func ExampleElasticTranscoder_DeletePreset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -573,11 +549,7 @@ func ExampleElasticTranscoder_DeletePreset() { } func ExampleElasticTranscoder_ListJobsByPipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -600,11 +572,7 @@ func ExampleElasticTranscoder_ListJobsByPipeline() { } func ExampleElasticTranscoder_ListJobsByStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -627,11 +595,7 @@ func ExampleElasticTranscoder_ListJobsByStatus() { } func ExampleElasticTranscoder_ListPipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -653,11 +617,7 @@ func ExampleElasticTranscoder_ListPipelines() { } func ExampleElasticTranscoder_ListPresets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -679,11 +639,7 @@ func ExampleElasticTranscoder_ListPresets() { } func ExampleElasticTranscoder_ReadJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -704,11 +660,7 @@ func ExampleElasticTranscoder_ReadJob() { } func ExampleElasticTranscoder_ReadPipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -729,11 +681,7 @@ func ExampleElasticTranscoder_ReadPipeline() { } func ExampleElasticTranscoder_ReadPreset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -754,11 +702,7 @@ func ExampleElasticTranscoder_ReadPreset() { } func ExampleElasticTranscoder_TestRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -785,11 +729,7 @@ func ExampleElasticTranscoder_TestRole() { } func ExampleElasticTranscoder_UpdatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -850,11 +790,7 @@ func ExampleElasticTranscoder_UpdatePipeline() { } func ExampleElasticTranscoder_UpdatePipelineNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -881,11 +817,7 @@ func ExampleElasticTranscoder_UpdatePipelineNotifications() { } func ExampleElasticTranscoder_UpdatePipelineStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go index 90d12350..f6946827 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockELBClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go index a1c1421f..8d3409ed 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleELB_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -51,11 +47,7 @@ func ExampleELB_AddTags() { } func ExampleELB_ApplySecurityGroupsToLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -80,11 +72,7 @@ func ExampleELB_ApplySecurityGroupsToLoadBalancer() { } func ExampleELB_AttachLoadBalancerToSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -109,11 +97,7 @@ func ExampleELB_AttachLoadBalancerToSubnets() { } func ExampleELB_ConfigureHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -141,11 +125,7 @@ func ExampleELB_ConfigureHealthCheck() { } func ExampleELB_CreateAppCookieStickinessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -168,11 +148,7 @@ func ExampleELB_CreateAppCookieStickinessPolicy() { } func ExampleELB_CreateLBCookieStickinessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -195,11 +171,7 @@ func ExampleELB_CreateLBCookieStickinessPolicy() { } func ExampleELB_CreateLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -250,11 +222,7 @@ func ExampleELB_CreateLoadBalancer() { } func ExampleELB_CreateLoadBalancerListeners() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -285,11 +253,7 @@ func ExampleELB_CreateLoadBalancerListeners() { } func ExampleELB_CreateLoadBalancerPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -319,11 +283,7 @@ func ExampleELB_CreateLoadBalancerPolicy() { } func ExampleELB_DeleteLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -344,11 +304,7 @@ func ExampleELB_DeleteLoadBalancer() { } func ExampleELB_DeleteLoadBalancerListeners() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -373,11 +329,7 @@ func ExampleELB_DeleteLoadBalancerListeners() { } func ExampleELB_DeleteLoadBalancerPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -399,11 +351,7 @@ func ExampleELB_DeleteLoadBalancerPolicy() { } func ExampleELB_DeregisterInstancesFromLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -430,11 +378,7 @@ func ExampleELB_DeregisterInstancesFromLoadBalancer() { } func ExampleELB_DescribeInstanceHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -461,11 +405,7 @@ func ExampleELB_DescribeInstanceHealth() { } func ExampleELB_DescribeLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -486,11 +426,7 @@ func ExampleELB_DescribeLoadBalancerAttributes() { } func ExampleELB_DescribeLoadBalancerPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -515,11 +451,7 @@ func ExampleELB_DescribeLoadBalancerPolicies() { } func ExampleELB_DescribeLoadBalancerPolicyTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -543,11 +475,7 @@ func ExampleELB_DescribeLoadBalancerPolicyTypes() { } func ExampleELB_DescribeLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -573,11 +501,7 @@ func ExampleELB_DescribeLoadBalancers() { } func ExampleELB_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -601,11 +525,7 @@ func ExampleELB_DescribeTags() { } func ExampleELB_DetachLoadBalancerFromSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -630,11 +550,7 @@ func ExampleELB_DetachLoadBalancerFromSubnets() { } func ExampleELB_DisableAvailabilityZonesForLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -659,11 +575,7 @@ func ExampleELB_DisableAvailabilityZonesForLoadBalancer() { } func ExampleELB_EnableAvailabilityZonesForLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -688,11 +600,7 @@ func ExampleELB_EnableAvailabilityZonesForLoadBalancer() { } func ExampleELB_ModifyLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -738,11 +646,7 @@ func ExampleELB_ModifyLoadBalancerAttributes() { } func ExampleELB_RegisterInstancesWithLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -769,11 +673,7 @@ func ExampleELB_RegisterInstancesWithLoadBalancer() { } func ExampleELB_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -803,11 +703,7 @@ func ExampleELB_RemoveTags() { } func ExampleELB_SetLoadBalancerListenerSSLCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -830,11 +726,7 @@ func ExampleELB_SetLoadBalancerListenerSSLCertificate() { } func ExampleELB_SetLoadBalancerPoliciesForBackendServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -860,11 +752,7 @@ func ExampleELB_SetLoadBalancerPoliciesForBackendServer() { } func ExampleELB_SetLoadBalancerPoliciesOfListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go index 20dc0c46..6b37a652 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockELBV2Client{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go index 1f019df3..11fda9ce 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleELBV2_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -51,11 +47,7 @@ func ExampleELBV2_AddTags() { } func ExampleELBV2_CreateListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -92,11 +84,7 @@ func ExampleELBV2_CreateListener() { } func ExampleELBV2_CreateLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -134,11 +122,7 @@ func ExampleELBV2_CreateLoadBalancer() { } func ExampleELBV2_CreateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -177,11 +161,7 @@ func ExampleELBV2_CreateRule() { } func ExampleELBV2_CreateTargetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -215,11 +195,7 @@ func ExampleELBV2_CreateTargetGroup() { } func ExampleELBV2_DeleteListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -240,11 +216,7 @@ func ExampleELBV2_DeleteListener() { } func ExampleELBV2_DeleteLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -265,11 +237,7 @@ func ExampleELBV2_DeleteLoadBalancer() { } func ExampleELBV2_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -290,11 +258,7 @@ func ExampleELBV2_DeleteRule() { } func ExampleELBV2_DeleteTargetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -315,11 +279,7 @@ func ExampleELBV2_DeleteTargetGroup() { } func ExampleELBV2_DeregisterTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -347,11 +307,7 @@ func ExampleELBV2_DeregisterTargets() { } func ExampleELBV2_DescribeListeners() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -378,11 +334,7 @@ func ExampleELBV2_DescribeListeners() { } func ExampleELBV2_DescribeLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -403,11 +355,7 @@ func ExampleELBV2_DescribeLoadBalancerAttributes() { } func ExampleELBV2_DescribeLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -437,11 +385,7 @@ func ExampleELBV2_DescribeLoadBalancers() { } func ExampleELBV2_DescribeRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -466,11 +410,7 @@ func ExampleELBV2_DescribeRules() { } func ExampleELBV2_DescribeSSLPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -496,11 +436,7 @@ func ExampleELBV2_DescribeSSLPolicies() { } func ExampleELBV2_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -524,11 +460,7 @@ func ExampleELBV2_DescribeTags() { } func ExampleELBV2_DescribeTargetGroupAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -549,11 +481,7 @@ func ExampleELBV2_DescribeTargetGroupAttributes() { } func ExampleELBV2_DescribeTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -584,11 +512,7 @@ func ExampleELBV2_DescribeTargetGroups() { } func ExampleELBV2_DescribeTargetHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -616,11 +540,7 @@ func ExampleELBV2_DescribeTargetHealth() { } func ExampleELBV2_ModifyListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -657,11 +577,7 @@ func ExampleELBV2_ModifyListener() { } func ExampleELBV2_ModifyLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -689,11 +605,7 @@ func ExampleELBV2_ModifyLoadBalancerAttributes() { } func ExampleELBV2_ModifyRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -731,11 +643,7 @@ func ExampleELBV2_ModifyRule() { } func ExampleELBV2_ModifyTargetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -766,11 +674,7 @@ func ExampleELBV2_ModifyTargetGroup() { } func ExampleELBV2_ModifyTargetGroupAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -798,11 +702,7 @@ func ExampleELBV2_ModifyTargetGroupAttributes() { } func ExampleELBV2_RegisterTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -830,11 +730,7 @@ func ExampleELBV2_RegisterTargets() { } func ExampleELBV2_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -862,11 +758,7 @@ func ExampleELBV2_RemoveTags() { } func ExampleELBV2_SetIpAddressType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -888,11 +780,7 @@ func ExampleELBV2_SetIpAddressType() { } func ExampleELBV2_SetRulePriorities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -919,11 +807,7 @@ func ExampleELBV2_SetRulePriorities() { } func ExampleELBV2_SetSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -948,11 +832,7 @@ func ExampleELBV2_SetSecurityGroups() { } func ExampleELBV2_SetSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go index 2053a38b..60c32c54 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockEMRClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go index 282a2a34..3842309d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEMR_AddInstanceGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -119,11 +115,7 @@ func ExampleEMR_AddInstanceGroups() { } func ExampleEMR_AddJobFlowSteps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -166,11 +158,7 @@ func ExampleEMR_AddJobFlowSteps() { } func ExampleEMR_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -198,11 +186,7 @@ func ExampleEMR_AddTags() { } func ExampleEMR_CancelSteps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -227,11 +211,7 @@ func ExampleEMR_CancelSteps() { } func ExampleEMR_CreateSecurityConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -253,11 +233,7 @@ func ExampleEMR_CreateSecurityConfiguration() { } func ExampleEMR_DeleteSecurityConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -278,11 +254,7 @@ func ExampleEMR_DeleteSecurityConfiguration() { } func ExampleEMR_DescribeCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -303,11 +275,7 @@ func ExampleEMR_DescribeCluster() { } func ExampleEMR_DescribeJobFlows() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -337,11 +305,7 @@ func ExampleEMR_DescribeJobFlows() { } func ExampleEMR_DescribeSecurityConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -362,11 +326,7 @@ func ExampleEMR_DescribeSecurityConfiguration() { } func ExampleEMR_DescribeStep() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -388,11 +348,7 @@ func ExampleEMR_DescribeStep() { } func ExampleEMR_ListBootstrapActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -414,11 +370,7 @@ func ExampleEMR_ListBootstrapActions() { } func ExampleEMR_ListClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -445,11 +397,7 @@ func ExampleEMR_ListClusters() { } func ExampleEMR_ListInstanceGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -471,11 +419,7 @@ func ExampleEMR_ListInstanceGroups() { } func ExampleEMR_ListInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -506,11 +450,7 @@ func ExampleEMR_ListInstances() { } func ExampleEMR_ListSecurityConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -531,11 +471,7 @@ func ExampleEMR_ListSecurityConfigurations() { } func ExampleEMR_ListSteps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -565,11 +501,7 @@ func ExampleEMR_ListSteps() { } func ExampleEMR_ModifyInstanceGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -615,11 +547,7 @@ func ExampleEMR_ModifyInstanceGroups() { } func ExampleEMR_PutAutoScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -681,11 +609,7 @@ func ExampleEMR_PutAutoScalingPolicy() { } func ExampleEMR_RemoveAutoScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -707,11 +631,7 @@ func ExampleEMR_RemoveAutoScalingPolicy() { } func ExampleEMR_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -736,11 +656,7 @@ func ExampleEMR_RemoveTags() { } func ExampleEMR_RunJobFlow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -957,11 +873,7 @@ func ExampleEMR_RunJobFlow() { } func ExampleEMR_SetTerminationProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -986,11 +898,7 @@ func ExampleEMR_SetTerminationProtection() { } func ExampleEMR_SetVisibleToAllUsers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -1015,11 +923,7 @@ func ExampleEMR_SetVisibleToAllUsers() { } func ExampleEMR_TerminateJobFlows() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go index b4954550..a8cda3f1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleFirehose_CreateDeliveryStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -256,11 +252,7 @@ func ExampleFirehose_CreateDeliveryStream() { } func ExampleFirehose_DeleteDeliveryStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -281,11 +273,7 @@ func ExampleFirehose_DeleteDeliveryStream() { } func ExampleFirehose_DescribeDeliveryStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -308,11 +296,7 @@ func ExampleFirehose_DescribeDeliveryStream() { } func ExampleFirehose_ListDeliveryStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -334,11 +318,7 @@ func ExampleFirehose_ListDeliveryStreams() { } func ExampleFirehose_PutRecord() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -362,11 +342,7 @@ func ExampleFirehose_PutRecord() { } func ExampleFirehose_PutRecordBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -393,11 +369,7 @@ func ExampleFirehose_PutRecordBatch() { } func ExampleFirehose_UpdateDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go index 1e7c0d73..31f13b07 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockFirehoseClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go index 049d26f6..ef715296 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go @@ -58,14 +58,19 @@ func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Req // CreateAlias API operation for Amazon GameLift. // -// Creates an alias for a fleet. You can use an alias to anonymize your fleet -// by referencing an alias instead of a specific fleet when you create game -// sessions. Amazon GameLift supports two types of routing strategies for aliases: -// simple and terminal. Use a simple alias to point to an active fleet. Use -// a terminal alias to display a message to incoming traffic instead of routing -// players to an active fleet. This option is useful when a game server is no -// longer supported but you want to provide better messaging than a standard -// 404 error. +// Creates an alias and sets a target fleet. A fleet alias can be used in place +// of a fleet ID, such as when calling CreateGameSession from a game client +// or game service or adding destinations to a game session queue. By changing +// an alias's target fleet, you can switch your players to the new fleet without +// changing any other component. In production, this feature is particularly +// useful to redirect your player base seamlessly to the latest game server +// update. +// +// Amazon GameLift supports two types of routing strategies for aliases: simple +// and terminal. Use a simple alias to point to an active fleet. Use a terminal +// alias to display a message to incoming traffic instead of routing players +// to an active fleet. This option is useful when a game server is no longer +// supported but you want to provide better messaging than a standard 404 error. // // To create a fleet alias, specify an alias name, routing strategy, and optional // description. If successful, a new alias record is returned, including an @@ -153,24 +158,25 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req // CreateBuild API operation for Amazon GameLift. // -// Initializes a new build record and generates information required to upload -// a game build to Amazon GameLift. Once the build record has been created and -// its status is INITIALIZED, you can upload your game build. -// -// Do not use this API action unless you are using your own Amazon Simple Storage -// Service (Amazon S3) client and need to manually upload your build files. -// Instead, to create a build, use the CLI command upload-build, which creates -// a new build record and uploads the build files in one step. (See the Amazon -// GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html) -// help on packaging and uploading your build.) -// -// To create a new build, identify the operating system of the game server binaries. -// All game servers in a build must use the same operating system. Optionally, -// specify a build name and version; this metadata is stored with other properties -// in the build record and is displayed in the GameLift console (it is not visible -// to players). If successful, this action returns the newly created build record -// along with the Amazon S3 storage location and AWS account credentials. Use -// the location and credentials to upload your game build. +// Creates a new Amazon GameLift build from a set of game server binary files +// stored in an Amazon Simple Storage Service (Amazon S3) location. When using +// this API call, you must create a .zip file containing all of the build files +// and store it in an Amazon S3 bucket under your AWS account. For help on packaging +// your build files and creating a build, see Uploading Your Game to Amazon +// GameLift (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html). +// +// Use this API action ONLY if you are storing your game build files in an Amazon +// S3 bucket in your AWS account. To create a build using files stored in a +// directory, use the CLI command upload-build (http://docs.aws.amazon.com/cli/latest/reference/gamelift/upload-build.html), +// which uploads the build files from a file location you specify and creates +// a build. +// +// To create a new build using CreateBuild, identify the storage location and +// operating system of your game build. You also have the option of specifying +// a build name and version. If successful, this action creates a new build +// record with an unique build ID and in INITIALIZED status. Use the API call +// DescribeBuild to check the status of your build. A build must be in READY +// status before it can be used to create fleets to host your game. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -262,8 +268,8 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // with the following settings: (1) a runtime configuration describing what // server processes to run on each instance in the fleet (required to create // fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session -// protection, and (4) the location of default log files for GameLift to upload -// and store. +// protection, and (4) the location of default log files for Amazon GameLift +// to upload and store. // // If the CreateFleet call is successful, Amazon GameLift performs the following // tasks: @@ -271,15 +277,15 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // * Creates a fleet record and sets the status to NEW (followed by other // statuses as the fleet is activated). // -// * Sets the fleet's capacity to 1 "desired", which causes GameLift to start -// one new EC2 instance. +// * Sets the fleet's capacity to 1 "desired", which causes Amazon GameLift +// to start one new EC2 instance. // // * Starts launching server processes on the instance. If the fleet is configured -// to run multiple server processes per instance, GameLift staggers each -// launch by a few seconds. +// to run multiple server processes per instance, Amazon GameLift staggers +// each launch by a few seconds. // // * Begins writing events to the fleet event log, which can be accessed -// in the GameLift console. +// in the Amazon GameLift console. // // * Sets the fleet's status to ACTIVE once one server process in the fleet // is ready to host a game session. @@ -299,6 +305,9 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // in the fleet, including launch path, launch parameters, and the number // of concurrent processes. // +// * PutScalingPolicy -- Create or update rules that are used to set the +// fleet's capacity (autoscaling). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -386,7 +395,7 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req // // Creates a multiplayer game session for players. This action creates a game // session record and assigns an available server process in the specified fleet -// to host the game session. A fleet must be in an ACTIVE status before a game +// to host the game session. A fleet must have an ACTIVE status before a game // session can be created in it. // // To create a game session, specify either fleet ID or alias ID, and indicate @@ -394,12 +403,12 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req // a name and game-specific properties for this game session. If successful, // a GameSession object is returned containing session properties, including // an IP address. By default, newly created game sessions allow new players -// to join. Use UpdateGameSession to change the game sessions player session +// to join. Use UpdateGameSession to change the game session's player session // creation policy. // // When creating a game session on a fleet with a resource limit creation policy, -// the request should include a creator ID. If none is provided, GameLift does -// not evaluate the fleet's resource limit creation policy. +// the request should include a creator ID. If none is provided, Amazon GameLift +// does not evaluate the fleet's resource limit creation policy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -461,6 +470,94 @@ func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGame return out, err } +const opCreateGameSessionQueue = "CreateGameSessionQueue" + +// CreateGameSessionQueueRequest generates a "aws/request.Request" representing the +// client's request for the CreateGameSessionQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateGameSessionQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateGameSessionQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateGameSessionQueueRequest method. +// req, resp := client.CreateGameSessionQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueue +func (c *GameLift) CreateGameSessionQueueRequest(input *CreateGameSessionQueueInput) (req *request.Request, output *CreateGameSessionQueueOutput) { + op := &request.Operation{ + Name: opCreateGameSessionQueue, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateGameSessionQueueInput{} + } + + output = &CreateGameSessionQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGameSessionQueue API operation for Amazon GameLift. +// +// Establishes a new queue for processing requests for new game sessions. A +// queue identifies where new game sessions can be hosted--by specifying a list +// of fleet destinations--and how long a request can remain in the queue waiting +// to be placed before timing out. Requests for new game sessions are added +// to a queue by calling StartGameSessionPlacement and referencing the queue +// name. +// +// When processing a request for a game session, Amazon GameLift tries each +// destination in order until it finds one with available resources to host +// the new game session. A queue's default order is determined by how destinations +// are listed. This default order can be overridden in a game session placement +// request. +// +// To create a new queue, provide a name, timeout value, and a list of destinations. +// If successful, a new queue object is returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreateGameSessionQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueue +func (c *GameLift) CreateGameSessionQueue(input *CreateGameSessionQueueInput) (*CreateGameSessionQueueOutput, error) { + req, out := c.CreateGameSessionQueueRequest(input) + err := req.Send() + return out, err +} + const opCreatePlayerSession = "CreatePlayerSession" // CreatePlayerSessionRequest generates a "aws/request.Request" representing the @@ -506,13 +603,14 @@ func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) ( // CreatePlayerSession API operation for Amazon GameLift. // -// Adds a player to a game session and creates a player session record. A game -// session must be in an ACTIVE status, have a creation policy of ALLOW_ALL, -// and have an open player slot before players can be added to the session. +// Adds a player to a game session and creates a player session record. Before +// a player can be added, a game session must have an ACTIVE status, have a +// creation policy of ALLOW_ALL, and have an open player slot. To add a group +// of players to a game session, use CreatePlayerSessions. // -// To create a player session, specify a game session ID and player ID. If successful, -// the player is added to the game session and a new PlayerSession object is -// returned. +// To create a player session, specify a game session ID, player ID, and optionally +// a string of player data. If successful, the player is added to the game session +// and a new PlayerSession object is returned. Player sessions cannot be updated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -606,15 +704,15 @@ func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) // CreatePlayerSessions API operation for Amazon GameLift. // -// Adds a group of players to a game session. Similar to CreatePlayerSession, -// this action allows you to add multiple players in a single call, which is -// useful for games that provide party and/or matchmaking features. A game session -// must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have -// an open player slot before players can be added to the session. +// Adds a group of players to a game session. This action is useful with a team +// matching feature. Before players can be added, a game session must have an +// ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player +// slot. To add a single player to a game session, use CreatePlayerSession. // -// To create player sessions, specify a game session ID and a list of player -// IDs. If successful, the players are added to the game session and a set of -// new PlayerSession objects is returned. +// To create player sessions, specify a game session ID, a list of player IDs, +// and optionally a set of player data strings. If successful, the players are +// added to the game session and a set of new PlayerSession objects is returned. +// Player sessions cannot be updated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -710,9 +808,9 @@ func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Req // DeleteAlias API operation for Amazon GameLift. // -// Deletes an alias. This action removes all record of the alias; game clients -// attempting to access a server process using the deleted alias receive an -// error. To delete an alias, specify the alias ID to be deleted. +// Deletes a fleet alias. This action removes all record of the alias. Game +// clients attempting to access a server process using the deleted alias receive +// an error. To delete an alias, specify the alias ID to be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -919,6 +1017,86 @@ func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, err return out, err } +const opDeleteGameSessionQueue = "DeleteGameSessionQueue" + +// DeleteGameSessionQueueRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGameSessionQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteGameSessionQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteGameSessionQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteGameSessionQueueRequest method. +// req, resp := client.DeleteGameSessionQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue +func (c *GameLift) DeleteGameSessionQueueRequest(input *DeleteGameSessionQueueInput) (req *request.Request, output *DeleteGameSessionQueueOutput) { + op := &request.Operation{ + Name: opDeleteGameSessionQueue, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteGameSessionQueueInput{} + } + + output = &DeleteGameSessionQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGameSessionQueue API operation for Amazon GameLift. +// +// Deletes a game session queue. This action means that any StartGameSessionPlacement +// requests that reference this queue will fail. To delete a queue, specify +// the queue name. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DeleteGameSessionQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue +func (c *GameLift) DeleteGameSessionQueue(input *DeleteGameSessionQueueInput) (*DeleteGameSessionQueueOutput, error) { + req, out := c.DeleteGameSessionQueueRequest(input) + err := req.Send() + return out, err +} + const opDeleteScalingPolicy = "DeleteScalingPolicy" // DeleteScalingPolicyRequest generates a "aws/request.Request" representing the @@ -1046,8 +1224,12 @@ func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request // DescribeAlias API operation for Amazon GameLift. // -// Retrieves properties for a specified alias. To get the alias, specify an -// alias ID. If successful, an Alias object is returned. +// Retrieves properties for a fleet alias. This operation returns all alias +// metadata and settings. To get just the fleet ID an alias is currently pointing +// to, use ResolveAlias. +// +// To get alias properties, specify the alias ID. If successful, an Alias object +// is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1210,9 +1392,9 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi // // * current usage level for the AWS account // -// Service limits vary depending on region. Available regions for GameLift can -// be found in the AWS Management Console for GameLift (see the drop-down list -// in the upper right corner). +// Service limits vary depending on region. Available regions for Amazon GameLift +// can be found in the AWS Management Console for Amazon GameLift (see the drop-down +// list in the upper right corner). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1764,6 +1946,168 @@ func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsI return out, err } +const opDescribeGameSessionPlacement = "DescribeGameSessionPlacement" + +// DescribeGameSessionPlacementRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGameSessionPlacement operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeGameSessionPlacement for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeGameSessionPlacement method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeGameSessionPlacementRequest method. +// req, resp := client.DescribeGameSessionPlacementRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacement +func (c *GameLift) DescribeGameSessionPlacementRequest(input *DescribeGameSessionPlacementInput) (req *request.Request, output *DescribeGameSessionPlacementOutput) { + op := &request.Operation{ + Name: opDescribeGameSessionPlacement, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeGameSessionPlacementInput{} + } + + output = &DescribeGameSessionPlacementOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeGameSessionPlacement API operation for Amazon GameLift. +// +// Retrieves properties and current status of a game session placement request. +// To get game session placement details, specify the placement ID. If successful, +// a GameSessionPlacement object is returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeGameSessionPlacement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacement +func (c *GameLift) DescribeGameSessionPlacement(input *DescribeGameSessionPlacementInput) (*DescribeGameSessionPlacementOutput, error) { + req, out := c.DescribeGameSessionPlacementRequest(input) + err := req.Send() + return out, err +} + +const opDescribeGameSessionQueues = "DescribeGameSessionQueues" + +// DescribeGameSessionQueuesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGameSessionQueues operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeGameSessionQueues for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeGameSessionQueues method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeGameSessionQueuesRequest method. +// req, resp := client.DescribeGameSessionQueuesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueues +func (c *GameLift) DescribeGameSessionQueuesRequest(input *DescribeGameSessionQueuesInput) (req *request.Request, output *DescribeGameSessionQueuesOutput) { + op := &request.Operation{ + Name: opDescribeGameSessionQueues, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeGameSessionQueuesInput{} + } + + output = &DescribeGameSessionQueuesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeGameSessionQueues API operation for Amazon GameLift. +// +// Retrieves the properties for one or more game session queues. When requesting +// multiple queues, use the pagination parameters to retrieve results as a set +// of sequential pages. If successful, a GameSessionQueue object is returned +// for each requested queue. When specifying a list of queues, objects are returned +// only for queues that currently exist in the region. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeGameSessionQueues for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueues +func (c *GameLift) DescribeGameSessionQueues(input *DescribeGameSessionQueuesInput) (*DescribeGameSessionQueuesOutput, error) { + req, out := c.DescribeGameSessionQueuesRequest(input) + err := req.Send() + return out, err +} + const opDescribeGameSessions = "DescribeGameSessions" // DescribeGameSessionsRequest generates a "aws/request.Request" representing the @@ -1809,18 +2153,15 @@ func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) // DescribeGameSessions API operation for Amazon GameLift. // -// Retrieves a set of one or more game sessions and properties. This action -// can be used in several ways: (1) provide a GameSessionId to request properties -// for a specific game session; (2) provide a FleetId or an AliasId to request -// properties for all game sessions running on a fleet. You can also use SearchGameSessions, -// which allows you to retrieve all game sessions or filter on certain criteria, -// but only returns game sessions with a status of ACTIVE. If you need to retrieve -// the protection policy for each game session, use DescribeGameSessionDetails. +// Retrieves a set of one or more game sessions. Request a specific game session +// or request all game sessions on a fleet. Alternatively, use SearchGameSessions +// to request a set of active game sessions that are filtered by certain criteria. +// To retrieve protection policy settings for game sessions, use DescribeGameSessionDetails. // -// To get game session record(s), specify just one of the following: game session -// ID, fleet ID, or alias ID. You can filter this request by game session status. -// Use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, a GameSession object is returned for each session matching +// To get game sessions, specify one of the following: game session ID, fleet +// ID, or alias ID. You can filter this request by game session status. Use +// the pagination parameters to retrieve results as a set of sequential pages. +// If successful, a GameSession object is returned for each game session matching // the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2081,8 +2422,8 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon // DescribeRuntimeConfiguration API operation for Amazon GameLift. // // Retrieves the current runtime configuration for the specified fleet. The -// runtime configuration tells GameLift how to launch server processes on instances -// in the fleet. +// runtime configuration tells Amazon GameLift how to launch server processes +// on instances in the fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2331,14 +2672,14 @@ func (c *GameLift) GetInstanceAccessRequest(input *GetInstanceAccessInput) (req // gathering benchmarking data, or watching activity in real time. // // Access requires credentials that match the operating system of the instance. -// For a Windows instance, GameLift returns a username and password as strings -// for use with a Windows Remote Desktop client. For a Linux instance, GameLift -// returns a username and RSA private key, also as strings, for use with an -// SSH client. The private key must be saved in the proper format to a .pem -// file before using. If you're making this request using the AWS CLI, saving -// the secret can be handled as part of the GetInstanceAccess request (see the -// example later in this topic). For more information on remote access, see -// Remotely Accessing an Instance (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-remote-access.html). +// For a Windows instance, Amazon GameLift returns a user name and password +// as strings for use with a Windows Remote Desktop client. For a Linux instance, +// Amazon GameLift returns a user name and RSA private key, also as strings, +// for use with an SSH client. The private key must be saved in the proper format +// to a .pem file before using. If you're making this request using the AWS +// CLI, saving the secret can be handled as part of the GetInstanceAccess request. +// (See the example later in this topic). For more information on remote access, +// see Remotely Accessing an Instance (http://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html). // // To request access to a specific instance, specify the IDs of the instance // and the fleet it belongs to. If successful, an InstanceAccess object is returned @@ -2758,19 +3099,9 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia // RequestUploadCredentials API operation for Amazon GameLift. // -// Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage -// location for a specific build. Valid credentials are required to upload your -// game build files to Amazon S3. -// -// Call this action only if you need credentials for a build created withCreateBuild. -// This is a rare situation; in most cases, builds are created using the CLI -// command upload-build, which creates a build record and also uploads build -// files. -// -// Upload credentials are returned when you create the build, but they have -// a limited lifespan. You can get fresh credentials and use them to re-upload -// game files until the status of that build changes to READY. Once this happens, -// you must create a brand new build. +// This API call is not currently in use. Retrieves a fresh set of upload credentials +// and the assigned Amazon S3 storage location for a specific build. Valid credentials +// are required to upload your game build files to Amazon S3. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3017,36 +3348,224 @@ func (c *GameLift) SearchGameSessions(input *SearchGameSessionsInput) (*SearchGa return out, err } -const opUpdateAlias = "UpdateAlias" +const opStartGameSessionPlacement = "StartGameSessionPlacement" -// UpdateAliasRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAlias operation. The "output" return +// StartGameSessionPlacementRequest generates a "aws/request.Request" representing the +// client's request for the StartGameSessionPlacement operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateAlias for usage and error information. +// See StartGameSessionPlacement for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateAlias method directly +// you just want the service response, call the StartGameSessionPlacement method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateAliasRequest method. -// req, resp := client.UpdateAliasRequest(params) +// // Example sending a request using the StartGameSessionPlacementRequest method. +// req, resp := client.StartGameSessionPlacementRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAlias -func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacement +func (c *GameLift) StartGameSessionPlacementRequest(input *StartGameSessionPlacementInput) (req *request.Request, output *StartGameSessionPlacementOutput) { op := &request.Operation{ - Name: opUpdateAlias, + Name: opStartGameSessionPlacement, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartGameSessionPlacementInput{} + } + + output = &StartGameSessionPlacementOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartGameSessionPlacement API operation for Amazon GameLift. +// +// Places a request for a new game session in a queue (see CreateGameSessionQueue). +// When processing a placement request, Amazon GameLift attempts to create a +// new game session on one of the fleets associated with the queue. If no resources +// are available, Amazon GameLift tries again with another and so on until resources +// are found or the placement request times out. A game session placement request +// can also request player sessions. When a new game session is successfully +// created, Amazon GameLift creates a player session for each player included +// in the request. +// +// When placing a game session, by default Amazon GameLift tries each fleet +// in the order they are listed in the queue configuration. Ideally, a queue's +// destinations are listed in preference order. Alternatively, when requesting +// a game session with players, you can also provide latency data for each player +// in relevant regions. Latency data indicates the performance lag a player +// experiences when connected to a fleet in the region. Amazon GameLift uses +// latency data to reorder the list of destinations to place the game session +// in a region with minimal lag. If latency data is provided for multiple players, +// Amazon GameLift calculates each region's average lag for all players and +// reorders to get the best game play across all players. +// +// To place a new game session request, specify the queue name and a set of +// game session properties and settings. Also provide a unique ID (such as a +// UUID) for the placement. You'll use this ID to track the status of the placement +// request. Optionally, provide a set of IDs and player data for each player +// you want to join to the new game session. To optimize game play for the players, +// also provide latency data for all players. If successful, a new game session +// placement is created. To track the status of a placement request, call DescribeGameSessionPlacement +// and check the request's status. If the status is Fulfilled, a new game session +// has been created and a game session ARN and region are referenced. If the +// placement request times out, you have the option of resubmitting the request +// or retrying it with a different queue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation StartGameSessionPlacement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacement +func (c *GameLift) StartGameSessionPlacement(input *StartGameSessionPlacementInput) (*StartGameSessionPlacementOutput, error) { + req, out := c.StartGameSessionPlacementRequest(input) + err := req.Send() + return out, err +} + +const opStopGameSessionPlacement = "StopGameSessionPlacement" + +// StopGameSessionPlacementRequest generates a "aws/request.Request" representing the +// client's request for the StopGameSessionPlacement operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopGameSessionPlacement for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopGameSessionPlacement method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopGameSessionPlacementRequest method. +// req, resp := client.StopGameSessionPlacementRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacement +func (c *GameLift) StopGameSessionPlacementRequest(input *StopGameSessionPlacementInput) (req *request.Request, output *StopGameSessionPlacementOutput) { + op := &request.Operation{ + Name: opStopGameSessionPlacement, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopGameSessionPlacementInput{} + } + + output = &StopGameSessionPlacementOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopGameSessionPlacement API operation for Amazon GameLift. +// +// Cancels a game session placement that is in Pending status. To stop a placement, +// provide the placement ID values. If successful, the placement is moved to +// Cancelled status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation StopGameSessionPlacement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacement +func (c *GameLift) StopGameSessionPlacement(input *StopGameSessionPlacementInput) (*StopGameSessionPlacementOutput, error) { + req, out := c.StopGameSessionPlacementRequest(input) + err := req.Send() + return out, err +} + +const opUpdateAlias = "UpdateAlias" + +// UpdateAliasRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAlias operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateAlias for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateAlias method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateAliasRequest method. +// req, resp := client.UpdateAliasRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAlias +func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) { + op := &request.Operation{ + Name: opUpdateAlias, HTTPMethod: "POST", HTTPPath: "/", } @@ -3062,7 +3581,7 @@ func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Req // UpdateAlias API operation for Amazon GameLift. // -// Updates properties for an alias. To update properties, specify the alias +// Updates properties for a fleet alias. To update properties, specify the alias // ID to be updated and provide the information to be changed. To reassign an // alias to another fleet, provide an updated routing strategy. If successful, // the updated alias record is returned. @@ -3570,6 +4089,87 @@ func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGame return out, err } +const opUpdateGameSessionQueue = "UpdateGameSessionQueue" + +// UpdateGameSessionQueueRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGameSessionQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateGameSessionQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateGameSessionQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateGameSessionQueueRequest method. +// req, resp := client.UpdateGameSessionQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueue +func (c *GameLift) UpdateGameSessionQueueRequest(input *UpdateGameSessionQueueInput) (req *request.Request, output *UpdateGameSessionQueueOutput) { + op := &request.Operation{ + Name: opUpdateGameSessionQueue, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateGameSessionQueueInput{} + } + + output = &UpdateGameSessionQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGameSessionQueue API operation for Amazon GameLift. +// +// Updates settings for a game session queue, which determines how new game +// session requests in the queue are processed. To update settings, specify +// the queue name to be updated and provide the new settings. When updating +// destinations, provide a complete list of destinations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateGameSessionQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueue +func (c *GameLift) UpdateGameSessionQueue(input *UpdateGameSessionQueueInput) (*UpdateGameSessionQueueOutput, error) { + req, out := c.UpdateGameSessionQueueRequest(input) + err := req.Send() + return out, err +} + const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration" // UpdateRuntimeConfigurationRequest generates a "aws/request.Request" representing the @@ -3616,20 +4216,21 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu // UpdateRuntimeConfiguration API operation for Amazon GameLift. // // Updates the current runtime configuration for the specified fleet, which -// tells GameLift how to launch server processes on instances in the fleet. -// You can update a fleet's runtime configuration at any time after the fleet -// is created; it does not need to be in an ACTIVE status. +// tells Amazon GameLift how to launch server processes on instances in the +// fleet. You can update a fleet's runtime configuration at any time after the +// fleet is created; it does not need to be in an ACTIVE status. // // To update runtime configuration, specify the fleet ID and provide a RuntimeConfiguration // object with the updated collection of server process configurations. // -// Each instance in a GameLift fleet checks regularly for an updated runtime -// configuration and changes how it launches server processes to comply with -// the latest version. Existing server processes are not affected by the update; -// they continue to run until they end, while GameLift simply adds new server -// processes to fit the current runtime configuration. As a result, the runtime -// configuration changes are applied gradually as existing processes shut down -// and new processes are launched in GameLift's normal process recycling activity. +// Each instance in a Amazon GameLift fleet checks regularly for an updated +// runtime configuration and changes how it launches server processes to comply +// with the latest version. Existing server processes are not affected by the +// update; they continue to run until they end, while Amazon GameLift simply +// adds new server processes to fit the current runtime configuration. As a +// result, the runtime configuration changes are applied gradually as existing +// processes shut down and new processes are launched in Amazon GameLift's normal +// process recycling activity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3668,29 +4269,44 @@ func (c *GameLift) UpdateRuntimeConfiguration(input *UpdateRuntimeConfigurationI } // Properties describing a fleet alias. +// +// Alias-related operations include: +// +// * CreateAlias +// +// * ListAliases +// +// * DescribeAlias +// +// * UpdateAlias +// +// * DeleteAlias // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/Alias type Alias struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. + // Unique identifier for an alias; alias ARNs are unique across all regions. + AliasArn *string `min:"1" type:"string"` + + // Unique identifier for an alias; alias IDs are unique within a region. AliasId *string `type:"string"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Human-readable description of an alias. Description *string `type:"string"` // Time stamp indicating when this data object was last modified. Format is - // a number expressed in Unix time as milliseconds (ex: "1469498468.057"). + // a number expressed in Unix time as milliseconds (for example "1469498468.057"). LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Routing configuration for a fleet alias. + // Alias configuration for the alias, including routing type and settings. RoutingStrategy *RoutingStrategy `type:"structure"` } @@ -3704,6 +4320,12 @@ func (s Alias) GoString() string { return s.String() } +// SetAliasArn sets the AliasArn field's value. +func (s *Alias) SetAliasArn(v string) *Alias { + s.AliasArn = &v + return s +} + // SetAliasId sets the AliasId field's value. func (s *Alias) SetAliasId(v string) *Alias { s.AliasId = &v @@ -3740,10 +4362,9 @@ func (s *Alias) SetRoutingStrategy(v *RoutingStrategy) *Alias { return s } -// AWS access credentials required to upload game build files to Amazon GameLift. -// These credentials are generated with CreateBuild, and are valid for a limited -// time. If they expire before you upload your game build, get a new set by -// calling RequestUploadCredentials. +// AWS access credentials sometimes used for uploading game build files to Amazon +// GameLift. They are valid for a limited time. If they expire before you upload +// your game build, get a new set by calling RequestUploadCredentials. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/AwsCredentials type AwsCredentials struct { _ struct{} `type:"structure"` @@ -3787,6 +4408,18 @@ func (s *AwsCredentials) SetSessionToken(v string) *AwsCredentials { } // Properties describing a game build. +// +// Build-related operations include: +// +// * CreateBuild +// +// * ListBuilds +// +// * DescribeBuild +// +// * UpdateBuild +// +// * DeleteBuild // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/Build type Build struct { _ struct{} `type:"structure"` @@ -3795,11 +4428,11 @@ type Build struct { BuildId *string `type:"string"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Descriptive label associated with a build. Build names do not need to be - // unique. It can be set using CreateBuild or UpdateBuild. + // Descriptive label that is associated with a build. Build names do not need + // to be unique. It can be set using CreateBuild or UpdateBuild. Name *string `type:"string"` // Operating system that the game server binaries are built to run on. This @@ -3825,8 +4458,8 @@ type Build struct { // for this build. Status *string `type:"string" enum:"BuildStatus"` - // Version associated with this build. Version strings do not need to be unique - // to a build. This value can be set using CreateBuild or UpdateBuild. + // Version that is associated with this build. Version strings do not need to + // be unique. This value can be set using CreateBuild or UpdateBuild. Version *string `type:"string"` } @@ -3890,13 +4523,13 @@ type CreateAliasInput struct { // Human-readable description of an alias. Description *string `min:"1" type:"string"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // Object specifying the fleet and routing type to use for the alias. + // Object that specifies the fleet and routing type to use for the alias. // // RoutingStrategy is a required field RoutingStrategy *RoutingStrategy `type:"structure" required:"true"` @@ -3957,7 +4590,7 @@ func (s *CreateAliasInput) SetRoutingStrategy(v *RoutingStrategy) *CreateAliasIn type CreateAliasOutput struct { _ struct{} `type:"structure"` - // Object containing the newly created alias record. + // Object that describes the newly created alias record. Alias *Alias `type:"structure"` } @@ -3982,22 +4615,26 @@ func (s *CreateAliasOutput) SetAlias(v *Alias) *CreateAliasOutput { type CreateBuildInput struct { _ struct{} `type:"structure"` - // Descriptive label associated with a build. Build names do not need to be - // unique. A build name can be changed later usingUpdateBuild. + // Descriptive label that is associated with a build. Build names do not need + // to be unique. You can use UpdateBuild to change this value later. Name *string `min:"1" type:"string"` // Operating system that the game server binaries are built to run on. This // value determines the type of fleet resources that you can use for this build. + // If your game build contains multiple executables, they all must run on the + // same operating system. OperatingSystem *string `type:"string" enum:"OperatingSystem"` - // Location in Amazon Simple Storage Service (Amazon S3) where a build's files - // are stored. This location is assigned in response to a CreateBuild call, - // and is always in the same region as the service used to create the build. - // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/). + // Amazon S3 location of the game build files to be uploaded. The S3 bucket + // must be owned by the same AWS account that you're using to manage Amazon + // GameLift. It also must in the same region that you want to create a new build + // in. Before calling CreateBuild with this location, you must allow Amazon + // GameLift to access your Amazon S3 bucket (see Create a Build with Files in + // Amazon S3 (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build)). StorageLocation *S3Location `type:"structure"` - // Version associated with this build. Version strings do not need to be unique - // to a build. A build version can be changed later usingUpdateBuild. + // Version that is associated with this build. Version strings do not need to + // be unique. You can use UpdateBuild to change this value later. Version *string `min:"1" type:"string"` } @@ -4061,15 +4698,13 @@ func (s *CreateBuildInput) SetVersion(v string) *CreateBuildInput { type CreateBuildOutput struct { _ struct{} `type:"structure"` - // Set of properties for the newly created build. + // The newly created build record, including a unique build ID and status. Build *Build `type:"structure"` - // Amazon S3 path and key, identifying where the game build files are stored. + // Amazon S3 location specified in the request. StorageLocation *S3Location `type:"structure"` - // AWS credentials required when uploading a game build to the storage location. - // These credentials have a limited lifespan and are valid only for the build - // they were issued for. If you need to get fresh credentials, callRequestUploadCredentials. + // This element is not currently in use. UploadCredentials *AwsCredentials `type:"structure"` } @@ -4106,9 +4741,9 @@ func (s *CreateBuildOutput) SetUploadCredentials(v *AwsCredentials) *CreateBuild type CreateFleetInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build to be deployed on the new fleet. The build - // must have been successfully uploaded to GameLift and be in a READY status. - // This fleet setting cannot be changed once the fleet is created. + // Unique identifier for a build to be deployed on the new fleet. The build + // must have been successfully uploaded to Amazon GameLift and be in a READY + // status. This fleet setting cannot be changed once the fleet is created. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -4125,24 +4760,21 @@ type CreateFleetInput struct { // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. // // EC2InstanceType is a required field EC2InstanceType *string `type:"string" required:"true" enum:"EC2InstanceType"` - // Location of default log files. When a server process is shut down, Amazon - // GameLift captures and stores any log files in this location. These logs are - // in addition to game session logs; see more on game session logs in the Amazon - // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code). - // If no default log path for a fleet is specified, GameLift will automatically - // upload logs stored on each instance at C:\game\logs (for Windows) or /local/game/logs - // (for Linux). Use the GameLift console to access stored logs. + // This parameter is no longer used. Instead, to specify where Amazon GameLift + // should store log files once a server process shuts down, use the Amazon GameLift + // server API ProcessReady() and specify one or more directory paths in logParameters. + // See more information in the Server API Reference (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api-ref.html#gamelift-sdk-server-api-ref-dataypes-process). LogPaths []*string `type:"list"` - // Descriptive label associated with a fleet. Fleet names do not need to be - // unique. + // Descriptive label that is associated with a fleet. Fleet names do not need + // to be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -4342,30 +4974,28 @@ func (s *CreateFleetOutput) SetFleetAttributes(v *FleetAttributes) *CreateFleetO type CreateGameSessionInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Each request must reference either a - // fleet ID or alias ID, but not both. + // Unique identifier for an alias associated with the fleet to create a game + // session in. Each request must reference either a fleet ID or alias ID, but + // not both. AliasId *string `type:"string"` - // Player ID identifying the person or entity creating the game session. This - // ID is used to enforce a resource protection policy (if one exists) that limits - // the number of concurrent active game sessions one player can have. + // $player-id; or entity creating the game session. This ID is used to enforce + // a resource protection policy (if one exists) that limits the number of concurrent + // active game sessions one player can have. CreatorId *string `min:"1" type:"string"` - // Unique identifier for a fleet. Each request must reference either a fleet - // ID or alias ID, but not both. + // Unique identifier for a fleet to create a game session in. Each request must + // reference either a fleet ID or alias ID, but not both. FleetId *string `type:"string"` - // Set of properties used to administer a game session. These properties are - // passed to the server process hosting it. + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. GameProperties []*GameProperty `type:"list"` // Custom string to include in the game session ID, with a maximum length of - // 48 characters. If this parameter is set, GameLift creates a game session - // ID in the following format: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet - // ID>/<custom ID string>". For example, this full game session ID: "arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session" - // includes the custom ID string "my-game-session". If this parameter is not - // set, GameLift creates a game session ID in the same format with an autogenerated - // ID string. + // 48 characters. A game session ID has the following format: "arn:aws:gamelift:<region>::gamesession/<fleet + // ID>/<game session ID>". If provided, the custom string is used for the game + // session ID string. This value cannot be updated once a game session is created. GameSessionId *string `min:"1" type:"string"` // Maximum number of players that can be connected simultaneously to the game @@ -4374,8 +5004,8 @@ type CreateGameSessionInput struct { // MaximumPlayerSessionCount is a required field MaximumPlayerSessionCount *int64 `type:"integer" required:"true"` - // Descriptive label associated with a game session. Session names do not need - // to be unique. + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. Name *string `min:"1" type:"string"` } @@ -4468,7 +5098,7 @@ func (s *CreateGameSessionInput) SetName(v string) *CreateGameSessionInput { type CreateGameSessionOutput struct { _ struct{} `type:"structure"` - // Object containing the newly created game session record. + // Object that describes the newly created game session record. GameSession *GameSession `type:"structure"` } @@ -4488,20 +5118,120 @@ func (s *CreateGameSessionOutput) SetGameSession(v *GameSession) *CreateGameSess return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueueInput +type CreateGameSessionQueueInput struct { + _ struct{} `type:"structure"` + + // List of fleets that can be used to fulfill game session placement requests + // in the queue. Fleets are identified by either a fleet ARN or a fleet alias + // ARN. Destinations are listed in default preference order. + Destinations []*GameSessionQueueDestination `type:"list"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Maximum time, in seconds, that a new game session placement request remains + // in the queue. When a request exceeds this time, the game session placement + // changes to a TIMED_OUT status. + TimeoutInSeconds *int64 `type:"integer"` +} + +// String returns the string representation +func (s CreateGameSessionQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGameSessionQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGameSessionQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGameSessionQueueInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Destinations != nil { + for i, v := range s.Destinations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinations sets the Destinations field's value. +func (s *CreateGameSessionQueueInput) SetDestinations(v []*GameSessionQueueDestination) *CreateGameSessionQueueInput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateGameSessionQueueInput) SetName(v string) *CreateGameSessionQueueInput { + s.Name = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *CreateGameSessionQueueInput) SetTimeoutInSeconds(v int64) *CreateGameSessionQueueInput { + s.TimeoutInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueueOutput +type CreateGameSessionQueueOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the newly created game session queue. + GameSessionQueue *GameSessionQueue `type:"structure"` +} + +// String returns the string representation +func (s CreateGameSessionQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGameSessionQueueOutput) GoString() string { + return s.String() +} + +// SetGameSessionQueue sets the GameSessionQueue field's value. +func (s *CreateGameSessionQueueOutput) SetGameSessionQueue(v *GameSessionQueue) *CreateGameSessionQueueOutput { + s.GameSessionQueue = v + return s +} + // Represents the input for a request action. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessionInput type CreatePlayerSessionInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to add a player to. Game session ID - // format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet - // ID>/<ID string>". The value of <ID string> is either a custom ID string (if - // one was specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to add a player to. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` - // Unique identifier for the player to be added. + // Developer-defined information related to a player. Amazon GameLift does not + // use this data, so it can be formatted as needed for use in the game. + PlayerData *string `min:"1" type:"string"` + + // Unique identifier for a player. Player IDs are developer-defined. // // PlayerId is a required field PlayerId *string `min:"1" type:"string" required:"true"` @@ -4526,6 +5256,9 @@ func (s *CreatePlayerSessionInput) Validate() error { if s.GameSessionId != nil && len(*s.GameSessionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1)) } + if s.PlayerData != nil && len(*s.PlayerData) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerData", 1)) + } if s.PlayerId == nil { invalidParams.Add(request.NewErrParamRequired("PlayerId")) } @@ -4545,6 +5278,12 @@ func (s *CreatePlayerSessionInput) SetGameSessionId(v string) *CreatePlayerSessi return s } +// SetPlayerData sets the PlayerData field's value. +func (s *CreatePlayerSessionInput) SetPlayerData(v string) *CreatePlayerSessionInput { + s.PlayerData = &v + return s +} + // SetPlayerId sets the PlayerId field's value. func (s *CreatePlayerSessionInput) SetPlayerId(v string) *CreatePlayerSessionInput { s.PlayerId = &v @@ -4556,7 +5295,7 @@ func (s *CreatePlayerSessionInput) SetPlayerId(v string) *CreatePlayerSessionInp type CreatePlayerSessionOutput struct { _ struct{} `type:"structure"` - // Object containing the newly created player session record. + // Object that describes the newly created player session record. PlayerSession *PlayerSession `type:"structure"` } @@ -4581,14 +5320,17 @@ func (s *CreatePlayerSessionOutput) SetPlayerSession(v *PlayerSession) *CreatePl type CreatePlayerSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to add players to. Game session ID - // format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet - // ID>/<ID string>". The value of <ID string> is either a custom ID string (if - // one was specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to add players to. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` + // Map of string pairs, each specifying a player ID and a set of developer-defined + // information related to the player. Amazon GameLift does not use this data, + // so it can be formatted as needed for use in the game. Player data strings + // for player IDs not included in the PlayerIds parameter are ignored. + PlayerDataMap map[string]*string `type:"map"` + // List of unique identifiers for the players to be added. // // PlayerIds is a required field @@ -4633,6 +5375,12 @@ func (s *CreatePlayerSessionsInput) SetGameSessionId(v string) *CreatePlayerSess return s } +// SetPlayerDataMap sets the PlayerDataMap field's value. +func (s *CreatePlayerSessionsInput) SetPlayerDataMap(v map[string]*string) *CreatePlayerSessionsInput { + s.PlayerDataMap = v + return s +} + // SetPlayerIds sets the PlayerIds field's value. func (s *CreatePlayerSessionsInput) SetPlayerIds(v []*string) *CreatePlayerSessionsInput { s.PlayerIds = v @@ -4724,7 +5472,7 @@ func (s DeleteAliasOutput) GoString() string { type DeleteBuildInput struct { _ struct{} `type:"structure"` - // Unique identifier for the build you want to delete. + // Unique identifier for a build to delete. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -4779,7 +5527,7 @@ func (s DeleteBuildOutput) GoString() string { type DeleteFleetInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet you want to delete. + // Unique identifier for a fleet to be deleted. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -4829,18 +5577,76 @@ func (s DeleteFleetOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueueInput +type DeleteGameSessionQueueInput struct { + _ struct{} `type:"structure"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGameSessionQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGameSessionQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGameSessionQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGameSessionQueueInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteGameSessionQueueInput) SetName(v string) *DeleteGameSessionQueueInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueueOutput +type DeleteGameSessionQueueOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteGameSessionQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGameSessionQueueOutput) GoString() string { + return s.String() +} + // Represents the input for a request action. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteScalingPolicyInput type DeleteScalingPolicyInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. + // Unique identifier for a fleet to be deleted. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -4947,7 +5753,7 @@ func (s *DescribeAliasInput) SetAliasId(v string) *DescribeAliasInput { type DescribeAliasOutput struct { _ struct{} `type:"structure"` - // Object containing the requested alias. + // Object that contains the requested alias. Alias *Alias `type:"structure"` } @@ -4972,7 +5778,7 @@ func (s *DescribeAliasOutput) SetAlias(v *Alias) *DescribeAliasOutput { type DescribeBuildInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build that you want to retrieve properties for. + // Unique identifier for a build to retrieve properties for. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -5039,7 +5845,7 @@ type DescribeEC2InstanceLimitsInput struct { // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. Leave // this parameter blank to retrieve limits for all types. @@ -5067,7 +5873,7 @@ func (s *DescribeEC2InstanceLimitsInput) SetEC2InstanceType(v string) *DescribeE type DescribeEC2InstanceLimitsOutput struct { _ struct{} `type:"structure"` - // Object containing the maximum number of instances for the specified instance + // Object that contains the maximum number of instances for the specified instance // type. EC2InstanceLimits []*EC2InstanceLimit `type:"list"` } @@ -5093,8 +5899,8 @@ func (s *DescribeEC2InstanceLimitsOutput) SetEC2InstanceLimits(v []*EC2InstanceL type DescribeFleetAttributesInput struct { _ struct{} `type:"structure"` - // Unique identifiers for the fleet(s) that you want to retrieve attributes - // for. To request attributes for all fleets, leave this parameter empty. + // Unique identifier for a fleet(s) to retrieve attributes for. To request attributes + // for all fleets, leave this parameter empty. FleetIds []*string `min:"1" type:"list"` // Maximum number of results to return. Use this parameter with NextToken to @@ -5102,9 +5908,9 @@ type DescribeFleetAttributesInput struct { // the request specifies one or a list of fleet IDs. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. This parameter is ignored // when the request specifies one or a list of fleet IDs. NextToken *string `min:"1" type:"string"` } @@ -5165,8 +5971,9 @@ type DescribeFleetAttributesOutput struct { // ID. FleetAttributes []*FleetAttributes `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5197,9 +6004,8 @@ func (s *DescribeFleetAttributesOutput) SetNextToken(v string) *DescribeFleetAtt type DescribeFleetCapacityInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet(s) you want to retrieve capacity information - // for. To request capacity information for all fleets, leave this parameter - // empty. + // Unique identifier for a fleet(s) to retrieve capacity information for. To + // request capacity information for all fleets, leave this parameter empty. FleetIds []*string `min:"1" type:"list"` // Maximum number of results to return. Use this parameter with NextToken to @@ -5207,9 +6013,9 @@ type DescribeFleetCapacityInput struct { // the request specifies one or a list of fleet IDs. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. This parameter is ignored // when the request specifies one or a list of fleet IDs. NextToken *string `min:"1" type:"string"` } @@ -5271,8 +6077,9 @@ type DescribeFleetCapacityOutput struct { // all fleets. FleetCapacity []*FleetCapacity `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5308,7 +6115,7 @@ type DescribeFleetEventsInput struct { // Format is a number expressed in Unix time as milliseconds (ex: "1469498468.057"). EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Unique identifier for the fleet to get event logs for. + // Unique identifier for a fleet to get event logs for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -5317,9 +6124,9 @@ type DescribeFleetEventsInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Earliest date to retrieve event logs for. If no start time is specified, @@ -5396,8 +6203,9 @@ type DescribeFleetEventsOutput struct { // Collection of objects containing event log entries for the specified fleet. Events []*Event `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5428,7 +6236,7 @@ func (s *DescribeFleetEventsOutput) SetNextToken(v string) *DescribeFleetEventsO type DescribeFleetPortSettingsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet you want to retrieve port settings for. + // Unique identifier for a fleet to retrieve port settings for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -5468,7 +6276,7 @@ func (s *DescribeFleetPortSettingsInput) SetFleetId(v string) *DescribeFleetPort type DescribeFleetPortSettingsOutput struct { _ struct{} `type:"structure"` - // Object containing port settings for the requested fleet ID. + // Object that contains port settings for the requested fleet ID. InboundPermissions []*IpPermission `type:"list"` } @@ -5493,8 +6301,8 @@ func (s *DescribeFleetPortSettingsOutput) SetInboundPermissions(v []*IpPermissio type DescribeFleetUtilizationInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet(s) you want to retrieve utilization data - // for. To request utilization data for all fleets, leave this parameter empty. + // Unique identifier for a fleet(s) to retrieve utilization data for. To request + // utilization data for all fleets, leave this parameter empty. FleetIds []*string `min:"1" type:"list"` // Maximum number of results to return. Use this parameter with NextToken to @@ -5502,9 +6310,9 @@ type DescribeFleetUtilizationInput struct { // the request specifies one or a list of fleet IDs. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. This parameter is ignored // when the request specifies one or a list of fleet IDs. NextToken *string `min:"1" type:"string"` } @@ -5565,8 +6373,9 @@ type DescribeFleetUtilizationOutput struct { // fleet ID. FleetUtilization []*FleetUtilization `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5597,27 +6406,24 @@ func (s *DescribeFleetUtilizationOutput) SetNextToken(v string) *DescribeFleetUt type DescribeGameSessionDetailsInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Specify an alias to retrieve information - // on all game sessions active on the fleet. + // Unique identifier for an alias associated with the fleet to retrieve all + // game sessions for. AliasId *string `type:"string"` - // Unique identifier for a fleet. Specify a fleet to retrieve information on - // all game sessions active on the fleet. + // Unique identifier for a fleet to retrieve all game sessions active on the + // fleet. FleetId *string `type:"string"` - // Unique identifier for the game session to retrieve information on. Game session - // ID format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet - // ID>/<ID string>". The value of <ID string> is either a custom ID string (if - // one was specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to retrieve. GameSessionId *string `min:"1" type:"string"` // Maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Game session status to filter results on. Possible game session statuses @@ -5670,62 +6476,226 @@ func (s *DescribeGameSessionDetailsInput) SetFleetId(v string) *DescribeGameSess return s } -// SetGameSessionId sets the GameSessionId field's value. -func (s *DescribeGameSessionDetailsInput) SetGameSessionId(v string) *DescribeGameSessionDetailsInput { - s.GameSessionId = &v - return s +// SetGameSessionId sets the GameSessionId field's value. +func (s *DescribeGameSessionDetailsInput) SetGameSessionId(v string) *DescribeGameSessionDetailsInput { + s.GameSessionId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeGameSessionDetailsInput) SetLimit(v int64) *DescribeGameSessionDetailsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionDetailsInput) SetNextToken(v string) *DescribeGameSessionDetailsInput { + s.NextToken = &v + return s +} + +// SetStatusFilter sets the StatusFilter field's value. +func (s *DescribeGameSessionDetailsInput) SetStatusFilter(v string) *DescribeGameSessionDetailsInput { + s.StatusFilter = &v + return s +} + +// Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetailsOutput +type DescribeGameSessionDetailsOutput struct { + _ struct{} `type:"structure"` + + // Collection of objects containing game session properties and the protection + // policy currently in force for each session matching the request. + GameSessionDetails []*GameSessionDetail `type:"list"` + + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeGameSessionDetailsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionDetailsOutput) GoString() string { + return s.String() +} + +// SetGameSessionDetails sets the GameSessionDetails field's value. +func (s *DescribeGameSessionDetailsOutput) SetGameSessionDetails(v []*GameSessionDetail) *DescribeGameSessionDetailsOutput { + s.GameSessionDetails = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionDetailsOutput) SetNextToken(v string) *DescribeGameSessionDetailsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacementInput +type DescribeGameSessionPlacementInput struct { + _ struct{} `type:"structure"` + + // Unique identifier for a game session placement to retrieve. + // + // PlacementId is a required field + PlacementId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeGameSessionPlacementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionPlacementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGameSessionPlacementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionPlacementInput"} + if s.PlacementId == nil { + invalidParams.Add(request.NewErrParamRequired("PlacementId")) + } + if s.PlacementId != nil && len(*s.PlacementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlacementId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPlacementId sets the PlacementId field's value. +func (s *DescribeGameSessionPlacementInput) SetPlacementId(v string) *DescribeGameSessionPlacementInput { + s.PlacementId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacementOutput +type DescribeGameSessionPlacementOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the requested game session placement. + GameSessionPlacement *GameSessionPlacement `type:"structure"` +} + +// String returns the string representation +func (s DescribeGameSessionPlacementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionPlacementOutput) GoString() string { + return s.String() +} + +// SetGameSessionPlacement sets the GameSessionPlacement field's value. +func (s *DescribeGameSessionPlacementOutput) SetGameSessionPlacement(v *GameSessionPlacement) *DescribeGameSessionPlacementOutput { + s.GameSessionPlacement = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueuesInput +type DescribeGameSessionQueuesInput struct { + _ struct{} `type:"structure"` + + // Maximum number of results to return. Use this parameter with NextToken to + // get results as a set of sequential pages. + Limit *int64 `min:"1" type:"integer"` + + // List of queue names to retrieve information for. To request settings for + // all queues, leave this parameter empty. + Names []*string `type:"list"` + + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeGameSessionQueuesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionQueuesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGameSessionQueuesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionQueuesInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetLimit sets the Limit field's value. -func (s *DescribeGameSessionDetailsInput) SetLimit(v int64) *DescribeGameSessionDetailsInput { +func (s *DescribeGameSessionQueuesInput) SetLimit(v int64) *DescribeGameSessionQueuesInput { s.Limit = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeGameSessionDetailsInput) SetNextToken(v string) *DescribeGameSessionDetailsInput { - s.NextToken = &v +// SetNames sets the Names field's value. +func (s *DescribeGameSessionQueuesInput) SetNames(v []*string) *DescribeGameSessionQueuesInput { + s.Names = v return s } -// SetStatusFilter sets the StatusFilter field's value. -func (s *DescribeGameSessionDetailsInput) SetStatusFilter(v string) *DescribeGameSessionDetailsInput { - s.StatusFilter = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionQueuesInput) SetNextToken(v string) *DescribeGameSessionQueuesInput { + s.NextToken = &v return s } -// Represents the returned data in response to a request action. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetailsOutput -type DescribeGameSessionDetailsOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueuesOutput +type DescribeGameSessionQueuesOutput struct { _ struct{} `type:"structure"` - // Collection of objects containing game session properties and the protection - // policy currently in force for each session matching the request. - GameSessionDetails []*GameSessionDetail `type:"list"` + // Collection of objects that describes the requested game session queues. + GameSessionQueues []*GameSessionQueue `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DescribeGameSessionDetailsOutput) String() string { +func (s DescribeGameSessionQueuesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeGameSessionDetailsOutput) GoString() string { +func (s DescribeGameSessionQueuesOutput) GoString() string { return s.String() } -// SetGameSessionDetails sets the GameSessionDetails field's value. -func (s *DescribeGameSessionDetailsOutput) SetGameSessionDetails(v []*GameSessionDetail) *DescribeGameSessionDetailsOutput { - s.GameSessionDetails = v +// SetGameSessionQueues sets the GameSessionQueues field's value. +func (s *DescribeGameSessionQueuesOutput) SetGameSessionQueues(v []*GameSessionQueue) *DescribeGameSessionQueuesOutput { + s.GameSessionQueues = v return s } // SetNextToken sets the NextToken field's value. -func (s *DescribeGameSessionDetailsOutput) SetNextToken(v string) *DescribeGameSessionDetailsOutput { +func (s *DescribeGameSessionQueuesOutput) SetNextToken(v string) *DescribeGameSessionQueuesOutput { s.NextToken = &v return s } @@ -5735,27 +6705,23 @@ func (s *DescribeGameSessionDetailsOutput) SetNextToken(v string) *DescribeGameS type DescribeGameSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Specify an alias to retrieve information - // on all game sessions active on the fleet. + // Unique identifier for an alias associated with the fleet to retrieve all + // game sessions for. AliasId *string `type:"string"` - // Unique identifier for a fleet. Specify a fleet to retrieve information on - // all game sessions active on the fleet. + // Unique identifier for a fleet to retrieve all game sessions for. FleetId *string `type:"string"` - // Unique identifier for the game session to retrieve information on. Game session - // ID format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet - // ID>/<ID string>". The value of <ID string> is either a custom ID string (if - // one was specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to retrieve. GameSessionId *string `min:"1" type:"string"` // Maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Game session status to filter results on. Possible game session statuses @@ -5841,8 +6807,9 @@ type DescribeGameSessionsOutput struct { // matching the request. GameSessions []*GameSession `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5873,23 +6840,22 @@ func (s *DescribeGameSessionsOutput) SetNextToken(v string) *DescribeGameSession type DescribeInstancesInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. Specify the fleet to retrieve instance information - // for. + // Unique identifier for a fleet to retrieve instance information for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Unique identifier for an instance. Specify an instance to retrieve information - // for or leave blank to get information on all instances in the fleet. + // Unique identifier for an instance to retrieve. Specify an instance ID or + // leave blank to retrieve all instances in the fleet. InstanceId *string `type:"string"` // Maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` } @@ -5954,8 +6920,9 @@ type DescribeInstancesOutput struct { // Collection of objects containing properties for each instance returned. Instances []*Instance `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5986,10 +6953,7 @@ func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutpu type DescribePlayerSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to get player sessions for. Game session - // ID format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet - // ID>/<ID string>". The value of <ID string> is either a custom ID string (if - // one was specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to retrieve player sessions for. GameSessionId *string `min:"1" type:"string"` // Maximum number of results to return. Use this parameter with NextToken to @@ -5997,16 +6961,16 @@ type DescribePlayerSessionsInput struct { // this parameter is ignored. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. If a player session ID is - // specified, this parameter is ignored. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. If a player session + // ID is specified, this parameter is ignored. NextToken *string `min:"1" type:"string"` - // Unique identifier for a player. + // Unique identifier for a player to retrieve player sessions for. PlayerId *string `min:"1" type:"string"` - // Unique identifier for a player session. + // Unique identifier for a player session to retrieve. PlayerSessionId *string `type:"string"` // Player session status to filter results on. @@ -6102,8 +7066,9 @@ func (s *DescribePlayerSessionsInput) SetPlayerSessionStatusFilter(v string) *De type DescribePlayerSessionsOutput struct { _ struct{} `type:"structure"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` // Collection of objects containing properties for each player session that @@ -6138,7 +7103,7 @@ func (s *DescribePlayerSessionsOutput) SetPlayerSessions(v []*PlayerSession) *De type DescribeRuntimeConfigurationInput struct { _ struct{} `type:"structure"` - // Unique identifier of the fleet to get the runtime configuration for. + // Unique identifier for a fleet to get the runtime configuration for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -6204,8 +7169,7 @@ func (s *DescribeRuntimeConfigurationOutput) SetRuntimeConfiguration(v *RuntimeC type DescribeScalingPoliciesInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. Specify the fleet to retrieve scaling policies - // for. + // Unique identifier for a fleet to retrieve scaling policies for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -6214,9 +7178,9 @@ type DescribeScalingPoliciesInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Scaling policy status to filter results on. A scaling policy is only in force @@ -6297,8 +7261,9 @@ func (s *DescribeScalingPoliciesInput) SetStatusFilter(v string) *DescribeScalin type DescribeScalingPoliciesOutput struct { _ struct{} `type:"structure"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` // Collection of objects containing the scaling policies matching the request. @@ -6327,6 +7292,58 @@ func (s *DescribeScalingPoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) * return s } +// Player information for use when creating player sessions using a game session +// placement request with StartGameSessionPlacement. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DesiredPlayerSession +type DesiredPlayerSession struct { + _ struct{} `type:"structure"` + + // Developer-defined information related to a player. Amazon GameLift does not + // use this data, so it can be formatted as needed for use in the game. + PlayerData *string `min:"1" type:"string"` + + // Unique identifier for a player to associate with the player session. + PlayerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DesiredPlayerSession) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DesiredPlayerSession) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DesiredPlayerSession) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DesiredPlayerSession"} + if s.PlayerData != nil && len(*s.PlayerData) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerData", 1)) + } + if s.PlayerId != nil && len(*s.PlayerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPlayerData sets the PlayerData field's value. +func (s *DesiredPlayerSession) SetPlayerData(v string) *DesiredPlayerSession { + s.PlayerData = &v + return s +} + +// SetPlayerId sets the PlayerId field's value. +func (s *DesiredPlayerSession) SetPlayerId(v string) *DesiredPlayerSession { + s.PlayerId = &v + return s +} + // Current status of fleet capacity. The number of active instances should match // or be in the process of matching the number of desired instances. Pending // and terminating counts are non-zero only if fleet capacity is adjusting to @@ -6424,7 +7441,7 @@ type EC2InstanceLimit struct { // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. EC2InstanceType *string `type:"string" enum:"EC2InstanceType"` @@ -6475,13 +7492,13 @@ type Event struct { EventId *string `min:"1" type:"string"` // Time stamp indicating when this event occurred. Format is a number expressed - // in Unix time as milliseconds (ex: "1469498468.057"). + // in Unix time as milliseconds (for example "1469498468.057"). EventTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Additional information related to the event. Message *string `min:"1" type:"string"` - // Unique identifier for the resource, such as a fleet ID. + // Unique identifier for an event resource, such as a fleet ID. ResourceId *string `min:"1" type:"string"` } @@ -6534,12 +7551,15 @@ type FleetAttributes struct { BuildId *string `type:"string"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Human-readable description of the fleet. Description *string `min:"1" type:"string"` + // Identifier for a fleet that is unique across all regions. + FleetArn *string `min:"1" type:"string"` + // Unique identifier for a fleet. FleetId *string `type:"string"` @@ -6547,14 +7567,14 @@ type FleetAttributes struct { // GameLift captures and stores any log files in this location. These logs are // in addition to game session logs; see more on game session logs in the Amazon // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code). - // If no default log path for a fleet is specified, GameLift will automatically + // If no default log path for a fleet is specified, Amazon GameLift will automatically // upload logs that are stored on each instance at C:\game\logs (for Windows) - // or /local/game/logs (for Linux). Use the GameLift console to access stored - // logs. + // or /local/game/logs (for Linux). Use the Amazon GameLift console to access + // stored logs. LogPaths []*string `type:"list"` - // Descriptive label associated with a fleet. Fleet names do not need to be - // unique. + // Descriptive label that is associated with a fleet. Fleet names do not need + // to be unique. Name *string `min:"1" type:"string"` // Type of game session protection to set for all new instances started in the @@ -6593,8 +7613,8 @@ type FleetAttributes struct { // * NEW – A new fleet has been defined and desired instances is set to 1. // // - // * DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – GameLift is setting up - // the new fleet, creating new instances with the game build and starting + // * DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – Amazon GameLift is setting + // up the new fleet, creating new instances with the game build and starting // server processes. // // * ACTIVE – Hosts can now accept game sessions. @@ -6608,7 +7628,7 @@ type FleetAttributes struct { Status *string `type:"string" enum:"FleetStatus"` // Time stamp indicating when this data object was terminated. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -6640,6 +7660,12 @@ func (s *FleetAttributes) SetDescription(v string) *FleetAttributes { return s } +// SetFleetArn sets the FleetArn field's value. +func (s *FleetAttributes) SetFleetArn(v string) *FleetAttributes { + s.FleetArn = &v + return s +} + // SetFleetId sets the FleetId field's value. func (s *FleetAttributes) SetFleetId(v string) *FleetAttributes { s.FleetId = &v @@ -6716,7 +7742,7 @@ type FleetCapacity struct { // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. InstanceType *string `type:"string" enum:"EC2InstanceType"` @@ -6879,53 +7905,54 @@ type GameSession struct { _ struct{} `type:"structure"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Player ID of the person or entity that created the game session. This ID - // is used to enforce a resource protection policy (if one exists) that limits - // the number of concurrent active game sessions for a single player. + // Unique identifier for a player. This ID is used to enforce a resource protection + // policy (if one exists), that limits the number of game sessions a player + // can create. CreatorId *string `min:"1" type:"string"` // Number of players currently in the game session. CurrentPlayerSessionCount *int64 `type:"integer"` - // Unique identifier for a fleet. + // Unique identifier for a fleet the game session is running on. FleetId *string `type:"string"` - // Set of custom properties for the game session. + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. GameProperties []*GameProperty `type:"list"` - // Unique identifier for a game session. Game session ID format is as follows: - // "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>". The - // value of <ID string> is either a custom ID string (if one was specified when - // the game session was created) an autogenerated string. + // Unique identifier for the game session. A game session ID has the following + // format: "arn:aws:gamelift:<region>::gamesession/<fleet ID>/<game session + // ID>". GameSessionId *string `min:"1" type:"string"` - // IP address of the game session. To connect to a GameLift server process, + // IP address of the game session. To connect to a Amazon GameLift server process, // an app needs both the IP address and port number. IpAddress *string `type:"string"` - // Maximum number of players allowed in the game session. + // Maximum number of players that can be connected simultaneously to the game + // session. MaximumPlayerSessionCount *int64 `type:"integer"` - // Descriptive label associated with a game session. Session names do not need - // to be unique. + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. Name *string `min:"1" type:"string"` // Indicates whether or not the game session is accepting new players. PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"` - // Port number for the game session. To connect to a GameLift server process, - // an app needs both the IP address and port number. + // Port number for the game session. To connect to a Amazon GameLift server + // process, an app needs both the IP address and port number. Port *int64 `min:"1" type:"integer"` - // Current status of the game session. A game session must be in an ACTIVE status + // Current status of the game session. A game session must have an ACTIVE status // to have player sessions. Status *string `type:"string" enum:"GameSessionStatus"` // Time stamp indicating when this data object was terminated. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -7017,12 +8044,12 @@ func (s *GameSession) SetTerminationTime(v time.Time) *GameSession { return s } -// A game session's properties and the protection policy currently in force. +// A game session's properties plus the protection policy currently in force. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionDetail type GameSessionDetail struct { _ struct{} `type:"structure"` - // Properties describing a game session. + // Object that describes a game session. GameSession *GameSession `type:"structure"` // Current status of protection for the game session. @@ -7057,15 +8084,263 @@ func (s *GameSessionDetail) SetProtectionPolicy(v string) *GameSessionDetail { return s } +// Object that describes a StartGameSessionPlacement request. This object includes +// the full details of the original request plus the current status and start/end +// time stamps. +// +// Game session placement-related operations include: +// +// * StartGameSessionPlacement +// +// * DescribeGameSessionPlacement +// +// * StopGameSessionPlacement +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionPlacement +type GameSessionPlacement struct { + _ struct{} `type:"structure"` + + // Time stamp indicating when this request was completed, cancelled, or timed + // out. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. + GameProperties []*GameProperty `type:"list"` + + // Identifier for the game session created by this placement request. This value + // exists only if the game session placement status is Completed. This identifier + // is unique across all regions. + GameSessionArn *string `min:"1" type:"string"` + + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. + GameSessionName *string `min:"1" type:"string"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + GameSessionQueueName *string `min:"1" type:"string"` + + // Name of the region where the game session created by this placement request + // is running. This value exists only if the game session placement status is + // Completed. + GameSessionRegion *string `min:"1" type:"string"` + + // Maximum number of players that can be connected simultaneously to the game + // session. + MaximumPlayerSessionCount *int64 `type:"integer"` + + // Unique identifier for a game session placement. + PlacementId *string `min:"1" type:"string"` + + // Set of values, expressed in milliseconds, indicating the amount of latency + // that players experience when connected to AWS regions. + PlayerLatencies []*PlayerLatency `type:"list"` + + // Time stamp indicating when this request was placed in the queue. Format is + // a number expressed in Unix time as milliseconds (for example "1469498468.057"). + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Current status of the game session placement request. + // + // * PENDING – The placement request is currently in the queue waiting to + // be processed. + // + // * FULFILLED – A new game session and player sessions (if requested) have + // been successfully created. Values for GameSessionArn and GameSessionRegion + // are available. + // + // * CANCELLED – The placement request was cancelled with a call to StopGameSessionPlacement. + // + // * TIMED_OUT – A new game session was not successfully created before the + // time limit expired. You can resubmit the placement request as needed. + Status *string `type:"string" enum:"GameSessionPlacementState"` +} + +// String returns the string representation +func (s GameSessionPlacement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionPlacement) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *GameSessionPlacement) SetEndTime(v time.Time) *GameSessionPlacement { + s.EndTime = &v + return s +} + +// SetGameProperties sets the GameProperties field's value. +func (s *GameSessionPlacement) SetGameProperties(v []*GameProperty) *GameSessionPlacement { + s.GameProperties = v + return s +} + +// SetGameSessionArn sets the GameSessionArn field's value. +func (s *GameSessionPlacement) SetGameSessionArn(v string) *GameSessionPlacement { + s.GameSessionArn = &v + return s +} + +// SetGameSessionName sets the GameSessionName field's value. +func (s *GameSessionPlacement) SetGameSessionName(v string) *GameSessionPlacement { + s.GameSessionName = &v + return s +} + +// SetGameSessionQueueName sets the GameSessionQueueName field's value. +func (s *GameSessionPlacement) SetGameSessionQueueName(v string) *GameSessionPlacement { + s.GameSessionQueueName = &v + return s +} + +// SetGameSessionRegion sets the GameSessionRegion field's value. +func (s *GameSessionPlacement) SetGameSessionRegion(v string) *GameSessionPlacement { + s.GameSessionRegion = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *GameSessionPlacement) SetMaximumPlayerSessionCount(v int64) *GameSessionPlacement { + s.MaximumPlayerSessionCount = &v + return s +} + +// SetPlacementId sets the PlacementId field's value. +func (s *GameSessionPlacement) SetPlacementId(v string) *GameSessionPlacement { + s.PlacementId = &v + return s +} + +// SetPlayerLatencies sets the PlayerLatencies field's value. +func (s *GameSessionPlacement) SetPlayerLatencies(v []*PlayerLatency) *GameSessionPlacement { + s.PlayerLatencies = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GameSessionPlacement) SetStartTime(v time.Time) *GameSessionPlacement { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GameSessionPlacement) SetStatus(v string) *GameSessionPlacement { + s.Status = &v + return s +} + +// Configuration of a queue used to process game session placement requests. +// The queue configuration identifies the fleets that new game session can be +// placed on, given available resources, and the length of time a request can +// remain in the queue waiting for placement. +// +// Queue-related operations include: +// +// * CreateGameSessionQueue +// +// * DescribeGameSessionQueues +// +// * UpdateGameSessionQueue +// +// * DeleteGameSessionQueue +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionQueue +type GameSessionQueue struct { + _ struct{} `type:"structure"` + + // List of fleets that can be used to fulfill game session placement requests + // in the queue. Fleets are identified by either a fleet ARN or a fleet alias + // ARN. Destinations are listed in default preference order. + Destinations []*GameSessionQueueDestination `type:"list"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + Name *string `min:"1" type:"string"` + + // Maximum time, in seconds, that a new game session placement request remains + // in the queue. When a request exceeds this time, the game session placement + // changes to a TIMED_OUT status. + TimeoutInSeconds *int64 `type:"integer"` +} + +// String returns the string representation +func (s GameSessionQueue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionQueue) GoString() string { + return s.String() +} + +// SetDestinations sets the Destinations field's value. +func (s *GameSessionQueue) SetDestinations(v []*GameSessionQueueDestination) *GameSessionQueue { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *GameSessionQueue) SetName(v string) *GameSessionQueue { + s.Name = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *GameSessionQueue) SetTimeoutInSeconds(v int64) *GameSessionQueue { + s.TimeoutInSeconds = &v + return s +} + +// Fleet designated in a game session queue. Requests for new game sessions +// in the queue are fulfilled by starting a new game session on any destination +// listed for a queue. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionQueueDestination +type GameSessionQueueDestination struct { + _ struct{} `type:"structure"` + + // Amazon Resource Name (ARN) assigned to fleet or fleet alias. ARNs, which + // include a fleet ID or alias ID and a region name, provide a unique identifier + // across all regions. + DestinationArn *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GameSessionQueueDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionQueueDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GameSessionQueueDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GameSessionQueueDestination"} + if s.DestinationArn != nil && len(*s.DestinationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DestinationArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *GameSessionQueueDestination) SetDestinationArn(v string) *GameSessionQueueDestination { + s.DestinationArn = &v + return s +} + // Represents the input for a request action. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetGameSessionLogUrlInput type GetGameSessionLogUrlInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to get logs for. Game session ID format - // is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID - // string>". The value of <ID string> is either a custom ID string (if one was - // specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to get logs for. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` @@ -7132,16 +8407,16 @@ func (s *GetGameSessionLogUrlOutput) SetPreSignedUrl(v string) *GetGameSessionLo type GetInstanceAccessInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. Specify the fleet that contain the instance - // you want access to. The fleet can be in any of the following statuses: ACTIVATING, - // ACTIVE, or ERROR. Fleets with an ERROR status can be accessed for a few hours - // before being deleted. + // Unique identifier for a fleet that contains the instance you want access + // to. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, + // or ERROR. Fleets with an ERROR status may be accessible for a short time + // before they are deleted. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Unique identifier for an instance. Specify the instance you want to get access - // to. You can access an instance in any status. + // Unique identifier for an instance you want to get access to. You can access + // an instance in any status. // // InstanceId is a required field InstanceId *string `type:"string" required:"true"` @@ -7189,7 +8464,7 @@ func (s *GetInstanceAccessInput) SetInstanceId(v string) *GetInstanceAccessInput type GetInstanceAccessOutput struct { _ struct{} `type:"structure"` - // Object containing connection information for a fleet instance, including + // Object that contains connection information for a fleet instance, including // IP address and access credentials. InstanceAccess *InstanceAccess `type:"structure"` } @@ -7217,13 +8492,13 @@ type Instance struct { _ struct{} `type:"structure"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Unique identifier for the fleet that the instance belongs to. + // Unique identifier for a fleet that the instance is in. FleetId *string `type:"string"` - // Unique identifier for the instance. + // Unique identifier for an instance. InstanceId *string `type:"string"` // IP address assigned to the instance. @@ -7238,7 +8513,7 @@ type Instance struct { // server processes as defined in the fleet's runtime configuration. // // * ACTIVE – The instance has been successfully created and at least one - // server process has successfully launched and reported back to GameLift + // server process has successfully launched and reported back to Amazon GameLift // that it is ready to host a game session. The instance is now considered // ready to host game sessions. // @@ -7312,10 +8587,10 @@ type InstanceAccess struct { // Credentials required to access the instance. Credentials *InstanceCredentials `type:"structure"` - // Unique identifier for the fleet containing the instance being accessed. + // Unique identifier for a fleet containing the instance being accessed. FleetId *string `type:"string"` - // Unique identifier for the instance being accessed. + // Unique identifier for an instance being accessed. InstanceId *string `type:"string"` // IP address assigned to the instance. @@ -7372,8 +8647,9 @@ func (s *InstanceAccess) SetOperatingSystem(v string) *InstanceAccess { type InstanceCredentials struct { _ struct{} `type:"structure"` - // Secret string. For Windows instances, the secret is a password. For Linux - // instances, it is a private key. + // Secret string. For Windows instances, the secret is a password for use with + // Windows Remote Desktop. For Linux instances, it is a private key (which must + // be saved as a .pem file) for use with SSH. Secret *string `min:"1" type:"string"` // User login string. @@ -7403,10 +8679,10 @@ func (s *InstanceCredentials) SetUserName(v string) *InstanceCredentials { } // A range of IP addresses and port settings that allow inbound traffic to connect -// to server processes on GameLift. Each game session hosted on a fleet is assigned -// a unique combination of IP address and port number, which must fall into -// the fleet's allowed ranges. This combination is included in the GameSession -// object. +// to server processes on Amazon GameLift. Each game session hosted on a fleet +// is assigned a unique combination of IP address and port number, which must +// fall into the fleet's allowed ranges. This combination is included in the +// GameSession object. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/IpPermission type IpPermission struct { _ struct{} `type:"structure"` @@ -7416,9 +8692,9 @@ type IpPermission struct { // FromPort is a required field FromPort *int64 `min:"1" type:"integer" required:"true"` - // Range of allowed IP addresses. This value must be expressed in CIDR notation - // (https://tools.ietf.org/id/cidr). Example: "000.000.000.000/[subnet mask]" - // or optionally the shortened version "0.0.0.0/[subnet mask]". + // Range of allowed IP addresses. This value must be expressed in CIDR notation. + // Example: "000.000.000.000/[subnet mask]" or optionally the shortened version + // "0.0.0.0/[subnet mask]". // // IpRange is a required field IpRange *string `type:"string" required:"true"` @@ -7506,13 +8782,13 @@ type ListAliasesInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Type of routing to filter results on. Use this parameter to retrieve only @@ -7591,8 +8867,9 @@ type ListAliasesOutput struct { // Collection of alias records that match the list request. Aliases []*Alias `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -7627,9 +8904,9 @@ type ListBuildsInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Build status to filter results by. To retrieve all builds, leave this parameter @@ -7701,8 +8978,9 @@ type ListBuildsOutput struct { // Collection of build records that match the request. Builds []*Build `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -7733,7 +9011,7 @@ func (s *ListBuildsOutput) SetNextToken(v string) *ListBuildsOutput { type ListFleetsInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build to return fleets for. Use this parameter to + // Unique identifier for a build to return fleets for. Use this parameter to // return only fleets using the specified build. To retrieve all fleets, leave // this parameter empty. BuildId *string `type:"string"` @@ -7742,9 +9020,9 @@ type ListFleetsInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` } @@ -7799,11 +9077,12 @@ type ListFleetsOutput struct { // Set of fleet IDs matching the list request. You can retrieve additional information // about all returned fleets by passing this result set to a call to DescribeFleetAttributes, - // DescribeFleetCapacity, and DescribeFleetUtilization. + // DescribeFleetCapacity, or DescribeFleetUtilization. FleetIds []*string `min:"1" type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -7812,33 +9091,110 @@ func (s ListFleetsOutput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s ListFleetsOutput) GoString() string { - return s.String() +// GoString returns the string representation +func (s ListFleetsOutput) GoString() string { + return s.String() +} + +// SetFleetIds sets the FleetIds field's value. +func (s *ListFleetsOutput) SetFleetIds(v []*string) *ListFleetsOutput { + s.FleetIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput { + s.NextToken = &v + return s +} + +// Regional latency information for a player, used when requesting a new game +// session with StartGameSessionPlacement. This value indicates the amount of +// time lag that exists when the player is connected to a fleet in the specified +// region. The relative difference between a player's latency values for multiple +// regions are used to determine which fleets are best suited to place a new +// game session for the player. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PlayerLatency +type PlayerLatency struct { + _ struct{} `type:"structure"` + + // Amount of time that represents the time lag experienced by the player when + // connected to the specified region. + LatencyInMilliseconds *float64 `type:"float"` + + // Unique identifier for a player associated with the latency data. + PlayerId *string `min:"1" type:"string"` + + // Name of the region that is associated with the latency value. + RegionIdentifier *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s PlayerLatency) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlayerLatency) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PlayerLatency) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PlayerLatency"} + if s.PlayerId != nil && len(*s.PlayerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) + } + if s.RegionIdentifier != nil && len(*s.RegionIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RegionIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLatencyInMilliseconds sets the LatencyInMilliseconds field's value. +func (s *PlayerLatency) SetLatencyInMilliseconds(v float64) *PlayerLatency { + s.LatencyInMilliseconds = &v + return s } -// SetFleetIds sets the FleetIds field's value. -func (s *ListFleetsOutput) SetFleetIds(v []*string) *ListFleetsOutput { - s.FleetIds = v +// SetPlayerId sets the PlayerId field's value. +func (s *PlayerLatency) SetPlayerId(v string) *PlayerLatency { + s.PlayerId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput { - s.NextToken = &v +// SetRegionIdentifier sets the RegionIdentifier field's value. +func (s *PlayerLatency) SetRegionIdentifier(v string) *PlayerLatency { + s.RegionIdentifier = &v return s } -// Properties describing a player session. +// Properties describing a player session. A player session represents either +// a player reservation for a game session or actual player activity in a game +// session. A player session object (including player data) is automatically +// passed to a game session when the player connects to the game session and +// is validated. +// +// Player session-related operations include: +// +// * CreatePlayerSession +// +// * CreatePlayerSessions +// +// * DescribePlayerSessions // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PlayerSession type PlayerSession struct { _ struct{} `type:"structure"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Unique identifier for a fleet. + // Unique identifier for a fleet that the player's game session is running on. FleetId *string `type:"string"` // Unique identifier for the game session that the player session is connected @@ -7848,14 +9204,18 @@ type PlayerSession struct { // Game session IP address. All player sessions reference the game session location. IpAddress *string `type:"string"` - // Unique identifier for a player. + // Developer-defined information related to a player. Amazon GameLift does not + // use this data, so it can be formatted as needed for use in the game. + PlayerData *string `min:"1" type:"string"` + + // Unique identifier for a player that is associated with this player session. PlayerId *string `min:"1" type:"string"` // Unique identifier for a player session. PlayerSessionId *string `type:"string"` - // Port number for the game session. To connect to a GameLift server process, - // an app needs both the IP address and port number. + // Port number for the game session. To connect to a Amazon GameLift server + // process, an app needs both the IP address and port number. Port *int64 `min:"1" type:"integer"` // Current status of the player session. @@ -7875,7 +9235,7 @@ type PlayerSession struct { Status *string `type:"string" enum:"PlayerSessionStatus"` // Time stamp indicating when this data object was terminated. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -7913,6 +9273,12 @@ func (s *PlayerSession) SetIpAddress(v string) *PlayerSession { return s } +// SetPlayerData sets the PlayerData field's value. +func (s *PlayerSession) SetPlayerData(v string) *PlayerSession { + s.PlayerData = &v + return s +} + // SetPlayerId sets the PlayerId field's value. func (s *PlayerSession) SetPlayerId(v string) *PlayerSession { s.PlayerId = &v @@ -7960,7 +9326,7 @@ type PutScalingPolicyInput struct { // EvaluationPeriods is a required field EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - // Unique identity for the fleet to scale with this policy. + // Unique identifier for a fleet to apply this policy to. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -7989,8 +9355,9 @@ type PutScalingPolicyInput struct { // MetricName is a required field MetricName *string `type:"string" required:"true" enum:"MetricName"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. A fleet can have only one scaling policy with the same name. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. A fleet can have only one scaling policy with the + // same name. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -8125,8 +9492,8 @@ func (s *PutScalingPolicyInput) SetThreshold(v float64) *PutScalingPolicyInput { type PutScalingPolicyOutput struct { _ struct{} `type:"structure"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. Name *string `min:"1" type:"string"` } @@ -8151,7 +9518,7 @@ func (s *PutScalingPolicyOutput) SetName(v string) *PutScalingPolicyOutput { type RequestUploadCredentialsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the build you want to get credentials for. + // Unique identifier for a build to get credentials for. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -8267,7 +9634,7 @@ func (s *ResolveAliasInput) SetAliasId(v string) *ResolveAliasInput { type ResolveAliasOutput struct { _ struct{} `type:"structure"` - // Fleet ID associated with the requested alias. + // Fleet identifier that is associated with the requested alias. FleetId *string `type:"string"` } @@ -8295,9 +9662,9 @@ func (s *ResolveAliasOutput) SetFleetId(v string) *ResolveAliasOutput { // // The policy is evaluated when a player tries to create a new game session. // For example, with a policy of 10 new game sessions and a time period of 60 -// minutes, on receiving a CreateGameSession request, GameLift checks that the -// player (identified by CreatorId) has created fewer than 10 game sessions -// in the past 60 minutes. +// minutes, on receiving a CreateGameSession request, Amazon GameLift checks +// that the player (identified by CreatorId) has created fewer than 10 game +// sessions in the past 60 minutes. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResourceCreationLimitPolicy type ResourceCreationLimitPolicy struct { _ struct{} `type:"structure"` @@ -8337,7 +9704,7 @@ func (s *ResourceCreationLimitPolicy) SetPolicyPeriodInMinutes(v int64) *Resourc type RoutingStrategy struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. + // Unique identifier for a fleet that the alias points to. FleetId *string `type:"string"` // Message text to be used with a terminal routing strategy. @@ -8398,8 +9765,8 @@ func (s *RoutingStrategy) SetType(v string) *RoutingStrategy { // on the same fleet. Another option is to specify configurations for the same // server executable but with different launch parameters. // -// A GameLift instance is limited to 50 processes running simultaneously. To -// calculate the total number of processes specified in a runtime configuration, +// A Amazon GameLift instance is limited to 50 processes running simultaneously. +// To calculate the total number of processes specified in a runtime configuration, // add the values of the ConcurrentExecutions parameter for each ServerProcess // object in the runtime configuration. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RuntimeConfiguration @@ -8450,22 +9817,22 @@ func (s *RuntimeConfiguration) SetServerProcesses(v []*ServerProcess) *RuntimeCo return s } -// Location in Amazon Simple Storage Service (Amazon S3) where a build's files -// are stored. This location is assigned in response to a CreateBuild call, -// and is always in the same region as the service used to create the build. -// For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/). +// Location in Amazon Simple Storage Service (Amazon S3) where build files can +// be stored for access by Amazon GameLift. This location is specified in a +// CreateBuild request. For more details, see the Create a Build with Files +// in Amazon S3 (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build). // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/S3Location type S3Location struct { _ struct{} `type:"structure"` - // Amazon S3 bucket identifier. + // Amazon S3 bucket identifier. This is the name of your S3 bucket. Bucket *string `min:"1" type:"string"` - // Amazon S3 bucket key. + // Name of the zip file containing your build files. Key *string `min:"1" type:"string"` - // Amazon resource number for the cross-account access role that allows GameLift - // access to the S3 bucket. + // Amazon Resource Name (ARN (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) + // for the access role that allows Amazon GameLift to access your S3 bucket. RoleArn *string `min:"1" type:"string"` } @@ -8530,10 +9897,10 @@ type ScalingPolicy struct { // before a scaling event is triggered. EvaluationPeriods *int64 `min:"1" type:"integer"` - // Unique identity for the fleet associated with this scaling policy. + // Unique identifier for a fleet that is associated with this scaling policy. FleetId *string `type:"string"` - // Name of the GameLift-defined metric that is used to trigger an adjustment. + // Name of the Amazon GameLift-defined metric that is used to trigger an adjustment. // // * ActivatingGameSessions – number of game sessions in the process of being // created (game session status = ACTIVATING). @@ -8555,8 +9922,8 @@ type ScalingPolicy struct { // * IdleInstances – number of instances not currently running a game session. MetricName *string `type:"string" enum:"MetricName"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. Name *string `min:"1" type:"string"` // Amount of adjustment to make, based on the scaling adjustment type. @@ -8667,8 +10034,9 @@ func (s *ScalingPolicy) SetThreshold(v float64) *ScalingPolicy { type SearchGameSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Each request must reference either a - // fleet ID or alias ID, but not both. + // Unique identifier for an alias associated with the fleet to search for active + // game sessions. Each request must reference either a fleet ID or alias ID, + // but not both. AliasId *string `type:"string"` // String containing the search criteria for the session search. If no filter @@ -8712,8 +10080,8 @@ type SearchGameSessionsInput struct { // ten players that have an open player slot: "maximumSessions>=10 AND hasAvailablePlayerSessions=true". FilterExpression *string `min:"1" type:"string"` - // Unique identifier for a fleet. Each request must reference either a fleet - // ID or alias ID, but not both. + // Unique identifier for a fleet to search for active game sessions. Each request + // must reference either a fleet ID or alias ID, but not both. FleetId *string `type:"string"` // Maximum number of results to return. Use this parameter with NextToken to @@ -8721,9 +10089,9 @@ type SearchGameSessionsInput struct { // is 20, even if this value is not set or is set higher than 20. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Instructions on how to sort the search results. If no sort expression is @@ -8819,8 +10187,9 @@ type SearchGameSessionsOutput struct { // matching the request. GameSessions []*GameSession `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -8928,6 +10297,250 @@ func (s *ServerProcess) SetParameters(v string) *ServerProcess { return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacementInput +type StartGameSessionPlacementInput struct { + _ struct{} `type:"structure"` + + // Set of information on each player to create a player session for. + DesiredPlayerSessions []*DesiredPlayerSession `type:"list"` + + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. + GameProperties []*GameProperty `type:"list"` + + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. + GameSessionName *string `min:"1" type:"string"` + + // Name of the queue to use to place the new game session. + // + // GameSessionQueueName is a required field + GameSessionQueueName *string `min:"1" type:"string" required:"true"` + + // Maximum number of players that can be connected simultaneously to the game + // session. + // + // MaximumPlayerSessionCount is a required field + MaximumPlayerSessionCount *int64 `type:"integer" required:"true"` + + // Unique identifier to assign to the new game session placement. This value + // is developer-defined. The value must be unique across all regions and cannot + // be reused unless you are resubmitting a cancelled or timed-out placement + // request. + // + // PlacementId is a required field + PlacementId *string `min:"1" type:"string" required:"true"` + + // Set of values, expressed in milliseconds, indicating the amount of latency + // that players experience when connected to AWS regions. This information is + // relevant when requesting player sessions. Latency information provided for + // player IDs not included in DesiredPlayerSessions are ignored. + PlayerLatencies []*PlayerLatency `type:"list"` +} + +// String returns the string representation +func (s StartGameSessionPlacementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartGameSessionPlacementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartGameSessionPlacementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartGameSessionPlacementInput"} + if s.GameSessionName != nil && len(*s.GameSessionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GameSessionName", 1)) + } + if s.GameSessionQueueName == nil { + invalidParams.Add(request.NewErrParamRequired("GameSessionQueueName")) + } + if s.GameSessionQueueName != nil && len(*s.GameSessionQueueName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GameSessionQueueName", 1)) + } + if s.MaximumPlayerSessionCount == nil { + invalidParams.Add(request.NewErrParamRequired("MaximumPlayerSessionCount")) + } + if s.PlacementId == nil { + invalidParams.Add(request.NewErrParamRequired("PlacementId")) + } + if s.PlacementId != nil && len(*s.PlacementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlacementId", 1)) + } + if s.DesiredPlayerSessions != nil { + for i, v := range s.DesiredPlayerSessions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DesiredPlayerSessions", i), err.(request.ErrInvalidParams)) + } + } + } + if s.GameProperties != nil { + for i, v := range s.GameProperties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GameProperties", i), err.(request.ErrInvalidParams)) + } + } + } + if s.PlayerLatencies != nil { + for i, v := range s.PlayerLatencies { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PlayerLatencies", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredPlayerSessions sets the DesiredPlayerSessions field's value. +func (s *StartGameSessionPlacementInput) SetDesiredPlayerSessions(v []*DesiredPlayerSession) *StartGameSessionPlacementInput { + s.DesiredPlayerSessions = v + return s +} + +// SetGameProperties sets the GameProperties field's value. +func (s *StartGameSessionPlacementInput) SetGameProperties(v []*GameProperty) *StartGameSessionPlacementInput { + s.GameProperties = v + return s +} + +// SetGameSessionName sets the GameSessionName field's value. +func (s *StartGameSessionPlacementInput) SetGameSessionName(v string) *StartGameSessionPlacementInput { + s.GameSessionName = &v + return s +} + +// SetGameSessionQueueName sets the GameSessionQueueName field's value. +func (s *StartGameSessionPlacementInput) SetGameSessionQueueName(v string) *StartGameSessionPlacementInput { + s.GameSessionQueueName = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *StartGameSessionPlacementInput) SetMaximumPlayerSessionCount(v int64) *StartGameSessionPlacementInput { + s.MaximumPlayerSessionCount = &v + return s +} + +// SetPlacementId sets the PlacementId field's value. +func (s *StartGameSessionPlacementInput) SetPlacementId(v string) *StartGameSessionPlacementInput { + s.PlacementId = &v + return s +} + +// SetPlayerLatencies sets the PlayerLatencies field's value. +func (s *StartGameSessionPlacementInput) SetPlayerLatencies(v []*PlayerLatency) *StartGameSessionPlacementInput { + s.PlayerLatencies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacementOutput +type StartGameSessionPlacementOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the newly created game session placement. This object + // includes all the information provided in the request, as well as start/end + // time stamps and placement status. + GameSessionPlacement *GameSessionPlacement `type:"structure"` +} + +// String returns the string representation +func (s StartGameSessionPlacementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartGameSessionPlacementOutput) GoString() string { + return s.String() +} + +// SetGameSessionPlacement sets the GameSessionPlacement field's value. +func (s *StartGameSessionPlacementOutput) SetGameSessionPlacement(v *GameSessionPlacement) *StartGameSessionPlacementOutput { + s.GameSessionPlacement = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacementInput +type StopGameSessionPlacementInput struct { + _ struct{} `type:"structure"` + + // Unique identifier for a game session placement to cancel. + // + // PlacementId is a required field + PlacementId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopGameSessionPlacementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopGameSessionPlacementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopGameSessionPlacementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopGameSessionPlacementInput"} + if s.PlacementId == nil { + invalidParams.Add(request.NewErrParamRequired("PlacementId")) + } + if s.PlacementId != nil && len(*s.PlacementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlacementId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPlacementId sets the PlacementId field's value. +func (s *StopGameSessionPlacementInput) SetPlacementId(v string) *StopGameSessionPlacementInput { + s.PlacementId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacementOutput +type StopGameSessionPlacementOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the cancelled game session placement, with cancelled + // status and an end time stamp. + GameSessionPlacement *GameSessionPlacement `type:"structure"` +} + +// String returns the string representation +func (s StopGameSessionPlacementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopGameSessionPlacementOutput) GoString() string { + return s.String() +} + +// SetGameSessionPlacement sets the GameSessionPlacement field's value. +func (s *StopGameSessionPlacementOutput) SetGameSessionPlacement(v *GameSessionPlacement) *StopGameSessionPlacementOutput { + s.GameSessionPlacement = v + return s +} + // Represents the input for a request action. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAliasInput type UpdateAliasInput struct { @@ -8941,11 +10554,11 @@ type UpdateAliasInput struct { // Human-readable description of an alias. Description *string `min:"1" type:"string"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Object specifying the fleet and routing type to use for the alias. + // Object that specifies the fleet and routing type to use for the alias. RoutingStrategy *RoutingStrategy `type:"structure"` } @@ -9007,7 +10620,7 @@ func (s *UpdateAliasInput) SetRoutingStrategy(v *RoutingStrategy) *UpdateAliasIn type UpdateAliasOutput struct { _ struct{} `type:"structure"` - // Object containing the updated alias configuration. + // Object that contains the updated alias configuration. Alias *Alias `type:"structure"` } @@ -9032,17 +10645,17 @@ func (s *UpdateAliasOutput) SetAlias(v *Alias) *UpdateAliasOutput { type UpdateBuildInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build you want to update. + // Unique identifier for a build to update. // // BuildId is a required field BuildId *string `type:"string" required:"true"` - // Descriptive label associated with a build. Build names do not need to be - // unique. + // Descriptive label that is associated with a build. Build names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Version associated with this build. Version strings do not need to be unique - // to a build. + // Version that is associated with this build. Version strings do not need to + // be unique. Version *string `min:"1" type:"string"` } @@ -9098,7 +10711,7 @@ func (s *UpdateBuildInput) SetVersion(v string) *UpdateBuildInput { type UpdateBuildOutput struct { _ struct{} `type:"structure"` - // Object containing the updated build record. + // Object that contains the updated build record. Build *Build `type:"structure"` } @@ -9126,13 +10739,13 @@ type UpdateFleetAttributesInput struct { // Human-readable description of a fleet. Description *string `min:"1" type:"string"` - // Unique identifier for the fleet you want to update attribute metadata for. + // Unique identifier for a fleet to update attribute metadata for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Descriptive label associated with a fleet. Fleet names do not need to be - // unique. + // Descriptive label that is associated with a fleet. Fleet names do not need + // to be unique. Name *string `min:"1" type:"string"` // Game session protection policy to apply to all new instances created in this @@ -9215,7 +10828,7 @@ func (s *UpdateFleetAttributesInput) SetResourceCreationLimitPolicy(v *ResourceC type UpdateFleetAttributesOutput struct { _ struct{} `type:"structure"` - // Unique identifier for the updated fleet. + // Unique identifier for a fleet that was updated. FleetId *string `type:"string"` } @@ -9243,7 +10856,7 @@ type UpdateFleetCapacityInput struct { // Number of EC2 instances you want this fleet to host. DesiredInstances *int64 `type:"integer"` - // Unique identifier for the fleet you want to update capacity for. + // Unique identifier for a fleet to update capacity for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -9309,7 +10922,7 @@ func (s *UpdateFleetCapacityInput) SetMinSize(v int64) *UpdateFleetCapacityInput type UpdateFleetCapacityOutput struct { _ struct{} `type:"structure"` - // Unique identifier for the updated fleet. + // Unique identifier for a fleet that was updated. FleetId *string `type:"string"` } @@ -9334,7 +10947,7 @@ func (s *UpdateFleetCapacityOutput) SetFleetId(v string) *UpdateFleetCapacityOut type UpdateFleetPortSettingsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet you want to update port settings for. + // Unique identifier for a fleet to update port settings for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -9412,7 +11025,7 @@ func (s *UpdateFleetPortSettingsInput) SetInboundPermissionRevocations(v []*IpPe type UpdateFleetPortSettingsOutput struct { _ struct{} `type:"structure"` - // Unique identifier for the updated fleet. + // Unique identifier for a fleet that was updated. FleetId *string `type:"string"` } @@ -9437,20 +11050,17 @@ func (s *UpdateFleetPortSettingsOutput) SetFleetId(v string) *UpdateFleetPortSet type UpdateGameSessionInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to update. Game session ID format - // is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID - // string>". The value of <ID string> is either a custom ID string (if one was - // specified when the game session was created) an autogenerated string. + // Unique identifier for the game session to update. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` - // Maximum number of players that can be simultaneously connected to the game + // Maximum number of players that can be connected simultaneously to the game // session. MaximumPlayerSessionCount *int64 `type:"integer"` - // Descriptive label associated with a game session. Session names do not need - // to be unique. + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. Name *string `min:"1" type:"string"` // Policy determining whether or not the game session accepts new players. @@ -9530,7 +11140,7 @@ func (s *UpdateGameSessionInput) SetProtectionPolicy(v string) *UpdateGameSessio type UpdateGameSessionOutput struct { _ struct{} `type:"structure"` - // Object containing the updated game session metadata. + // Object that contains the updated game session metadata. GameSession *GameSession `type:"structure"` } @@ -9550,12 +11160,111 @@ func (s *UpdateGameSessionOutput) SetGameSession(v *GameSession) *UpdateGameSess return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueueInput +type UpdateGameSessionQueueInput struct { + _ struct{} `type:"structure"` + + // List of fleets that can be used to fulfill game session placement requests + // in the queue. Fleets are identified by either a fleet ARN or a fleet alias + // ARN. Destinations are listed in default preference order. + Destinations []*GameSessionQueueDestination `type:"list"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Maximum time, in seconds, that a new game session placement request remains + // in the queue. When a request exceeds this time, the game session placement + // changes to a TIMED_OUT status. + TimeoutInSeconds *int64 `type:"integer"` +} + +// String returns the string representation +func (s UpdateGameSessionQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGameSessionQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateGameSessionQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateGameSessionQueueInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Destinations != nil { + for i, v := range s.Destinations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinations sets the Destinations field's value. +func (s *UpdateGameSessionQueueInput) SetDestinations(v []*GameSessionQueueDestination) *UpdateGameSessionQueueInput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateGameSessionQueueInput) SetName(v string) *UpdateGameSessionQueueInput { + s.Name = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *UpdateGameSessionQueueInput) SetTimeoutInSeconds(v int64) *UpdateGameSessionQueueInput { + s.TimeoutInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueueOutput +type UpdateGameSessionQueueOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the newly updated game session queue. + GameSessionQueue *GameSessionQueue `type:"structure"` +} + +// String returns the string representation +func (s UpdateGameSessionQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGameSessionQueueOutput) GoString() string { + return s.String() +} + +// SetGameSessionQueue sets the GameSessionQueue field's value. +func (s *UpdateGameSessionQueueOutput) SetGameSessionQueue(v *GameSessionQueue) *UpdateGameSessionQueueOutput { + s.GameSessionQueue = v + return s +} + // Represents the input for a request action. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateRuntimeConfigurationInput type UpdateRuntimeConfigurationInput struct { _ struct{} `type:"structure"` - // Unique identifier of the fleet to update runtime configuration for. + // Unique identifier for a fleet to update runtime configuration for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -9826,6 +11535,9 @@ const ( // EventCodeServerProcessProcessExitTimeout is a EventCode enum value EventCodeServerProcessProcessExitTimeout = "SERVER_PROCESS_PROCESS_EXIT_TIMEOUT" + + // EventCodeGameSessionActivationTimeout is a EventCode enum value + EventCodeGameSessionActivationTimeout = "GAME_SESSION_ACTIVATION_TIMEOUT" ) const ( @@ -9857,6 +11569,20 @@ const ( FleetStatusTerminated = "TERMINATED" ) +const ( + // GameSessionPlacementStatePending is a GameSessionPlacementState enum value + GameSessionPlacementStatePending = "PENDING" + + // GameSessionPlacementStateFulfilled is a GameSessionPlacementState enum value + GameSessionPlacementStateFulfilled = "FULFILLED" + + // GameSessionPlacementStateCancelled is a GameSessionPlacementState enum value + GameSessionPlacementStateCancelled = "CANCELLED" + + // GameSessionPlacementStateTimedOut is a GameSessionPlacementState enum value + GameSessionPlacementStateTimedOut = "TIMED_OUT" +) + const ( // GameSessionStatusActive is a GameSessionStatus enum value GameSessionStatusActive = "ACTIVE" @@ -9911,6 +11637,12 @@ const ( // MetricNameIdleInstances is a MetricName enum value MetricNameIdleInstances = "IdleInstances" + + // MetricNameQueueDepth is a MetricName enum value + MetricNameQueueDepth = "QueueDepth" + + // MetricNameWaitTime is a MetricName enum value + MetricNameWaitTime = "WaitTime" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go index 8f341da7..fb6c8d94 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleGameLift_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -47,11 +43,7 @@ func ExampleGameLift_CreateAlias() { } func ExampleGameLift_CreateBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -79,11 +71,7 @@ func ExampleGameLift_CreateBuild() { } func ExampleGameLift_CreateFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -137,11 +125,7 @@ func ExampleGameLift_CreateFleet() { } func ExampleGameLift_CreateGameSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -173,18 +157,43 @@ func ExampleGameLift_CreateGameSession() { fmt.Println(resp) } -func ExampleGameLift_CreatePlayerSession() { - sess, err := session.NewSession() +func ExampleGameLift_CreateGameSessionQueue() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.CreateGameSessionQueueInput{ + Name: aws.String("GameSessionQueueName"), // Required + Destinations: []*gamelift.GameSessionQueueDestination{ + { // Required + DestinationArn: aws.String("ArnStringModel"), + }, + // More values... + }, + TimeoutInSeconds: aws.Int64(1), + } + resp, err := svc.CreateGameSessionQueue(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_CreatePlayerSession() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.CreatePlayerSessionInput{ GameSessionId: aws.String("ArnStringModel"), // Required PlayerId: aws.String("NonZeroAndMaxString"), // Required + PlayerData: aws.String("PlayerData"), } resp, err := svc.CreatePlayerSession(params) @@ -200,11 +209,7 @@ func ExampleGameLift_CreatePlayerSession() { } func ExampleGameLift_CreatePlayerSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -214,6 +219,10 @@ func ExampleGameLift_CreatePlayerSessions() { aws.String("NonZeroAndMaxString"), // Required // More values... }, + PlayerDataMap: map[string]*string{ + "Key": aws.String("PlayerData"), // Required + // More values... + }, } resp, err := svc.CreatePlayerSessions(params) @@ -229,11 +238,7 @@ func ExampleGameLift_CreatePlayerSessions() { } func ExampleGameLift_DeleteAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -254,11 +259,7 @@ func ExampleGameLift_DeleteAlias() { } func ExampleGameLift_DeleteBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -279,11 +280,7 @@ func ExampleGameLift_DeleteBuild() { } func ExampleGameLift_DeleteFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -303,13 +300,30 @@ func ExampleGameLift_DeleteFleet() { fmt.Println(resp) } -func ExampleGameLift_DeleteScalingPolicy() { - sess, err := session.NewSession() +func ExampleGameLift_DeleteGameSessionQueue() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.DeleteGameSessionQueueInput{ + Name: aws.String("GameSessionQueueName"), // Required + } + resp, err := svc.DeleteGameSessionQueue(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_DeleteScalingPolicy() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.DeleteScalingPolicyInput{ @@ -330,11 +344,7 @@ func ExampleGameLift_DeleteScalingPolicy() { } func ExampleGameLift_DescribeAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -355,11 +365,7 @@ func ExampleGameLift_DescribeAlias() { } func ExampleGameLift_DescribeBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -380,11 +386,7 @@ func ExampleGameLift_DescribeBuild() { } func ExampleGameLift_DescribeEC2InstanceLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -405,11 +407,7 @@ func ExampleGameLift_DescribeEC2InstanceLimits() { } func ExampleGameLift_DescribeFleetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -435,11 +433,7 @@ func ExampleGameLift_DescribeFleetAttributes() { } func ExampleGameLift_DescribeFleetCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -465,11 +459,7 @@ func ExampleGameLift_DescribeFleetCapacity() { } func ExampleGameLift_DescribeFleetEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -494,11 +484,7 @@ func ExampleGameLift_DescribeFleetEvents() { } func ExampleGameLift_DescribeFleetPortSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -519,11 +505,7 @@ func ExampleGameLift_DescribeFleetPortSettings() { } func ExampleGameLift_DescribeFleetUtilization() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -549,11 +531,7 @@ func ExampleGameLift_DescribeFleetUtilization() { } func ExampleGameLift_DescribeGameSessionDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -578,13 +556,56 @@ func ExampleGameLift_DescribeGameSessionDetails() { fmt.Println(resp) } -func ExampleGameLift_DescribeGameSessions() { - sess, err := session.NewSession() +func ExampleGameLift_DescribeGameSessionPlacement() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.DescribeGameSessionPlacementInput{ + PlacementId: aws.String("IdStringModel"), // Required + } + resp, err := svc.DescribeGameSessionPlacement(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_DescribeGameSessionQueues() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.DescribeGameSessionQueuesInput{ + Limit: aws.Int64(1), + Names: []*string{ + aws.String("GameSessionQueueName"), // Required + // More values... + }, + NextToken: aws.String("NonZeroAndMaxString"), + } + resp, err := svc.DescribeGameSessionQueues(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_DescribeGameSessions() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.DescribeGameSessionsInput{ @@ -609,11 +630,7 @@ func ExampleGameLift_DescribeGameSessions() { } func ExampleGameLift_DescribeInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -637,11 +654,7 @@ func ExampleGameLift_DescribeInstances() { } func ExampleGameLift_DescribePlayerSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -667,11 +680,7 @@ func ExampleGameLift_DescribePlayerSessions() { } func ExampleGameLift_DescribeRuntimeConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -692,11 +701,7 @@ func ExampleGameLift_DescribeRuntimeConfiguration() { } func ExampleGameLift_DescribeScalingPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -720,11 +725,7 @@ func ExampleGameLift_DescribeScalingPolicies() { } func ExampleGameLift_GetGameSessionLogUrl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -745,11 +746,7 @@ func ExampleGameLift_GetGameSessionLogUrl() { } func ExampleGameLift_GetInstanceAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -771,11 +768,7 @@ func ExampleGameLift_GetInstanceAccess() { } func ExampleGameLift_ListAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -799,11 +792,7 @@ func ExampleGameLift_ListAliases() { } func ExampleGameLift_ListBuilds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -826,11 +815,7 @@ func ExampleGameLift_ListBuilds() { } func ExampleGameLift_ListFleets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -853,11 +838,7 @@ func ExampleGameLift_ListFleets() { } func ExampleGameLift_PutScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -885,11 +866,7 @@ func ExampleGameLift_PutScalingPolicy() { } func ExampleGameLift_RequestUploadCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -910,11 +887,7 @@ func ExampleGameLift_RequestUploadCredentials() { } func ExampleGameLift_ResolveAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -935,11 +908,7 @@ func ExampleGameLift_ResolveAlias() { } func ExampleGameLift_SearchGameSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -964,13 +933,76 @@ func ExampleGameLift_SearchGameSessions() { fmt.Println(resp) } -func ExampleGameLift_UpdateAlias() { - sess, err := session.NewSession() +func ExampleGameLift_StartGameSessionPlacement() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.StartGameSessionPlacementInput{ + GameSessionQueueName: aws.String("GameSessionQueueName"), // Required + MaximumPlayerSessionCount: aws.Int64(1), // Required + PlacementId: aws.String("IdStringModel"), // Required + DesiredPlayerSessions: []*gamelift.DesiredPlayerSession{ + { // Required + PlayerData: aws.String("PlayerData"), + PlayerId: aws.String("NonZeroAndMaxString"), + }, + // More values... + }, + GameProperties: []*gamelift.GameProperty{ + { // Required + Key: aws.String("GamePropertyKey"), // Required + Value: aws.String("GamePropertyValue"), // Required + }, + // More values... + }, + GameSessionName: aws.String("NonZeroAndMaxString"), + PlayerLatencies: []*gamelift.PlayerLatency{ + { // Required + LatencyInMilliseconds: aws.Float64(1.0), + PlayerId: aws.String("NonZeroAndMaxString"), + RegionIdentifier: aws.String("NonZeroAndMaxString"), + }, + // More values... + }, + } + resp, err := svc.StartGameSessionPlacement(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_StopGameSessionPlacement() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.StopGameSessionPlacementInput{ + PlacementId: aws.String("IdStringModel"), // Required + } + resp, err := svc.StopGameSessionPlacement(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_UpdateAlias() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.UpdateAliasInput{ @@ -997,11 +1029,7 @@ func ExampleGameLift_UpdateAlias() { } func ExampleGameLift_UpdateBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1024,11 +1052,7 @@ func ExampleGameLift_UpdateBuild() { } func ExampleGameLift_UpdateFleetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1056,11 +1080,7 @@ func ExampleGameLift_UpdateFleetAttributes() { } func ExampleGameLift_UpdateFleetCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1084,11 +1104,7 @@ func ExampleGameLift_UpdateFleetCapacity() { } func ExampleGameLift_UpdateFleetPortSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1127,11 +1143,7 @@ func ExampleGameLift_UpdateFleetPortSettings() { } func ExampleGameLift_UpdateGameSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1155,13 +1167,37 @@ func ExampleGameLift_UpdateGameSession() { fmt.Println(resp) } -func ExampleGameLift_UpdateRuntimeConfiguration() { - sess, err := session.NewSession() +func ExampleGameLift_UpdateGameSessionQueue() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.UpdateGameSessionQueueInput{ + Name: aws.String("GameSessionQueueName"), // Required + Destinations: []*gamelift.GameSessionQueueDestination{ + { // Required + DestinationArn: aws.String("ArnStringModel"), + }, + // More values... + }, + TimeoutInSeconds: aws.Int64(1), + } + resp, err := svc.UpdateGameSessionQueue(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_UpdateRuntimeConfiguration() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.UpdateRuntimeConfigurationInput{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go index 781e30a5..0a9319ea 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockGameLiftClient{} // @@ -75,6 +75,10 @@ type GameLiftAPI interface { CreateGameSession(*gamelift.CreateGameSessionInput) (*gamelift.CreateGameSessionOutput, error) + CreateGameSessionQueueRequest(*gamelift.CreateGameSessionQueueInput) (*request.Request, *gamelift.CreateGameSessionQueueOutput) + + CreateGameSessionQueue(*gamelift.CreateGameSessionQueueInput) (*gamelift.CreateGameSessionQueueOutput, error) + CreatePlayerSessionRequest(*gamelift.CreatePlayerSessionInput) (*request.Request, *gamelift.CreatePlayerSessionOutput) CreatePlayerSession(*gamelift.CreatePlayerSessionInput) (*gamelift.CreatePlayerSessionOutput, error) @@ -95,6 +99,10 @@ type GameLiftAPI interface { DeleteFleet(*gamelift.DeleteFleetInput) (*gamelift.DeleteFleetOutput, error) + DeleteGameSessionQueueRequest(*gamelift.DeleteGameSessionQueueInput) (*request.Request, *gamelift.DeleteGameSessionQueueOutput) + + DeleteGameSessionQueue(*gamelift.DeleteGameSessionQueueInput) (*gamelift.DeleteGameSessionQueueOutput, error) + DeleteScalingPolicyRequest(*gamelift.DeleteScalingPolicyInput) (*request.Request, *gamelift.DeleteScalingPolicyOutput) DeleteScalingPolicy(*gamelift.DeleteScalingPolicyInput) (*gamelift.DeleteScalingPolicyOutput, error) @@ -135,6 +143,14 @@ type GameLiftAPI interface { DescribeGameSessionDetails(*gamelift.DescribeGameSessionDetailsInput) (*gamelift.DescribeGameSessionDetailsOutput, error) + DescribeGameSessionPlacementRequest(*gamelift.DescribeGameSessionPlacementInput) (*request.Request, *gamelift.DescribeGameSessionPlacementOutput) + + DescribeGameSessionPlacement(*gamelift.DescribeGameSessionPlacementInput) (*gamelift.DescribeGameSessionPlacementOutput, error) + + DescribeGameSessionQueuesRequest(*gamelift.DescribeGameSessionQueuesInput) (*request.Request, *gamelift.DescribeGameSessionQueuesOutput) + + DescribeGameSessionQueues(*gamelift.DescribeGameSessionQueuesInput) (*gamelift.DescribeGameSessionQueuesOutput, error) + DescribeGameSessionsRequest(*gamelift.DescribeGameSessionsInput) (*request.Request, *gamelift.DescribeGameSessionsOutput) DescribeGameSessions(*gamelift.DescribeGameSessionsInput) (*gamelift.DescribeGameSessionsOutput, error) @@ -191,6 +207,14 @@ type GameLiftAPI interface { SearchGameSessions(*gamelift.SearchGameSessionsInput) (*gamelift.SearchGameSessionsOutput, error) + StartGameSessionPlacementRequest(*gamelift.StartGameSessionPlacementInput) (*request.Request, *gamelift.StartGameSessionPlacementOutput) + + StartGameSessionPlacement(*gamelift.StartGameSessionPlacementInput) (*gamelift.StartGameSessionPlacementOutput, error) + + StopGameSessionPlacementRequest(*gamelift.StopGameSessionPlacementInput) (*request.Request, *gamelift.StopGameSessionPlacementOutput) + + StopGameSessionPlacement(*gamelift.StopGameSessionPlacementInput) (*gamelift.StopGameSessionPlacementOutput, error) + UpdateAliasRequest(*gamelift.UpdateAliasInput) (*request.Request, *gamelift.UpdateAliasOutput) UpdateAlias(*gamelift.UpdateAliasInput) (*gamelift.UpdateAliasOutput, error) @@ -215,6 +239,10 @@ type GameLiftAPI interface { UpdateGameSession(*gamelift.UpdateGameSessionInput) (*gamelift.UpdateGameSessionOutput, error) + UpdateGameSessionQueueRequest(*gamelift.UpdateGameSessionQueueInput) (*request.Request, *gamelift.UpdateGameSessionQueueOutput) + + UpdateGameSessionQueue(*gamelift.UpdateGameSessionQueueInput) (*gamelift.UpdateGameSessionQueueOutput, error) + UpdateRuntimeConfigurationRequest(*gamelift.UpdateRuntimeConfigurationInput) (*request.Request, *gamelift.UpdateRuntimeConfigurationOutput) UpdateRuntimeConfiguration(*gamelift.UpdateRuntimeConfigurationInput) (*gamelift.UpdateRuntimeConfigurationOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go index b038f087..4d12beed 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go @@ -11,148 +11,206 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Welcome to the Amazon GameLift API Reference. Amazon GameLift is a managed -// Amazon Web Services (AWS) service for developers who need a scalable, server-based -// solution for multiplayer games. Amazon GameLift provides setup and deployment -// of game servers, and handles infrastructure scaling and session management. +// Amazon GameLift is a managed service for developers who need a scalable, +// dedicated server solution for their multiplayer games. Amazon GameLift provides +// tools to acquire computing resources and deploy game servers, scale game +// server capacity to meed player demand, and track in-depth metrics on player +// usage and server performance. // -// This reference describes the low-level service API for GameLift. You can -// call this API directly or use the AWS SDK (http://aws.amazon.com/tools/#sdk) -// for your preferred language. The AWS SDK includes a set of high-level GameLift -// actions multiplayer game sessions. Alternatively, you can use the AWS command-line -// interface (http://aws.amazon.com/cli/) (CLI) tool, which includes commands -// for GameLift. For administrative actions, you can also use the Amazon GameLift -// console. +// The Amazon GameLift service API includes important functionality to: // -// More Resources +// * Find game sessions and match players to games – Retrieve information +// on available game sessions; create new game sessions; send player requests +// to join a game session. // -// * Amazon GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/): -// Learn more about GameLift features and how to use them +// * Configure and manage game server resources – Manage builds, fleets, +// queues, and aliases; set autoscaling policies; retrieve logs and metrics. // -// * Lumberyard and GameLift Tutorials (https://gamedev.amazon.com/forums/tutorials): -// Get started fast with walkthroughs and sample projects +// This reference guide describes the low-level service API for Amazon GameLift. +// We recommend using either the Amazon Web Services software development kit +// (AWS SDK (http://aws.amazon.com/tools/#sdk)), available in multiple languages, +// or the AWS command-line interface (http://aws.amazon.com/cli/) (CLI) tool. +// Both of these align with the low-level service API. In addition, you can +// use the AWS Management Console (https://console.aws.amazon.com/gamelift/home) +// for Amazon GameLift for many administrative actions. // -// * GameDev Blog (http://aws.amazon.com/blogs/gamedev/): Stay up to date -// with new features and techniques +// MORE RESOURCES // -// * GameDev Forums (https://gamedev.amazon.com/forums/spaces/123/gamelift-discussion.html): -// Connect with the GameDev community +// * Amazon GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/) +// – Learn more about Amazon GameLift features and how to use them. // -// Manage Games and Players Through GameLift +// * Lumberyard and Amazon GameLift Tutorials (https://gamedev.amazon.com/forums/tutorials) +// – Get started fast with walkthroughs and sample projects. // -// Call these actions from your game clients and/or services to create and manage -// multiplayer game sessions and player sessions. +// * GameDev Blog (http://aws.amazon.com/blogs/gamedev/) – Stay up to date +// with new features and techniques. // -// * Game sessions: +// * GameDev Forums (https://gamedev.amazon.com/forums/spaces/123/gamelift-discussion.html) +// – Connect with the GameDev community. // -// CreateGameSession +// * Amazon GameLift Document History (http://docs.aws.amazon.com/gamelift/latest/developerguide/doc-history.html) +// – See changes to the Amazon GameLift service, SDKs, and documentation, +// as well as links to release notes. // -// DescribeGameSessions +// API SUMMARY // -// DescribeGameSessionDetails +// This list offers a functional overview of the Amazon GameLift service API. // -// UpdateGameSession +// Finding Games and Joining Players // -// SearchGameSessions +// You can enable players to connect to game servers on Amazon GameLift from +// a game client or through a game service (such as a matchmaking service). +// You can use these operations to discover actively running game or start new +// games. You can also match players to games, either singly or as a group. // -// * Player sessions: +// * Discover existing game sessions // -// CreatePlayerSession +// SearchGameSessions – Get all available game sessions or search for game sessions +// that match a set of criteria. // -// CreatePlayerSessions +// * Start a new game session // -// DescribePlayerSessions +// Game session placement – Use a queue to process new game session requests +// and create game sessions on fleets designated for the queue. // -// * Other actions: +// StartGameSessionPlacement – Request a new game session placement and add +// one or more players to it. // -// GetGameSessionLogUrl +// DescribeGameSessionPlacement – Get details on a placement request, including +// status. // -// Set Up and Manage Game Servers +// StopGameSessionPlacement – Cancel a placement request. // -// Use these administrative actions to configure GameLift to host your game -// servers. When setting up GameLift, you will need to (1) configure a build -// for your game and upload build files, and (2) set up one or more fleets to -// host game sessions. Once you've created and activated a fleet, you can assign -// aliases to it, scale capacity, track performance and utilization, etc. +// CreateGameSession – Start a new game session on a specific fleet. // -// * Game builds: +// * Manage game session objects // -// ListBuilds +// DescribeGameSessionDetails – Retrieve metadata and protection policies associated +// with one or more game sessions, including length of time active and current +// player count. // -// CreateBuild +// UpdateGameSession – Change game session settings, such as maximum player +// count and join policy. // -// DescribeBuild +// GetGameSessionLogUrl – Get the location of saved logs for a game session. // -// UpdateBuild +// * Manage player sessions objects // -// DeleteBuild +// CreatePlayerSession – Send a request for a player to join a game session. // -// RequestUploadCredentials +// CreatePlayerSessions – Send a request for multiple players to join a game +// session. // -// * Fleets: +// DescribePlayerSessions – Get details on player activity, including status, +// playing time, and player data. // -// ListFleets +// Setting Up and Managing Game Servers // -// CreateFleet +// When setting up Amazon GameLift, first create a game build and upload the +// files to Amazon GameLift. Then use these operations to set up a fleet of +// resources to run your game servers. Manage games to scale capacity, adjust +// configuration settings, access raw utilization data, and more. // -// Describe fleets: +// * Manage game builds // -// DescribeFleetAttributes +// CreateBuild – Create a new build by uploading files stored in an Amazon S3 +// bucket. (To create a build stored at a local file location, use the AWS +// CLI command upload-build.) // -// DescribeFleetCapacity +// ListBuilds – Get a list of all builds uploaded to a Amazon GameLift region. // -// DescribeFleetPortSettings +// DescribeBuild – Retrieve information associated with a build. // -// DescribeFleetUtilization +// UpdateBuild – Change build metadata, including build name and version. // -// DescribeEC2InstanceLimits +// DeleteBuild – Remove a build from Amazon GameLift. // -// DescribeFleetEvents +// * Manage fleets // -// DescribeRuntimeConfiguration +// CreateFleet – Configure and activate a new fleet to run a build's game servers. // -// Update fleets: +// DeleteFleet – Terminate a fleet that is no longer running game servers or +// hosting players. // -// UpdateFleetAttributes +// View / update fleet configurations. // -// UpdateFleetCapacity +// ListFleets – Get a list of all fleet IDs in a Amazon GameLift region (all +// statuses). // -// UpdateFleetPortSettings +// DescribeFleetAttributes / UpdateFleetAttributes – View or change a fleet's +// metadata and settings for game session protection and resource creation +// limits. // -// UpdateRuntimeConfiguration +// DescribeFleetPortSettings / UpdateFleetPortSettings – View or change the +// inbound permissions (IP address and port setting ranges) allowed for a +// fleet. // -// DeleteFleet +// DescribeRuntimeConfiguration / UpdateRuntimeConfiguration – View or change +// what server processes (and how many) to run on each instance in a fleet. // -// * Manage your instances: +// DescribeInstances – Get information on each instance in a fleet, including +// instance ID, IP address, and status. // -// DescribeInstances +// * Control fleet capacity // -// GetInstanceAccess +// DescribeEC2InstanceLimits – Retrieve maximum number of instances allowed +// for the current AWS account and the current usage level. // -// * Manage fleet aliases: +// DescribeFleetCapacity / UpdateFleetCapacity – Retrieve the capacity settings +// and the current number of instances in a fleet; adjust fleet capacity +// settings to scale up or down. // -// ListAliases +// Autoscale – Manage autoscaling rules and apply them to a fleet. // -// CreateAlias +// PutScalingPolicy – Create a new autoscaling policy, or update an existing +// one. // -// DescribeAlias +// DescribeScalingPolicies – Retrieve an existing autoscaling policy. // -// UpdateAlias +// DeleteScalingPolicy – Delete an autoscaling policy and stop it from affecting +// a fleet's capacity. // -// DeleteAlias +// * Access fleet activity statistics // -// ResolveAlias +// DescribeFleetUtilization – Get current data on the number of server processes, +// game sessions, and players currently active on a fleet. // -// * Manage autoscaling: +// DescribeFleetEvents – Get a fleet's logged events for a specified time span. // -// PutScalingPolicy +// DescribeGameSessions – Retrieve metadata associated with one or more game +// sessions, including length of time active and current player count. // -// DescribeScalingPolicies +// * Remotely access an instance // -// DeleteScalingPolicy +// GetInstanceAccess – Request access credentials needed to remotely connect +// to a specified instance on a fleet. // -// To view changes to the API, see the GameLift Document History (http://docs.aws.amazon.com/gamelift/latest/developerguide/doc-history.html) -// page. +// * Manage fleet aliases +// +// CreateAlias – Define a new alias and optionally assign it to a fleet. +// +// ListAliases – Get all fleet aliases defined in a Amazon GameLift region. +// +// DescribeAlias – Retrieve information on an existing alias. +// +// UpdateAlias – Change settings for a alias, such as redirecting it from one +// fleet to another. +// +// DeleteAlias – Remove an alias from the region. +// +// ResolveAlias – Get the fleet ID that a specified alias points to. +// +// * Manage game session queues +// +// CreateGameSessionQueue – Create a queue for processing requests for new game +// sessions. +// +// DescribeGameSessionQueues – Get data on all game session queues defined in +// a Amazon GameLift region. +// +// UpdateGameSessionQueue – Change the configuration of a game session queue. +// +// DeleteGameSessionQueue – Remove a game session queue from the region. // The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. // Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01 diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go index bc9ec2d1..bdb1cb69 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleGlacier_AbortMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -43,11 +39,7 @@ func ExampleGlacier_AbortMultipartUpload() { } func ExampleGlacier_AbortVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -69,11 +61,7 @@ func ExampleGlacier_AbortVaultLock() { } func ExampleGlacier_AddTagsToVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -99,11 +87,7 @@ func ExampleGlacier_AddTagsToVault() { } func ExampleGlacier_CompleteMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -128,11 +112,7 @@ func ExampleGlacier_CompleteMultipartUpload() { } func ExampleGlacier_CompleteVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -155,11 +135,7 @@ func ExampleGlacier_CompleteVaultLock() { } func ExampleGlacier_CreateVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -181,11 +157,7 @@ func ExampleGlacier_CreateVault() { } func ExampleGlacier_DeleteArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -208,11 +180,7 @@ func ExampleGlacier_DeleteArchive() { } func ExampleGlacier_DeleteVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -234,11 +202,7 @@ func ExampleGlacier_DeleteVault() { } func ExampleGlacier_DeleteVaultAccessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -260,11 +224,7 @@ func ExampleGlacier_DeleteVaultAccessPolicy() { } func ExampleGlacier_DeleteVaultNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -286,11 +246,7 @@ func ExampleGlacier_DeleteVaultNotifications() { } func ExampleGlacier_DescribeJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -313,11 +269,7 @@ func ExampleGlacier_DescribeJob() { } func ExampleGlacier_DescribeVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -339,11 +291,7 @@ func ExampleGlacier_DescribeVault() { } func ExampleGlacier_GetDataRetrievalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -364,11 +312,7 @@ func ExampleGlacier_GetDataRetrievalPolicy() { } func ExampleGlacier_GetJobOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -392,11 +336,7 @@ func ExampleGlacier_GetJobOutput() { } func ExampleGlacier_GetVaultAccessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -418,11 +358,7 @@ func ExampleGlacier_GetVaultAccessPolicy() { } func ExampleGlacier_GetVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -444,11 +380,7 @@ func ExampleGlacier_GetVaultLock() { } func ExampleGlacier_GetVaultNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -470,11 +402,7 @@ func ExampleGlacier_GetVaultNotifications() { } func ExampleGlacier_InitiateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -511,11 +439,7 @@ func ExampleGlacier_InitiateJob() { } func ExampleGlacier_InitiateMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -539,11 +463,7 @@ func ExampleGlacier_InitiateMultipartUpload() { } func ExampleGlacier_InitiateVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -568,11 +488,7 @@ func ExampleGlacier_InitiateVaultLock() { } func ExampleGlacier_ListJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -598,11 +514,7 @@ func ExampleGlacier_ListJobs() { } func ExampleGlacier_ListMultipartUploads() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -626,11 +538,7 @@ func ExampleGlacier_ListMultipartUploads() { } func ExampleGlacier_ListParts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -655,11 +563,7 @@ func ExampleGlacier_ListParts() { } func ExampleGlacier_ListProvisionedCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -680,11 +584,7 @@ func ExampleGlacier_ListProvisionedCapacity() { } func ExampleGlacier_ListTagsForVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -706,11 +606,7 @@ func ExampleGlacier_ListTagsForVault() { } func ExampleGlacier_ListVaults() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -733,11 +629,7 @@ func ExampleGlacier_ListVaults() { } func ExampleGlacier_PurchaseProvisionedCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -758,11 +650,7 @@ func ExampleGlacier_PurchaseProvisionedCapacity() { } func ExampleGlacier_RemoveTagsFromVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -788,11 +676,7 @@ func ExampleGlacier_RemoveTagsFromVault() { } func ExampleGlacier_SetDataRetrievalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -822,11 +706,7 @@ func ExampleGlacier_SetDataRetrievalPolicy() { } func ExampleGlacier_SetVaultAccessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -851,11 +731,7 @@ func ExampleGlacier_SetVaultAccessPolicy() { } func ExampleGlacier_SetVaultNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -884,11 +760,7 @@ func ExampleGlacier_SetVaultNotifications() { } func ExampleGlacier_UploadArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -913,11 +785,7 @@ func ExampleGlacier_UploadArchive() { } func ExampleGlacier_UploadMultipartPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go index 5e95311b..8021ea44 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockGlacierClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go index 4abfb40a..4c32b808 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleHealth_DescribeAffectedEntities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := health.New(sess) @@ -75,11 +71,7 @@ func ExampleHealth_DescribeAffectedEntities() { } func ExampleHealth_DescribeEntityAggregates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := health.New(sess) @@ -103,11 +95,7 @@ func ExampleHealth_DescribeEntityAggregates() { } func ExampleHealth_DescribeEventAggregates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := health.New(sess) @@ -196,11 +184,7 @@ func ExampleHealth_DescribeEventAggregates() { } func ExampleHealth_DescribeEventDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := health.New(sess) @@ -225,11 +209,7 @@ func ExampleHealth_DescribeEventDetails() { } func ExampleHealth_DescribeEventTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := health.New(sess) @@ -266,11 +246,7 @@ func ExampleHealth_DescribeEventTypes() { } func ExampleHealth_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := health.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go index eb30c89b..23db90f3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockHealthClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go index 1364f78c..e4181867 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go @@ -10398,6 +10398,12 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // entity includes a public key certificate, a private key, and an optional // certificate chain, which should all be PEM-encoded. // +// We recommend that you use AWS Certificate Manager (https://aws.amazon.com/certificate-manager/) +// to provision, manage, and deploy your server certificates. With ACM you can +// request a certificate, deploy it to AWS resources, and let ACM handle certificate +// renewals for you. Certificates provided by ACM are free. For more information +// about using ACM, see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/). +// // For more information about working with server certificates, including a // list of AWS services that can use the server certificates that you manage // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) @@ -14604,6 +14610,11 @@ type EvaluationResult struct { // call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy. MissingContextValues []*string `type:"list"` + // A structure that details how AWS Organizations and its service control policies + // affect the results of the simulation. Only applies if the simulated user's + // account is part of an organization. + OrganizationsDecisionDetail *OrganizationsDecisionDetail `type:"structure"` + // The individual results of the simulation of the API action specified in EvalActionName // on each resource. ResourceSpecificResults []*ResourceSpecificResult `type:"list"` @@ -14655,6 +14666,12 @@ func (s *EvaluationResult) SetMissingContextValues(v []*string) *EvaluationResul return s } +// SetOrganizationsDecisionDetail sets the OrganizationsDecisionDetail field's value. +func (s *EvaluationResult) SetOrganizationsDecisionDetail(v *OrganizationsDecisionDetail) *EvaluationResult { + s.OrganizationsDecisionDetail = v + return s +} + // SetResourceSpecificResults sets the ResourceSpecificResults field's value. func (s *EvaluationResult) SetResourceSpecificResults(v []*ResourceSpecificResult) *EvaluationResult { s.ResourceSpecificResults = v @@ -20226,6 +20243,32 @@ func (s *OpenIDConnectProviderListEntry) SetArn(v string) *OpenIDConnectProvider return s } +// Contains information about AWS Organizations's affect on a policy simulation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/OrganizationsDecisionDetail +type OrganizationsDecisionDetail struct { + _ struct{} `type:"structure"` + + // Specifies whether the simulated action is allowed by the AWS Organizations + // service control policies that impact the simulated user's account. + AllowedByOrganizations *bool `type:"boolean"` +} + +// String returns the string representation +func (s OrganizationsDecisionDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationsDecisionDetail) GoString() string { + return s.String() +} + +// SetAllowedByOrganizations sets the AllowedByOrganizations field's value. +func (s *OrganizationsDecisionDetail) SetAllowedByOrganizations(v bool) *OrganizationsDecisionDetail { + s.AllowedByOrganizations = &v + return s +} + // Contains information about the account password policy. // // This data type is used as a response element in the GetAccountPasswordPolicy diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go index 301ab82b..c8b05ca7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIAM_AddClientIDToOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -42,11 +38,7 @@ func ExampleIAM_AddClientIDToOpenIDConnectProvider() { } func ExampleIAM_AddRoleToInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -68,11 +60,7 @@ func ExampleIAM_AddRoleToInstanceProfile() { } func ExampleIAM_AddUserToGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -94,11 +82,7 @@ func ExampleIAM_AddUserToGroup() { } func ExampleIAM_AttachGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -120,11 +104,7 @@ func ExampleIAM_AttachGroupPolicy() { } func ExampleIAM_AttachRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -146,11 +126,7 @@ func ExampleIAM_AttachRolePolicy() { } func ExampleIAM_AttachUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -172,11 +148,7 @@ func ExampleIAM_AttachUserPolicy() { } func ExampleIAM_ChangePassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -198,11 +170,7 @@ func ExampleIAM_ChangePassword() { } func ExampleIAM_CreateAccessKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -223,11 +191,7 @@ func ExampleIAM_CreateAccessKey() { } func ExampleIAM_CreateAccountAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -248,11 +212,7 @@ func ExampleIAM_CreateAccountAlias() { } func ExampleIAM_CreateGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -274,11 +234,7 @@ func ExampleIAM_CreateGroup() { } func ExampleIAM_CreateInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -300,11 +256,7 @@ func ExampleIAM_CreateInstanceProfile() { } func ExampleIAM_CreateLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -327,11 +279,7 @@ func ExampleIAM_CreateLoginProfile() { } func ExampleIAM_CreateOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -360,11 +308,7 @@ func ExampleIAM_CreateOpenIDConnectProvider() { } func ExampleIAM_CreatePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -388,11 +332,7 @@ func ExampleIAM_CreatePolicy() { } func ExampleIAM_CreatePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -415,11 +355,7 @@ func ExampleIAM_CreatePolicyVersion() { } func ExampleIAM_CreateRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -442,11 +378,7 @@ func ExampleIAM_CreateRole() { } func ExampleIAM_CreateSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -468,11 +400,7 @@ func ExampleIAM_CreateSAMLProvider() { } func ExampleIAM_CreateServiceSpecificCredential() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -494,11 +422,7 @@ func ExampleIAM_CreateServiceSpecificCredential() { } func ExampleIAM_CreateUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -520,11 +444,7 @@ func ExampleIAM_CreateUser() { } func ExampleIAM_CreateVirtualMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -546,11 +466,7 @@ func ExampleIAM_CreateVirtualMFADevice() { } func ExampleIAM_DeactivateMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -572,11 +488,7 @@ func ExampleIAM_DeactivateMFADevice() { } func ExampleIAM_DeleteAccessKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -598,11 +510,7 @@ func ExampleIAM_DeleteAccessKey() { } func ExampleIAM_DeleteAccountAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -623,11 +531,7 @@ func ExampleIAM_DeleteAccountAlias() { } func ExampleIAM_DeleteAccountPasswordPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -646,11 +550,7 @@ func ExampleIAM_DeleteAccountPasswordPolicy() { } func ExampleIAM_DeleteGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -671,11 +571,7 @@ func ExampleIAM_DeleteGroup() { } func ExampleIAM_DeleteGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -697,11 +593,7 @@ func ExampleIAM_DeleteGroupPolicy() { } func ExampleIAM_DeleteInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -722,11 +614,7 @@ func ExampleIAM_DeleteInstanceProfile() { } func ExampleIAM_DeleteLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -747,11 +635,7 @@ func ExampleIAM_DeleteLoginProfile() { } func ExampleIAM_DeleteOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -772,11 +656,7 @@ func ExampleIAM_DeleteOpenIDConnectProvider() { } func ExampleIAM_DeletePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -797,11 +677,7 @@ func ExampleIAM_DeletePolicy() { } func ExampleIAM_DeletePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -823,11 +699,7 @@ func ExampleIAM_DeletePolicyVersion() { } func ExampleIAM_DeleteRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -848,11 +720,7 @@ func ExampleIAM_DeleteRole() { } func ExampleIAM_DeleteRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -874,11 +742,7 @@ func ExampleIAM_DeleteRolePolicy() { } func ExampleIAM_DeleteSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -899,11 +763,7 @@ func ExampleIAM_DeleteSAMLProvider() { } func ExampleIAM_DeleteSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -925,11 +785,7 @@ func ExampleIAM_DeleteSSHPublicKey() { } func ExampleIAM_DeleteServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -950,11 +806,7 @@ func ExampleIAM_DeleteServerCertificate() { } func ExampleIAM_DeleteServiceSpecificCredential() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -976,11 +828,7 @@ func ExampleIAM_DeleteServiceSpecificCredential() { } func ExampleIAM_DeleteSigningCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1002,11 +850,7 @@ func ExampleIAM_DeleteSigningCertificate() { } func ExampleIAM_DeleteUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1027,11 +871,7 @@ func ExampleIAM_DeleteUser() { } func ExampleIAM_DeleteUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1053,11 +893,7 @@ func ExampleIAM_DeleteUserPolicy() { } func ExampleIAM_DeleteVirtualMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1078,11 +914,7 @@ func ExampleIAM_DeleteVirtualMFADevice() { } func ExampleIAM_DetachGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1104,11 +936,7 @@ func ExampleIAM_DetachGroupPolicy() { } func ExampleIAM_DetachRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1130,11 +958,7 @@ func ExampleIAM_DetachRolePolicy() { } func ExampleIAM_DetachUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1156,11 +980,7 @@ func ExampleIAM_DetachUserPolicy() { } func ExampleIAM_EnableMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1184,11 +1004,7 @@ func ExampleIAM_EnableMFADevice() { } func ExampleIAM_GenerateCredentialReport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1207,11 +1023,7 @@ func ExampleIAM_GenerateCredentialReport() { } func ExampleIAM_GetAccessKeyLastUsed() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1232,11 +1044,7 @@ func ExampleIAM_GetAccessKeyLastUsed() { } func ExampleIAM_GetAccountAuthorizationDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1262,11 +1070,7 @@ func ExampleIAM_GetAccountAuthorizationDetails() { } func ExampleIAM_GetAccountPasswordPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1285,11 +1089,7 @@ func ExampleIAM_GetAccountPasswordPolicy() { } func ExampleIAM_GetAccountSummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1308,11 +1108,7 @@ func ExampleIAM_GetAccountSummary() { } func ExampleIAM_GetContextKeysForCustomPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1336,11 +1132,7 @@ func ExampleIAM_GetContextKeysForCustomPolicy() { } func ExampleIAM_GetContextKeysForPrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1365,11 +1157,7 @@ func ExampleIAM_GetContextKeysForPrincipalPolicy() { } func ExampleIAM_GetCredentialReport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1388,11 +1176,7 @@ func ExampleIAM_GetCredentialReport() { } func ExampleIAM_GetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1415,11 +1199,7 @@ func ExampleIAM_GetGroup() { } func ExampleIAM_GetGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1441,11 +1221,7 @@ func ExampleIAM_GetGroupPolicy() { } func ExampleIAM_GetInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1466,11 +1242,7 @@ func ExampleIAM_GetInstanceProfile() { } func ExampleIAM_GetLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1491,11 +1263,7 @@ func ExampleIAM_GetLoginProfile() { } func ExampleIAM_GetOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1516,11 +1284,7 @@ func ExampleIAM_GetOpenIDConnectProvider() { } func ExampleIAM_GetPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1541,11 +1305,7 @@ func ExampleIAM_GetPolicy() { } func ExampleIAM_GetPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1567,11 +1327,7 @@ func ExampleIAM_GetPolicyVersion() { } func ExampleIAM_GetRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1592,11 +1348,7 @@ func ExampleIAM_GetRole() { } func ExampleIAM_GetRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1618,11 +1370,7 @@ func ExampleIAM_GetRolePolicy() { } func ExampleIAM_GetSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1643,11 +1391,7 @@ func ExampleIAM_GetSAMLProvider() { } func ExampleIAM_GetSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1670,11 +1414,7 @@ func ExampleIAM_GetSSHPublicKey() { } func ExampleIAM_GetServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1695,11 +1435,7 @@ func ExampleIAM_GetServerCertificate() { } func ExampleIAM_GetUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1720,11 +1456,7 @@ func ExampleIAM_GetUser() { } func ExampleIAM_GetUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1746,11 +1478,7 @@ func ExampleIAM_GetUserPolicy() { } func ExampleIAM_ListAccessKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1773,11 +1501,7 @@ func ExampleIAM_ListAccessKeys() { } func ExampleIAM_ListAccountAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1799,11 +1523,7 @@ func ExampleIAM_ListAccountAliases() { } func ExampleIAM_ListAttachedGroupPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1827,11 +1547,7 @@ func ExampleIAM_ListAttachedGroupPolicies() { } func ExampleIAM_ListAttachedRolePolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1855,11 +1571,7 @@ func ExampleIAM_ListAttachedRolePolicies() { } func ExampleIAM_ListAttachedUserPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1883,11 +1595,7 @@ func ExampleIAM_ListAttachedUserPolicies() { } func ExampleIAM_ListEntitiesForPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1912,11 +1620,7 @@ func ExampleIAM_ListEntitiesForPolicy() { } func ExampleIAM_ListGroupPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1939,11 +1643,7 @@ func ExampleIAM_ListGroupPolicies() { } func ExampleIAM_ListGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1966,11 +1666,7 @@ func ExampleIAM_ListGroups() { } func ExampleIAM_ListGroupsForUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1993,11 +1689,7 @@ func ExampleIAM_ListGroupsForUser() { } func ExampleIAM_ListInstanceProfiles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2020,11 +1712,7 @@ func ExampleIAM_ListInstanceProfiles() { } func ExampleIAM_ListInstanceProfilesForRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2047,11 +1735,7 @@ func ExampleIAM_ListInstanceProfilesForRole() { } func ExampleIAM_ListMFADevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2074,11 +1758,7 @@ func ExampleIAM_ListMFADevices() { } func ExampleIAM_ListOpenIDConnectProviders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2097,11 +1777,7 @@ func ExampleIAM_ListOpenIDConnectProviders() { } func ExampleIAM_ListPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2126,11 +1802,7 @@ func ExampleIAM_ListPolicies() { } func ExampleIAM_ListPolicyVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2153,11 +1825,7 @@ func ExampleIAM_ListPolicyVersions() { } func ExampleIAM_ListRolePolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2180,11 +1848,7 @@ func ExampleIAM_ListRolePolicies() { } func ExampleIAM_ListRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2207,11 +1871,7 @@ func ExampleIAM_ListRoles() { } func ExampleIAM_ListSAMLProviders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2230,11 +1890,7 @@ func ExampleIAM_ListSAMLProviders() { } func ExampleIAM_ListSSHPublicKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2257,11 +1913,7 @@ func ExampleIAM_ListSSHPublicKeys() { } func ExampleIAM_ListServerCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2284,11 +1936,7 @@ func ExampleIAM_ListServerCertificates() { } func ExampleIAM_ListServiceSpecificCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2310,11 +1958,7 @@ func ExampleIAM_ListServiceSpecificCredentials() { } func ExampleIAM_ListSigningCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2337,11 +1981,7 @@ func ExampleIAM_ListSigningCertificates() { } func ExampleIAM_ListUserPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2364,11 +2004,7 @@ func ExampleIAM_ListUserPolicies() { } func ExampleIAM_ListUsers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2391,11 +2027,7 @@ func ExampleIAM_ListUsers() { } func ExampleIAM_ListVirtualMFADevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2418,11 +2050,7 @@ func ExampleIAM_ListVirtualMFADevices() { } func ExampleIAM_PutGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2445,11 +2073,7 @@ func ExampleIAM_PutGroupPolicy() { } func ExampleIAM_PutRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2472,11 +2096,7 @@ func ExampleIAM_PutRolePolicy() { } func ExampleIAM_PutUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2499,11 +2119,7 @@ func ExampleIAM_PutUserPolicy() { } func ExampleIAM_RemoveClientIDFromOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2525,11 +2141,7 @@ func ExampleIAM_RemoveClientIDFromOpenIDConnectProvider() { } func ExampleIAM_RemoveRoleFromInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2551,11 +2163,7 @@ func ExampleIAM_RemoveRoleFromInstanceProfile() { } func ExampleIAM_RemoveUserFromGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2577,11 +2185,7 @@ func ExampleIAM_RemoveUserFromGroup() { } func ExampleIAM_ResetServiceSpecificCredential() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2603,11 +2207,7 @@ func ExampleIAM_ResetServiceSpecificCredential() { } func ExampleIAM_ResyncMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2631,11 +2231,7 @@ func ExampleIAM_ResyncMFADevice() { } func ExampleIAM_SetDefaultPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2657,11 +2253,7 @@ func ExampleIAM_SetDefaultPolicyVersion() { } func ExampleIAM_SimulateCustomPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2710,11 +2302,7 @@ func ExampleIAM_SimulateCustomPolicy() { } func ExampleIAM_SimulatePrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2764,11 +2352,7 @@ func ExampleIAM_SimulatePrincipalPolicy() { } func ExampleIAM_UpdateAccessKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2791,11 +2375,7 @@ func ExampleIAM_UpdateAccessKey() { } func ExampleIAM_UpdateAccountPasswordPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2824,11 +2404,7 @@ func ExampleIAM_UpdateAccountPasswordPolicy() { } func ExampleIAM_UpdateAssumeRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2850,11 +2426,7 @@ func ExampleIAM_UpdateAssumeRolePolicy() { } func ExampleIAM_UpdateGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2877,11 +2449,7 @@ func ExampleIAM_UpdateGroup() { } func ExampleIAM_UpdateLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2904,11 +2472,7 @@ func ExampleIAM_UpdateLoginProfile() { } func ExampleIAM_UpdateOpenIDConnectProviderThumbprint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2933,11 +2497,7 @@ func ExampleIAM_UpdateOpenIDConnectProviderThumbprint() { } func ExampleIAM_UpdateSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2959,11 +2519,7 @@ func ExampleIAM_UpdateSAMLProvider() { } func ExampleIAM_UpdateSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2986,11 +2542,7 @@ func ExampleIAM_UpdateSSHPublicKey() { } func ExampleIAM_UpdateServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3013,11 +2565,7 @@ func ExampleIAM_UpdateServerCertificate() { } func ExampleIAM_UpdateServiceSpecificCredential() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3040,11 +2588,7 @@ func ExampleIAM_UpdateServiceSpecificCredential() { } func ExampleIAM_UpdateSigningCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3067,11 +2611,7 @@ func ExampleIAM_UpdateSigningCertificate() { } func ExampleIAM_UpdateUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3094,11 +2634,7 @@ func ExampleIAM_UpdateUser() { } func ExampleIAM_UploadSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3120,11 +2656,7 @@ func ExampleIAM_UploadSSHPublicKey() { } func ExampleIAM_UploadServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3149,11 +2681,7 @@ func ExampleIAM_UploadServerCertificate() { } func ExampleIAM_UploadSigningCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go index 56c23412..62c612c3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockIAMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go index 164fad53..0008e66a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleInspector_AddAttributesToFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -51,11 +47,7 @@ func ExampleInspector_AddAttributesToFindings() { } func ExampleInspector_CreateAssessmentTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -77,11 +69,7 @@ func ExampleInspector_CreateAssessmentTarget() { } func ExampleInspector_CreateAssessmentTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -115,11 +103,7 @@ func ExampleInspector_CreateAssessmentTemplate() { } func ExampleInspector_CreateResourceGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -146,11 +130,7 @@ func ExampleInspector_CreateResourceGroup() { } func ExampleInspector_DeleteAssessmentRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -171,11 +151,7 @@ func ExampleInspector_DeleteAssessmentRun() { } func ExampleInspector_DeleteAssessmentTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -196,11 +172,7 @@ func ExampleInspector_DeleteAssessmentTarget() { } func ExampleInspector_DeleteAssessmentTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -221,11 +193,7 @@ func ExampleInspector_DeleteAssessmentTemplate() { } func ExampleInspector_DescribeAssessmentRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -249,11 +217,7 @@ func ExampleInspector_DescribeAssessmentRuns() { } func ExampleInspector_DescribeAssessmentTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -277,11 +241,7 @@ func ExampleInspector_DescribeAssessmentTargets() { } func ExampleInspector_DescribeAssessmentTemplates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -305,11 +265,7 @@ func ExampleInspector_DescribeAssessmentTemplates() { } func ExampleInspector_DescribeCrossAccountAccessRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -328,11 +284,7 @@ func ExampleInspector_DescribeCrossAccountAccessRole() { } func ExampleInspector_DescribeFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -357,11 +309,7 @@ func ExampleInspector_DescribeFindings() { } func ExampleInspector_DescribeResourceGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -385,11 +333,7 @@ func ExampleInspector_DescribeResourceGroups() { } func ExampleInspector_DescribeRulesPackages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -414,11 +358,7 @@ func ExampleInspector_DescribeRulesPackages() { } func ExampleInspector_GetTelemetryMetadata() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -439,11 +379,7 @@ func ExampleInspector_GetTelemetryMetadata() { } func ExampleInspector_ListAssessmentRunAgents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -476,11 +412,7 @@ func ExampleInspector_ListAssessmentRunAgents() { } func ExampleInspector_ListAssessmentRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -533,11 +465,7 @@ func ExampleInspector_ListAssessmentRuns() { } func ExampleInspector_ListAssessmentTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -562,11 +490,7 @@ func ExampleInspector_ListAssessmentTargets() { } func ExampleInspector_ListAssessmentTemplates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -603,11 +527,7 @@ func ExampleInspector_ListAssessmentTemplates() { } func ExampleInspector_ListEventSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -630,11 +550,7 @@ func ExampleInspector_ListEventSubscriptions() { } func ExampleInspector_ListFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -700,11 +616,7 @@ func ExampleInspector_ListFindings() { } func ExampleInspector_ListRulesPackages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -726,11 +638,7 @@ func ExampleInspector_ListRulesPackages() { } func ExampleInspector_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -751,11 +659,7 @@ func ExampleInspector_ListTagsForResource() { } func ExampleInspector_PreviewAgents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -778,11 +682,7 @@ func ExampleInspector_PreviewAgents() { } func ExampleInspector_RegisterCrossAccountAccessRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -803,11 +703,7 @@ func ExampleInspector_RegisterCrossAccountAccessRole() { } func ExampleInspector_RemoveAttributesFromFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -835,11 +731,7 @@ func ExampleInspector_RemoveAttributesFromFindings() { } func ExampleInspector_SetTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -867,11 +759,7 @@ func ExampleInspector_SetTagsForResource() { } func ExampleInspector_StartAssessmentRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -893,11 +781,7 @@ func ExampleInspector_StartAssessmentRun() { } func ExampleInspector_StopAssessmentRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -918,11 +802,7 @@ func ExampleInspector_StopAssessmentRun() { } func ExampleInspector_SubscribeToEvent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -945,11 +825,7 @@ func ExampleInspector_SubscribeToEvent() { } func ExampleInspector_UnsubscribeFromEvent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -972,11 +848,7 @@ func ExampleInspector_UnsubscribeFromEvent() { } func ExampleInspector_UpdateAssessmentTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go index 45bf5ced..e3fe3561 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockInspectorClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go index b96d91bf..e127a984 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIoT_AcceptCertificateTransfer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -42,11 +38,7 @@ func ExampleIoT_AcceptCertificateTransfer() { } func ExampleIoT_AttachPrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -68,11 +60,7 @@ func ExampleIoT_AttachPrincipalPolicy() { } func ExampleIoT_AttachThingPrincipal() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -94,11 +82,7 @@ func ExampleIoT_AttachThingPrincipal() { } func ExampleIoT_CancelCertificateTransfer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -119,11 +103,7 @@ func ExampleIoT_CancelCertificateTransfer() { } func ExampleIoT_CreateCertificateFromCsr() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -145,11 +125,7 @@ func ExampleIoT_CreateCertificateFromCsr() { } func ExampleIoT_CreateKeysAndCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -170,11 +146,7 @@ func ExampleIoT_CreateKeysAndCertificate() { } func ExampleIoT_CreatePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -196,11 +168,7 @@ func ExampleIoT_CreatePolicy() { } func ExampleIoT_CreatePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -223,11 +191,7 @@ func ExampleIoT_CreatePolicyVersion() { } func ExampleIoT_CreateThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -256,11 +220,7 @@ func ExampleIoT_CreateThing() { } func ExampleIoT_CreateThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -288,11 +248,7 @@ func ExampleIoT_CreateThingType() { } func ExampleIoT_CreateTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -396,11 +352,7 @@ func ExampleIoT_CreateTopicRule() { } func ExampleIoT_DeleteCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -421,11 +373,7 @@ func ExampleIoT_DeleteCACertificate() { } func ExampleIoT_DeleteCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -446,11 +394,7 @@ func ExampleIoT_DeleteCertificate() { } func ExampleIoT_DeletePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -471,11 +415,7 @@ func ExampleIoT_DeletePolicy() { } func ExampleIoT_DeletePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -497,11 +437,7 @@ func ExampleIoT_DeletePolicyVersion() { } func ExampleIoT_DeleteRegistrationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -520,11 +456,7 @@ func ExampleIoT_DeleteRegistrationCode() { } func ExampleIoT_DeleteThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -546,11 +478,7 @@ func ExampleIoT_DeleteThing() { } func ExampleIoT_DeleteThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -571,11 +499,7 @@ func ExampleIoT_DeleteThingType() { } func ExampleIoT_DeleteTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -596,11 +520,7 @@ func ExampleIoT_DeleteTopicRule() { } func ExampleIoT_DeprecateThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -622,11 +542,7 @@ func ExampleIoT_DeprecateThingType() { } func ExampleIoT_DescribeCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -647,11 +563,7 @@ func ExampleIoT_DescribeCACertificate() { } func ExampleIoT_DescribeCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -672,11 +584,7 @@ func ExampleIoT_DescribeCertificate() { } func ExampleIoT_DescribeEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -695,11 +603,7 @@ func ExampleIoT_DescribeEndpoint() { } func ExampleIoT_DescribeThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -720,11 +624,7 @@ func ExampleIoT_DescribeThing() { } func ExampleIoT_DescribeThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -745,11 +645,7 @@ func ExampleIoT_DescribeThingType() { } func ExampleIoT_DetachPrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -771,11 +667,7 @@ func ExampleIoT_DetachPrincipalPolicy() { } func ExampleIoT_DetachThingPrincipal() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -797,11 +689,7 @@ func ExampleIoT_DetachThingPrincipal() { } func ExampleIoT_DisableTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -822,11 +710,7 @@ func ExampleIoT_DisableTopicRule() { } func ExampleIoT_EnableTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -847,11 +731,7 @@ func ExampleIoT_EnableTopicRule() { } func ExampleIoT_GetLoggingOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -870,11 +750,7 @@ func ExampleIoT_GetLoggingOptions() { } func ExampleIoT_GetPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -895,11 +771,7 @@ func ExampleIoT_GetPolicy() { } func ExampleIoT_GetPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -921,11 +793,7 @@ func ExampleIoT_GetPolicyVersion() { } func ExampleIoT_GetRegistrationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -944,11 +812,7 @@ func ExampleIoT_GetRegistrationCode() { } func ExampleIoT_GetTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -969,11 +833,7 @@ func ExampleIoT_GetTopicRule() { } func ExampleIoT_ListCACertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -996,11 +856,7 @@ func ExampleIoT_ListCACertificates() { } func ExampleIoT_ListCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1023,11 +879,7 @@ func ExampleIoT_ListCertificates() { } func ExampleIoT_ListCertificatesByCA() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1051,11 +903,7 @@ func ExampleIoT_ListCertificatesByCA() { } func ExampleIoT_ListOutgoingCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1078,11 +926,7 @@ func ExampleIoT_ListOutgoingCertificates() { } func ExampleIoT_ListPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1105,11 +949,7 @@ func ExampleIoT_ListPolicies() { } func ExampleIoT_ListPolicyPrincipals() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1133,11 +973,7 @@ func ExampleIoT_ListPolicyPrincipals() { } func ExampleIoT_ListPolicyVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1158,11 +994,7 @@ func ExampleIoT_ListPolicyVersions() { } func ExampleIoT_ListPrincipalPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1186,11 +1018,7 @@ func ExampleIoT_ListPrincipalPolicies() { } func ExampleIoT_ListPrincipalThings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1213,11 +1041,7 @@ func ExampleIoT_ListPrincipalThings() { } func ExampleIoT_ListThingPrincipals() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1238,11 +1062,7 @@ func ExampleIoT_ListThingPrincipals() { } func ExampleIoT_ListThingTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1265,11 +1085,7 @@ func ExampleIoT_ListThingTypes() { } func ExampleIoT_ListThings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1294,11 +1110,7 @@ func ExampleIoT_ListThings() { } func ExampleIoT_ListTopicRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1322,11 +1134,7 @@ func ExampleIoT_ListTopicRules() { } func ExampleIoT_RegisterCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1350,11 +1158,7 @@ func ExampleIoT_RegisterCACertificate() { } func ExampleIoT_RegisterCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1378,11 +1182,7 @@ func ExampleIoT_RegisterCertificate() { } func ExampleIoT_RejectCertificateTransfer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1404,11 +1204,7 @@ func ExampleIoT_RejectCertificateTransfer() { } func ExampleIoT_ReplaceTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1512,11 +1308,7 @@ func ExampleIoT_ReplaceTopicRule() { } func ExampleIoT_SetDefaultPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1538,11 +1330,7 @@ func ExampleIoT_SetDefaultPolicyVersion() { } func ExampleIoT_SetLoggingOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1566,11 +1354,7 @@ func ExampleIoT_SetLoggingOptions() { } func ExampleIoT_TransferCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1593,11 +1377,7 @@ func ExampleIoT_TransferCertificate() { } func ExampleIoT_UpdateCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1620,11 +1400,7 @@ func ExampleIoT_UpdateCACertificate() { } func ExampleIoT_UpdateCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1646,11 +1422,7 @@ func ExampleIoT_UpdateCertificate() { } func ExampleIoT_UpdateThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go index 6d08b2b4..049c9c14 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockIoTClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go index ca08392a..5fbece52 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIoTDataPlane_DeleteThingShadow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) @@ -41,11 +37,7 @@ func ExampleIoTDataPlane_DeleteThingShadow() { } func ExampleIoTDataPlane_GetThingShadow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) @@ -66,11 +58,7 @@ func ExampleIoTDataPlane_GetThingShadow() { } func ExampleIoTDataPlane_Publish() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) @@ -93,11 +81,7 @@ func ExampleIoTDataPlane_Publish() { } func ExampleIoTDataPlane_UpdateThingShadow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go index 22028f6f..382c6bee 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockIoTDataPlaneClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go index 5a4eeec9..f0827714 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKinesis_AddTagsToStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -45,11 +41,7 @@ func ExampleKinesis_AddTagsToStream() { } func ExampleKinesis_CreateStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -71,11 +63,7 @@ func ExampleKinesis_CreateStream() { } func ExampleKinesis_DecreaseStreamRetentionPeriod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -97,11 +85,7 @@ func ExampleKinesis_DecreaseStreamRetentionPeriod() { } func ExampleKinesis_DeleteStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -122,11 +106,7 @@ func ExampleKinesis_DeleteStream() { } func ExampleKinesis_DescribeLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -145,11 +125,7 @@ func ExampleKinesis_DescribeLimits() { } func ExampleKinesis_DescribeStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -172,11 +148,7 @@ func ExampleKinesis_DescribeStream() { } func ExampleKinesis_DisableEnhancedMonitoring() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -201,11 +173,7 @@ func ExampleKinesis_DisableEnhancedMonitoring() { } func ExampleKinesis_EnableEnhancedMonitoring() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -230,11 +198,7 @@ func ExampleKinesis_EnableEnhancedMonitoring() { } func ExampleKinesis_GetRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -256,11 +220,7 @@ func ExampleKinesis_GetRecords() { } func ExampleKinesis_GetShardIterator() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -285,11 +245,7 @@ func ExampleKinesis_GetShardIterator() { } func ExampleKinesis_IncreaseStreamRetentionPeriod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -311,11 +267,7 @@ func ExampleKinesis_IncreaseStreamRetentionPeriod() { } func ExampleKinesis_ListStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -337,11 +289,7 @@ func ExampleKinesis_ListStreams() { } func ExampleKinesis_ListTagsForStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -364,11 +312,7 @@ func ExampleKinesis_ListTagsForStream() { } func ExampleKinesis_MergeShards() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -391,11 +335,7 @@ func ExampleKinesis_MergeShards() { } func ExampleKinesis_PutRecord() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -420,11 +360,7 @@ func ExampleKinesis_PutRecord() { } func ExampleKinesis_PutRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -453,11 +389,7 @@ func ExampleKinesis_PutRecords() { } func ExampleKinesis_RemoveTagsFromStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -482,11 +414,7 @@ func ExampleKinesis_RemoveTagsFromStream() { } func ExampleKinesis_SplitShard() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -509,11 +437,7 @@ func ExampleKinesis_SplitShard() { } func ExampleKinesis_UpdateShardCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go index 524d237e..027189ac 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockKinesisClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go index 4f9b568e..efacb875 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKinesisAnalytics_AddApplicationInput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -79,11 +75,7 @@ func ExampleKinesisAnalytics_AddApplicationInput() { } func ExampleKinesisAnalytics_AddApplicationOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -119,11 +111,7 @@ func ExampleKinesisAnalytics_AddApplicationOutput() { } func ExampleKinesisAnalytics_AddApplicationReferenceDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -176,11 +164,7 @@ func ExampleKinesisAnalytics_AddApplicationReferenceDataSource() { } func ExampleKinesisAnalytics_CreateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -260,11 +244,7 @@ func ExampleKinesisAnalytics_CreateApplication() { } func ExampleKinesisAnalytics_DeleteApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -286,11 +266,7 @@ func ExampleKinesisAnalytics_DeleteApplication() { } func ExampleKinesisAnalytics_DeleteApplicationOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -313,11 +289,7 @@ func ExampleKinesisAnalytics_DeleteApplicationOutput() { } func ExampleKinesisAnalytics_DeleteApplicationReferenceDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -340,11 +312,7 @@ func ExampleKinesisAnalytics_DeleteApplicationReferenceDataSource() { } func ExampleKinesisAnalytics_DescribeApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -365,11 +333,7 @@ func ExampleKinesisAnalytics_DescribeApplication() { } func ExampleKinesisAnalytics_DiscoverInputSchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -394,11 +358,7 @@ func ExampleKinesisAnalytics_DiscoverInputSchema() { } func ExampleKinesisAnalytics_ListApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -420,11 +380,7 @@ func ExampleKinesisAnalytics_ListApplications() { } func ExampleKinesisAnalytics_StartApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -454,11 +410,7 @@ func ExampleKinesisAnalytics_StartApplication() { } func ExampleKinesisAnalytics_StopApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -479,11 +431,7 @@ func ExampleKinesisAnalytics_StopApplication() { } func ExampleKinesisAnalytics_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go index f7263a83..f988845d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockKinesisAnalyticsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go index 8b6054c2..50fc0ef3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKMS_CancelKeyDeletion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -41,11 +37,7 @@ func ExampleKMS_CancelKeyDeletion() { } func ExampleKMS_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -67,11 +59,7 @@ func ExampleKMS_CreateAlias() { } func ExampleKMS_CreateGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -113,11 +101,7 @@ func ExampleKMS_CreateGrant() { } func ExampleKMS_CreateKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -149,11 +133,7 @@ func ExampleKMS_CreateKey() { } func ExampleKMS_Decrypt() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -182,11 +162,7 @@ func ExampleKMS_Decrypt() { } func ExampleKMS_DeleteAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -207,11 +183,7 @@ func ExampleKMS_DeleteAlias() { } func ExampleKMS_DeleteImportedKeyMaterial() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -232,11 +204,7 @@ func ExampleKMS_DeleteImportedKeyMaterial() { } func ExampleKMS_DescribeKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -261,11 +229,7 @@ func ExampleKMS_DescribeKey() { } func ExampleKMS_DisableKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -286,11 +250,7 @@ func ExampleKMS_DisableKey() { } func ExampleKMS_DisableKeyRotation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -311,11 +271,7 @@ func ExampleKMS_DisableKeyRotation() { } func ExampleKMS_EnableKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -336,11 +292,7 @@ func ExampleKMS_EnableKey() { } func ExampleKMS_EnableKeyRotation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -361,11 +313,7 @@ func ExampleKMS_EnableKeyRotation() { } func ExampleKMS_Encrypt() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -395,11 +343,7 @@ func ExampleKMS_Encrypt() { } func ExampleKMS_GenerateDataKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -430,11 +374,7 @@ func ExampleKMS_GenerateDataKey() { } func ExampleKMS_GenerateDataKeyWithoutPlaintext() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -465,11 +405,7 @@ func ExampleKMS_GenerateDataKeyWithoutPlaintext() { } func ExampleKMS_GenerateRandom() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -490,11 +426,7 @@ func ExampleKMS_GenerateRandom() { } func ExampleKMS_GetKeyPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -516,11 +448,7 @@ func ExampleKMS_GetKeyPolicy() { } func ExampleKMS_GetKeyRotationStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -541,11 +469,7 @@ func ExampleKMS_GetKeyRotationStatus() { } func ExampleKMS_GetParametersForImport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -568,11 +492,7 @@ func ExampleKMS_GetParametersForImport() { } func ExampleKMS_ImportKeyMaterial() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -597,11 +517,7 @@ func ExampleKMS_ImportKeyMaterial() { } func ExampleKMS_ListAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -623,11 +539,7 @@ func ExampleKMS_ListAliases() { } func ExampleKMS_ListGrants() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -650,11 +562,7 @@ func ExampleKMS_ListGrants() { } func ExampleKMS_ListKeyPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -677,11 +585,7 @@ func ExampleKMS_ListKeyPolicies() { } func ExampleKMS_ListKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -703,11 +607,7 @@ func ExampleKMS_ListKeys() { } func ExampleKMS_ListResourceTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -730,11 +630,7 @@ func ExampleKMS_ListResourceTags() { } func ExampleKMS_ListRetirableGrants() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -757,11 +653,7 @@ func ExampleKMS_ListRetirableGrants() { } func ExampleKMS_PutKeyPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -785,11 +677,7 @@ func ExampleKMS_PutKeyPolicy() { } func ExampleKMS_ReEncrypt() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -823,11 +711,7 @@ func ExampleKMS_ReEncrypt() { } func ExampleKMS_RetireGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -850,11 +734,7 @@ func ExampleKMS_RetireGrant() { } func ExampleKMS_RevokeGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -876,11 +756,7 @@ func ExampleKMS_RevokeGrant() { } func ExampleKMS_ScheduleKeyDeletion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -902,11 +778,7 @@ func ExampleKMS_ScheduleKeyDeletion() { } func ExampleKMS_TagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -934,11 +806,7 @@ func ExampleKMS_TagResource() { } func ExampleKMS_UntagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -963,11 +831,7 @@ func ExampleKMS_UntagResource() { } func ExampleKMS_UpdateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -989,11 +853,7 @@ func ExampleKMS_UpdateAlias() { } func ExampleKMS_UpdateKeyDescription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go index d7d6b557..e261befd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockKMSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go index cdccb787..a6ba7918 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleLambda_AddPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -48,11 +44,7 @@ func ExampleLambda_AddPermission() { } func ExampleLambda_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -76,11 +68,7 @@ func ExampleLambda_CreateAlias() { } func ExampleLambda_CreateEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -106,11 +94,7 @@ func ExampleLambda_CreateEventSourceMapping() { } func ExampleLambda_CreateFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -164,11 +148,7 @@ func ExampleLambda_CreateFunction() { } func ExampleLambda_DeleteAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -190,11 +170,7 @@ func ExampleLambda_DeleteAlias() { } func ExampleLambda_DeleteEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -215,11 +191,7 @@ func ExampleLambda_DeleteEventSourceMapping() { } func ExampleLambda_DeleteFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -241,11 +213,7 @@ func ExampleLambda_DeleteFunction() { } func ExampleLambda_GetAccountSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -264,11 +232,7 @@ func ExampleLambda_GetAccountSettings() { } func ExampleLambda_GetAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -290,11 +254,7 @@ func ExampleLambda_GetAlias() { } func ExampleLambda_GetEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -315,11 +275,7 @@ func ExampleLambda_GetEventSourceMapping() { } func ExampleLambda_GetFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -341,11 +297,7 @@ func ExampleLambda_GetFunction() { } func ExampleLambda_GetFunctionConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -367,11 +319,7 @@ func ExampleLambda_GetFunctionConfiguration() { } func ExampleLambda_GetPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -393,11 +341,7 @@ func ExampleLambda_GetPolicy() { } func ExampleLambda_Invoke() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -423,11 +367,7 @@ func ExampleLambda_Invoke() { } func ExampleLambda_InvokeAsync() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -449,11 +389,7 @@ func ExampleLambda_InvokeAsync() { } func ExampleLambda_ListAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -477,11 +413,7 @@ func ExampleLambda_ListAliases() { } func ExampleLambda_ListEventSourceMappings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -505,11 +437,7 @@ func ExampleLambda_ListEventSourceMappings() { } func ExampleLambda_ListFunctions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -531,11 +459,7 @@ func ExampleLambda_ListFunctions() { } func ExampleLambda_ListVersionsByFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -558,11 +482,7 @@ func ExampleLambda_ListVersionsByFunction() { } func ExampleLambda_PublishVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -585,11 +505,7 @@ func ExampleLambda_PublishVersion() { } func ExampleLambda_RemovePermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -612,11 +528,7 @@ func ExampleLambda_RemovePermission() { } func ExampleLambda_UpdateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -640,11 +552,7 @@ func ExampleLambda_UpdateAlias() { } func ExampleLambda_UpdateEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -668,11 +576,7 @@ func ExampleLambda_UpdateEventSourceMapping() { } func ExampleLambda_UpdateFunctionCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -698,11 +602,7 @@ func ExampleLambda_UpdateFunctionCode() { } func ExampleLambda_UpdateFunctionConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go index 1fc765ce..33067521 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockLambdaClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go index 73c46ce0..2542b7ca 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleLexRuntimeService_PostText() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lexruntimeservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go index 4220b02b..d52288b5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockLexRuntimeServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go index 94080627..16b24869 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleLightsail_AllocateStaticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -41,11 +37,7 @@ func ExampleLightsail_AllocateStaticIp() { } func ExampleLightsail_AttachStaticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -67,11 +59,7 @@ func ExampleLightsail_AttachStaticIp() { } func ExampleLightsail_CloseInstancePublicPorts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -97,11 +85,7 @@ func ExampleLightsail_CloseInstancePublicPorts() { } func ExampleLightsail_CreateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -122,11 +106,7 @@ func ExampleLightsail_CreateDomain() { } func ExampleLightsail_CreateDomainEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -157,11 +137,7 @@ func ExampleLightsail_CreateDomainEntry() { } func ExampleLightsail_CreateInstanceSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -183,11 +159,7 @@ func ExampleLightsail_CreateInstanceSnapshot() { } func ExampleLightsail_CreateInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -217,11 +189,7 @@ func ExampleLightsail_CreateInstances() { } func ExampleLightsail_CreateInstancesFromSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -250,11 +218,7 @@ func ExampleLightsail_CreateInstancesFromSnapshot() { } func ExampleLightsail_CreateKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -275,11 +239,7 @@ func ExampleLightsail_CreateKeyPair() { } func ExampleLightsail_DeleteDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -300,11 +260,7 @@ func ExampleLightsail_DeleteDomain() { } func ExampleLightsail_DeleteDomainEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -335,11 +291,7 @@ func ExampleLightsail_DeleteDomainEntry() { } func ExampleLightsail_DeleteInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -360,11 +312,7 @@ func ExampleLightsail_DeleteInstance() { } func ExampleLightsail_DeleteInstanceSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -385,11 +333,7 @@ func ExampleLightsail_DeleteInstanceSnapshot() { } func ExampleLightsail_DeleteKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -410,11 +354,7 @@ func ExampleLightsail_DeleteKeyPair() { } func ExampleLightsail_DetachStaticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -435,11 +375,7 @@ func ExampleLightsail_DetachStaticIp() { } func ExampleLightsail_DownloadDefaultKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -458,11 +394,7 @@ func ExampleLightsail_DownloadDefaultKeyPair() { } func ExampleLightsail_GetActiveNames() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -483,11 +415,7 @@ func ExampleLightsail_GetActiveNames() { } func ExampleLightsail_GetBlueprints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -509,11 +437,7 @@ func ExampleLightsail_GetBlueprints() { } func ExampleLightsail_GetBundles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -535,11 +459,7 @@ func ExampleLightsail_GetBundles() { } func ExampleLightsail_GetDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -560,11 +480,7 @@ func ExampleLightsail_GetDomain() { } func ExampleLightsail_GetDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -585,11 +501,7 @@ func ExampleLightsail_GetDomains() { } func ExampleLightsail_GetInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -610,11 +522,7 @@ func ExampleLightsail_GetInstance() { } func ExampleLightsail_GetInstanceAccessDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -636,11 +544,7 @@ func ExampleLightsail_GetInstanceAccessDetails() { } func ExampleLightsail_GetInstanceMetricData() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -670,11 +574,7 @@ func ExampleLightsail_GetInstanceMetricData() { } func ExampleLightsail_GetInstancePortStates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -695,11 +595,7 @@ func ExampleLightsail_GetInstancePortStates() { } func ExampleLightsail_GetInstanceSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -720,11 +616,7 @@ func ExampleLightsail_GetInstanceSnapshot() { } func ExampleLightsail_GetInstanceSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -745,11 +637,7 @@ func ExampleLightsail_GetInstanceSnapshots() { } func ExampleLightsail_GetInstanceState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -770,11 +658,7 @@ func ExampleLightsail_GetInstanceState() { } func ExampleLightsail_GetInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -795,11 +679,7 @@ func ExampleLightsail_GetInstances() { } func ExampleLightsail_GetKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -820,11 +700,7 @@ func ExampleLightsail_GetKeyPair() { } func ExampleLightsail_GetKeyPairs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -845,11 +721,7 @@ func ExampleLightsail_GetKeyPairs() { } func ExampleLightsail_GetOperation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -870,11 +742,7 @@ func ExampleLightsail_GetOperation() { } func ExampleLightsail_GetOperations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -895,11 +763,7 @@ func ExampleLightsail_GetOperations() { } func ExampleLightsail_GetOperationsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -921,11 +785,7 @@ func ExampleLightsail_GetOperationsForResource() { } func ExampleLightsail_GetRegions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -946,11 +806,7 @@ func ExampleLightsail_GetRegions() { } func ExampleLightsail_GetStaticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -971,11 +827,7 @@ func ExampleLightsail_GetStaticIp() { } func ExampleLightsail_GetStaticIps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -996,11 +848,7 @@ func ExampleLightsail_GetStaticIps() { } func ExampleLightsail_ImportKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1022,11 +870,7 @@ func ExampleLightsail_ImportKeyPair() { } func ExampleLightsail_IsVpcPeered() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1045,11 +889,7 @@ func ExampleLightsail_IsVpcPeered() { } func ExampleLightsail_OpenInstancePublicPorts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1075,11 +915,7 @@ func ExampleLightsail_OpenInstancePublicPorts() { } func ExampleLightsail_PeerVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1098,11 +934,7 @@ func ExampleLightsail_PeerVpc() { } func ExampleLightsail_RebootInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1123,11 +955,7 @@ func ExampleLightsail_RebootInstance() { } func ExampleLightsail_ReleaseStaticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1148,11 +976,7 @@ func ExampleLightsail_ReleaseStaticIp() { } func ExampleLightsail_StartInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1173,11 +997,7 @@ func ExampleLightsail_StartInstance() { } func ExampleLightsail_StopInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1198,11 +1018,7 @@ func ExampleLightsail_StopInstance() { } func ExampleLightsail_UnpeerVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) @@ -1221,11 +1037,7 @@ func ExampleLightsail_UnpeerVpc() { } func ExampleLightsail_UpdateDomainEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lightsail.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go index 754973f1..3c09395c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockLightsailClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go index 47d24047..f6f2649b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMachineLearning_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -49,11 +45,7 @@ func ExampleMachineLearning_AddTags() { } func ExampleMachineLearning_CreateBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -78,11 +70,7 @@ func ExampleMachineLearning_CreateBatchPrediction() { } func ExampleMachineLearning_CreateDataSourceFromRDS() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -128,11 +116,7 @@ func ExampleMachineLearning_CreateDataSourceFromRDS() { } func ExampleMachineLearning_CreateDataSourceFromRedshift() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -171,11 +155,7 @@ func ExampleMachineLearning_CreateDataSourceFromRedshift() { } func ExampleMachineLearning_CreateDataSourceFromS3() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -204,11 +184,7 @@ func ExampleMachineLearning_CreateDataSourceFromS3() { } func ExampleMachineLearning_CreateEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -232,11 +208,7 @@ func ExampleMachineLearning_CreateEvaluation() { } func ExampleMachineLearning_CreateMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -266,11 +238,7 @@ func ExampleMachineLearning_CreateMLModel() { } func ExampleMachineLearning_CreateRealtimeEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -291,11 +259,7 @@ func ExampleMachineLearning_CreateRealtimeEndpoint() { } func ExampleMachineLearning_DeleteBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -316,11 +280,7 @@ func ExampleMachineLearning_DeleteBatchPrediction() { } func ExampleMachineLearning_DeleteDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -341,11 +301,7 @@ func ExampleMachineLearning_DeleteDataSource() { } func ExampleMachineLearning_DeleteEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -366,11 +322,7 @@ func ExampleMachineLearning_DeleteEvaluation() { } func ExampleMachineLearning_DeleteMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -391,11 +343,7 @@ func ExampleMachineLearning_DeleteMLModel() { } func ExampleMachineLearning_DeleteRealtimeEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -416,11 +364,7 @@ func ExampleMachineLearning_DeleteRealtimeEndpoint() { } func ExampleMachineLearning_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -446,11 +390,7 @@ func ExampleMachineLearning_DeleteTags() { } func ExampleMachineLearning_DescribeBatchPredictions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -481,11 +421,7 @@ func ExampleMachineLearning_DescribeBatchPredictions() { } func ExampleMachineLearning_DescribeDataSources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -516,11 +452,7 @@ func ExampleMachineLearning_DescribeDataSources() { } func ExampleMachineLearning_DescribeEvaluations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -551,11 +483,7 @@ func ExampleMachineLearning_DescribeEvaluations() { } func ExampleMachineLearning_DescribeMLModels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -586,11 +514,7 @@ func ExampleMachineLearning_DescribeMLModels() { } func ExampleMachineLearning_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -612,11 +536,7 @@ func ExampleMachineLearning_DescribeTags() { } func ExampleMachineLearning_GetBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -637,11 +557,7 @@ func ExampleMachineLearning_GetBatchPrediction() { } func ExampleMachineLearning_GetDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -663,11 +579,7 @@ func ExampleMachineLearning_GetDataSource() { } func ExampleMachineLearning_GetEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -688,11 +600,7 @@ func ExampleMachineLearning_GetEvaluation() { } func ExampleMachineLearning_GetMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -714,11 +622,7 @@ func ExampleMachineLearning_GetMLModel() { } func ExampleMachineLearning_Predict() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -744,11 +648,7 @@ func ExampleMachineLearning_Predict() { } func ExampleMachineLearning_UpdateBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -770,11 +670,7 @@ func ExampleMachineLearning_UpdateBatchPrediction() { } func ExampleMachineLearning_UpdateDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -796,11 +692,7 @@ func ExampleMachineLearning_UpdateDataSource() { } func ExampleMachineLearning_UpdateEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -822,11 +714,7 @@ func ExampleMachineLearning_UpdateEvaluation() { } func ExampleMachineLearning_UpdateMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go index 00335e14..e11161e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMachineLearningClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go index 4b095581..88b177bd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMarketplaceCommerceAnalytics_GenerateDataSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacecommerceanalytics.New(sess) @@ -50,11 +46,7 @@ func ExampleMarketplaceCommerceAnalytics_GenerateDataSet() { } func ExampleMarketplaceCommerceAnalytics_StartSupportDataExport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacecommerceanalytics.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go index a55594a1..b30eea19 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMarketplaceCommerceAnalyticsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go index 9ab174ca..eb44b9b7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMarketplaceMetering_BatchMeterUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacemetering.New(sess) @@ -50,11 +46,7 @@ func ExampleMarketplaceMetering_BatchMeterUsage() { } func ExampleMarketplaceMetering_MeterUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacemetering.New(sess) @@ -79,11 +71,7 @@ func ExampleMarketplaceMetering_MeterUsage() { } func ExampleMarketplaceMetering_ResolveCustomer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacemetering.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go index aa2c7dbd..ca0c772d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMarketplaceMeteringClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go index 3a38a11f..ad401a3a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMobileAnalytics_PutEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := mobileanalytics.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go index 0dfdfdb7..fd782d4b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMobileAnalyticsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go index fcb09376..be776641 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleOpsWorks_AssignInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -45,11 +41,7 @@ func ExampleOpsWorks_AssignInstance() { } func ExampleOpsWorks_AssignVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -71,11 +63,7 @@ func ExampleOpsWorks_AssignVolume() { } func ExampleOpsWorks_AssociateElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -97,11 +85,7 @@ func ExampleOpsWorks_AssociateElasticIp() { } func ExampleOpsWorks_AttachElasticLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -123,11 +107,7 @@ func ExampleOpsWorks_AttachElasticLoadBalancer() { } func ExampleOpsWorks_CloneStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -188,11 +168,7 @@ func ExampleOpsWorks_CloneStack() { } func ExampleOpsWorks_CreateApp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -255,11 +231,7 @@ func ExampleOpsWorks_CreateApp() { } func ExampleOpsWorks_CreateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -301,11 +273,7 @@ func ExampleOpsWorks_CreateDeployment() { } func ExampleOpsWorks_CreateInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -360,11 +328,7 @@ func ExampleOpsWorks_CreateInstance() { } func ExampleOpsWorks_CreateLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -446,11 +410,7 @@ func ExampleOpsWorks_CreateLayer() { } func ExampleOpsWorks_CreateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -505,11 +465,7 @@ func ExampleOpsWorks_CreateStack() { } func ExampleOpsWorks_CreateUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -533,11 +489,7 @@ func ExampleOpsWorks_CreateUserProfile() { } func ExampleOpsWorks_DeleteApp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -558,11 +510,7 @@ func ExampleOpsWorks_DeleteApp() { } func ExampleOpsWorks_DeleteInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -585,11 +533,7 @@ func ExampleOpsWorks_DeleteInstance() { } func ExampleOpsWorks_DeleteLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -610,11 +554,7 @@ func ExampleOpsWorks_DeleteLayer() { } func ExampleOpsWorks_DeleteStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -635,11 +575,7 @@ func ExampleOpsWorks_DeleteStack() { } func ExampleOpsWorks_DeleteUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -660,11 +596,7 @@ func ExampleOpsWorks_DeleteUserProfile() { } func ExampleOpsWorks_DeregisterEcsCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -685,11 +617,7 @@ func ExampleOpsWorks_DeregisterEcsCluster() { } func ExampleOpsWorks_DeregisterElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -710,11 +638,7 @@ func ExampleOpsWorks_DeregisterElasticIp() { } func ExampleOpsWorks_DeregisterInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -735,11 +659,7 @@ func ExampleOpsWorks_DeregisterInstance() { } func ExampleOpsWorks_DeregisterRdsDbInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -760,11 +680,7 @@ func ExampleOpsWorks_DeregisterRdsDbInstance() { } func ExampleOpsWorks_DeregisterVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -785,11 +701,7 @@ func ExampleOpsWorks_DeregisterVolume() { } func ExampleOpsWorks_DescribeAgentVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -814,11 +726,7 @@ func ExampleOpsWorks_DescribeAgentVersions() { } func ExampleOpsWorks_DescribeApps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -843,11 +751,7 @@ func ExampleOpsWorks_DescribeApps() { } func ExampleOpsWorks_DescribeCommands() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -873,11 +777,7 @@ func ExampleOpsWorks_DescribeCommands() { } func ExampleOpsWorks_DescribeDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -903,11 +803,7 @@ func ExampleOpsWorks_DescribeDeployments() { } func ExampleOpsWorks_DescribeEcsClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -934,11 +830,7 @@ func ExampleOpsWorks_DescribeEcsClusters() { } func ExampleOpsWorks_DescribeElasticIps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -964,11 +856,7 @@ func ExampleOpsWorks_DescribeElasticIps() { } func ExampleOpsWorks_DescribeElasticLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -993,11 +881,7 @@ func ExampleOpsWorks_DescribeElasticLoadBalancers() { } func ExampleOpsWorks_DescribeInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1023,11 +907,7 @@ func ExampleOpsWorks_DescribeInstances() { } func ExampleOpsWorks_DescribeLayers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1052,11 +932,7 @@ func ExampleOpsWorks_DescribeLayers() { } func ExampleOpsWorks_DescribeLoadBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1080,11 +956,7 @@ func ExampleOpsWorks_DescribeLoadBasedAutoScaling() { } func ExampleOpsWorks_DescribeMyUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1103,11 +975,7 @@ func ExampleOpsWorks_DescribeMyUserProfile() { } func ExampleOpsWorks_DescribePermissions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1129,11 +997,7 @@ func ExampleOpsWorks_DescribePermissions() { } func ExampleOpsWorks_DescribeRaidArrays() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1159,11 +1023,7 @@ func ExampleOpsWorks_DescribeRaidArrays() { } func ExampleOpsWorks_DescribeRdsDbInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1188,11 +1048,7 @@ func ExampleOpsWorks_DescribeRdsDbInstances() { } func ExampleOpsWorks_DescribeServiceErrors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1218,11 +1074,7 @@ func ExampleOpsWorks_DescribeServiceErrors() { } func ExampleOpsWorks_DescribeStackProvisioningParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1243,11 +1095,7 @@ func ExampleOpsWorks_DescribeStackProvisioningParameters() { } func ExampleOpsWorks_DescribeStackSummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1268,11 +1116,7 @@ func ExampleOpsWorks_DescribeStackSummary() { } func ExampleOpsWorks_DescribeStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1296,11 +1140,7 @@ func ExampleOpsWorks_DescribeStacks() { } func ExampleOpsWorks_DescribeTimeBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1324,11 +1164,7 @@ func ExampleOpsWorks_DescribeTimeBasedAutoScaling() { } func ExampleOpsWorks_DescribeUserProfiles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1352,11 +1188,7 @@ func ExampleOpsWorks_DescribeUserProfiles() { } func ExampleOpsWorks_DescribeVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1383,11 +1215,7 @@ func ExampleOpsWorks_DescribeVolumes() { } func ExampleOpsWorks_DetachElasticLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1409,11 +1237,7 @@ func ExampleOpsWorks_DetachElasticLoadBalancer() { } func ExampleOpsWorks_DisassociateElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1434,11 +1258,7 @@ func ExampleOpsWorks_DisassociateElasticIp() { } func ExampleOpsWorks_GetHostnameSuggestion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1459,11 +1279,7 @@ func ExampleOpsWorks_GetHostnameSuggestion() { } func ExampleOpsWorks_GrantAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1485,11 +1301,7 @@ func ExampleOpsWorks_GrantAccess() { } func ExampleOpsWorks_RebootInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1510,11 +1322,7 @@ func ExampleOpsWorks_RebootInstance() { } func ExampleOpsWorks_RegisterEcsCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1536,11 +1344,7 @@ func ExampleOpsWorks_RegisterEcsCluster() { } func ExampleOpsWorks_RegisterElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1562,11 +1366,7 @@ func ExampleOpsWorks_RegisterElasticIp() { } func ExampleOpsWorks_RegisterInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1596,11 +1396,7 @@ func ExampleOpsWorks_RegisterInstance() { } func ExampleOpsWorks_RegisterRdsDbInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1624,11 +1420,7 @@ func ExampleOpsWorks_RegisterRdsDbInstance() { } func ExampleOpsWorks_RegisterVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1650,11 +1442,7 @@ func ExampleOpsWorks_RegisterVolume() { } func ExampleOpsWorks_SetLoadBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1700,11 +1488,7 @@ func ExampleOpsWorks_SetLoadBasedAutoScaling() { } func ExampleOpsWorks_SetPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1729,11 +1513,7 @@ func ExampleOpsWorks_SetPermission() { } func ExampleOpsWorks_SetTimeBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1784,11 +1564,7 @@ func ExampleOpsWorks_SetTimeBasedAutoScaling() { } func ExampleOpsWorks_StartInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1809,11 +1585,7 @@ func ExampleOpsWorks_StartInstance() { } func ExampleOpsWorks_StartStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1834,11 +1606,7 @@ func ExampleOpsWorks_StartStack() { } func ExampleOpsWorks_StopInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1859,11 +1627,7 @@ func ExampleOpsWorks_StopInstance() { } func ExampleOpsWorks_StopStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1884,11 +1648,7 @@ func ExampleOpsWorks_StopStack() { } func ExampleOpsWorks_UnassignInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1909,11 +1669,7 @@ func ExampleOpsWorks_UnassignInstance() { } func ExampleOpsWorks_UnassignVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1934,11 +1690,7 @@ func ExampleOpsWorks_UnassignVolume() { } func ExampleOpsWorks_UpdateApp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2000,11 +1752,7 @@ func ExampleOpsWorks_UpdateApp() { } func ExampleOpsWorks_UpdateElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2026,11 +1774,7 @@ func ExampleOpsWorks_UpdateElasticIp() { } func ExampleOpsWorks_UpdateInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2065,11 +1809,7 @@ func ExampleOpsWorks_UpdateInstance() { } func ExampleOpsWorks_UpdateLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2150,11 +1890,7 @@ func ExampleOpsWorks_UpdateLayer() { } func ExampleOpsWorks_UpdateMyUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2175,11 +1911,7 @@ func ExampleOpsWorks_UpdateMyUserProfile() { } func ExampleOpsWorks_UpdateRdsDbInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2202,11 +1934,7 @@ func ExampleOpsWorks_UpdateRdsDbInstance() { } func ExampleOpsWorks_UpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2260,11 +1988,7 @@ func ExampleOpsWorks_UpdateStack() { } func ExampleOpsWorks_UpdateUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2288,11 +2012,7 @@ func ExampleOpsWorks_UpdateUserProfile() { } func ExampleOpsWorks_UpdateVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go index 1078a4f3..b3ba568b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockOpsWorksClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go index d7f1eb7f..403fb8e4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleOpsWorksCM_AssociateNode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -49,11 +45,7 @@ func ExampleOpsWorksCM_AssociateNode() { } func ExampleOpsWorksCM_CreateBackup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -75,11 +67,7 @@ func ExampleOpsWorksCM_CreateBackup() { } func ExampleOpsWorksCM_CreateServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -127,11 +115,7 @@ func ExampleOpsWorksCM_CreateServer() { } func ExampleOpsWorksCM_DeleteBackup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -152,11 +136,7 @@ func ExampleOpsWorksCM_DeleteBackup() { } func ExampleOpsWorksCM_DeleteServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -177,11 +157,7 @@ func ExampleOpsWorksCM_DeleteServer() { } func ExampleOpsWorksCM_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -200,11 +176,7 @@ func ExampleOpsWorksCM_DescribeAccountAttributes() { } func ExampleOpsWorksCM_DescribeBackups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -228,11 +200,7 @@ func ExampleOpsWorksCM_DescribeBackups() { } func ExampleOpsWorksCM_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -255,11 +223,7 @@ func ExampleOpsWorksCM_DescribeEvents() { } func ExampleOpsWorksCM_DescribeNodeAssociationStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -281,11 +245,7 @@ func ExampleOpsWorksCM_DescribeNodeAssociationStatus() { } func ExampleOpsWorksCM_DescribeServers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -308,11 +268,7 @@ func ExampleOpsWorksCM_DescribeServers() { } func ExampleOpsWorksCM_DisassociateNode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -341,11 +297,7 @@ func ExampleOpsWorksCM_DisassociateNode() { } func ExampleOpsWorksCM_RestoreServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -369,11 +321,7 @@ func ExampleOpsWorksCM_RestoreServer() { } func ExampleOpsWorksCM_StartMaintenance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -394,11 +342,7 @@ func ExampleOpsWorksCM_StartMaintenance() { } func ExampleOpsWorksCM_UpdateServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) @@ -423,11 +367,7 @@ func ExampleOpsWorksCM_UpdateServer() { } func ExampleOpsWorksCM_UpdateServerEngineAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworkscm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go index e5e5a7d9..305e9da6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockOpsWorksCMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go index a4b79689..207ccd85 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExamplePinpoint_CreateCampaign() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -155,11 +151,7 @@ func ExamplePinpoint_CreateCampaign() { } func ExamplePinpoint_CreateImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -190,11 +182,7 @@ func ExamplePinpoint_CreateImportJob() { } func ExamplePinpoint_CreateSegment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -282,11 +270,7 @@ func ExamplePinpoint_CreateSegment() { } func ExamplePinpoint_DeleteApnsChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -307,11 +291,7 @@ func ExamplePinpoint_DeleteApnsChannel() { } func ExamplePinpoint_DeleteCampaign() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -333,11 +313,7 @@ func ExamplePinpoint_DeleteCampaign() { } func ExamplePinpoint_DeleteGcmChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -358,11 +334,7 @@ func ExamplePinpoint_DeleteGcmChannel() { } func ExamplePinpoint_DeleteSegment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -384,11 +356,7 @@ func ExamplePinpoint_DeleteSegment() { } func ExamplePinpoint_GetApnsChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -409,11 +377,7 @@ func ExamplePinpoint_GetApnsChannel() { } func ExamplePinpoint_GetApplicationSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -434,11 +398,7 @@ func ExamplePinpoint_GetApplicationSettings() { } func ExamplePinpoint_GetCampaign() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -460,11 +420,7 @@ func ExamplePinpoint_GetCampaign() { } func ExamplePinpoint_GetCampaignActivities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -488,11 +444,7 @@ func ExamplePinpoint_GetCampaignActivities() { } func ExamplePinpoint_GetCampaignVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -515,11 +467,7 @@ func ExamplePinpoint_GetCampaignVersion() { } func ExamplePinpoint_GetCampaignVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -543,11 +491,7 @@ func ExamplePinpoint_GetCampaignVersions() { } func ExamplePinpoint_GetCampaigns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -570,11 +514,7 @@ func ExamplePinpoint_GetCampaigns() { } func ExamplePinpoint_GetEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -596,11 +536,7 @@ func ExamplePinpoint_GetEndpoint() { } func ExamplePinpoint_GetGcmChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -621,11 +557,7 @@ func ExamplePinpoint_GetGcmChannel() { } func ExamplePinpoint_GetImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -647,11 +579,7 @@ func ExamplePinpoint_GetImportJob() { } func ExamplePinpoint_GetImportJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -674,11 +602,7 @@ func ExamplePinpoint_GetImportJobs() { } func ExamplePinpoint_GetSegment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -700,11 +624,7 @@ func ExamplePinpoint_GetSegment() { } func ExamplePinpoint_GetSegmentImportJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -728,11 +648,7 @@ func ExamplePinpoint_GetSegmentImportJobs() { } func ExamplePinpoint_GetSegmentVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -755,11 +671,7 @@ func ExamplePinpoint_GetSegmentVersion() { } func ExamplePinpoint_GetSegmentVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -783,11 +695,7 @@ func ExamplePinpoint_GetSegmentVersions() { } func ExamplePinpoint_GetSegments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -810,11 +718,7 @@ func ExamplePinpoint_GetSegments() { } func ExamplePinpoint_UpdateApnsChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -839,11 +743,7 @@ func ExamplePinpoint_UpdateApnsChannel() { } func ExamplePinpoint_UpdateApplicationSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -874,11 +774,7 @@ func ExamplePinpoint_UpdateApplicationSettings() { } func ExamplePinpoint_UpdateCampaign() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -1014,11 +910,7 @@ func ExamplePinpoint_UpdateCampaign() { } func ExamplePinpoint_UpdateEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -1087,11 +979,7 @@ func ExamplePinpoint_UpdateEndpoint() { } func ExamplePinpoint_UpdateEndpointsBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -1165,11 +1053,7 @@ func ExamplePinpoint_UpdateEndpointsBatch() { } func ExamplePinpoint_UpdateGcmChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) @@ -1193,11 +1077,7 @@ func ExamplePinpoint_UpdateGcmChannel() { } func ExamplePinpoint_UpdateSegment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := pinpoint.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go index ba8d644f..bc670bc0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockPinpointClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go index c064212b..a340561f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExamplePolly_DeleteLexicon() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := polly.New(sess) @@ -41,11 +37,7 @@ func ExamplePolly_DeleteLexicon() { } func ExamplePolly_DescribeVoices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := polly.New(sess) @@ -67,11 +59,7 @@ func ExamplePolly_DescribeVoices() { } func ExamplePolly_GetLexicon() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := polly.New(sess) @@ -92,11 +80,7 @@ func ExamplePolly_GetLexicon() { } func ExamplePolly_ListLexicons() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := polly.New(sess) @@ -117,11 +101,7 @@ func ExamplePolly_ListLexicons() { } func ExamplePolly_PutLexicon() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := polly.New(sess) @@ -143,11 +123,7 @@ func ExamplePolly_PutLexicon() { } func ExamplePolly_SynthesizeSpeech() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := polly.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go index 1e98440e..5cff3710 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockPollyClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go index 438ce437..280f7cac 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRDS_AddRoleToDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -42,11 +38,7 @@ func ExampleRDS_AddRoleToDBCluster() { } func ExampleRDS_AddSourceIdentifierToSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -68,11 +60,7 @@ func ExampleRDS_AddSourceIdentifierToSubscription() { } func ExampleRDS_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -100,11 +88,7 @@ func ExampleRDS_AddTagsToResource() { } func ExampleRDS_ApplyPendingMaintenanceAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -127,11 +111,7 @@ func ExampleRDS_ApplyPendingMaintenanceAction() { } func ExampleRDS_AuthorizeDBSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -156,11 +136,7 @@ func ExampleRDS_AuthorizeDBSecurityGroupIngress() { } func ExampleRDS_CopyDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -190,11 +166,7 @@ func ExampleRDS_CopyDBClusterParameterGroup() { } func ExampleRDS_CopyDBClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -223,11 +195,7 @@ func ExampleRDS_CopyDBClusterSnapshot() { } func ExampleRDS_CopyDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -257,11 +225,7 @@ func ExampleRDS_CopyDBParameterGroup() { } func ExampleRDS_CopyDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -295,11 +259,7 @@ func ExampleRDS_CopyDBSnapshot() { } func ExampleRDS_CopyOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -329,11 +289,7 @@ func ExampleRDS_CopyOptionGroup() { } func ExampleRDS_CreateDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -385,11 +341,7 @@ func ExampleRDS_CreateDBCluster() { } func ExampleRDS_CreateDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -419,11 +371,7 @@ func ExampleRDS_CreateDBClusterParameterGroup() { } func ExampleRDS_CreateDBClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -452,11 +400,7 @@ func ExampleRDS_CreateDBClusterSnapshot() { } func ExampleRDS_CreateDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -526,11 +470,7 @@ func ExampleRDS_CreateDBInstance() { } func ExampleRDS_CreateDBInstanceReadReplica() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -575,11 +515,7 @@ func ExampleRDS_CreateDBInstanceReadReplica() { } func ExampleRDS_CreateDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -609,11 +545,7 @@ func ExampleRDS_CreateDBParameterGroup() { } func ExampleRDS_CreateDBSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -642,11 +574,7 @@ func ExampleRDS_CreateDBSecurityGroup() { } func ExampleRDS_CreateDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -675,11 +603,7 @@ func ExampleRDS_CreateDBSnapshot() { } func ExampleRDS_CreateDBSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -712,11 +636,7 @@ func ExampleRDS_CreateDBSubnetGroup() { } func ExampleRDS_CreateEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -755,11 +675,7 @@ func ExampleRDS_CreateEventSubscription() { } func ExampleRDS_CreateOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -790,11 +706,7 @@ func ExampleRDS_CreateOptionGroup() { } func ExampleRDS_DeleteDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -817,11 +729,7 @@ func ExampleRDS_DeleteDBCluster() { } func ExampleRDS_DeleteDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -842,11 +750,7 @@ func ExampleRDS_DeleteDBClusterParameterGroup() { } func ExampleRDS_DeleteDBClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -867,11 +771,7 @@ func ExampleRDS_DeleteDBClusterSnapshot() { } func ExampleRDS_DeleteDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -894,11 +794,7 @@ func ExampleRDS_DeleteDBInstance() { } func ExampleRDS_DeleteDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -919,11 +815,7 @@ func ExampleRDS_DeleteDBParameterGroup() { } func ExampleRDS_DeleteDBSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -944,11 +836,7 @@ func ExampleRDS_DeleteDBSecurityGroup() { } func ExampleRDS_DeleteDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -969,11 +857,7 @@ func ExampleRDS_DeleteDBSnapshot() { } func ExampleRDS_DeleteDBSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -994,11 +878,7 @@ func ExampleRDS_DeleteDBSubnetGroup() { } func ExampleRDS_DeleteEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1019,11 +899,7 @@ func ExampleRDS_DeleteEventSubscription() { } func ExampleRDS_DeleteOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1044,11 +920,7 @@ func ExampleRDS_DeleteOptionGroup() { } func ExampleRDS_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1067,11 +939,7 @@ func ExampleRDS_DescribeAccountAttributes() { } func ExampleRDS_DescribeCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1104,11 +972,7 @@ func ExampleRDS_DescribeCertificates() { } func ExampleRDS_DescribeDBClusterParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1141,11 +1005,7 @@ func ExampleRDS_DescribeDBClusterParameterGroups() { } func ExampleRDS_DescribeDBClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1179,11 +1039,7 @@ func ExampleRDS_DescribeDBClusterParameters() { } func ExampleRDS_DescribeDBClusterSnapshotAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1204,11 +1060,7 @@ func ExampleRDS_DescribeDBClusterSnapshotAttributes() { } func ExampleRDS_DescribeDBClusterSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1245,11 +1097,7 @@ func ExampleRDS_DescribeDBClusterSnapshots() { } func ExampleRDS_DescribeDBClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1282,11 +1130,7 @@ func ExampleRDS_DescribeDBClusters() { } func ExampleRDS_DescribeDBEngineVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1324,11 +1168,7 @@ func ExampleRDS_DescribeDBEngineVersions() { } func ExampleRDS_DescribeDBInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1361,11 +1201,7 @@ func ExampleRDS_DescribeDBInstances() { } func ExampleRDS_DescribeDBLogFiles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1401,11 +1237,7 @@ func ExampleRDS_DescribeDBLogFiles() { } func ExampleRDS_DescribeDBParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1438,11 +1270,7 @@ func ExampleRDS_DescribeDBParameterGroups() { } func ExampleRDS_DescribeDBParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1476,11 +1304,7 @@ func ExampleRDS_DescribeDBParameters() { } func ExampleRDS_DescribeDBSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1513,11 +1337,7 @@ func ExampleRDS_DescribeDBSecurityGroups() { } func ExampleRDS_DescribeDBSnapshotAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1538,11 +1358,7 @@ func ExampleRDS_DescribeDBSnapshotAttributes() { } func ExampleRDS_DescribeDBSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1579,11 +1395,7 @@ func ExampleRDS_DescribeDBSnapshots() { } func ExampleRDS_DescribeDBSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1616,11 +1428,7 @@ func ExampleRDS_DescribeDBSubnetGroups() { } func ExampleRDS_DescribeEngineDefaultClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1653,11 +1461,7 @@ func ExampleRDS_DescribeEngineDefaultClusterParameters() { } func ExampleRDS_DescribeEngineDefaultParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1690,11 +1494,7 @@ func ExampleRDS_DescribeEngineDefaultParameters() { } func ExampleRDS_DescribeEventCategories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1725,11 +1525,7 @@ func ExampleRDS_DescribeEventCategories() { } func ExampleRDS_DescribeEventSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1762,11 +1558,7 @@ func ExampleRDS_DescribeEventSubscriptions() { } func ExampleRDS_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1807,11 +1599,7 @@ func ExampleRDS_DescribeEvents() { } func ExampleRDS_DescribeOptionGroupOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1845,11 +1633,7 @@ func ExampleRDS_DescribeOptionGroupOptions() { } func ExampleRDS_DescribeOptionGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1884,11 +1668,7 @@ func ExampleRDS_DescribeOptionGroups() { } func ExampleRDS_DescribeOrderableDBInstanceOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1925,11 +1705,7 @@ func ExampleRDS_DescribeOrderableDBInstanceOptions() { } func ExampleRDS_DescribePendingMaintenanceActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1962,11 +1738,7 @@ func ExampleRDS_DescribePendingMaintenanceActions() { } func ExampleRDS_DescribeReservedDBInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2005,11 +1777,7 @@ func ExampleRDS_DescribeReservedDBInstances() { } func ExampleRDS_DescribeReservedDBInstancesOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2047,11 +1815,7 @@ func ExampleRDS_DescribeReservedDBInstancesOfferings() { } func ExampleRDS_DescribeSourceRegions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2084,11 +1848,7 @@ func ExampleRDS_DescribeSourceRegions() { } func ExampleRDS_DownloadDBLogFilePortion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2112,11 +1872,7 @@ func ExampleRDS_DownloadDBLogFilePortion() { } func ExampleRDS_FailoverDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2138,11 +1894,7 @@ func ExampleRDS_FailoverDBCluster() { } func ExampleRDS_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2173,11 +1925,7 @@ func ExampleRDS_ListTagsForResource() { } func ExampleRDS_ModifyDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2211,11 +1959,7 @@ func ExampleRDS_ModifyDBCluster() { } func ExampleRDS_ModifyDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2251,11 +1995,7 @@ func ExampleRDS_ModifyDBClusterParameterGroup() { } func ExampleRDS_ModifyDBClusterSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2285,11 +2025,7 @@ func ExampleRDS_ModifyDBClusterSnapshotAttribute() { } func ExampleRDS_ModifyDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2347,11 +2083,7 @@ func ExampleRDS_ModifyDBInstance() { } func ExampleRDS_ModifyDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2387,11 +2119,7 @@ func ExampleRDS_ModifyDBParameterGroup() { } func ExampleRDS_ModifyDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2413,11 +2141,7 @@ func ExampleRDS_ModifyDBSnapshot() { } func ExampleRDS_ModifyDBSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2447,11 +2171,7 @@ func ExampleRDS_ModifyDBSnapshotAttribute() { } func ExampleRDS_ModifyDBSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2477,11 +2197,7 @@ func ExampleRDS_ModifyDBSubnetGroup() { } func ExampleRDS_ModifyEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2509,11 +2225,7 @@ func ExampleRDS_ModifyEventSubscription() { } func ExampleRDS_ModifyOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2569,11 +2281,7 @@ func ExampleRDS_ModifyOptionGroup() { } func ExampleRDS_PromoteReadReplica() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2596,11 +2304,7 @@ func ExampleRDS_PromoteReadReplica() { } func ExampleRDS_PromoteReadReplicaDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2621,11 +2325,7 @@ func ExampleRDS_PromoteReadReplicaDBCluster() { } func ExampleRDS_PurchaseReservedDBInstancesOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2655,11 +2355,7 @@ func ExampleRDS_PurchaseReservedDBInstancesOffering() { } func ExampleRDS_RebootDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2681,11 +2377,7 @@ func ExampleRDS_RebootDBInstance() { } func ExampleRDS_RemoveRoleFromDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2707,11 +2399,7 @@ func ExampleRDS_RemoveRoleFromDBCluster() { } func ExampleRDS_RemoveSourceIdentifierFromSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2733,11 +2421,7 @@ func ExampleRDS_RemoveSourceIdentifierFromSubscription() { } func ExampleRDS_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2762,11 +2446,7 @@ func ExampleRDS_RemoveTagsFromResource() { } func ExampleRDS_ResetDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2803,11 +2483,7 @@ func ExampleRDS_ResetDBClusterParameterGroup() { } func ExampleRDS_ResetDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2844,11 +2520,7 @@ func ExampleRDS_ResetDBParameterGroup() { } func ExampleRDS_RestoreDBClusterFromS3() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2904,11 +2576,7 @@ func ExampleRDS_RestoreDBClusterFromS3() { } func ExampleRDS_RestoreDBClusterFromSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2952,11 +2620,7 @@ func ExampleRDS_RestoreDBClusterFromSnapshot() { } func ExampleRDS_RestoreDBClusterToPointInTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2995,11 +2659,7 @@ func ExampleRDS_RestoreDBClusterToPointInTime() { } func ExampleRDS_RestoreDBInstanceFromDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -3046,11 +2706,7 @@ func ExampleRDS_RestoreDBInstanceFromDBSnapshot() { } func ExampleRDS_RestoreDBInstanceToPointInTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -3099,11 +2755,7 @@ func ExampleRDS_RestoreDBInstanceToPointInTime() { } func ExampleRDS_RevokeDBSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go index 397cea9b..3ab78cca 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRDSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go index f38053e2..8990e53f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRedshift_AuthorizeClusterSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -44,11 +40,7 @@ func ExampleRedshift_AuthorizeClusterSecurityGroupIngress() { } func ExampleRedshift_AuthorizeSnapshotAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -71,11 +63,7 @@ func ExampleRedshift_AuthorizeSnapshotAccess() { } func ExampleRedshift_CopyClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -98,11 +86,7 @@ func ExampleRedshift_CopyClusterSnapshot() { } func ExampleRedshift_CreateCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -164,11 +148,7 @@ func ExampleRedshift_CreateCluster() { } func ExampleRedshift_CreateClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -198,11 +178,7 @@ func ExampleRedshift_CreateClusterParameterGroup() { } func ExampleRedshift_CreateClusterSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -231,11 +207,7 @@ func ExampleRedshift_CreateClusterSecurityGroup() { } func ExampleRedshift_CreateClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -264,11 +236,7 @@ func ExampleRedshift_CreateClusterSnapshot() { } func ExampleRedshift_CreateClusterSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -301,11 +269,7 @@ func ExampleRedshift_CreateClusterSubnetGroup() { } func ExampleRedshift_CreateEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -345,11 +309,7 @@ func ExampleRedshift_CreateEventSubscription() { } func ExampleRedshift_CreateHsmClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -377,11 +337,7 @@ func ExampleRedshift_CreateHsmClientCertificate() { } func ExampleRedshift_CreateHsmConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -414,11 +370,7 @@ func ExampleRedshift_CreateHsmConfiguration() { } func ExampleRedshift_CreateSnapshotCopyGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -447,11 +399,7 @@ func ExampleRedshift_CreateSnapshotCopyGrant() { } func ExampleRedshift_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -479,11 +427,7 @@ func ExampleRedshift_CreateTags() { } func ExampleRedshift_DeleteCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -506,11 +450,7 @@ func ExampleRedshift_DeleteCluster() { } func ExampleRedshift_DeleteClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -531,11 +471,7 @@ func ExampleRedshift_DeleteClusterParameterGroup() { } func ExampleRedshift_DeleteClusterSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -556,11 +492,7 @@ func ExampleRedshift_DeleteClusterSecurityGroup() { } func ExampleRedshift_DeleteClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -582,11 +514,7 @@ func ExampleRedshift_DeleteClusterSnapshot() { } func ExampleRedshift_DeleteClusterSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -607,11 +535,7 @@ func ExampleRedshift_DeleteClusterSubnetGroup() { } func ExampleRedshift_DeleteEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -632,11 +556,7 @@ func ExampleRedshift_DeleteEventSubscription() { } func ExampleRedshift_DeleteHsmClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -657,11 +577,7 @@ func ExampleRedshift_DeleteHsmClientCertificate() { } func ExampleRedshift_DeleteHsmConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -682,11 +598,7 @@ func ExampleRedshift_DeleteHsmConfiguration() { } func ExampleRedshift_DeleteSnapshotCopyGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -707,11 +619,7 @@ func ExampleRedshift_DeleteSnapshotCopyGrant() { } func ExampleRedshift_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -736,11 +644,7 @@ func ExampleRedshift_DeleteTags() { } func ExampleRedshift_DescribeClusterParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -771,11 +675,7 @@ func ExampleRedshift_DescribeClusterParameterGroups() { } func ExampleRedshift_DescribeClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -799,11 +699,7 @@ func ExampleRedshift_DescribeClusterParameters() { } func ExampleRedshift_DescribeClusterSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -834,11 +730,7 @@ func ExampleRedshift_DescribeClusterSecurityGroups() { } func ExampleRedshift_DescribeClusterSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -874,11 +766,7 @@ func ExampleRedshift_DescribeClusterSnapshots() { } func ExampleRedshift_DescribeClusterSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -909,11 +797,7 @@ func ExampleRedshift_DescribeClusterSubnetGroups() { } func ExampleRedshift_DescribeClusterVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -937,11 +821,7 @@ func ExampleRedshift_DescribeClusterVersions() { } func ExampleRedshift_DescribeClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -972,11 +852,7 @@ func ExampleRedshift_DescribeClusters() { } func ExampleRedshift_DescribeDefaultClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -999,11 +875,7 @@ func ExampleRedshift_DescribeDefaultClusterParameters() { } func ExampleRedshift_DescribeEventCategories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1024,11 +896,7 @@ func ExampleRedshift_DescribeEventCategories() { } func ExampleRedshift_DescribeEventSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1051,11 +919,7 @@ func ExampleRedshift_DescribeEventSubscriptions() { } func ExampleRedshift_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1082,11 +946,7 @@ func ExampleRedshift_DescribeEvents() { } func ExampleRedshift_DescribeHsmClientCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1117,11 +977,7 @@ func ExampleRedshift_DescribeHsmClientCertificates() { } func ExampleRedshift_DescribeHsmConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1152,11 +1008,7 @@ func ExampleRedshift_DescribeHsmConfigurations() { } func ExampleRedshift_DescribeLoggingStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1177,11 +1029,7 @@ func ExampleRedshift_DescribeLoggingStatus() { } func ExampleRedshift_DescribeOrderableClusterOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1205,11 +1053,7 @@ func ExampleRedshift_DescribeOrderableClusterOptions() { } func ExampleRedshift_DescribeReservedNodeOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1232,11 +1076,7 @@ func ExampleRedshift_DescribeReservedNodeOfferings() { } func ExampleRedshift_DescribeReservedNodes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1259,11 +1099,7 @@ func ExampleRedshift_DescribeReservedNodes() { } func ExampleRedshift_DescribeResize() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1284,11 +1120,7 @@ func ExampleRedshift_DescribeResize() { } func ExampleRedshift_DescribeSnapshotCopyGrants() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1319,11 +1151,7 @@ func ExampleRedshift_DescribeSnapshotCopyGrants() { } func ExampleRedshift_DescribeTableRestoreStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1347,11 +1175,7 @@ func ExampleRedshift_DescribeTableRestoreStatus() { } func ExampleRedshift_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1383,11 +1207,7 @@ func ExampleRedshift_DescribeTags() { } func ExampleRedshift_DisableLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1408,11 +1228,7 @@ func ExampleRedshift_DisableLogging() { } func ExampleRedshift_DisableSnapshotCopy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1433,11 +1249,7 @@ func ExampleRedshift_DisableSnapshotCopy() { } func ExampleRedshift_EnableLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1460,11 +1272,7 @@ func ExampleRedshift_EnableLogging() { } func ExampleRedshift_EnableSnapshotCopy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1488,11 +1296,7 @@ func ExampleRedshift_EnableSnapshotCopy() { } func ExampleRedshift_ModifyCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1536,11 +1340,7 @@ func ExampleRedshift_ModifyCluster() { } func ExampleRedshift_ModifyClusterIamRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1569,11 +1369,7 @@ func ExampleRedshift_ModifyClusterIamRoles() { } func ExampleRedshift_ModifyClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1608,11 +1404,7 @@ func ExampleRedshift_ModifyClusterParameterGroup() { } func ExampleRedshift_ModifyClusterSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1638,11 +1430,7 @@ func ExampleRedshift_ModifyClusterSubnetGroup() { } func ExampleRedshift_ModifyEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1675,11 +1463,7 @@ func ExampleRedshift_ModifyEventSubscription() { } func ExampleRedshift_ModifySnapshotCopyRetentionPeriod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1701,11 +1485,7 @@ func ExampleRedshift_ModifySnapshotCopyRetentionPeriod() { } func ExampleRedshift_PurchaseReservedNodeOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1727,11 +1507,7 @@ func ExampleRedshift_PurchaseReservedNodeOffering() { } func ExampleRedshift_RebootCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1752,11 +1528,7 @@ func ExampleRedshift_RebootCluster() { } func ExampleRedshift_ResetClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1792,11 +1564,7 @@ func ExampleRedshift_ResetClusterParameterGroup() { } func ExampleRedshift_RestoreFromClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1847,11 +1615,7 @@ func ExampleRedshift_RestoreFromClusterSnapshot() { } func ExampleRedshift_RestoreTableFromClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1879,11 +1643,7 @@ func ExampleRedshift_RestoreTableFromClusterSnapshot() { } func ExampleRedshift_RevokeClusterSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1907,11 +1667,7 @@ func ExampleRedshift_RevokeClusterSecurityGroupIngress() { } func ExampleRedshift_RevokeSnapshotAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1934,11 +1690,7 @@ func ExampleRedshift_RevokeSnapshotAccess() { } func ExampleRedshift_RotateEncryptionKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go index c8998a9e..87510d8f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRedshiftClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go index 737875f8..87b68bc3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRekognition_CompareFaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -57,11 +53,7 @@ func ExampleRekognition_CompareFaces() { } func ExampleRekognition_CreateCollection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -82,11 +74,7 @@ func ExampleRekognition_CreateCollection() { } func ExampleRekognition_DeleteCollection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -107,11 +95,7 @@ func ExampleRekognition_DeleteCollection() { } func ExampleRekognition_DeleteFaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -136,11 +120,7 @@ func ExampleRekognition_DeleteFaces() { } func ExampleRekognition_DetectFaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -172,11 +152,7 @@ func ExampleRekognition_DetectFaces() { } func ExampleRekognition_DetectLabels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -206,11 +182,7 @@ func ExampleRekognition_DetectLabels() { } func ExampleRekognition_IndexFaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -244,11 +216,7 @@ func ExampleRekognition_IndexFaces() { } func ExampleRekognition_ListCollections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -270,11 +238,7 @@ func ExampleRekognition_ListCollections() { } func ExampleRekognition_ListFaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -297,11 +261,7 @@ func ExampleRekognition_ListFaces() { } func ExampleRekognition_SearchFaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) @@ -325,11 +285,7 @@ func ExampleRekognition_SearchFaces() { } func ExampleRekognition_SearchFacesByImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rekognition.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go index e6221378..84201086 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRekognitionClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go index 110e42f8..acbc1eaa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go @@ -165,6 +165,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // // /2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource. // +// Change Batches and Transactional Changes +// // The request body must include a document with a ChangeResourceRecordSetsRequest // element. The request body contains a list of change items, known as a change // batch. Change batches are considered transactional changes. When using the @@ -185,6 +187,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch // error. // +// Traffic Flow +// // To create resource record sets for complex routing configurations, use either // the traffic flow visual editor in the Amazon Route 53 console or the API // actions for traffic policies and traffic policy instances. Save the configuration @@ -195,6 +199,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // see Using Traffic Flow to Route DNS Traffic (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html) // in the Amazon Route 53 Developer Guide. // +// Create, Delete, and Upsert +// // Use ChangeResourceRecordsSetsRequest to perform the following actions: // // * CREATE: Creates a resource record set that has the specified values. @@ -206,47 +212,28 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // it. If a resource set does exist, Amazon Route 53 updates it with the // values in the request. // -// The values that you need to include in the request depend on the type of -// resource record set that you're creating, deleting, or updating: -// -// Basic resource record sets (excluding alias, failover, geolocation, latency, -// and weighted resource record sets) -// -// * Name -// -// * Type -// -// * TTL -// -// Failover, geolocation, latency, or weighted resource record sets (excluding -// alias resource record sets) -// -// * Name -// -// * Type -// -// * TTL +// Syntaxes for Creating, Updating, and Deleting Resource Record Sets // -// * SetIdentifier +// The syntax for a request depends on the type of resource record set that +// you want to create, delete, or update, such as weighted, alias, or failover. +// The XML elements in your request must appear in the order listed in the syntax. // -// Alias resource record sets (including failover alias, geolocation alias, -// latency alias, and weighted alias resource record sets) +// For an example for each type of resource record set, see "Examples." // -// * Name +// Don't refer to the syntax in the "Parameter Syntax" section, which includes +// all of the elements for every kind of resource record set that you can create, +// delete, or update by using ChangeResourceRecordSets. // -// * Type -// -// * AliasTarget (includes DNSName, EvaluateTargetHealth, and HostedZoneId) -// -// * SetIdentifier (for failover, geolocation, latency, and weighted resource -// record sets) +// Change Propagation to Amazon Route 53 DNS Servers // // When you submit a ChangeResourceRecordSets request, Amazon Route 53 propagates // your changes to all of the Amazon Route 53 authoritative DNS servers. While // your changes are propagating, GetChange returns a status of PENDING. When // propagation is complete, GetChange returns a status of INSYNC. Changes generally // propagate to all Amazon Route 53 name servers in a few minutes. In rare circumstances, -// propagation can take up to 30 minutes. For more information, see GetChange +// propagation can take up to 30 minutes. For more information, see GetChange. +// +// Limits on ChangeResourceRecordSets Requests // // For information about the limits on a ChangeResourceRecordSets request, see // Limits (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) @@ -365,6 +352,7 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput // duration, before you try the request again. // // * ErrCodeThrottlingException "ThrottlingException" +// The limit on the number of requests per second was exceeded. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeTagsForResource func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) { @@ -427,7 +415,7 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // set. For information about adding health checks to resource record sets, // see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets. // -// If you are registering EC2 instances with an Elastic Load Balancing (ELB) +// If you're registering EC2 instances with an Elastic Load Balancing (ELB) // load balancer, do not create Amazon Route 53 health checks for the EC2 instances. // When you register an EC2 instance with a load balancer, you configure settings // for an ELB health check, which performs a similar function to an Amazon Route @@ -465,10 +453,9 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // with the AWS Support Center. // // * ErrCodeHealthCheckAlreadyExists "HealthCheckAlreadyExists" -// The health check you're attempting to create already exists. -// -// Amazon Route 53 returns this error when a health check has already been created -// with the specified value for CallerReference. +// The health check you're attempting to create already exists. Amazon Route +// 53 returns this error when a health check has already been created with the +// specified value for CallerReference. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -578,8 +565,8 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // The specified domain name is not valid. // // * ErrCodeHostedZoneAlreadyExists "HostedZoneAlreadyExists" -// The hosted zone you are trying to create already exists. Amazon Route 53 -// returns this error when a hosted zone has already been created with the specified +// The hosted zone you're trying to create already exists. Amazon Route 53 returns +// this error when a hosted zone has already been created with the specified // CallerReference. // // * ErrCodeTooManyHostedZones "TooManyHostedZones" @@ -698,7 +685,7 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // The specified HostedZone can't be found. // // * ErrCodeInvalidArgument "InvalidArgument" -// Parameter name and problem. +// Parameter name is invalid. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -1049,6 +1036,10 @@ func (c *Route53) CreateVPCAssociationAuthorizationRequest(input *CreateVPCAssoc // API operation CreateVPCAssociationAuthorization for usage and error information. // // Returned Error Codes: +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. +// // * ErrCodeTooManyVPCAssociationAuthorizations "TooManyVPCAssociationAuthorizations" // You've created the maximum number of authorizations that can be created for // the specified hosted zone. To authorize another VPC to be associated with @@ -1556,6 +1547,10 @@ func (c *Route53) DeleteVPCAssociationAuthorizationRequest(input *DeleteVPCAssoc // API operation DeleteVPCAssociationAuthorization for usage and error information. // // Returned Error Codes: +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. +// // * ErrCodeVPCAssociationAuthorizationNotFound "VPCAssociationAuthorizationNotFound" // The VPC that you specified is not authorized to be associated with the hosted // zone. @@ -1788,11 +1783,10 @@ func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req // GetCheckerIpRanges API operation for Amazon Route 53. // -// Retrieves a list of the IP ranges used by Amazon Route 53 health checkers -// to check the health of your resources. Send a GET request to the /Amazon -// Route 53 API version/checkeripranges resource. Use these IP addresses to -// configure router and firewall rules to allow health checkers to check the -// health of your resources. +// GetCheckerIpRanges still works, but we recommend that you download ip-ranges.json, +// which includes IP address ranges for all AWS services. For more information, +// see IP Address Ranges of Amazon Route 53 Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html) +// in the Amazon Route 53 Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1944,8 +1938,8 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques // The input is not valid. // // * ErrCodeIncompatibleVersion "IncompatibleVersion" -// The resource you are trying to access is unsupported on this Amazon Route -// 53 endpoint. Please consider using a newer endpoint or a tool that does so. +// The resource you're trying to access is unsupported on this Amazon Route +// 53 endpoint. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheck func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) { @@ -2724,8 +2718,8 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re // The input is not valid. // // * ErrCodeIncompatibleVersion "IncompatibleVersion" -// The resource you are trying to access is unsupported on this Amazon Route -// 53 endpoint. Please consider using a newer endpoint or a tool that does so. +// The resource you're trying to access is unsupported on this Amazon Route +// 53 endpoint. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) { @@ -3292,6 +3286,7 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // duration, before you try the request again. // // * ErrCodeThrottlingException "ThrottlingException" +// The limit on the number of requests per second was exceeded. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResource func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -3377,6 +3372,7 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) // duration, before you try the request again. // // * ErrCodeThrottlingException "ThrottlingException" +// The limit on the number of requests per second was exceeded. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResources func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) { @@ -4418,7 +4414,8 @@ type AlarmIdentifier struct { // healthy. // // For the current list of CloudWatch regions, see Amazon CloudWatch (http://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region) - // in AWS Regions and Endpoints in the Amazon Web Services General Reference. + // in the AWS Regions and Endpoints chapter of the Amazon Web Services General + // Reference. // // Region is a required field Region *string `min:"1" type:"string" required:"true" enum:"CloudWatchRegion"` @@ -4470,7 +4467,7 @@ func (s *AlarmIdentifier) SetRegion(v string) *AlarmIdentifier { // Alias resource record sets only: Information about the CloudFront distribution, // Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon -// Route 53 resource record set that you're redirecting queries to. The Elastic +// Route 53 resource record set that you're redirecting queries to. An Elastic // Beanstalk environment must have a regionalized subdomain. // // When creating resource record sets for a private hosted zone, note the following: @@ -4490,70 +4487,62 @@ type AliasTarget struct { // Alias resource record sets only: The value that you specify depends on where // you want to route queries: // - // * A CloudFront distribution: Specify the domain name that CloudFront assigned - // when you created your distribution. + // CloudFront distributionSpecify the domain name that CloudFront assigned when + // you created your distribution. // // Your CloudFront distribution must include an alternate domain name that matches - // the name of the resource record set. For example, if the name of the resource - // record set is acme.example.com, your CloudFront distribution must include - // acme.example.com as one of the alternate domain names. For more information, - // see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) - // in the Amazon CloudFront Developer Guide. + // the name of the resource record set. For example, if the name of the resource + // record set is acme.example.com, your CloudFront distribution must include + // acme.example.com as one of the alternate domain names. For more information, + // see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) + // in the Amazon CloudFront Developer Guide. // - // * Elastic Beanstalk environment: Specify the CNAME attribute for the environment. - // (The environment must have a regionalized domain name.) You can use the - // following methods to get the value of the CNAME attribute: + // Elastic Beanstalk environmentSpecify the CNAME attribute for the environment. + // (The environment must have a regionalized domain name.) You can use the following + // methods to get the value of the CNAME attribute: // // AWS Management Console: For information about how to get the value by using - // the console, see Using Custom Domains with AWS Elastic Beanstalk (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) - // in the AWS Elastic Beanstalk Developer Guide. + // the console, see Using Custom Domains with AWS Elastic Beanstalk (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) + // in the AWS Elastic Beanstalk Developer Guide. // // Elastic Beanstalk API: Use the DescribeEnvironments action to get the value - // of the CNAME attribute. For more information, see DescribeEnvironments - // (http://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html) - // in the AWS Elastic Beanstalk API Reference. + // of the CNAME attribute. For more information, see DescribeEnvironments (http://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html) + // in the AWS Elastic Beanstalk API Reference. // // AWS CLI: Use the describe-environments command to get the value of the CNAME - // attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) - // in the AWS Command Line Interface Reference. + // attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) + // in the AWS Command Line Interface Reference. // - // * An ELB load balancer: Specify the DNS name that is associated with the - // load balancer. Get the DNS name by using the AWS Management Console, the - // ELB API, or the AWS CLI. Use the same method to get values for HostedZoneId - // and DNSName. If you get one value from the console and the other value - // from the API or the CLI, creating the resource record set will fail. + // ELB load balancerSpecify the DNS name that is associated with the load balancer. + // Get the DNS name by using the AWS Management Console, the ELB API, or the + // AWS CLI. // - // AWS Management Console: Go to the EC2 page, click Load Balancers in the navigation - // pane, choose the load balancer, choose the Description tab, and get the - // value of the DNS name field. (If you're routing traffic to a Classic Load - // Balancer, get the value that begins with dualstack.) Use the same process - // to get the value of the Hosted zone field. See AliasTarget$HostedZoneId. + // AWS Management Console: Go to the EC2 page, choose Load Balancers in the + // navigation pane, choose the load balancer, choose the Description tab, and + // get the value of the DNS name field. (If you're routing traffic to a Classic + // Load Balancer, get the value that begins with dualstack.) // // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of - // DNSName and CanonicalHostedZoneNameId. (You specify the value of CanonicalHostedZoneNameId - // for AliasTarget$HostedZoneId.) For more information, see the applicable - // guide: + // DNSName. For more information, see the applicable guide: // // Classic Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html) // // Application Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) - // to get the value of DNSName and CanonicalHostedZoneNameId. (You specify - // the value of CanonicalHostedZoneNameId for AliasTarget$HostedZoneId.) - // - // * An Amazon S3 bucket that is configured as a static website: Specify - // the domain name of the Amazon S3 website endpoint in which you created - // the bucket, for example, s3-website-us-east-1.amazonaws.com. For more - // information about valid values, see the table Amazon Simple Storage Service - // (S3) Website Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - // in the Amazon Web Services General Reference. For more information about - // using S3 buckets for websites, see Getting Started with Amazon Route 53 - // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html) - // in the Amazon Route 53 Developer Guide. + // to get the value of DNSName. + // + // Amazon S3 bucket that is configured as a static websiteSpecify the domain + // name of the Amazon S3 website endpoint in which you created the bucket, for + // example, s3-website-us-east-2.amazonaws.com. For more information about valid + // values, see the table Amazon Simple Storage Service (S3) Website Endpoints + // (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the + // Amazon Web Services General Reference. For more information about using S3 + // buckets for websites, see Getting Started with Amazon Route 53 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html) + // in the Amazon Route 53 Developer Guide. // - // * Another Amazon Route 53 resource record set: Specify the value of the - // Name element for a resource record set in the current hosted zone. + // Another Amazon Route 53 resource record setSpecify the value of the Name + // element for a resource record set in the current hosted zone. // // DNSName is a required field DNSName *string `type:"string" required:"true"` @@ -4638,10 +4627,10 @@ type AliasTarget struct { // EvaluateTargetHealth is a required field EvaluateTargetHealth *bool `type:"boolean" required:"true"` - // Alias resource records sets only: The value used depends on where the queries - // are routed: + // Alias resource records sets only: The value used depends on where you want + // to route traffic: // - // A CloudFront distributionSpecify Z2FDTNDATAQYW2. + // CloudFront distributionSpecify Z2FDTNDATAQYW2. // // Alias resource record sets for CloudFront can't be created in a private zone. // @@ -4649,33 +4638,37 @@ type AliasTarget struct { // which you created the environment. The environment must have a regionalized // subdomain. For a list of regions and the corresponding hosted zone IDs, see // AWS Elastic Beanstalk (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) - // in the Regions and Endpoints chapter of the Amazon Web Services General Reference. + // in the "AWS Regions and Endpoints" chapter of the Amazon Web Services General + // Reference. // // ELB load balancerSpecify the value of the hosted zone ID for the load balancer. // Use the following methods to get the hosted zone ID: // + // Elastic Load Balancing (http://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region) + // table in the "AWS Regions and Endpoints" chapter of the Amazon Web Services + // General Reference: Use the value in the "Amazon Route 53 Hosted Zone ID" + // column that corresponds with the region that you created your load balancer + // in. + // // AWS Management Console: Go to the Amazon EC2 page, click Load Balancers in // the navigation pane, select the load balancer, and get the value of the Hosted - // zone field on the Description tab. Use the same process to get the value - // of DNS name. (You specify the value of DNS name for AliasTarget$DNSName.) + // zone field on the Description tab. // // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of - // CanonicalHostedZoneNameId and DNSName. (You specify the value of DNSName - // for AliasTarget$DNSName.) For more information, see the applicable guide: + // CanonicalHostedZoneNameId. For more information, see the applicable guide: // // Classic Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html) // // Application Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) - // to get the value of CanonicalHostedZoneNameID and DNSName. (You specify the - // value of DNSName for AliasTarget$DNSName.) + // to get the value of CanonicalHostedZoneNameID. // // An Amazon S3 bucket configured as a static websiteSpecify the hosted zone // ID for the region that you created the bucket in. For more information about - // valid values, see the table Amazon Simple Storage Service Website Endpoints - // (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the - // Amazon Web Services General Reference. + // valid values, see the Amazon Simple Storage Service Website Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + // table in the "AWS Regions and Endpoints" chapter of the Amazon Web Services + // General Reference. // // Another Amazon Route 53 resource record set in your hosted zoneSpecify the // hosted zone ID of your hosted zone. (An alias resource record set can't reference @@ -5280,7 +5273,7 @@ type CloudWatchAlarmConfiguration struct { // For the metric that the CloudWatch alarm is associated with, a complex type // that contains information about the dimensions for the metric.For information, - // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference ( http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) + // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) // in the Amazon CloudWatch User Guide. Dimensions []*Dimension `locationNameList:"Dimension" type:"list"` @@ -7027,7 +7020,6 @@ func (s *GetChangeOutput) SetChangeInfo(v *ChangeInfo) *GetChangeOutput { return s } -// Empty request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetCheckerIpRangesRequest type GetCheckerIpRangesInput struct { _ struct{} `type:"structure"` @@ -7043,14 +7035,10 @@ func (s GetCheckerIpRangesInput) GoString() string { return s.String() } -// A complex type that contains the CheckerIpRanges element. // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetCheckerIpRangesResponse type GetCheckerIpRangesOutput struct { _ struct{} `type:"structure"` - // A complex type that contains sorted list of IP ranges in CIDR format for - // Amazon Route 53 health checkers. - // // CheckerIpRanges is a required field CheckerIpRanges []*string `type:"list" required:"true"` } @@ -7388,63 +7376,13 @@ func (s *GetHealthCheckOutput) SetHealthCheck(v *HealthCheck) *GetHealthCheckOut type GetHealthCheckStatusInput struct { _ struct{} `type:"structure"` - // If you want Amazon Route 53 to return this resource record set in response - // to a DNS query only when a health check is passing, include the HealthCheckId - // element and specify the ID of the applicable health check. - // - // Amazon Route 53 determines whether a resource record set is healthy by periodically - // sending a request to the endpoint that is specified in the health check. - // If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint - // is healthy. If the endpoint returns an HTTP status code of 400 or greater, - // or if the endpoint doesn't respond for a certain amount of time, Amazon Route - // 53 considers the endpoint unhealthy and also considers the resource record - // set unhealthy. - // - // The HealthCheckId element is only useful when Amazon Route 53 is choosing - // between two or more resource record sets to respond to a DNS query, and you - // want Amazon Route 53 to base the choice in part on the status of a health - // check. Configuring health checks only makes sense in the following configurations: - // - // * You're checking the health of the resource record sets in a weighted, - // latency, geolocation, or failover resource record set, and you specify - // health check IDs for all of the resource record sets. If the health check - // for one resource record set specifies an endpoint that is not healthy, - // Amazon Route 53 stops responding to queries using the value for that resource - // record set. - // - // * You set EvaluateTargetHealth to true for the resource record sets in - // an alias, weighted alias, latency alias, geolocation alias, or failover - // alias resource record set, and you specify health check IDs for all of - // the resource record sets that are referenced by the alias resource record - // sets. For more information about this configuration, see EvaluateTargetHealth. - // - // Amazon Route 53 doesn't check the health of the endpoint specified in the - // resource record set, for example, the endpoint specified by the IP address - // in the Value element. When you add a HealthCheckId element to a resource - // record set, Amazon Route 53 checks the health of the endpoint that you - // specified in the health check. - // - // For geolocation resource record sets, if an endpoint is unhealthy, Amazon - // Route 53 looks for a resource record set for the larger, associated geographic - // region. For example, suppose you have resource record sets for a state in - // the United States, for the United States, for North America, and for all - // locations. If the endpoint for the state resource record set is unhealthy, - // Amazon Route 53 checks the resource record sets for the United States, for - // North America, and for all locations (a resource record set for which the - // value of CountryCode is *), in that order, until it finds a resource record - // set for which the endpoint is healthy. + // The ID for the health check for which you want the current status. When you + // created the health check, CreateHealthCheck returned the ID in the response, + // in the HealthCheckId element. // - // If your health checks specify the endpoint only by domain name, we recommend - // that you create a separate health check for each endpoint. For example, create - // a health check for each HTTP server that is serving content for www.example.com. - // For the value of FullyQualifiedDomainName, specify the domain name of the - // server (such as us-east-1-www.example.com), not the name of the resource - // record sets (example.com). - // - // In this configuration, if you create a health check for which the value of - // FullyQualifiedDomainName matches the name of the resource record sets and - // then associate the health check with those resource record sets, health check - // results will be unpredictable. + // If you want to check the status of a calculated health check, you must use + // the Amazon Route 53 console or the CloudWatch console. You can't use GetHealthCheckStatus + // to get the status of a calculated health check. // // HealthCheckId is a required field HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` @@ -7771,8 +7709,8 @@ func (s *GetTrafficPolicyInput) SetVersion(v int64) *GetTrafficPolicyInput { return s } -// To retrieve a count of all your traffic policy instances, send a GET request -// to the /2013-04-01/trafficpolicyinstancecount resource. +// Request to get the number of traffic policy instances that are associated +// with the current AWS account. // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceCountRequest type GetTrafficPolicyInstanceCountInput struct { _ struct{} `type:"structure"` @@ -8036,6 +7974,9 @@ type HealthCheckConfig struct { // to healthy or vice versa. For more information, see How Amazon Route 53 Determines // Whether an Endpoint Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html) // in the Amazon Route 53 Developer Guide. + // + // If you don't specify a value for FailureThreshold, the default value is three + // health checks. FailureThreshold *int64 `min:"1" type:"integer"` // Amazon Route 53 behavior depends on whether you specify a value for IPAddress. @@ -8083,7 +8024,7 @@ type HealthCheckConfig struct { // we recommend that you create a separate health check for each endpoint. For // example, create a health check for each HTTP server that is serving content // for www.example.com. For the value of FullyQualifiedDomainName, specify the - // domain name of the server (such as us-east-1-www.example.com), not the name + // domain name of the server (such as us-east-2-www.example.com), not the name // of the resource record sets (www.example.com). // // In this configuration, if you create a health check for which the value of @@ -8119,6 +8060,16 @@ type HealthCheckConfig struct { // Using an IP address returned by DNS, Amazon Route 53 then checks the health // of the endpoint. // + // Use one of the following formats for the value of IPAddress: + // + // * IPv4 address: four values between 0 and 255, separated by periods (.), + // for example, 192.0.2.44. + // + // * IPv6 address: eight groups of four hexadecimal values, separated by + // colons (:), for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345. You + // can also shorten IPv6 addresses as described in RFC 5952, for example, + // 2001:db8:85a3::abcd:1:2345. + // // If the endpoint is an EC2 instance, we recommend that you create an Elastic // IP address, associate it with your EC2 instance, and specify the Elastic // IP address for IPAddress. This ensures that the IP address of your instance @@ -8171,13 +8122,24 @@ type HealthCheckConfig struct { // A complex type that contains one Region element for each region from which // you want Amazon Route 53 health checkers to check the specified endpoint. + // + // If you don't specify any regions, Amazon Route 53 health checkers automatically + // performs checks from all of the regions that are listed under Valid Values. + // + // If you update a health check to remove a region that has been performing + // health checks, Amazon Route 53 will briefly continue to perform checks from + // that region to ensure that some health checkers are always checking the endpoint + // (for example, if you replace three regions with four different regions). Regions []*string `locationNameList:"Region" min:"1" type:"list"` // The number of seconds between the time that Amazon Route 53 gets a response - // from your endpoint and the time that it sends the next health-check request. + // from your endpoint and the time that it sends the next health check request. // Each Amazon Route 53 health checker makes requests at this interval. // // You can't change the value of RequestInterval after you create a health check. + // + // If you don't specify a value for RequestInterval, the default value is 30 + // seconds. RequestInterval *int64 `min:"10" type:"integer"` // The path, if any, that you want Amazon Route 53 to request when performing @@ -10250,8 +10212,8 @@ func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstances(v [ return s } -// A complex type that contains the information about the request to list your -// traffic policy instances. +// A request to get information about the traffic policy instances that you +// created by using the current AWS account. // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesRequest type ListTrafficPolicyInstancesInput struct { _ struct{} `type:"structure"` @@ -10690,7 +10652,7 @@ func (s *ListVPCAssociationAuthorizationsOutput) SetVPCs(v []*VPC) *ListVPCAssoc // Information specific to the resource record. // -// If you are creating an alias resource record set, omit ResourceRecord. +// If you're creating an alias resource record set, omit ResourceRecord. // Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ResourceRecord type ResourceRecord struct { _ struct{} `type:"structure"` @@ -10704,7 +10666,7 @@ type ResourceRecord struct { // You can specify more than one value for all record types except CNAME and // SOA. // - // If you are creating an alias resource record set, omit Value. + // If you're creating an alias resource record set, omit Value. // // Value is a required field Value *string `type:"string" required:"true"` @@ -10746,7 +10708,7 @@ type ResourceRecordSet struct { // Alias resource record sets only: Information about the CloudFront distribution, // AWS Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or - // Amazon Route 53 resource record set to which you are redirecting queries. + // Amazon Route 53 resource record set to which you're redirecting queries. // The AWS Elastic Beanstalk environment must have a regionalized subdomain. // // If you're creating resource records sets for a private hosted zone, note @@ -10859,26 +10821,26 @@ type ResourceRecordSet struct { // * By determining the current state of a CloudWatch alarm (CloudWatch metric // health checks) // - // For information about how Amazon Route 53 determines whether a health check - // is healthy, see CreateHealthCheck. + // For more information, see How Amazon Route 53 Determines Whether an Endpoint + // Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html). // // The HealthCheckId element is only useful when Amazon Route 53 is choosing // between two or more resource record sets to respond to a DNS query, and you // want Amazon Route 53 to base the choice in part on the status of a health // check. Configuring health checks only makes sense in the following configurations: // - // * You're checking the health of the resource record sets in a weighted, - // latency, geolocation, or failover resource record set, and you specify - // health check IDs for all of the resource record sets. If the health check - // for one resource record set specifies an endpoint that is not healthy, - // Amazon Route 53 stops responding to queries using the value for that resource - // record set. + // * You're checking the health of the resource record sets in a group of + // weighted, latency, geolocation, or failover resource record sets, and + // you specify health check IDs for all of the resource record sets. If the + // health check for one resource record set specifies an endpoint that is + // not healthy, Amazon Route 53 stops responding to queries using the value + // for that resource record set. // // * You set EvaluateTargetHealth to true for the resource record sets in - // an alias, weighted alias, latency alias, geolocation alias, or failover - // alias resource record set, and you specify health check IDs for all of - // the resource record sets that are referenced by the alias resource record - // sets. + // a group of alias, weighted alias, latency alias, geolocation alias, or + // failover alias resource record sets, and you specify health check IDs + // for all of the resource record sets that are referenced by the alias resource + // record sets. // // Amazon Route 53 doesn't check the health of the endpoint specified in the // resource record set, for example, the endpoint specified by the IP address @@ -10900,7 +10862,7 @@ type ResourceRecordSet struct { // that you create a separate health check for each endpoint. For example, create // a health check for each HTTP server that is serving content for www.example.com. // For the value of FullyQualifiedDomainName, specify the domain name of the - // server (such as us-east-1-www.example.com), not the name of the resource + // server (such as us-east-2-www.example.com), not the name of the resource // record sets (example.com). // // n this configuration, if you create a health check for which the value of @@ -10974,10 +10936,9 @@ type ResourceRecordSet struct { // * You can only create one latency resource record set for each Amazon // EC2 Region. // - // * You are not required to create latency resource record sets for all - // Amazon EC2 Regions. Amazon Route 53 will choose the region with the best - // latency from among the regions for which you create latency resource record - // sets. + // * You aren't required to create latency resource record sets for all Amazon + // EC2 Regions. Amazon Route 53 will choose the region with the best latency + // from among the regions for which you create latency resource record sets. // // * You can't create non-latency resource record sets that have the same // values for the Name and Type elements as latency resource record sets. @@ -10985,7 +10946,7 @@ type ResourceRecordSet struct { // Information about the resource records to act upon. // - // If you are creating an alias resource record set, omit ResourceRecords. + // If you're creating an alias resource record set, omit ResourceRecords. ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" min:"1" type:"list"` // Weighted, Latency, Geo, and Failover resource record sets only: An identifier @@ -11926,6 +11887,9 @@ type UpdateHealthCheckInput struct { // to healthy or vice versa. For more information, see How Amazon Route 53 Determines // Whether an Endpoint Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html) // in the Amazon Route 53 Developer Guide. + // + // If you don't specify a value for FailureThreshold, the default value is three + // health checks. FailureThreshold *int64 `min:"1" type:"integer"` // Amazon Route 53 behavior depends on whether you specify a value for IPAddress. @@ -11978,7 +11942,7 @@ type UpdateHealthCheckInput struct { // we recommend that you create a separate health check for each endpoint. For // example, create a health check for each HTTP server that is serving content // for www.example.com. For the value of FullyQualifiedDomainName, specify the - // domain name of the server (such as us-east-1-www.example.com), not the name + // domain name of the server (such as us-east-2-www.example.com), not the name // of the resource record sets (www.example.com). // // In this configuration, if the value of FullyQualifiedDomainName matches the @@ -12038,6 +12002,16 @@ type UpdateHealthCheckInput struct { // Using an IP address that is returned by DNS, Amazon Route 53 then checks // the health of the endpoint. // + // Use one of the following formats for the value of IPAddress: + // + // * IPv4 address: four values between 0 and 255, separated by periods (.), + // for example, 192.0.2.44. + // + // * IPv6 address: eight groups of four hexadecimal values, separated by + // colons (:), for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345. You + // can also shorten IPv6 addresses as described in RFC 5952, for example, + // 2001:db8:85a3::abcd:1:2345. + // // If the endpoint is an EC2 instance, we recommend that you create an Elastic // IP address, associate it with your EC2 instance, and specify the Elastic // IP address for IPAddress. This ensures that the IP address of your instance @@ -12690,8 +12664,6 @@ const ( ComparisonOperatorLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold" ) -// An Amazon EC2 Region that you want Amazon Route 53 to use to perform health -// checks. const ( // HealthCheckRegionUsEast1 is a HealthCheckRegion enum value HealthCheckRegionUsEast1 = "us-east-1" diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go index 9c3b57de..cbd875e7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go @@ -68,10 +68,9 @@ const ( // ErrCodeHealthCheckAlreadyExists for service response error code // "HealthCheckAlreadyExists". // - // The health check you're attempting to create already exists. - // - // Amazon Route 53 returns this error when a health check has already been created - // with the specified value for CallerReference. + // The health check you're attempting to create already exists. Amazon Route + // 53 returns this error when a health check has already been created with the + // specified value for CallerReference. ErrCodeHealthCheckAlreadyExists = "HealthCheckAlreadyExists" // ErrCodeHealthCheckInUse for service response error code @@ -92,8 +91,8 @@ const ( // ErrCodeHostedZoneAlreadyExists for service response error code // "HostedZoneAlreadyExists". // - // The hosted zone you are trying to create already exists. Amazon Route 53 - // returns this error when a hosted zone has already been created with the specified + // The hosted zone you're trying to create already exists. Amazon Route 53 returns + // this error when a hosted zone has already been created with the specified // CallerReference. ErrCodeHostedZoneAlreadyExists = "HostedZoneAlreadyExists" @@ -112,14 +111,14 @@ const ( // ErrCodeIncompatibleVersion for service response error code // "IncompatibleVersion". // - // The resource you are trying to access is unsupported on this Amazon Route - // 53 endpoint. Please consider using a newer endpoint or a tool that does so. + // The resource you're trying to access is unsupported on this Amazon Route + // 53 endpoint. ErrCodeIncompatibleVersion = "IncompatibleVersion" // ErrCodeInvalidArgument for service response error code // "InvalidArgument". // - // Parameter name and problem. + // Parameter name is invalid. ErrCodeInvalidArgument = "InvalidArgument" // ErrCodeInvalidChangeBatch for service response error code @@ -242,6 +241,8 @@ const ( // ErrCodeThrottlingException for service response error code // "ThrottlingException". + // + // The limit on the number of requests per second was exceeded. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeTooManyHealthChecks for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go index a7a7f61d..1f8b48ab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRoute53_AssociateVPCWithHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -46,11 +42,7 @@ func ExampleRoute53_AssociateVPCWithHostedZone() { } func ExampleRoute53_ChangeResourceRecordSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -107,11 +99,7 @@ func ExampleRoute53_ChangeResourceRecordSets() { } func ExampleRoute53_ChangeTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -144,11 +132,7 @@ func ExampleRoute53_ChangeTagsForResource() { } func ExampleRoute53_CreateHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -196,11 +180,7 @@ func ExampleRoute53_CreateHealthCheck() { } func ExampleRoute53_CreateHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -231,11 +211,7 @@ func ExampleRoute53_CreateHostedZone() { } func ExampleRoute53_CreateReusableDelegationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -257,11 +233,7 @@ func ExampleRoute53_CreateReusableDelegationSet() { } func ExampleRoute53_CreateTrafficPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -284,11 +256,7 @@ func ExampleRoute53_CreateTrafficPolicy() { } func ExampleRoute53_CreateTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -313,11 +281,7 @@ func ExampleRoute53_CreateTrafficPolicyInstance() { } func ExampleRoute53_CreateTrafficPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -340,11 +304,7 @@ func ExampleRoute53_CreateTrafficPolicyVersion() { } func ExampleRoute53_CreateVPCAssociationAuthorization() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -369,11 +329,7 @@ func ExampleRoute53_CreateVPCAssociationAuthorization() { } func ExampleRoute53_DeleteHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -394,11 +350,7 @@ func ExampleRoute53_DeleteHealthCheck() { } func ExampleRoute53_DeleteHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -419,11 +371,7 @@ func ExampleRoute53_DeleteHostedZone() { } func ExampleRoute53_DeleteReusableDelegationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -444,11 +392,7 @@ func ExampleRoute53_DeleteReusableDelegationSet() { } func ExampleRoute53_DeleteTrafficPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -470,11 +414,7 @@ func ExampleRoute53_DeleteTrafficPolicy() { } func ExampleRoute53_DeleteTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -495,11 +435,7 @@ func ExampleRoute53_DeleteTrafficPolicyInstance() { } func ExampleRoute53_DeleteVPCAssociationAuthorization() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -524,11 +460,7 @@ func ExampleRoute53_DeleteVPCAssociationAuthorization() { } func ExampleRoute53_DisassociateVPCFromHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -554,11 +486,7 @@ func ExampleRoute53_DisassociateVPCFromHostedZone() { } func ExampleRoute53_GetChange() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -579,11 +507,7 @@ func ExampleRoute53_GetChange() { } func ExampleRoute53_GetCheckerIpRanges() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -602,11 +526,7 @@ func ExampleRoute53_GetCheckerIpRanges() { } func ExampleRoute53_GetGeoLocation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -629,11 +549,7 @@ func ExampleRoute53_GetGeoLocation() { } func ExampleRoute53_GetHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -654,11 +570,7 @@ func ExampleRoute53_GetHealthCheck() { } func ExampleRoute53_GetHealthCheckCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -677,11 +589,7 @@ func ExampleRoute53_GetHealthCheckCount() { } func ExampleRoute53_GetHealthCheckLastFailureReason() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -702,11 +610,7 @@ func ExampleRoute53_GetHealthCheckLastFailureReason() { } func ExampleRoute53_GetHealthCheckStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -727,11 +631,7 @@ func ExampleRoute53_GetHealthCheckStatus() { } func ExampleRoute53_GetHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -752,11 +652,7 @@ func ExampleRoute53_GetHostedZone() { } func ExampleRoute53_GetHostedZoneCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -775,11 +671,7 @@ func ExampleRoute53_GetHostedZoneCount() { } func ExampleRoute53_GetReusableDelegationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -800,11 +692,7 @@ func ExampleRoute53_GetReusableDelegationSet() { } func ExampleRoute53_GetTrafficPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -826,11 +714,7 @@ func ExampleRoute53_GetTrafficPolicy() { } func ExampleRoute53_GetTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -851,11 +735,7 @@ func ExampleRoute53_GetTrafficPolicyInstance() { } func ExampleRoute53_GetTrafficPolicyInstanceCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -874,11 +754,7 @@ func ExampleRoute53_GetTrafficPolicyInstanceCount() { } func ExampleRoute53_ListGeoLocations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -902,11 +778,7 @@ func ExampleRoute53_ListGeoLocations() { } func ExampleRoute53_ListHealthChecks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -928,11 +800,7 @@ func ExampleRoute53_ListHealthChecks() { } func ExampleRoute53_ListHostedZones() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -955,11 +823,7 @@ func ExampleRoute53_ListHostedZones() { } func ExampleRoute53_ListHostedZonesByName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -982,11 +846,7 @@ func ExampleRoute53_ListHostedZonesByName() { } func ExampleRoute53_ListResourceRecordSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1011,11 +871,7 @@ func ExampleRoute53_ListResourceRecordSets() { } func ExampleRoute53_ListReusableDelegationSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1037,11 +893,7 @@ func ExampleRoute53_ListReusableDelegationSets() { } func ExampleRoute53_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1063,11 +915,7 @@ func ExampleRoute53_ListTagsForResource() { } func ExampleRoute53_ListTagsForResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1092,11 +940,7 @@ func ExampleRoute53_ListTagsForResources() { } func ExampleRoute53_ListTrafficPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1118,11 +962,7 @@ func ExampleRoute53_ListTrafficPolicies() { } func ExampleRoute53_ListTrafficPolicyInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1146,11 +986,7 @@ func ExampleRoute53_ListTrafficPolicyInstances() { } func ExampleRoute53_ListTrafficPolicyInstancesByHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1174,11 +1010,7 @@ func ExampleRoute53_ListTrafficPolicyInstancesByHostedZone() { } func ExampleRoute53_ListTrafficPolicyInstancesByPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1204,11 +1036,7 @@ func ExampleRoute53_ListTrafficPolicyInstancesByPolicy() { } func ExampleRoute53_ListTrafficPolicyVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1231,11 +1059,7 @@ func ExampleRoute53_ListTrafficPolicyVersions() { } func ExampleRoute53_ListVPCAssociationAuthorizations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1258,11 +1082,7 @@ func ExampleRoute53_ListVPCAssociationAuthorizations() { } func ExampleRoute53_TestDNSAnswer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1288,11 +1108,7 @@ func ExampleRoute53_TestDNSAnswer() { } func ExampleRoute53_UpdateHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1336,11 +1152,7 @@ func ExampleRoute53_UpdateHealthCheck() { } func ExampleRoute53_UpdateHostedZoneComment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1362,11 +1174,7 @@ func ExampleRoute53_UpdateHostedZoneComment() { } func ExampleRoute53_UpdateTrafficPolicyComment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1389,11 +1197,7 @@ func ExampleRoute53_UpdateTrafficPolicyComment() { } func ExampleRoute53_UpdateTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go index c281c623..cb1aac54 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRoute53Client{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go index eecb1bb8..0452fac5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRoute53Domains_CheckDomainAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -42,11 +38,7 @@ func ExampleRoute53Domains_CheckDomainAvailability() { } func ExampleRoute53Domains_DeleteTagsForDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -71,11 +63,7 @@ func ExampleRoute53Domains_DeleteTagsForDomain() { } func ExampleRoute53Domains_DisableDomainAutoRenew() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -96,11 +84,7 @@ func ExampleRoute53Domains_DisableDomainAutoRenew() { } func ExampleRoute53Domains_DisableDomainTransferLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -121,11 +105,7 @@ func ExampleRoute53Domains_DisableDomainTransferLock() { } func ExampleRoute53Domains_EnableDomainAutoRenew() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -146,11 +126,7 @@ func ExampleRoute53Domains_EnableDomainAutoRenew() { } func ExampleRoute53Domains_EnableDomainTransferLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -171,11 +147,7 @@ func ExampleRoute53Domains_EnableDomainTransferLock() { } func ExampleRoute53Domains_GetContactReachabilityStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -196,11 +168,7 @@ func ExampleRoute53Domains_GetContactReachabilityStatus() { } func ExampleRoute53Domains_GetDomainDetail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -221,11 +189,7 @@ func ExampleRoute53Domains_GetDomainDetail() { } func ExampleRoute53Domains_GetDomainSuggestions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -248,11 +212,7 @@ func ExampleRoute53Domains_GetDomainSuggestions() { } func ExampleRoute53Domains_GetOperationDetail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -273,11 +233,7 @@ func ExampleRoute53Domains_GetOperationDetail() { } func ExampleRoute53Domains_ListDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -299,11 +255,7 @@ func ExampleRoute53Domains_ListDomains() { } func ExampleRoute53Domains_ListOperations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -325,11 +277,7 @@ func ExampleRoute53Domains_ListOperations() { } func ExampleRoute53Domains_ListTagsForDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -350,11 +298,7 @@ func ExampleRoute53Domains_ListTagsForDomain() { } func ExampleRoute53Domains_RegisterDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -447,11 +391,7 @@ func ExampleRoute53Domains_RegisterDomain() { } func ExampleRoute53Domains_RenewDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -474,11 +414,7 @@ func ExampleRoute53Domains_RenewDomain() { } func ExampleRoute53Domains_ResendContactReachabilityEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -499,11 +435,7 @@ func ExampleRoute53Domains_ResendContactReachabilityEmail() { } func ExampleRoute53Domains_RetrieveDomainAuthCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -524,11 +456,7 @@ func ExampleRoute53Domains_RetrieveDomainAuthCode() { } func ExampleRoute53Domains_TransferDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -632,11 +560,7 @@ func ExampleRoute53Domains_TransferDomain() { } func ExampleRoute53Domains_UpdateDomainContact() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -723,11 +647,7 @@ func ExampleRoute53Domains_UpdateDomainContact() { } func ExampleRoute53Domains_UpdateDomainContactPrivacy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -751,11 +671,7 @@ func ExampleRoute53Domains_UpdateDomainContactPrivacy() { } func ExampleRoute53Domains_UpdateDomainNameservers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -787,11 +703,7 @@ func ExampleRoute53Domains_UpdateDomainNameservers() { } func ExampleRoute53Domains_UpdateTagsForDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -819,11 +731,7 @@ func ExampleRoute53Domains_UpdateTagsForDomain() { } func ExampleRoute53Domains_ViewBilling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go index 6c9b3bb6..667cc9d9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRoute53DomainsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go index f2dd19cc..7cb8e523 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleS3_AbortMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -44,11 +40,7 @@ func ExampleS3_AbortMultipartUpload() { } func ExampleS3_CompleteMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -81,11 +73,7 @@ func ExampleS3_CompleteMultipartUpload() { } func ExampleS3_CopyObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -141,11 +129,7 @@ func ExampleS3_CopyObject() { } func ExampleS3_CreateBucket() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -175,11 +159,7 @@ func ExampleS3_CreateBucket() { } func ExampleS3_CreateMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -224,11 +204,7 @@ func ExampleS3_CreateMultipartUpload() { } func ExampleS3_DeleteBucket() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -249,11 +225,7 @@ func ExampleS3_DeleteBucket() { } func ExampleS3_DeleteBucketAnalyticsConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -275,11 +247,7 @@ func ExampleS3_DeleteBucketAnalyticsConfiguration() { } func ExampleS3_DeleteBucketCors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -300,11 +268,7 @@ func ExampleS3_DeleteBucketCors() { } func ExampleS3_DeleteBucketInventoryConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -326,11 +290,7 @@ func ExampleS3_DeleteBucketInventoryConfiguration() { } func ExampleS3_DeleteBucketLifecycle() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -351,11 +311,7 @@ func ExampleS3_DeleteBucketLifecycle() { } func ExampleS3_DeleteBucketMetricsConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -377,11 +333,7 @@ func ExampleS3_DeleteBucketMetricsConfiguration() { } func ExampleS3_DeleteBucketPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -402,11 +354,7 @@ func ExampleS3_DeleteBucketPolicy() { } func ExampleS3_DeleteBucketReplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -427,11 +375,7 @@ func ExampleS3_DeleteBucketReplication() { } func ExampleS3_DeleteBucketTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -452,11 +396,7 @@ func ExampleS3_DeleteBucketTagging() { } func ExampleS3_DeleteBucketWebsite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -477,11 +417,7 @@ func ExampleS3_DeleteBucketWebsite() { } func ExampleS3_DeleteObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -506,11 +442,7 @@ func ExampleS3_DeleteObject() { } func ExampleS3_DeleteObjectTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -533,11 +465,7 @@ func ExampleS3_DeleteObjectTagging() { } func ExampleS3_DeleteObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -570,11 +498,7 @@ func ExampleS3_DeleteObjects() { } func ExampleS3_GetBucketAccelerateConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -595,11 +519,7 @@ func ExampleS3_GetBucketAccelerateConfiguration() { } func ExampleS3_GetBucketAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -620,11 +540,7 @@ func ExampleS3_GetBucketAcl() { } func ExampleS3_GetBucketAnalyticsConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -646,11 +562,7 @@ func ExampleS3_GetBucketAnalyticsConfiguration() { } func ExampleS3_GetBucketCors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -671,11 +583,7 @@ func ExampleS3_GetBucketCors() { } func ExampleS3_GetBucketInventoryConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -697,11 +605,7 @@ func ExampleS3_GetBucketInventoryConfiguration() { } func ExampleS3_GetBucketLifecycle() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -722,11 +626,7 @@ func ExampleS3_GetBucketLifecycle() { } func ExampleS3_GetBucketLifecycleConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -747,11 +647,7 @@ func ExampleS3_GetBucketLifecycleConfiguration() { } func ExampleS3_GetBucketLocation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -772,11 +668,7 @@ func ExampleS3_GetBucketLocation() { } func ExampleS3_GetBucketLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -797,11 +689,7 @@ func ExampleS3_GetBucketLogging() { } func ExampleS3_GetBucketMetricsConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -823,11 +711,7 @@ func ExampleS3_GetBucketMetricsConfiguration() { } func ExampleS3_GetBucketNotification() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -848,11 +732,7 @@ func ExampleS3_GetBucketNotification() { } func ExampleS3_GetBucketNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -873,11 +753,7 @@ func ExampleS3_GetBucketNotificationConfiguration() { } func ExampleS3_GetBucketPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -898,11 +774,7 @@ func ExampleS3_GetBucketPolicy() { } func ExampleS3_GetBucketReplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -923,11 +795,7 @@ func ExampleS3_GetBucketReplication() { } func ExampleS3_GetBucketRequestPayment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -948,11 +816,7 @@ func ExampleS3_GetBucketRequestPayment() { } func ExampleS3_GetBucketTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -973,11 +837,7 @@ func ExampleS3_GetBucketTagging() { } func ExampleS3_GetBucketVersioning() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -998,11 +858,7 @@ func ExampleS3_GetBucketVersioning() { } func ExampleS3_GetBucketWebsite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1023,11 +879,7 @@ func ExampleS3_GetBucketWebsite() { } func ExampleS3_GetObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1066,11 +918,7 @@ func ExampleS3_GetObject() { } func ExampleS3_GetObjectAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1094,11 +942,7 @@ func ExampleS3_GetObjectAcl() { } func ExampleS3_GetObjectTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1121,11 +965,7 @@ func ExampleS3_GetObjectTagging() { } func ExampleS3_GetObjectTorrent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1148,11 +988,7 @@ func ExampleS3_GetObjectTorrent() { } func ExampleS3_HeadBucket() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1173,11 +1009,7 @@ func ExampleS3_HeadBucket() { } func ExampleS3_HeadObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1210,11 +1042,7 @@ func ExampleS3_HeadObject() { } func ExampleS3_ListBucketAnalyticsConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1236,11 +1064,7 @@ func ExampleS3_ListBucketAnalyticsConfigurations() { } func ExampleS3_ListBucketInventoryConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1262,11 +1086,7 @@ func ExampleS3_ListBucketInventoryConfigurations() { } func ExampleS3_ListBucketMetricsConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1288,11 +1108,7 @@ func ExampleS3_ListBucketMetricsConfigurations() { } func ExampleS3_ListBuckets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1311,11 +1127,7 @@ func ExampleS3_ListBuckets() { } func ExampleS3_ListMultipartUploads() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1342,11 +1154,7 @@ func ExampleS3_ListMultipartUploads() { } func ExampleS3_ListObjectVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1373,11 +1181,7 @@ func ExampleS3_ListObjectVersions() { } func ExampleS3_ListObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1404,11 +1208,7 @@ func ExampleS3_ListObjects() { } func ExampleS3_ListObjectsV2() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1437,11 +1237,7 @@ func ExampleS3_ListObjectsV2() { } func ExampleS3_ListParts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1467,11 +1263,7 @@ func ExampleS3_ListParts() { } func ExampleS3_PutBucketAccelerateConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1495,11 +1287,7 @@ func ExampleS3_PutBucketAccelerateConfiguration() { } func ExampleS3_PutBucketAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1545,11 +1333,7 @@ func ExampleS3_PutBucketAcl() { } func ExampleS3_PutBucketAnalyticsConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1604,11 +1388,7 @@ func ExampleS3_PutBucketAnalyticsConfiguration() { } func ExampleS3_PutBucketCors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1653,11 +1433,7 @@ func ExampleS3_PutBucketCors() { } func ExampleS3_PutBucketInventoryConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1702,11 +1478,7 @@ func ExampleS3_PutBucketInventoryConfiguration() { } func ExampleS3_PutBucketLifecycle() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1757,11 +1529,7 @@ func ExampleS3_PutBucketLifecycle() { } func ExampleS3_PutBucketLifecycleConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1835,11 +1603,7 @@ func ExampleS3_PutBucketLifecycleConfiguration() { } func ExampleS3_PutBucketLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1879,11 +1643,7 @@ func ExampleS3_PutBucketLogging() { } func ExampleS3_PutBucketMetricsConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1925,11 +1685,7 @@ func ExampleS3_PutBucketMetricsConfiguration() { } func ExampleS3_PutBucketNotification() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1980,11 +1736,7 @@ func ExampleS3_PutBucketNotification() { } func ExampleS3_PutBucketNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2073,11 +1825,7 @@ func ExampleS3_PutBucketNotificationConfiguration() { } func ExampleS3_PutBucketPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2099,11 +1847,7 @@ func ExampleS3_PutBucketPolicy() { } func ExampleS3_PutBucketReplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2139,11 +1883,7 @@ func ExampleS3_PutBucketReplication() { } func ExampleS3_PutBucketRequestPayment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2167,11 +1907,7 @@ func ExampleS3_PutBucketRequestPayment() { } func ExampleS3_PutBucketTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2201,11 +1937,7 @@ func ExampleS3_PutBucketTagging() { } func ExampleS3_PutBucketVersioning() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2231,11 +1963,7 @@ func ExampleS3_PutBucketVersioning() { } func ExampleS3_PutBucketWebsite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2284,11 +2012,7 @@ func ExampleS3_PutBucketWebsite() { } func ExampleS3_PutObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2336,11 +2060,7 @@ func ExampleS3_PutObject() { } func ExampleS3_PutObjectAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2389,11 +2109,7 @@ func ExampleS3_PutObjectAcl() { } func ExampleS3_PutObjectTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2425,11 +2141,7 @@ func ExampleS3_PutObjectTagging() { } func ExampleS3_RestoreObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2459,11 +2171,7 @@ func ExampleS3_RestoreObject() { } func ExampleS3_UploadPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -2493,11 +2201,7 @@ func ExampleS3_UploadPart() { } func ExampleS3_UploadPartCopy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go index 8006412c..c2f840e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockS3Client{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go index dfdee188..0841077a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go @@ -50,7 +50,7 @@ type Downloader struct { // // Example: // // The session the S3 Downloader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // Create a downloader with the session and default options // downloader := s3manager.NewDownloader(sess) @@ -79,7 +79,7 @@ func NewDownloader(c client.ConfigProvider, options ...func(*Downloader)) *Downl // // Example: // // The session the S3 Downloader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // The S3 client the S3 Downloader will use // s3Svc := s3.new(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go index 5ae59bc1..a2772263 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go @@ -241,7 +241,7 @@ type Uploader struct { // // Example: // // The session the S3 Uploader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // Create an uploader with the session and default options // uploader := s3manager.NewUploader(sess) @@ -272,7 +272,7 @@ func NewUploader(c client.ConfigProvider, options ...func(*Uploader)) *Uploader // // Example: // // The session the S3 Uploader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // S3 service client the Upload manager will use. // s3Svc := s3.New(sess) @@ -608,11 +608,13 @@ func (u *multiuploader) readChunk(ch chan chunk) { // part information. func (u *multiuploader) send(c chunk) error { req, resp := u.ctx.S3.UploadPartRequest(&s3.UploadPartInput{ - Bucket: u.in.Bucket, - Key: u.in.Key, - Body: c.buf, - UploadId: &u.uploadID, - PartNumber: &c.num, + Bucket: u.in.Bucket, + Key: u.in.Key, + Body: c.buf, + UploadId: &u.uploadID, + SSECustomerAlgorithm: u.in.SSECustomerAlgorithm, + SSECustomerKey: u.in.SSECustomerKey, + PartNumber: &c.num, }) req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) if err := req.Send(); err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go index 6b46e31c..8000862d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go @@ -670,3 +670,59 @@ func TestReaderAt(t *testing.T) { assert.NoError(t, err) assert.Equal(t, contentLen, "12") } + +func TestSSE(t *testing.T) { + svc := s3.New(unit.Session) + svc.Handlers.Unmarshal.Clear() + svc.Handlers.UnmarshalMeta.Clear() + svc.Handlers.UnmarshalError.Clear() + svc.Handlers.ValidateResponse.Clear() + svc.Handlers.Send.Clear() + partNum := 0 + mutex := &sync.Mutex{} + + svc.Handlers.Send.PushBack(func(r *request.Request) { + mutex.Lock() + defer mutex.Unlock() + r.HTTPResponse = &http.Response{ + StatusCode: 200, + Body: ioutil.NopCloser(bytes.NewReader([]byte{})), + } + switch data := r.Data.(type) { + case *s3.CreateMultipartUploadOutput: + data.UploadId = aws.String("UPLOAD-ID") + case *s3.UploadPartOutput: + input := r.Params.(*s3.UploadPartInput) + if input.SSECustomerAlgorithm == nil { + t.Fatal("SSECustomerAlgoritm should not be nil") + } + if input.SSECustomerKey == nil { + t.Fatal("SSECustomerKey should not be nil") + } + partNum++ + data.ETag = aws.String(fmt.Sprintf("ETAG%d", partNum)) + case *s3.CompleteMultipartUploadOutput: + data.Location = aws.String("https://location") + data.VersionId = aws.String("VERSION-ID") + case *s3.PutObjectOutput: + data.VersionId = aws.String("VERSION-ID") + } + + }) + + mgr := s3manager.NewUploaderWithClient(svc, func(u *s3manager.Uploader) { + u.Concurrency = 5 + }) + + _, err := mgr.Upload(&s3manager.UploadInput{ + Bucket: aws.String("Bucket"), + Key: aws.String("Key"), + SSECustomerAlgorithm: aws.String("AES256"), + SSECustomerKey: aws.String("foo"), + Body: bytes.NewBuffer(make([]byte, 1024*1024*10)), + }) + + if err != nil { + t.Fatal("Expected no error, but received" + err.Error()) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go index d304c6fa..0383bf45 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleServiceCatalog_AcceptPortfolioShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -42,11 +38,7 @@ func ExampleServiceCatalog_AcceptPortfolioShare() { } func ExampleServiceCatalog_AssociatePrincipalWithPortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -70,11 +62,7 @@ func ExampleServiceCatalog_AssociatePrincipalWithPortfolio() { } func ExampleServiceCatalog_AssociateProductWithPortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -98,11 +86,7 @@ func ExampleServiceCatalog_AssociateProductWithPortfolio() { } func ExampleServiceCatalog_CreateConstraint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -129,11 +113,7 @@ func ExampleServiceCatalog_CreateConstraint() { } func ExampleServiceCatalog_CreatePortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -165,11 +145,7 @@ func ExampleServiceCatalog_CreatePortfolio() { } func ExampleServiceCatalog_CreatePortfolioShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -192,11 +168,7 @@ func ExampleServiceCatalog_CreatePortfolioShare() { } func ExampleServiceCatalog_CreateProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -242,11 +214,7 @@ func ExampleServiceCatalog_CreateProduct() { } func ExampleServiceCatalog_CreateProvisioningArtifact() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -278,11 +246,7 @@ func ExampleServiceCatalog_CreateProvisioningArtifact() { } func ExampleServiceCatalog_DeleteConstraint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -304,11 +268,7 @@ func ExampleServiceCatalog_DeleteConstraint() { } func ExampleServiceCatalog_DeletePortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -330,11 +290,7 @@ func ExampleServiceCatalog_DeletePortfolio() { } func ExampleServiceCatalog_DeletePortfolioShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -357,11 +313,7 @@ func ExampleServiceCatalog_DeletePortfolioShare() { } func ExampleServiceCatalog_DeleteProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -383,11 +335,7 @@ func ExampleServiceCatalog_DeleteProduct() { } func ExampleServiceCatalog_DeleteProvisioningArtifact() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -410,11 +358,7 @@ func ExampleServiceCatalog_DeleteProvisioningArtifact() { } func ExampleServiceCatalog_DescribeConstraint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -436,11 +380,7 @@ func ExampleServiceCatalog_DescribeConstraint() { } func ExampleServiceCatalog_DescribePortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -462,11 +402,7 @@ func ExampleServiceCatalog_DescribePortfolio() { } func ExampleServiceCatalog_DescribeProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -488,11 +424,7 @@ func ExampleServiceCatalog_DescribeProduct() { } func ExampleServiceCatalog_DescribeProductAsAdmin() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -514,11 +446,7 @@ func ExampleServiceCatalog_DescribeProductAsAdmin() { } func ExampleServiceCatalog_DescribeProductView() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -540,11 +468,7 @@ func ExampleServiceCatalog_DescribeProductView() { } func ExampleServiceCatalog_DescribeProvisioningArtifact() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -567,11 +491,7 @@ func ExampleServiceCatalog_DescribeProvisioningArtifact() { } func ExampleServiceCatalog_DescribeProvisioningParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -595,11 +515,7 @@ func ExampleServiceCatalog_DescribeProvisioningParameters() { } func ExampleServiceCatalog_DescribeRecord() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -623,11 +539,7 @@ func ExampleServiceCatalog_DescribeRecord() { } func ExampleServiceCatalog_DisassociatePrincipalFromPortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -650,11 +562,7 @@ func ExampleServiceCatalog_DisassociatePrincipalFromPortfolio() { } func ExampleServiceCatalog_DisassociateProductFromPortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -677,11 +585,7 @@ func ExampleServiceCatalog_DisassociateProductFromPortfolio() { } func ExampleServiceCatalog_ListAcceptedPortfolioShares() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -704,11 +608,7 @@ func ExampleServiceCatalog_ListAcceptedPortfolioShares() { } func ExampleServiceCatalog_ListConstraintsForPortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -733,11 +633,7 @@ func ExampleServiceCatalog_ListConstraintsForPortfolio() { } func ExampleServiceCatalog_ListLaunchPaths() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -761,11 +657,7 @@ func ExampleServiceCatalog_ListLaunchPaths() { } func ExampleServiceCatalog_ListPortfolioAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -787,11 +679,7 @@ func ExampleServiceCatalog_ListPortfolioAccess() { } func ExampleServiceCatalog_ListPortfolios() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -814,11 +702,7 @@ func ExampleServiceCatalog_ListPortfolios() { } func ExampleServiceCatalog_ListPortfoliosForProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -842,11 +726,7 @@ func ExampleServiceCatalog_ListPortfoliosForProduct() { } func ExampleServiceCatalog_ListPrincipalsForPortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -870,11 +750,7 @@ func ExampleServiceCatalog_ListPrincipalsForPortfolio() { } func ExampleServiceCatalog_ListProvisioningArtifacts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -896,11 +772,7 @@ func ExampleServiceCatalog_ListProvisioningArtifacts() { } func ExampleServiceCatalog_ListRecordHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -931,11 +803,7 @@ func ExampleServiceCatalog_ListRecordHistory() { } func ExampleServiceCatalog_ProvisionProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -979,11 +847,7 @@ func ExampleServiceCatalog_ProvisionProduct() { } func ExampleServiceCatalog_RejectPortfolioShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1005,11 +869,7 @@ func ExampleServiceCatalog_RejectPortfolioShare() { } func ExampleServiceCatalog_ScanProvisionedProducts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1036,11 +896,7 @@ func ExampleServiceCatalog_ScanProvisionedProducts() { } func ExampleServiceCatalog_SearchProducts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1072,11 +928,7 @@ func ExampleServiceCatalog_SearchProducts() { } func ExampleServiceCatalog_SearchProductsAsAdmin() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1110,11 +962,7 @@ func ExampleServiceCatalog_SearchProductsAsAdmin() { } func ExampleServiceCatalog_TerminateProvisionedProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1139,11 +987,7 @@ func ExampleServiceCatalog_TerminateProvisionedProduct() { } func ExampleServiceCatalog_UpdateConstraint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1166,11 +1010,7 @@ func ExampleServiceCatalog_UpdateConstraint() { } func ExampleServiceCatalog_UpdatePortfolio() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1206,11 +1046,7 @@ func ExampleServiceCatalog_UpdatePortfolio() { } func ExampleServiceCatalog_UpdateProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1250,11 +1086,7 @@ func ExampleServiceCatalog_UpdateProduct() { } func ExampleServiceCatalog_UpdateProvisionedProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -1289,11 +1121,7 @@ func ExampleServiceCatalog_UpdateProvisionedProduct() { } func ExampleServiceCatalog_UpdateProvisioningArtifact() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go index 48b5f12a..abb31041 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockServiceCatalogClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go index 8ad7c24d..e2c6ddf0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSES_CloneReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -42,11 +38,7 @@ func ExampleSES_CloneReceiptRuleSet() { } func ExampleSES_CreateConfigurationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -69,11 +61,7 @@ func ExampleSES_CreateConfigurationSet() { } func ExampleSES_CreateConfigurationSetEventDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -116,11 +104,7 @@ func ExampleSES_CreateConfigurationSetEventDestination() { } func ExampleSES_CreateReceiptFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -147,11 +131,7 @@ func ExampleSES_CreateReceiptFilter() { } func ExampleSES_CreateReceiptRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -222,11 +202,7 @@ func ExampleSES_CreateReceiptRule() { } func ExampleSES_CreateReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -247,11 +223,7 @@ func ExampleSES_CreateReceiptRuleSet() { } func ExampleSES_DeleteConfigurationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -272,11 +244,7 @@ func ExampleSES_DeleteConfigurationSet() { } func ExampleSES_DeleteConfigurationSetEventDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -298,11 +266,7 @@ func ExampleSES_DeleteConfigurationSetEventDestination() { } func ExampleSES_DeleteIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -323,11 +287,7 @@ func ExampleSES_DeleteIdentity() { } func ExampleSES_DeleteIdentityPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -349,11 +309,7 @@ func ExampleSES_DeleteIdentityPolicy() { } func ExampleSES_DeleteReceiptFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -374,11 +330,7 @@ func ExampleSES_DeleteReceiptFilter() { } func ExampleSES_DeleteReceiptRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -400,11 +352,7 @@ func ExampleSES_DeleteReceiptRule() { } func ExampleSES_DeleteReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -425,11 +373,7 @@ func ExampleSES_DeleteReceiptRuleSet() { } func ExampleSES_DeleteVerifiedEmailAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -450,11 +394,7 @@ func ExampleSES_DeleteVerifiedEmailAddress() { } func ExampleSES_DescribeActiveReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -473,11 +413,7 @@ func ExampleSES_DescribeActiveReceiptRuleSet() { } func ExampleSES_DescribeConfigurationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -502,11 +438,7 @@ func ExampleSES_DescribeConfigurationSet() { } func ExampleSES_DescribeReceiptRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -528,11 +460,7 @@ func ExampleSES_DescribeReceiptRule() { } func ExampleSES_DescribeReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -553,11 +481,7 @@ func ExampleSES_DescribeReceiptRuleSet() { } func ExampleSES_GetIdentityDkimAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -581,11 +505,7 @@ func ExampleSES_GetIdentityDkimAttributes() { } func ExampleSES_GetIdentityMailFromDomainAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -609,11 +529,7 @@ func ExampleSES_GetIdentityMailFromDomainAttributes() { } func ExampleSES_GetIdentityNotificationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -637,11 +553,7 @@ func ExampleSES_GetIdentityNotificationAttributes() { } func ExampleSES_GetIdentityPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -666,11 +578,7 @@ func ExampleSES_GetIdentityPolicies() { } func ExampleSES_GetIdentityVerificationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -694,11 +602,7 @@ func ExampleSES_GetIdentityVerificationAttributes() { } func ExampleSES_GetSendQuota() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -717,11 +621,7 @@ func ExampleSES_GetSendQuota() { } func ExampleSES_GetSendStatistics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -740,11 +640,7 @@ func ExampleSES_GetSendStatistics() { } func ExampleSES_ListConfigurationSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -766,11 +662,7 @@ func ExampleSES_ListConfigurationSets() { } func ExampleSES_ListIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -793,11 +685,7 @@ func ExampleSES_ListIdentities() { } func ExampleSES_ListIdentityPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -818,11 +706,7 @@ func ExampleSES_ListIdentityPolicies() { } func ExampleSES_ListReceiptFilters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -841,11 +725,7 @@ func ExampleSES_ListReceiptFilters() { } func ExampleSES_ListReceiptRuleSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -866,11 +746,7 @@ func ExampleSES_ListReceiptRuleSets() { } func ExampleSES_ListVerifiedEmailAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -889,11 +765,7 @@ func ExampleSES_ListVerifiedEmailAddresses() { } func ExampleSES_PutIdentityPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -916,11 +788,7 @@ func ExampleSES_PutIdentityPolicy() { } func ExampleSES_ReorderReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -945,11 +813,7 @@ func ExampleSES_ReorderReceiptRuleSet() { } func ExampleSES_SendBounce() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1007,11 +871,7 @@ func ExampleSES_SendBounce() { } func ExampleSES_SendEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1077,11 +937,7 @@ func ExampleSES_SendEmail() { } func ExampleSES_SendRawEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1120,11 +976,7 @@ func ExampleSES_SendRawEmail() { } func ExampleSES_SetActiveReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1145,11 +997,7 @@ func ExampleSES_SetActiveReceiptRuleSet() { } func ExampleSES_SetIdentityDkimEnabled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1171,11 +1019,7 @@ func ExampleSES_SetIdentityDkimEnabled() { } func ExampleSES_SetIdentityFeedbackForwardingEnabled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1197,11 +1041,7 @@ func ExampleSES_SetIdentityFeedbackForwardingEnabled() { } func ExampleSES_SetIdentityHeadersInNotificationsEnabled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1224,11 +1064,7 @@ func ExampleSES_SetIdentityHeadersInNotificationsEnabled() { } func ExampleSES_SetIdentityMailFromDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1251,11 +1087,7 @@ func ExampleSES_SetIdentityMailFromDomain() { } func ExampleSES_SetIdentityNotificationTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1278,11 +1110,7 @@ func ExampleSES_SetIdentityNotificationTopic() { } func ExampleSES_SetReceiptRulePosition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1305,11 +1133,7 @@ func ExampleSES_SetReceiptRulePosition() { } func ExampleSES_UpdateConfigurationSetEventDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1352,11 +1176,7 @@ func ExampleSES_UpdateConfigurationSetEventDestination() { } func ExampleSES_UpdateReceiptRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1426,11 +1246,7 @@ func ExampleSES_UpdateReceiptRule() { } func ExampleSES_VerifyDomainDkim() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1451,11 +1267,7 @@ func ExampleSES_VerifyDomainDkim() { } func ExampleSES_VerifyDomainIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1476,11 +1288,7 @@ func ExampleSES_VerifyDomainIdentity() { } func ExampleSES_VerifyEmailAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1501,11 +1309,7 @@ func ExampleSES_VerifyEmailAddress() { } func ExampleSES_VerifyEmailIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go index d4192d26..65c865cd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSESClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go index cee02702..ce7850aa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSFN_CreateActivity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -41,11 +37,7 @@ func ExampleSFN_CreateActivity() { } func ExampleSFN_CreateStateMachine() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -68,11 +60,7 @@ func ExampleSFN_CreateStateMachine() { } func ExampleSFN_DeleteActivity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -93,11 +81,7 @@ func ExampleSFN_DeleteActivity() { } func ExampleSFN_DeleteStateMachine() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -118,11 +102,7 @@ func ExampleSFN_DeleteStateMachine() { } func ExampleSFN_DescribeActivity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -143,11 +123,7 @@ func ExampleSFN_DescribeActivity() { } func ExampleSFN_DescribeExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -168,11 +144,7 @@ func ExampleSFN_DescribeExecution() { } func ExampleSFN_DescribeStateMachine() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -193,11 +165,7 @@ func ExampleSFN_DescribeStateMachine() { } func ExampleSFN_GetActivityTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -219,11 +187,7 @@ func ExampleSFN_GetActivityTask() { } func ExampleSFN_GetExecutionHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -247,11 +211,7 @@ func ExampleSFN_GetExecutionHistory() { } func ExampleSFN_ListActivities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -273,11 +233,7 @@ func ExampleSFN_ListActivities() { } func ExampleSFN_ListExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -301,11 +257,7 @@ func ExampleSFN_ListExecutions() { } func ExampleSFN_ListStateMachines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -327,11 +279,7 @@ func ExampleSFN_ListStateMachines() { } func ExampleSFN_SendTaskFailure() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -354,11 +302,7 @@ func ExampleSFN_SendTaskFailure() { } func ExampleSFN_SendTaskHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -379,11 +323,7 @@ func ExampleSFN_SendTaskHeartbeat() { } func ExampleSFN_SendTaskSuccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -405,11 +345,7 @@ func ExampleSFN_SendTaskSuccess() { } func ExampleSFN_StartExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) @@ -432,11 +368,7 @@ func ExampleSFN_StartExecution() { } func ExampleSFN_StopExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sfn.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go index 28bb1b80..0d0684ec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSFNClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go index ba2b1dba..a95aba76 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleShield_CreateProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -42,11 +38,7 @@ func ExampleShield_CreateProtection() { } func ExampleShield_CreateSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -65,11 +57,7 @@ func ExampleShield_CreateSubscription() { } func ExampleShield_DeleteProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -90,11 +78,7 @@ func ExampleShield_DeleteProtection() { } func ExampleShield_DeleteSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -113,11 +97,7 @@ func ExampleShield_DeleteSubscription() { } func ExampleShield_DescribeAttack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -138,11 +118,7 @@ func ExampleShield_DescribeAttack() { } func ExampleShield_DescribeProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -163,11 +139,7 @@ func ExampleShield_DescribeProtection() { } func ExampleShield_DescribeSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -186,11 +158,7 @@ func ExampleShield_DescribeSubscription() { } func ExampleShield_ListAttacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) @@ -224,11 +192,7 @@ func ExampleShield_ListAttacks() { } func ExampleShield_ListProtections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := shield.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go index 23b3b262..53a6c474 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockShieldClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go index 567026d6..c707cd78 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSimpleDB_BatchDeleteAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -54,11 +50,7 @@ func ExampleSimpleDB_BatchDeleteAttributes() { } func ExampleSimpleDB_BatchPutAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -93,11 +85,7 @@ func ExampleSimpleDB_BatchPutAttributes() { } func ExampleSimpleDB_CreateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -118,11 +106,7 @@ func ExampleSimpleDB_CreateDomain() { } func ExampleSimpleDB_DeleteAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -156,11 +140,7 @@ func ExampleSimpleDB_DeleteAttributes() { } func ExampleSimpleDB_DeleteDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -181,11 +161,7 @@ func ExampleSimpleDB_DeleteDomain() { } func ExampleSimpleDB_DomainMetadata() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -206,11 +182,7 @@ func ExampleSimpleDB_DomainMetadata() { } func ExampleSimpleDB_GetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -237,11 +209,7 @@ func ExampleSimpleDB_GetAttributes() { } func ExampleSimpleDB_ListDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -263,11 +231,7 @@ func ExampleSimpleDB_ListDomains() { } func ExampleSimpleDB_PutAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -302,11 +266,7 @@ func ExampleSimpleDB_PutAttributes() { } func ExampleSimpleDB_Select() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go index 0dd037e9..0dba36c7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSimpleDBClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go index 31aa3936..d11ba52e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSMS_CreateReplicationJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -46,11 +42,7 @@ func ExampleSMS_CreateReplicationJob() { } func ExampleSMS_DeleteReplicationJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -71,11 +63,7 @@ func ExampleSMS_DeleteReplicationJob() { } func ExampleSMS_DeleteServerCatalog() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -94,11 +82,7 @@ func ExampleSMS_DeleteServerCatalog() { } func ExampleSMS_DisassociateConnector() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -119,11 +103,7 @@ func ExampleSMS_DisassociateConnector() { } func ExampleSMS_GetConnectors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -145,11 +125,7 @@ func ExampleSMS_GetConnectors() { } func ExampleSMS_GetReplicationJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -172,11 +148,7 @@ func ExampleSMS_GetReplicationJobs() { } func ExampleSMS_GetReplicationRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -199,11 +171,7 @@ func ExampleSMS_GetReplicationRuns() { } func ExampleSMS_GetServers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -225,11 +193,7 @@ func ExampleSMS_GetServers() { } func ExampleSMS_ImportServerCatalog() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -248,11 +212,7 @@ func ExampleSMS_ImportServerCatalog() { } func ExampleSMS_StartOnDemandReplicationRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) @@ -274,11 +234,7 @@ func ExampleSMS_StartOnDemandReplicationRun() { } func ExampleSMS_UpdateReplicationJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sms.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go index a0d4f179..355d8af1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSMSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go index dc2d2e02..146ad066 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSnowball_CancelCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -41,11 +37,7 @@ func ExampleSnowball_CancelCluster() { } func ExampleSnowball_CancelJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -66,11 +58,7 @@ func ExampleSnowball_CancelJob() { } func ExampleSnowball_CreateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -105,11 +93,7 @@ func ExampleSnowball_CreateAddress() { } func ExampleSnowball_CreateCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -168,11 +152,7 @@ func ExampleSnowball_CreateCluster() { } func ExampleSnowball_CreateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -233,11 +213,7 @@ func ExampleSnowball_CreateJob() { } func ExampleSnowball_DescribeAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -258,11 +234,7 @@ func ExampleSnowball_DescribeAddress() { } func ExampleSnowball_DescribeAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -284,11 +256,7 @@ func ExampleSnowball_DescribeAddresses() { } func ExampleSnowball_DescribeCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -309,11 +277,7 @@ func ExampleSnowball_DescribeCluster() { } func ExampleSnowball_DescribeJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -334,11 +298,7 @@ func ExampleSnowball_DescribeJob() { } func ExampleSnowball_GetJobManifest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -359,11 +319,7 @@ func ExampleSnowball_GetJobManifest() { } func ExampleSnowball_GetJobUnlockCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -384,11 +340,7 @@ func ExampleSnowball_GetJobUnlockCode() { } func ExampleSnowball_GetSnowballUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -407,11 +359,7 @@ func ExampleSnowball_GetSnowballUsage() { } func ExampleSnowball_ListClusterJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -434,11 +382,7 @@ func ExampleSnowball_ListClusterJobs() { } func ExampleSnowball_ListClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -460,11 +404,7 @@ func ExampleSnowball_ListClusters() { } func ExampleSnowball_ListJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -486,11 +426,7 @@ func ExampleSnowball_ListJobs() { } func ExampleSnowball_UpdateCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -547,11 +483,7 @@ func ExampleSnowball_UpdateCluster() { } func ExampleSnowball_UpdateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go index ed0b6bab..5d81c049 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSnowballClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go index 4fe35b39..46256985 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSNS_AddPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -50,11 +46,7 @@ func ExampleSNS_AddPermission() { } func ExampleSNS_CheckIfPhoneNumberIsOptedOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -75,11 +67,7 @@ func ExampleSNS_CheckIfPhoneNumberIsOptedOut() { } func ExampleSNS_ConfirmSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -102,11 +90,7 @@ func ExampleSNS_ConfirmSubscription() { } func ExampleSNS_CreatePlatformApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -132,11 +116,7 @@ func ExampleSNS_CreatePlatformApplication() { } func ExampleSNS_CreatePlatformEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -163,11 +143,7 @@ func ExampleSNS_CreatePlatformEndpoint() { } func ExampleSNS_CreateTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -188,11 +164,7 @@ func ExampleSNS_CreateTopic() { } func ExampleSNS_DeleteEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -213,11 +185,7 @@ func ExampleSNS_DeleteEndpoint() { } func ExampleSNS_DeletePlatformApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -238,11 +206,7 @@ func ExampleSNS_DeletePlatformApplication() { } func ExampleSNS_DeleteTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -263,11 +227,7 @@ func ExampleSNS_DeleteTopic() { } func ExampleSNS_GetEndpointAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -288,11 +248,7 @@ func ExampleSNS_GetEndpointAttributes() { } func ExampleSNS_GetPlatformApplicationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -313,11 +269,7 @@ func ExampleSNS_GetPlatformApplicationAttributes() { } func ExampleSNS_GetSMSAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -341,11 +293,7 @@ func ExampleSNS_GetSMSAttributes() { } func ExampleSNS_GetSubscriptionAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -366,11 +314,7 @@ func ExampleSNS_GetSubscriptionAttributes() { } func ExampleSNS_GetTopicAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -391,11 +335,7 @@ func ExampleSNS_GetTopicAttributes() { } func ExampleSNS_ListEndpointsByPlatformApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -417,11 +357,7 @@ func ExampleSNS_ListEndpointsByPlatformApplication() { } func ExampleSNS_ListPhoneNumbersOptedOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -442,11 +378,7 @@ func ExampleSNS_ListPhoneNumbersOptedOut() { } func ExampleSNS_ListPlatformApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -467,11 +399,7 @@ func ExampleSNS_ListPlatformApplications() { } func ExampleSNS_ListSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -492,11 +420,7 @@ func ExampleSNS_ListSubscriptions() { } func ExampleSNS_ListSubscriptionsByTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -518,11 +442,7 @@ func ExampleSNS_ListSubscriptionsByTopic() { } func ExampleSNS_ListTopics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -543,11 +463,7 @@ func ExampleSNS_ListTopics() { } func ExampleSNS_OptInPhoneNumber() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -568,11 +484,7 @@ func ExampleSNS_OptInPhoneNumber() { } func ExampleSNS_Publish() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -606,11 +518,7 @@ func ExampleSNS_Publish() { } func ExampleSNS_RemovePermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -632,11 +540,7 @@ func ExampleSNS_RemovePermission() { } func ExampleSNS_SetEndpointAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -661,11 +565,7 @@ func ExampleSNS_SetEndpointAttributes() { } func ExampleSNS_SetPlatformApplicationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -690,11 +590,7 @@ func ExampleSNS_SetPlatformApplicationAttributes() { } func ExampleSNS_SetSMSAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -718,11 +614,7 @@ func ExampleSNS_SetSMSAttributes() { } func ExampleSNS_SetSubscriptionAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -745,11 +637,7 @@ func ExampleSNS_SetSubscriptionAttributes() { } func ExampleSNS_SetTopicAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -772,11 +660,7 @@ func ExampleSNS_SetTopicAttributes() { } func ExampleSNS_Subscribe() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -799,11 +683,7 @@ func ExampleSNS_Subscribe() { } func ExampleSNS_Unsubscribe() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go index 4e816d6a..4dd9a5e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSNSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go index 66b02ddd..341c3778 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSQS_AddPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -50,11 +46,7 @@ func ExampleSQS_AddPermission() { } func ExampleSQS_ChangeMessageVisibility() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -77,11 +69,7 @@ func ExampleSQS_ChangeMessageVisibility() { } func ExampleSQS_ChangeMessageVisibilityBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -110,11 +98,7 @@ func ExampleSQS_ChangeMessageVisibilityBatch() { } func ExampleSQS_CreateQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -139,11 +123,7 @@ func ExampleSQS_CreateQueue() { } func ExampleSQS_DeleteMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -165,11 +145,7 @@ func ExampleSQS_DeleteMessage() { } func ExampleSQS_DeleteMessageBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -197,11 +173,7 @@ func ExampleSQS_DeleteMessageBatch() { } func ExampleSQS_DeleteQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -222,11 +194,7 @@ func ExampleSQS_DeleteQueue() { } func ExampleSQS_GetQueueAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -251,11 +219,7 @@ func ExampleSQS_GetQueueAttributes() { } func ExampleSQS_GetQueueUrl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -277,11 +241,7 @@ func ExampleSQS_GetQueueUrl() { } func ExampleSQS_ListDeadLetterSourceQueues() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -302,11 +262,7 @@ func ExampleSQS_ListDeadLetterSourceQueues() { } func ExampleSQS_ListQueues() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -327,11 +283,7 @@ func ExampleSQS_ListQueues() { } func ExampleSQS_PurgeQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -352,11 +304,7 @@ func ExampleSQS_PurgeQueue() { } func ExampleSQS_ReceiveMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -389,11 +337,7 @@ func ExampleSQS_ReceiveMessage() { } func ExampleSQS_RemovePermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -415,11 +359,7 @@ func ExampleSQS_RemovePermission() { } func ExampleSQS_SendMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -460,11 +400,7 @@ func ExampleSQS_SendMessage() { } func ExampleSQS_SendMessageBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -511,11 +447,7 @@ func ExampleSQS_SendMessageBatch() { } func ExampleSQS_SetQueueAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go index 622a48c7..7f817590 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSQSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go index c92288e2..9ba11b16 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSSM_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -49,11 +45,7 @@ func ExampleSSM_AddTagsToResource() { } func ExampleSSM_CancelCommand() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -78,11 +70,7 @@ func ExampleSSM_CancelCommand() { } func ExampleSSM_CreateActivation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -107,11 +95,7 @@ func ExampleSSM_CreateActivation() { } func ExampleSSM_CreateAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -159,11 +143,7 @@ func ExampleSSM_CreateAssociation() { } func ExampleSSM_CreateAssociationBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -216,11 +196,7 @@ func ExampleSSM_CreateAssociationBatch() { } func ExampleSSM_CreateDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -243,11 +219,7 @@ func ExampleSSM_CreateDocument() { } func ExampleSSM_CreateMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -273,11 +245,7 @@ func ExampleSSM_CreateMaintenanceWindow() { } func ExampleSSM_CreatePatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -340,11 +308,7 @@ func ExampleSSM_CreatePatchBaseline() { } func ExampleSSM_DeleteActivation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -365,11 +329,7 @@ func ExampleSSM_DeleteActivation() { } func ExampleSSM_DeleteAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -392,11 +352,7 @@ func ExampleSSM_DeleteAssociation() { } func ExampleSSM_DeleteDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -417,11 +373,7 @@ func ExampleSSM_DeleteDocument() { } func ExampleSSM_DeleteMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -442,11 +394,7 @@ func ExampleSSM_DeleteMaintenanceWindow() { } func ExampleSSM_DeleteParameter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -467,11 +415,7 @@ func ExampleSSM_DeleteParameter() { } func ExampleSSM_DeletePatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -492,11 +436,7 @@ func ExampleSSM_DeletePatchBaseline() { } func ExampleSSM_DeregisterManagedInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -517,11 +457,7 @@ func ExampleSSM_DeregisterManagedInstance() { } func ExampleSSM_DeregisterPatchBaselineForPatchGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -543,11 +479,7 @@ func ExampleSSM_DeregisterPatchBaselineForPatchGroup() { } func ExampleSSM_DeregisterTargetFromMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -569,11 +501,7 @@ func ExampleSSM_DeregisterTargetFromMaintenanceWindow() { } func ExampleSSM_DeregisterTaskFromMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -595,11 +523,7 @@ func ExampleSSM_DeregisterTaskFromMaintenanceWindow() { } func ExampleSSM_DescribeActivations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -631,11 +555,7 @@ func ExampleSSM_DescribeActivations() { } func ExampleSSM_DescribeAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -658,11 +578,7 @@ func ExampleSSM_DescribeAssociation() { } func ExampleSSM_DescribeAutomationExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -694,11 +610,7 @@ func ExampleSSM_DescribeAutomationExecutions() { } func ExampleSSM_DescribeAvailablePatches() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -730,11 +642,7 @@ func ExampleSSM_DescribeAvailablePatches() { } func ExampleSSM_DescribeDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -756,11 +664,7 @@ func ExampleSSM_DescribeDocument() { } func ExampleSSM_DescribeDocumentPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -782,11 +686,7 @@ func ExampleSSM_DescribeDocumentPermission() { } func ExampleSSM_DescribeEffectiveInstanceAssociations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -809,11 +709,7 @@ func ExampleSSM_DescribeEffectiveInstanceAssociations() { } func ExampleSSM_DescribeEffectivePatchesForPatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -836,11 +732,7 @@ func ExampleSSM_DescribeEffectivePatchesForPatchBaseline() { } func ExampleSSM_DescribeInstanceAssociationsStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -863,11 +755,7 @@ func ExampleSSM_DescribeInstanceAssociationsStatus() { } func ExampleSSM_DescribeInstanceInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -909,11 +797,7 @@ func ExampleSSM_DescribeInstanceInformation() { } func ExampleSSM_DescribeInstancePatchStates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -939,11 +823,7 @@ func ExampleSSM_DescribeInstancePatchStates() { } func ExampleSSM_DescribeInstancePatchStatesForPatchGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -977,11 +857,7 @@ func ExampleSSM_DescribeInstancePatchStatesForPatchGroup() { } func ExampleSSM_DescribeInstancePatches() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1014,11 +890,7 @@ func ExampleSSM_DescribeInstancePatches() { } func ExampleSSM_DescribeMaintenanceWindowExecutionTaskInvocations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1052,11 +924,7 @@ func ExampleSSM_DescribeMaintenanceWindowExecutionTaskInvocations() { } func ExampleSSM_DescribeMaintenanceWindowExecutionTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1089,11 +957,7 @@ func ExampleSSM_DescribeMaintenanceWindowExecutionTasks() { } func ExampleSSM_DescribeMaintenanceWindowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1126,11 +990,7 @@ func ExampleSSM_DescribeMaintenanceWindowExecutions() { } func ExampleSSM_DescribeMaintenanceWindowTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1163,11 +1023,7 @@ func ExampleSSM_DescribeMaintenanceWindowTargets() { } func ExampleSSM_DescribeMaintenanceWindowTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1200,11 +1056,7 @@ func ExampleSSM_DescribeMaintenanceWindowTasks() { } func ExampleSSM_DescribeMaintenanceWindows() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1236,11 +1088,7 @@ func ExampleSSM_DescribeMaintenanceWindows() { } func ExampleSSM_DescribeParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1272,11 +1120,7 @@ func ExampleSSM_DescribeParameters() { } func ExampleSSM_DescribePatchBaselines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1308,11 +1152,7 @@ func ExampleSSM_DescribePatchBaselines() { } func ExampleSSM_DescribePatchGroupState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1333,11 +1173,7 @@ func ExampleSSM_DescribePatchGroupState() { } func ExampleSSM_DescribePatchGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1359,11 +1195,7 @@ func ExampleSSM_DescribePatchGroups() { } func ExampleSSM_GetAutomationExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1384,11 +1216,7 @@ func ExampleSSM_GetAutomationExecution() { } func ExampleSSM_GetCommandInvocation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1411,11 +1239,7 @@ func ExampleSSM_GetCommandInvocation() { } func ExampleSSM_GetDefaultPatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1434,11 +1258,7 @@ func ExampleSSM_GetDefaultPatchBaseline() { } func ExampleSSM_GetDeployablePatchSnapshotForInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1460,11 +1280,7 @@ func ExampleSSM_GetDeployablePatchSnapshotForInstance() { } func ExampleSSM_GetDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1486,11 +1302,7 @@ func ExampleSSM_GetDocument() { } func ExampleSSM_GetInventory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1529,11 +1341,7 @@ func ExampleSSM_GetInventory() { } func ExampleSSM_GetInventorySchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1556,11 +1364,7 @@ func ExampleSSM_GetInventorySchema() { } func ExampleSSM_GetMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1581,11 +1385,7 @@ func ExampleSSM_GetMaintenanceWindow() { } func ExampleSSM_GetMaintenanceWindowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1606,11 +1406,7 @@ func ExampleSSM_GetMaintenanceWindowExecution() { } func ExampleSSM_GetMaintenanceWindowExecutionTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1632,11 +1428,7 @@ func ExampleSSM_GetMaintenanceWindowExecutionTask() { } func ExampleSSM_GetParameterHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1660,11 +1452,7 @@ func ExampleSSM_GetParameterHistory() { } func ExampleSSM_GetParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1689,11 +1477,7 @@ func ExampleSSM_GetParameters() { } func ExampleSSM_GetPatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1714,11 +1498,7 @@ func ExampleSSM_GetPatchBaseline() { } func ExampleSSM_GetPatchBaselineForPatchGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1739,11 +1519,7 @@ func ExampleSSM_GetPatchBaselineForPatchGroup() { } func ExampleSSM_ListAssociations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1772,11 +1548,7 @@ func ExampleSSM_ListAssociations() { } func ExampleSSM_ListCommandInvocations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1808,11 +1580,7 @@ func ExampleSSM_ListCommandInvocations() { } func ExampleSSM_ListCommands() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1843,11 +1611,7 @@ func ExampleSSM_ListCommands() { } func ExampleSSM_ListDocumentVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1870,11 +1634,7 @@ func ExampleSSM_ListDocumentVersions() { } func ExampleSSM_ListDocuments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1903,11 +1663,7 @@ func ExampleSSM_ListDocuments() { } func ExampleSSM_ListInventoryEntries() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1942,11 +1698,7 @@ func ExampleSSM_ListInventoryEntries() { } func ExampleSSM_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -1968,11 +1720,7 @@ func ExampleSSM_ListTagsForResource() { } func ExampleSSM_ModifyDocumentPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2002,11 +1750,7 @@ func ExampleSSM_ModifyDocumentPermission() { } func ExampleSSM_PutInventory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2043,11 +1787,7 @@ func ExampleSSM_PutInventory() { } func ExampleSSM_PutParameter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2073,11 +1813,7 @@ func ExampleSSM_PutParameter() { } func ExampleSSM_RegisterDefaultPatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2098,11 +1834,7 @@ func ExampleSSM_RegisterDefaultPatchBaseline() { } func ExampleSSM_RegisterPatchBaselineForPatchGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2124,11 +1856,7 @@ func ExampleSSM_RegisterPatchBaselineForPatchGroup() { } func ExampleSSM_RegisterTargetWithMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2162,11 +1890,7 @@ func ExampleSSM_RegisterTargetWithMaintenanceWindow() { } func ExampleSSM_RegisterTaskWithMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2218,11 +1942,7 @@ func ExampleSSM_RegisterTaskWithMaintenanceWindow() { } func ExampleSSM_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2248,11 +1968,7 @@ func ExampleSSM_RemoveTagsFromResource() { } func ExampleSSM_SendCommand() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2312,11 +2028,7 @@ func ExampleSSM_SendCommand() { } func ExampleSSM_StartAutomationExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2345,11 +2057,7 @@ func ExampleSSM_StartAutomationExecution() { } func ExampleSSM_StopAutomationExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2370,11 +2078,7 @@ func ExampleSSM_StopAutomationExecution() { } func ExampleSSM_UpdateAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2411,11 +2115,7 @@ func ExampleSSM_UpdateAssociation() { } func ExampleSSM_UpdateAssociationStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2443,11 +2143,7 @@ func ExampleSSM_UpdateAssociationStatus() { } func ExampleSSM_UpdateDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2470,11 +2166,7 @@ func ExampleSSM_UpdateDocument() { } func ExampleSSM_UpdateDocumentDefaultVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2496,11 +2188,7 @@ func ExampleSSM_UpdateDocumentDefaultVersion() { } func ExampleSSM_UpdateMaintenanceWindow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2527,11 +2215,7 @@ func ExampleSSM_UpdateMaintenanceWindow() { } func ExampleSSM_UpdateManagedInstanceRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -2553,11 +2237,7 @@ func ExampleSSM_UpdateManagedInstanceRole() { } func ExampleSSM_UpdatePatchBaseline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go index b8b4b29c..882e340b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSSMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go index 577a8a0b..4646acd4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleStorageGateway_ActivateGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -47,11 +43,7 @@ func ExampleStorageGateway_ActivateGateway() { } func ExampleStorageGateway_AddCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -76,11 +68,7 @@ func ExampleStorageGateway_AddCache() { } func ExampleStorageGateway_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -108,11 +96,7 @@ func ExampleStorageGateway_AddTagsToResource() { } func ExampleStorageGateway_AddUploadBuffer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -137,11 +121,7 @@ func ExampleStorageGateway_AddUploadBuffer() { } func ExampleStorageGateway_AddWorkingStorage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -166,11 +146,7 @@ func ExampleStorageGateway_AddWorkingStorage() { } func ExampleStorageGateway_CancelArchival() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -192,11 +168,7 @@ func ExampleStorageGateway_CancelArchival() { } func ExampleStorageGateway_CancelRetrieval() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -218,11 +190,7 @@ func ExampleStorageGateway_CancelRetrieval() { } func ExampleStorageGateway_CreateCachediSCSIVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -249,11 +217,7 @@ func ExampleStorageGateway_CreateCachediSCSIVolume() { } func ExampleStorageGateway_CreateNFSFileShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -290,11 +254,7 @@ func ExampleStorageGateway_CreateNFSFileShare() { } func ExampleStorageGateway_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -316,11 +276,7 @@ func ExampleStorageGateway_CreateSnapshot() { } func ExampleStorageGateway_CreateSnapshotFromVolumeRecoveryPoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -342,11 +298,7 @@ func ExampleStorageGateway_CreateSnapshotFromVolumeRecoveryPoint() { } func ExampleStorageGateway_CreateStorediSCSIVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -372,11 +324,7 @@ func ExampleStorageGateway_CreateStorediSCSIVolume() { } func ExampleStorageGateway_CreateTapeWithBarcode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -399,11 +347,7 @@ func ExampleStorageGateway_CreateTapeWithBarcode() { } func ExampleStorageGateway_CreateTapes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -428,11 +372,7 @@ func ExampleStorageGateway_CreateTapes() { } func ExampleStorageGateway_DeleteBandwidthRateLimit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -454,11 +394,7 @@ func ExampleStorageGateway_DeleteBandwidthRateLimit() { } func ExampleStorageGateway_DeleteChapCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -480,11 +416,7 @@ func ExampleStorageGateway_DeleteChapCredentials() { } func ExampleStorageGateway_DeleteFileShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -505,11 +437,7 @@ func ExampleStorageGateway_DeleteFileShare() { } func ExampleStorageGateway_DeleteGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -530,11 +458,7 @@ func ExampleStorageGateway_DeleteGateway() { } func ExampleStorageGateway_DeleteSnapshotSchedule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -555,11 +479,7 @@ func ExampleStorageGateway_DeleteSnapshotSchedule() { } func ExampleStorageGateway_DeleteTape() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -581,11 +501,7 @@ func ExampleStorageGateway_DeleteTape() { } func ExampleStorageGateway_DeleteTapeArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -606,11 +522,7 @@ func ExampleStorageGateway_DeleteTapeArchive() { } func ExampleStorageGateway_DeleteVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -631,11 +543,7 @@ func ExampleStorageGateway_DeleteVolume() { } func ExampleStorageGateway_DescribeBandwidthRateLimit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -656,11 +564,7 @@ func ExampleStorageGateway_DescribeBandwidthRateLimit() { } func ExampleStorageGateway_DescribeCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -681,11 +585,7 @@ func ExampleStorageGateway_DescribeCache() { } func ExampleStorageGateway_DescribeCachediSCSIVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -709,11 +609,7 @@ func ExampleStorageGateway_DescribeCachediSCSIVolumes() { } func ExampleStorageGateway_DescribeChapCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -734,11 +630,7 @@ func ExampleStorageGateway_DescribeChapCredentials() { } func ExampleStorageGateway_DescribeGatewayInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -759,11 +651,7 @@ func ExampleStorageGateway_DescribeGatewayInformation() { } func ExampleStorageGateway_DescribeMaintenanceStartTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -784,11 +672,7 @@ func ExampleStorageGateway_DescribeMaintenanceStartTime() { } func ExampleStorageGateway_DescribeNFSFileShares() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -812,11 +696,7 @@ func ExampleStorageGateway_DescribeNFSFileShares() { } func ExampleStorageGateway_DescribeSnapshotSchedule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -837,11 +717,7 @@ func ExampleStorageGateway_DescribeSnapshotSchedule() { } func ExampleStorageGateway_DescribeStorediSCSIVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -865,11 +741,7 @@ func ExampleStorageGateway_DescribeStorediSCSIVolumes() { } func ExampleStorageGateway_DescribeTapeArchives() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -895,11 +767,7 @@ func ExampleStorageGateway_DescribeTapeArchives() { } func ExampleStorageGateway_DescribeTapeRecoveryPoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -922,11 +790,7 @@ func ExampleStorageGateway_DescribeTapeRecoveryPoints() { } func ExampleStorageGateway_DescribeTapes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -953,11 +817,7 @@ func ExampleStorageGateway_DescribeTapes() { } func ExampleStorageGateway_DescribeUploadBuffer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -978,11 +838,7 @@ func ExampleStorageGateway_DescribeUploadBuffer() { } func ExampleStorageGateway_DescribeVTLDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1009,11 +865,7 @@ func ExampleStorageGateway_DescribeVTLDevices() { } func ExampleStorageGateway_DescribeWorkingStorage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1034,11 +886,7 @@ func ExampleStorageGateway_DescribeWorkingStorage() { } func ExampleStorageGateway_DisableGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1059,11 +907,7 @@ func ExampleStorageGateway_DisableGateway() { } func ExampleStorageGateway_ListFileShares() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1086,11 +930,7 @@ func ExampleStorageGateway_ListFileShares() { } func ExampleStorageGateway_ListGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1112,11 +952,7 @@ func ExampleStorageGateway_ListGateways() { } func ExampleStorageGateway_ListLocalDisks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1137,11 +973,7 @@ func ExampleStorageGateway_ListLocalDisks() { } func ExampleStorageGateway_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1164,11 +996,7 @@ func ExampleStorageGateway_ListTagsForResource() { } func ExampleStorageGateway_ListTapes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1194,11 +1022,7 @@ func ExampleStorageGateway_ListTapes() { } func ExampleStorageGateway_ListVolumeInitiators() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1219,11 +1043,7 @@ func ExampleStorageGateway_ListVolumeInitiators() { } func ExampleStorageGateway_ListVolumeRecoveryPoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1244,11 +1064,7 @@ func ExampleStorageGateway_ListVolumeRecoveryPoints() { } func ExampleStorageGateway_ListVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1271,11 +1087,7 @@ func ExampleStorageGateway_ListVolumes() { } func ExampleStorageGateway_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1300,11 +1112,7 @@ func ExampleStorageGateway_RemoveTagsFromResource() { } func ExampleStorageGateway_ResetCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1325,11 +1133,7 @@ func ExampleStorageGateway_ResetCache() { } func ExampleStorageGateway_RetrieveTapeArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1351,11 +1155,7 @@ func ExampleStorageGateway_RetrieveTapeArchive() { } func ExampleStorageGateway_RetrieveTapeRecoveryPoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1377,11 +1177,7 @@ func ExampleStorageGateway_RetrieveTapeRecoveryPoint() { } func ExampleStorageGateway_SetLocalConsolePassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1403,11 +1199,7 @@ func ExampleStorageGateway_SetLocalConsolePassword() { } func ExampleStorageGateway_ShutdownGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1428,11 +1220,7 @@ func ExampleStorageGateway_ShutdownGateway() { } func ExampleStorageGateway_StartGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1453,11 +1241,7 @@ func ExampleStorageGateway_StartGateway() { } func ExampleStorageGateway_UpdateBandwidthRateLimit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1480,11 +1264,7 @@ func ExampleStorageGateway_UpdateBandwidthRateLimit() { } func ExampleStorageGateway_UpdateChapCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1508,11 +1288,7 @@ func ExampleStorageGateway_UpdateChapCredentials() { } func ExampleStorageGateway_UpdateGatewayInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1535,11 +1311,7 @@ func ExampleStorageGateway_UpdateGatewayInformation() { } func ExampleStorageGateway_UpdateGatewaySoftwareNow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1560,11 +1332,7 @@ func ExampleStorageGateway_UpdateGatewaySoftwareNow() { } func ExampleStorageGateway_UpdateMaintenanceStartTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1588,11 +1356,7 @@ func ExampleStorageGateway_UpdateMaintenanceStartTime() { } func ExampleStorageGateway_UpdateNFSFileShare() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1626,11 +1390,7 @@ func ExampleStorageGateway_UpdateNFSFileShare() { } func ExampleStorageGateway_UpdateSnapshotSchedule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1654,11 +1414,7 @@ func ExampleStorageGateway_UpdateSnapshotSchedule() { } func ExampleStorageGateway_UpdateVTLDeviceType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go index 0b7de31c..3983a2f2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockStorageGatewayClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go index 2724ed4d..61fa3f14 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSTS_AssumeRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -47,11 +43,7 @@ func ExampleSTS_AssumeRole() { } func ExampleSTS_AssumeRoleWithSAML() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -76,11 +68,7 @@ func ExampleSTS_AssumeRoleWithSAML() { } func ExampleSTS_AssumeRoleWithWebIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -106,11 +94,7 @@ func ExampleSTS_AssumeRoleWithWebIdentity() { } func ExampleSTS_DecodeAuthorizationMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -131,11 +115,7 @@ func ExampleSTS_DecodeAuthorizationMessage() { } func ExampleSTS_GetCallerIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -154,11 +134,7 @@ func ExampleSTS_GetCallerIdentity() { } func ExampleSTS_GetFederationToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -181,11 +157,7 @@ func ExampleSTS_GetFederationToken() { } func ExampleSTS_GetSessionToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go index 00cd7bb6..75692e48 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSTSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go index 3914e5cb..f639fb6c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSupport_AddAttachmentsToSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -48,11 +44,7 @@ func ExampleSupport_AddAttachmentsToSet() { } func ExampleSupport_AddCommunicationToCase() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -79,11 +71,7 @@ func ExampleSupport_AddCommunicationToCase() { } func ExampleSupport_CreateCase() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -115,11 +103,7 @@ func ExampleSupport_CreateCase() { } func ExampleSupport_DescribeAttachment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -140,11 +124,7 @@ func ExampleSupport_DescribeAttachment() { } func ExampleSupport_DescribeCases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -176,11 +156,7 @@ func ExampleSupport_DescribeCases() { } func ExampleSupport_DescribeCommunications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -205,11 +181,7 @@ func ExampleSupport_DescribeCommunications() { } func ExampleSupport_DescribeServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -234,11 +206,7 @@ func ExampleSupport_DescribeServices() { } func ExampleSupport_DescribeSeverityLevels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -259,11 +227,7 @@ func ExampleSupport_DescribeSeverityLevels() { } func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -287,11 +251,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() { } func ExampleSupport_DescribeTrustedAdvisorCheckResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -313,11 +273,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckResult() { } func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -341,11 +297,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() { } func ExampleSupport_DescribeTrustedAdvisorChecks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -366,11 +318,7 @@ func ExampleSupport_DescribeTrustedAdvisorChecks() { } func ExampleSupport_RefreshTrustedAdvisorCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -391,11 +339,7 @@ func ExampleSupport_RefreshTrustedAdvisorCheck() { } func ExampleSupport_ResolveCase() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go index e89d2621..5c98a13f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSupportClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go index 9491ef7d..0349efd8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSWF_CountClosedWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -62,11 +58,7 @@ func ExampleSWF_CountClosedWorkflowExecutions() { } func ExampleSWF_CountOpenWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -101,11 +93,7 @@ func ExampleSWF_CountOpenWorkflowExecutions() { } func ExampleSWF_CountPendingActivityTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -129,11 +117,7 @@ func ExampleSWF_CountPendingActivityTasks() { } func ExampleSWF_CountPendingDecisionTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -157,11 +141,7 @@ func ExampleSWF_CountPendingDecisionTasks() { } func ExampleSWF_DeprecateActivityType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -186,11 +166,7 @@ func ExampleSWF_DeprecateActivityType() { } func ExampleSWF_DeprecateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -211,11 +187,7 @@ func ExampleSWF_DeprecateDomain() { } func ExampleSWF_DeprecateWorkflowType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -240,11 +212,7 @@ func ExampleSWF_DeprecateWorkflowType() { } func ExampleSWF_DescribeActivityType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -269,11 +237,7 @@ func ExampleSWF_DescribeActivityType() { } func ExampleSWF_DescribeDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -294,11 +258,7 @@ func ExampleSWF_DescribeDomain() { } func ExampleSWF_DescribeWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -323,11 +283,7 @@ func ExampleSWF_DescribeWorkflowExecution() { } func ExampleSWF_DescribeWorkflowType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -352,11 +308,7 @@ func ExampleSWF_DescribeWorkflowType() { } func ExampleSWF_GetWorkflowExecutionHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -384,11 +336,7 @@ func ExampleSWF_GetWorkflowExecutionHistory() { } func ExampleSWF_ListActivityTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -414,11 +362,7 @@ func ExampleSWF_ListActivityTypes() { } func ExampleSWF_ListClosedWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -463,11 +407,7 @@ func ExampleSWF_ListClosedWorkflowExecutions() { } func ExampleSWF_ListDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -491,11 +431,7 @@ func ExampleSWF_ListDomains() { } func ExampleSWF_ListOpenWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -533,11 +469,7 @@ func ExampleSWF_ListOpenWorkflowExecutions() { } func ExampleSWF_ListWorkflowTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -563,11 +495,7 @@ func ExampleSWF_ListWorkflowTypes() { } func ExampleSWF_PollForActivityTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -592,11 +520,7 @@ func ExampleSWF_PollForActivityTask() { } func ExampleSWF_PollForDecisionTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -624,11 +548,7 @@ func ExampleSWF_PollForDecisionTask() { } func ExampleSWF_RecordActivityTaskHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -650,11 +570,7 @@ func ExampleSWF_RecordActivityTaskHeartbeat() { } func ExampleSWF_RegisterActivityType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -686,11 +602,7 @@ func ExampleSWF_RegisterActivityType() { } func ExampleSWF_RegisterDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -713,11 +625,7 @@ func ExampleSWF_RegisterDomain() { } func ExampleSWF_RegisterWorkflowType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -749,11 +657,7 @@ func ExampleSWF_RegisterWorkflowType() { } func ExampleSWF_RequestCancelWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -776,11 +680,7 @@ func ExampleSWF_RequestCancelWorkflowExecution() { } func ExampleSWF_RespondActivityTaskCanceled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -802,11 +702,7 @@ func ExampleSWF_RespondActivityTaskCanceled() { } func ExampleSWF_RespondActivityTaskCompleted() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -828,11 +724,7 @@ func ExampleSWF_RespondActivityTaskCompleted() { } func ExampleSWF_RespondActivityTaskFailed() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -855,11 +747,7 @@ func ExampleSWF_RespondActivityTaskFailed() { } func ExampleSWF_RespondDecisionTaskCompleted() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -984,11 +872,7 @@ func ExampleSWF_RespondDecisionTaskCompleted() { } func ExampleSWF_SignalWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -1013,11 +897,7 @@ func ExampleSWF_SignalWorkflowExecution() { } func ExampleSWF_StartWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -1056,11 +936,7 @@ func ExampleSWF_StartWorkflowExecution() { } func ExampleSWF_TerminateWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go index 9b4aeeb3..fe1fcb9b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSWFClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go index f9719cee..153e3a71 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go @@ -2149,7 +2149,7 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re // Gets detailed information about a specified number of requests--a sample--that // AWS WAF randomly selects from among the first 5,000 requests that your AWS // resource received during a time range that you choose. You can specify a -// sample size of up to 100 requests, and you can specify any time range in +// sample size of up to 500 requests, and you can specify any time range in // the previous three hours. // // GetSampledRequests returns a time range, which is usually the time range @@ -3969,8 +3969,6 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // and doesn't evaluate the request against the remaining Rules in the WebACL, // if any. // -// * The CloudFront distribution that you want to associate with the WebACL. -// // To create and configure a WebACL, perform the following steps: // // Create and update the predicates that you want to include in Rules. For more diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go index 2fe4b56f..8b512012 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleWAF_CreateByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -42,11 +38,7 @@ func ExampleWAF_CreateByteMatchSet() { } func ExampleWAF_CreateIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -68,11 +60,7 @@ func ExampleWAF_CreateIPSet() { } func ExampleWAF_CreateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -95,11 +83,7 @@ func ExampleWAF_CreateRule() { } func ExampleWAF_CreateSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -121,11 +105,7 @@ func ExampleWAF_CreateSizeConstraintSet() { } func ExampleWAF_CreateSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -147,11 +127,7 @@ func ExampleWAF_CreateSqlInjectionMatchSet() { } func ExampleWAF_CreateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -177,11 +153,7 @@ func ExampleWAF_CreateWebACL() { } func ExampleWAF_CreateXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -203,11 +175,7 @@ func ExampleWAF_CreateXssMatchSet() { } func ExampleWAF_DeleteByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -229,11 +197,7 @@ func ExampleWAF_DeleteByteMatchSet() { } func ExampleWAF_DeleteIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -255,11 +219,7 @@ func ExampleWAF_DeleteIPSet() { } func ExampleWAF_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -281,11 +241,7 @@ func ExampleWAF_DeleteRule() { } func ExampleWAF_DeleteSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -307,11 +263,7 @@ func ExampleWAF_DeleteSizeConstraintSet() { } func ExampleWAF_DeleteSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -333,11 +285,7 @@ func ExampleWAF_DeleteSqlInjectionMatchSet() { } func ExampleWAF_DeleteWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -359,11 +307,7 @@ func ExampleWAF_DeleteWebACL() { } func ExampleWAF_DeleteXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -385,11 +329,7 @@ func ExampleWAF_DeleteXssMatchSet() { } func ExampleWAF_GetByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -410,11 +350,7 @@ func ExampleWAF_GetByteMatchSet() { } func ExampleWAF_GetChangeToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -433,11 +369,7 @@ func ExampleWAF_GetChangeToken() { } func ExampleWAF_GetChangeTokenStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -458,11 +390,7 @@ func ExampleWAF_GetChangeTokenStatus() { } func ExampleWAF_GetIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -483,11 +411,7 @@ func ExampleWAF_GetIPSet() { } func ExampleWAF_GetRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -508,11 +432,7 @@ func ExampleWAF_GetRule() { } func ExampleWAF_GetSampledRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -539,11 +459,7 @@ func ExampleWAF_GetSampledRequests() { } func ExampleWAF_GetSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -564,11 +480,7 @@ func ExampleWAF_GetSizeConstraintSet() { } func ExampleWAF_GetSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -589,11 +501,7 @@ func ExampleWAF_GetSqlInjectionMatchSet() { } func ExampleWAF_GetWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -614,11 +522,7 @@ func ExampleWAF_GetWebACL() { } func ExampleWAF_GetXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -639,11 +543,7 @@ func ExampleWAF_GetXssMatchSet() { } func ExampleWAF_ListByteMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -665,11 +565,7 @@ func ExampleWAF_ListByteMatchSets() { } func ExampleWAF_ListIPSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -691,11 +587,7 @@ func ExampleWAF_ListIPSets() { } func ExampleWAF_ListRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -717,11 +609,7 @@ func ExampleWAF_ListRules() { } func ExampleWAF_ListSizeConstraintSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -743,11 +631,7 @@ func ExampleWAF_ListSizeConstraintSets() { } func ExampleWAF_ListSqlInjectionMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -769,11 +653,7 @@ func ExampleWAF_ListSqlInjectionMatchSets() { } func ExampleWAF_ListWebACLs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -795,11 +675,7 @@ func ExampleWAF_ListWebACLs() { } func ExampleWAF_ListXssMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -821,11 +697,7 @@ func ExampleWAF_ListXssMatchSets() { } func ExampleWAF_UpdateByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -862,11 +734,7 @@ func ExampleWAF_UpdateByteMatchSet() { } func ExampleWAF_UpdateIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -898,11 +766,7 @@ func ExampleWAF_UpdateIPSet() { } func ExampleWAF_UpdateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -935,11 +799,7 @@ func ExampleWAF_UpdateRule() { } func ExampleWAF_UpdateSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -976,11 +836,7 @@ func ExampleWAF_UpdateSizeConstraintSet() { } func ExampleWAF_UpdateSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -1015,11 +871,7 @@ func ExampleWAF_UpdateSqlInjectionMatchSet() { } func ExampleWAF_UpdateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -1057,11 +909,7 @@ func ExampleWAF_UpdateWebACL() { } func ExampleWAF_UpdateXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go index 9bfa19ea..29e28cfa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockWAFClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go index 8ba628c6..b26917de 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go @@ -2349,7 +2349,7 @@ func (c *WAFRegional) GetSampledRequestsRequest(input *waf.GetSampledRequestsInp // Gets detailed information about a specified number of requests--a sample--that // AWS WAF randomly selects from among the first 5,000 requests that your AWS // resource received during a time range that you choose. You can specify a -// sample size of up to 100 requests, and you can specify any time range in +// sample size of up to 500 requests, and you can specify any time range in // the previous three hours. // // GetSampledRequests returns a time range, which is usually the time range @@ -4345,8 +4345,6 @@ func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *re // and doesn't evaluate the request against the remaining Rules in the WebACL, // if any. // -// * The CloudFront distribution that you want to associate with the WebACL. -// // To create and configure a WebACL, perform the following steps: // // Create and update the predicates that you want to include in Rules. For more diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go index 5c12595e..ae55b019 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go @@ -17,11 +17,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleWAFRegional_AssociateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -43,11 +39,7 @@ func ExampleWAFRegional_AssociateWebACL() { } func ExampleWAFRegional_CreateByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -69,11 +61,7 @@ func ExampleWAFRegional_CreateByteMatchSet() { } func ExampleWAFRegional_CreateIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -95,11 +83,7 @@ func ExampleWAFRegional_CreateIPSet() { } func ExampleWAFRegional_CreateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -122,11 +106,7 @@ func ExampleWAFRegional_CreateRule() { } func ExampleWAFRegional_CreateSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -148,11 +128,7 @@ func ExampleWAFRegional_CreateSizeConstraintSet() { } func ExampleWAFRegional_CreateSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -174,11 +150,7 @@ func ExampleWAFRegional_CreateSqlInjectionMatchSet() { } func ExampleWAFRegional_CreateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -204,11 +176,7 @@ func ExampleWAFRegional_CreateWebACL() { } func ExampleWAFRegional_CreateXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -230,11 +198,7 @@ func ExampleWAFRegional_CreateXssMatchSet() { } func ExampleWAFRegional_DeleteByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -256,11 +220,7 @@ func ExampleWAFRegional_DeleteByteMatchSet() { } func ExampleWAFRegional_DeleteIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -282,11 +242,7 @@ func ExampleWAFRegional_DeleteIPSet() { } func ExampleWAFRegional_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -308,11 +264,7 @@ func ExampleWAFRegional_DeleteRule() { } func ExampleWAFRegional_DeleteSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -334,11 +286,7 @@ func ExampleWAFRegional_DeleteSizeConstraintSet() { } func ExampleWAFRegional_DeleteSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -360,11 +308,7 @@ func ExampleWAFRegional_DeleteSqlInjectionMatchSet() { } func ExampleWAFRegional_DeleteWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -386,11 +330,7 @@ func ExampleWAFRegional_DeleteWebACL() { } func ExampleWAFRegional_DeleteXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -412,11 +352,7 @@ func ExampleWAFRegional_DeleteXssMatchSet() { } func ExampleWAFRegional_DisassociateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -437,11 +373,7 @@ func ExampleWAFRegional_DisassociateWebACL() { } func ExampleWAFRegional_GetByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -462,11 +394,7 @@ func ExampleWAFRegional_GetByteMatchSet() { } func ExampleWAFRegional_GetChangeToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -485,11 +413,7 @@ func ExampleWAFRegional_GetChangeToken() { } func ExampleWAFRegional_GetChangeTokenStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -510,11 +434,7 @@ func ExampleWAFRegional_GetChangeTokenStatus() { } func ExampleWAFRegional_GetIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -535,11 +455,7 @@ func ExampleWAFRegional_GetIPSet() { } func ExampleWAFRegional_GetRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -560,11 +476,7 @@ func ExampleWAFRegional_GetRule() { } func ExampleWAFRegional_GetSampledRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -591,11 +503,7 @@ func ExampleWAFRegional_GetSampledRequests() { } func ExampleWAFRegional_GetSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -616,11 +524,7 @@ func ExampleWAFRegional_GetSizeConstraintSet() { } func ExampleWAFRegional_GetSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -641,11 +545,7 @@ func ExampleWAFRegional_GetSqlInjectionMatchSet() { } func ExampleWAFRegional_GetWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -666,11 +566,7 @@ func ExampleWAFRegional_GetWebACL() { } func ExampleWAFRegional_GetWebACLForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -691,11 +587,7 @@ func ExampleWAFRegional_GetWebACLForResource() { } func ExampleWAFRegional_GetXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -716,11 +608,7 @@ func ExampleWAFRegional_GetXssMatchSet() { } func ExampleWAFRegional_ListByteMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -742,11 +630,7 @@ func ExampleWAFRegional_ListByteMatchSets() { } func ExampleWAFRegional_ListIPSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -768,11 +652,7 @@ func ExampleWAFRegional_ListIPSets() { } func ExampleWAFRegional_ListResourcesForWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -793,11 +673,7 @@ func ExampleWAFRegional_ListResourcesForWebACL() { } func ExampleWAFRegional_ListRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -819,11 +695,7 @@ func ExampleWAFRegional_ListRules() { } func ExampleWAFRegional_ListSizeConstraintSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -845,11 +717,7 @@ func ExampleWAFRegional_ListSizeConstraintSets() { } func ExampleWAFRegional_ListSqlInjectionMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -871,11 +739,7 @@ func ExampleWAFRegional_ListSqlInjectionMatchSets() { } func ExampleWAFRegional_ListWebACLs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -897,11 +761,7 @@ func ExampleWAFRegional_ListWebACLs() { } func ExampleWAFRegional_ListXssMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -923,11 +783,7 @@ func ExampleWAFRegional_ListXssMatchSets() { } func ExampleWAFRegional_UpdateByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -964,11 +820,7 @@ func ExampleWAFRegional_UpdateByteMatchSet() { } func ExampleWAFRegional_UpdateIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -1000,11 +852,7 @@ func ExampleWAFRegional_UpdateIPSet() { } func ExampleWAFRegional_UpdateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -1037,11 +885,7 @@ func ExampleWAFRegional_UpdateRule() { } func ExampleWAFRegional_UpdateSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -1078,11 +922,7 @@ func ExampleWAFRegional_UpdateSizeConstraintSet() { } func ExampleWAFRegional_UpdateSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -1117,11 +957,7 @@ func ExampleWAFRegional_UpdateSqlInjectionMatchSet() { } func ExampleWAFRegional_UpdateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) @@ -1159,11 +995,7 @@ func ExampleWAFRegional_UpdateWebACL() { } func ExampleWAFRegional_UpdateXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := wafregional.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go index c1177f42..71472189 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go @@ -46,7 +46,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockWAFRegionalClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go index 8b0df3e3..73a0d7a6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleWorkSpaces_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -48,11 +44,7 @@ func ExampleWorkSpaces_CreateTags() { } func ExampleWorkSpaces_CreateWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -94,11 +86,7 @@ func ExampleWorkSpaces_CreateWorkspaces() { } func ExampleWorkSpaces_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -123,11 +111,7 @@ func ExampleWorkSpaces_DeleteTags() { } func ExampleWorkSpaces_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -148,11 +132,7 @@ func ExampleWorkSpaces_DescribeTags() { } func ExampleWorkSpaces_DescribeWorkspaceBundles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -178,11 +158,7 @@ func ExampleWorkSpaces_DescribeWorkspaceBundles() { } func ExampleWorkSpaces_DescribeWorkspaceDirectories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -207,11 +183,7 @@ func ExampleWorkSpaces_DescribeWorkspaceDirectories() { } func ExampleWorkSpaces_DescribeWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -240,11 +212,7 @@ func ExampleWorkSpaces_DescribeWorkspaces() { } func ExampleWorkSpaces_DescribeWorkspacesConnectionStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -269,11 +237,7 @@ func ExampleWorkSpaces_DescribeWorkspacesConnectionStatus() { } func ExampleWorkSpaces_ModifyWorkspaceProperties() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -298,11 +262,7 @@ func ExampleWorkSpaces_ModifyWorkspaceProperties() { } func ExampleWorkSpaces_RebootWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -328,11 +288,7 @@ func ExampleWorkSpaces_RebootWorkspaces() { } func ExampleWorkSpaces_RebuildWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -358,11 +314,7 @@ func ExampleWorkSpaces_RebuildWorkspaces() { } func ExampleWorkSpaces_StartWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -388,11 +340,7 @@ func ExampleWorkSpaces_StartWorkspaces() { } func ExampleWorkSpaces_StopWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -418,11 +366,7 @@ func ExampleWorkSpaces_StopWorkspaces() { } func ExampleWorkSpaces_TerminateWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go index 89fa9869..3f1530e7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockWorkSpacesClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go index c117b823..30003e65 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleXRay_BatchGetTraces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := xray.New(sess) @@ -45,11 +41,7 @@ func ExampleXRay_BatchGetTraces() { } func ExampleXRay_GetServiceGraph() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := xray.New(sess) @@ -72,11 +64,7 @@ func ExampleXRay_GetServiceGraph() { } func ExampleXRay_GetTraceGraph() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := xray.New(sess) @@ -101,11 +89,7 @@ func ExampleXRay_GetTraceGraph() { } func ExampleXRay_GetTraceSummaries() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := xray.New(sess) @@ -130,11 +114,7 @@ func ExampleXRay_GetTraceSummaries() { } func ExampleXRay_PutTelemetryRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := xray.New(sess) @@ -175,11 +155,7 @@ func ExampleXRay_PutTelemetryRecords() { } func ExampleXRay_PutTraceSegments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := xray.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go index da79ab98..dd22cbb6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockXRayClient{} // diff --git a/vendor/github.com/go-ini/ini/.travis.yml b/vendor/github.com/go-ini/ini/.travis.yml index 0064ba1d..65c872ba 100644 --- a/vendor/github.com/go-ini/ini/.travis.yml +++ b/vendor/github.com/go-ini/ini/.travis.yml @@ -1,14 +1,15 @@ sudo: false language: go - go: - - 1.4 - - 1.5 - - 1.6 - - tip + - 1.4.x + - 1.5.x + - 1.6.x + - 1.7.x + - master script: - - go get -v github.com/smartystreets/goconvey + - go get golang.org/x/tools/cmd/cover + - go get github.com/smartystreets/goconvey - go test -v -cover -race notifications: diff --git a/vendor/github.com/go-ini/ini/README.md b/vendor/github.com/go-ini/ini/README.md index 8539af11..85947422 100644 --- a/vendor/github.com/go-ini/ini/README.md +++ b/vendor/github.com/go-ini/ini/README.md @@ -1,4 +1,4 @@ -INI [](https://travis-ci.org/go-ini/ini) +INI [](https://travis-ci.org/go-ini/ini) [](https://sourcegraph.com/github.com/go-ini/ini?badge) ===  diff --git a/vendor/github.com/go-ini/ini/ini.go b/vendor/github.com/go-ini/ini/ini.go index c343dedc..8a448d7a 100644 --- a/vendor/github.com/go-ini/ini/ini.go +++ b/vendor/github.com/go-ini/ini/ini.go @@ -37,7 +37,7 @@ const ( // Maximum allowed depth when recursively substituing variable names. _DEPTH_VALUES = 99 - _VERSION = "1.24.0" + _VERSION = "1.25.2" ) // Version returns current package version literal. @@ -176,6 +176,8 @@ type LoadOptions struct { // AllowBooleanKeys indicates whether to allow boolean type keys or treat as value is missing. // This type of keys are mostly used in my.cnf. AllowBooleanKeys bool + // AllowShadows indicates whether to keep track of keys with same name under same section. + AllowShadows bool // Some INI formats allow group blocks that store a block of raw content that doesn't otherwise // conform to key/value pairs. Specify the names of those blocks here. UnparseableSections []string @@ -219,6 +221,12 @@ func InsensitiveLoad(source interface{}, others ...interface{}) (*File, error) { return LoadSources(LoadOptions{Insensitive: true}, source, others...) } +// InsensitiveLoad has exactly same functionality as Load function +// except it allows have shadow keys. +func ShadowLoad(source interface{}, others ...interface{}) (*File, error) { + return LoadSources(LoadOptions{AllowShadows: true}, source, others...) +} + // Empty returns an empty file object. func Empty() *File { // Ignore error here, we sure our data is good. @@ -441,6 +449,7 @@ func (f *File) WriteToIndent(w io.Writer, indent string) (n int64, err error) { } alignSpaces := bytes.Repeat([]byte(" "), alignLength) + KEY_LIST: for _, kname := range sec.keyList { key := sec.Key(kname) if len(key.Comment) > 0 { @@ -467,31 +476,33 @@ func (f *File) WriteToIndent(w io.Writer, indent string) (n int64, err error) { case strings.Contains(kname, "`"): kname = `"""` + kname + `"""` } - if _, err = buf.WriteString(kname); err != nil { - return 0, err - } - if key.isBooleanType { - if kname != sec.keyList[len(sec.keyList)-1] { - buf.WriteString(LineBreak) + for _, val := range key.ValueWithShadows() { + if _, err = buf.WriteString(kname); err != nil { + return 0, err } - continue - } - // Write out alignment spaces before "=" sign - if PrettyFormat { - buf.Write(alignSpaces[:alignLength-len(kname)]) - } + if key.isBooleanType { + if kname != sec.keyList[len(sec.keyList)-1] { + buf.WriteString(LineBreak) + } + continue KEY_LIST + } - val := key.value - // In case key value contains "\n", "`", "\"", "#" or ";" - if strings.ContainsAny(val, "\n`") { - val = `"""` + val + `"""` - } else if strings.ContainsAny(val, "#;") { - val = "`" + val + "`" - } - if _, err = buf.WriteString(equalSign + val + LineBreak); err != nil { - return 0, err + // Write out alignment spaces before "=" sign + if PrettyFormat { + buf.Write(alignSpaces[:alignLength-len(kname)]) + } + + // In case key value contains "\n", "`", "\"", "#" or ";" + if strings.ContainsAny(val, "\n`") { + val = `"""` + val + `"""` + } else if strings.ContainsAny(val, "#;") { + val = "`" + val + "`" + } + if _, err = buf.WriteString(equalSign + val + LineBreak); err != nil { + return 0, err + } } } diff --git a/vendor/github.com/go-ini/ini/key.go b/vendor/github.com/go-ini/ini/key.go index 9738c55a..7058dc99 100644 --- a/vendor/github.com/go-ini/ini/key.go +++ b/vendor/github.com/go-ini/ini/key.go @@ -15,6 +15,7 @@ package ini import ( + "errors" "fmt" "strconv" "strings" @@ -29,9 +30,42 @@ type Key struct { isAutoIncrement bool isBooleanType bool + isShadow bool + shadows []*Key + Comment string } +// newKey simply return a key object with given values. +func newKey(s *Section, name, val string) *Key { + return &Key{ + s: s, + name: name, + value: val, + } +} + +func (k *Key) addShadow(val string) error { + if k.isShadow { + return errors.New("cannot add shadow to another shadow key") + } else if k.isAutoIncrement || k.isBooleanType { + return errors.New("cannot add shadow to auto-increment or boolean key") + } + + shadow := newKey(k.s, k.name, val) + shadow.isShadow = true + k.shadows = append(k.shadows, shadow) + return nil +} + +// AddShadow adds a new shadow key to itself. +func (k *Key) AddShadow(val string) error { + if !k.s.f.options.AllowShadows { + return errors.New("shadow key is not allowed") + } + return k.addShadow(val) +} + // ValueMapper represents a mapping function for values, e.g. os.ExpandEnv type ValueMapper func(string) string @@ -45,6 +79,19 @@ func (k *Key) Value() string { return k.value } +// ValueWithShadows returns raw values of key and its shadows if any. +func (k *Key) ValueWithShadows() []string { + if len(k.shadows) == 0 { + return []string{k.value} + } + vals := make([]string, len(k.shadows)+1) + vals[0] = k.value + for i := range k.shadows { + vals[i+1] = k.shadows[i].value + } + return vals +} + // String returns string representation of value. func (k *Key) String() string { val := k.value diff --git a/vendor/github.com/go-ini/ini/key_test.go b/vendor/github.com/go-ini/ini/key_test.go index 39c62104..1281d5bf 100644 --- a/vendor/github.com/go-ini/ini/key_test.go +++ b/vendor/github.com/go-ini/ini/key_test.go @@ -15,6 +15,7 @@ package ini import ( + "bytes" "fmt" "strings" "testing" @@ -439,6 +440,41 @@ key2= ; comment` }) } +const _CONF_GIT_CONFIG = ` +[remote "origin"] + url = https://github.com/Antergone/test1.git + url = https://github.com/Antergone/test2.git +` + +func Test_Key_Shadows(t *testing.T) { + Convey("Shadows keys", t, func() { + Convey("Disable shadows", func() { + cfg, err := Load([]byte(_CONF_GIT_CONFIG)) + So(err, ShouldBeNil) + So(cfg.Section(`remote "origin"`).Key("url").String(), ShouldEqual, "https://github.com/Antergone/test2.git") + }) + + Convey("Enable shadows", func() { + cfg, err := ShadowLoad([]byte(_CONF_GIT_CONFIG)) + So(err, ShouldBeNil) + So(cfg.Section(`remote "origin"`).Key("url").String(), ShouldEqual, "https://github.com/Antergone/test1.git") + So(strings.Join(cfg.Section(`remote "origin"`).Key("url").ValueWithShadows(), " "), ShouldEqual, + "https://github.com/Antergone/test1.git https://github.com/Antergone/test2.git") + + Convey("Save with shadows", func() { + var buf bytes.Buffer + _, err := cfg.WriteTo(&buf) + So(err, ShouldBeNil) + So(buf.String(), ShouldEqual, `[remote "origin"] +url = https://github.com/Antergone/test1.git +url = https://github.com/Antergone/test2.git + +`) + }) + }) + }) +} + func newTestFile(block bool) *File { c, _ := Load([]byte(_CONF_DATA)) c.BlockMode = block diff --git a/vendor/github.com/go-ini/ini/parser.go b/vendor/github.com/go-ini/ini/parser.go index 01ff20a9..673ef80c 100644 --- a/vendor/github.com/go-ini/ini/parser.go +++ b/vendor/github.com/go-ini/ini/parser.go @@ -341,17 +341,16 @@ func (f *File) parse(reader io.Reader) (err error) { p.count++ } - key, err := section.NewKey(kname, "") + value, err := p.readValue(line[offset:], f.options.IgnoreContinuation) if err != nil { return err } - key.isAutoIncrement = isAutoIncr - value, err := p.readValue(line[offset:], f.options.IgnoreContinuation) + key, err := section.NewKey(kname, value) if err != nil { return err } - key.SetValue(value) + key.isAutoIncrement = isAutoIncr key.Comment = strings.TrimSpace(p.comment.String()) p.comment.Reset() } diff --git a/vendor/github.com/go-ini/ini/section.go b/vendor/github.com/go-ini/ini/section.go index 806f1497..c9fa27e9 100644 --- a/vendor/github.com/go-ini/ini/section.go +++ b/vendor/github.com/go-ini/ini/section.go @@ -68,16 +68,18 @@ func (s *Section) NewKey(name, val string) (*Key, error) { } if inSlice(name, s.keyList) { - s.keys[name].value = val + if s.f.options.AllowShadows { + if err := s.keys[name].addShadow(val); err != nil { + return nil, err + } + } else { + s.keys[name].value = val + } return s.keys[name], nil } s.keyList = append(s.keyList, name) - s.keys[name] = &Key{ - s: s, - name: name, - value: val, - } + s.keys[name] = newKey(s, name, val) s.keysHash[name] = val return s.keys[name], nil } diff --git a/vendor/github.com/mattn/go-isatty/LICENSE b/vendor/github.com/mattn/go-isatty/LICENSE deleted file mode 100644 index 65dc692b..00000000 --- a/vendor/github.com/mattn/go-isatty/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -Copyright (c) Yasuhiro MATSUMOTO <mattn.jp@gmail.com> - -MIT License (Expat) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/mattn/go-isatty/README.md b/vendor/github.com/mattn/go-isatty/README.md deleted file mode 100644 index 74845de4..00000000 --- a/vendor/github.com/mattn/go-isatty/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# go-isatty - -isatty for golang - -## Usage - -```go -package main - -import ( - "fmt" - "github.com/mattn/go-isatty" - "os" -) - -func main() { - if isatty.IsTerminal(os.Stdout.Fd()) { - fmt.Println("Is Terminal") - } else { - fmt.Println("Is Not Terminal") - } -} -``` - -## Installation - -``` -$ go get github.com/mattn/go-isatty -``` - -# License - -MIT - -# Author - -Yasuhiro Matsumoto (a.k.a mattn) diff --git a/vendor/github.com/mattn/go-isatty/_example/example.go b/vendor/github.com/mattn/go-isatty/_example/example.go deleted file mode 100644 index 4d667547..00000000 --- a/vendor/github.com/mattn/go-isatty/_example/example.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "fmt" - "github.com/mattn/go-isatty" - "os" -) - -func main() { - if isatty.IsTerminal(int(os.Stdout.Fd())) { - fmt.Println("Is Terminal") - } else { - fmt.Println("Is Not Terminal") - } -} diff --git a/vendor/github.com/mattn/go-isatty/doc.go b/vendor/github.com/mattn/go-isatty/doc.go deleted file mode 100644 index 17d4f90e..00000000 --- a/vendor/github.com/mattn/go-isatty/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package isatty implements interface to isatty -package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_appengine.go b/vendor/github.com/mattn/go-isatty/isatty_appengine.go deleted file mode 100644 index 83c58877..00000000 --- a/vendor/github.com/mattn/go-isatty/isatty_appengine.go +++ /dev/null @@ -1,9 +0,0 @@ -// +build appengine - -package isatty - -// IsTerminal returns true if the file descriptor is terminal which -// is always false on on appengine classic which is a sandboxed PaaS. -func IsTerminal(fd uintptr) bool { - return false -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_bsd.go b/vendor/github.com/mattn/go-isatty/isatty_bsd.go deleted file mode 100644 index 98ffe86a..00000000 --- a/vendor/github.com/mattn/go-isatty/isatty_bsd.go +++ /dev/null @@ -1,18 +0,0 @@ -// +build darwin freebsd openbsd netbsd -// +build !appengine - -package isatty - -import ( - "syscall" - "unsafe" -) - -const ioctlReadTermios = syscall.TIOCGETA - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var termios syscall.Termios - _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) - return err == 0 -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_linux.go b/vendor/github.com/mattn/go-isatty/isatty_linux.go deleted file mode 100644 index 9d24bac1..00000000 --- a/vendor/github.com/mattn/go-isatty/isatty_linux.go +++ /dev/null @@ -1,18 +0,0 @@ -// +build linux -// +build !appengine - -package isatty - -import ( - "syscall" - "unsafe" -) - -const ioctlReadTermios = syscall.TCGETS - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var termios syscall.Termios - _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) - return err == 0 -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_solaris.go b/vendor/github.com/mattn/go-isatty/isatty_solaris.go deleted file mode 100644 index 1f0c6bf5..00000000 --- a/vendor/github.com/mattn/go-isatty/isatty_solaris.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build solaris -// +build !appengine - -package isatty - -import ( - "golang.org/x/sys/unix" -) - -// IsTerminal returns true if the given file descriptor is a terminal. -// see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c -func IsTerminal(fd uintptr) bool { - var termio unix.Termio - err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) - return err == nil -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_windows.go b/vendor/github.com/mattn/go-isatty/isatty_windows.go deleted file mode 100644 index 83c398b1..00000000 --- a/vendor/github.com/mattn/go-isatty/isatty_windows.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build windows -// +build !appengine - -package isatty - -import ( - "syscall" - "unsafe" -) - -var kernel32 = syscall.NewLazyDLL("kernel32.dll") -var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var st uint32 - r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) - return r != 0 && e == 0 -} diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index b3a34c87..d66fc84a 100755 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -123,6 +123,7 @@ includes_Linux=' #include <linux/falloc.h> #include <linux/filter.h> #include <linux/netlink.h> +#include <linux/random.h> #include <linux/reboot.h> #include <linux/rtnetlink.h> #include <linux/ptrace.h> @@ -349,6 +350,7 @@ ccflags="$@" $2 ~ /^CLOCK_/ || $2 ~ /^CAN_/ || $2 ~ /^ALG_/ || + $2 ~ /^GRND_/ || $2 ~ /^SPLICE_/ || $2 !~ "WMESGLEN" && $2 ~ /^W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", $2, $2)} diff --git a/vendor/golang.org/x/sys/unix/mksysnum_linux.pl b/vendor/golang.org/x/sys/unix/mksysnum_linux.pl index 52b16139..872ae8c5 100755 --- a/vendor/golang.org/x/sys/unix/mksysnum_linux.pl +++ b/vendor/golang.org/x/sys/unix/mksysnum_linux.pl @@ -38,15 +38,22 @@ sub fmt { } my $prev; -open(GCC, "gcc -E -dD $ARGV[0] |") || die "can't run gcc"; +open(GCC, "gcc -E -dD @ARGV |") || die "can't run gcc"; while(<GCC>){ if(/^#define __NR_Linux\s+([0-9]+)/){ # mips/mips64: extract offset $offset = $1; } + elsif(/^#define __NR(\w*)_SYSCALL_BASE\s+([0-9]+)/){ + # arm: extract offset + $offset = $1; + } elsif(/^#define __NR_syscalls\s+/) { # ignore redefinitions of __NR_syscalls } + elsif(/^#define __NR_(\w*)Linux_syscalls\s+/) { + # mips/mips64: ignore definitions about the number of syscalls + } elsif(/^#define __NR_(\w+)\s+([0-9]+)/){ $prev = $2; fmt($1, $2); @@ -61,6 +68,9 @@ sub fmt { elsif(/^#define __NR_(\w+)\s+\(__NR_Linux \+ ([0-9]+)/){ fmt($1, $2); } + elsif(/^#define __NR_(\w+)\s+\(__NR_SYSCALL_BASE \+ ([0-9]+)/){ + fmt($1, $2); + } } print <<EOF; diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index 326be811..c0119474 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -1038,6 +1038,7 @@ func Getpgrp() (pid int) { //sysnb Getpid() (pid int) //sysnb Getppid() (ppid int) //sys Getpriority(which int, who int) (prio int, err error) +//sys Getrandom(buf []byte, flags int) (n int, err error) //sysnb Getrusage(who int, rusage *Rusage) (err error) //sysnb Getsid(pid int) (sid int, err error) //sysnb Gettid() (tid int) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index c13799fa..297b0b47 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -437,6 +437,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index 1937e466..908df5bb 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -437,6 +437,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index d64a1292..4ce3deef 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -422,6 +422,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index c0acbb56..10e97ed2 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -451,6 +451,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index 6eece7e2..a3c82612 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -427,6 +427,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index a11dbb37..1fdb6413 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -426,6 +426,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 ICANON = 0x2 ICMPV6_FILTER = 0x1 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 9058318c..3341d4d1 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -426,6 +426,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 ICANON = 0x2 ICMPV6_FILTER = 0x1 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 974b375f..f363c041 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -466,6 +466,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 58b13c0a..1101fd6c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -456,6 +456,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x4000 IBSHIFT = 0x10 ICANON = 0x100 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index 91c3ccca..c3e70156 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -449,6 +449,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x4000 IBSHIFT = 0x10 ICANON = 0x100 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 702894a8..75d2d848 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -462,6 +462,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x2 F_WRLCK = 0x1 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index 4c56e2ff..679008f4 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -470,6 +470,8 @@ const ( F_ULOCK = 0x0 F_UNLCK = 0x3 F_WRLCK = 0x2 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 HUPCL = 0x400 IBSHIFT = 0x10 ICANON = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go index a01725b8..d4ec806d 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go index 1c1b25e6..8b2e87df 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go index 2359fd71..82d36a41 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go index c3dbcad4..f6cc3200 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go index 3fd164a9..f91afb48 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go index a26cad41..657d11ef 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go index 7cc92ad4..31ff1774 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go index 79f26e5b..797e6336 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go index 27befca4..307dbb5b 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go index 0dc288e2..f458a63a 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go index 33c086b5..b1d5a9bc 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go index 071b85c9..ce3ec585 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -1,7 +1,7 @@ -// mksyscall.pl syscall_linux.go syscall_linux_sparc64.go +// mksyscall.pl -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// +build +// +build linux,sparc64 package unix @@ -543,6 +543,23 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index ba952c67..206b3c28 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm/unistd_32.h +// mksysnum_linux.pl -Ilinux/usr/include -m32 -D__i386__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build 386,linux @@ -226,7 +226,6 @@ const ( SYS_PIVOT_ROOT = 217 SYS_MINCORE = 218 SYS_MADVISE = 219 - SYS_MADVISE1 = 219 SYS_GETDENTS64 = 220 SYS_FCNTL64 = 221 SYS_GETTID = 224 @@ -352,4 +351,38 @@ const ( SYS_SETNS = 346 SYS_PROCESS_VM_READV = 347 SYS_PROCESS_VM_WRITEV = 348 + SYS_KCMP = 349 + SYS_FINIT_MODULE = 350 + SYS_SCHED_SETATTR = 351 + SYS_SCHED_GETATTR = 352 + SYS_RENAMEAT2 = 353 + SYS_SECCOMP = 354 + SYS_GETRANDOM = 355 + SYS_MEMFD_CREATE = 356 + SYS_BPF = 357 + SYS_EXECVEAT = 358 + SYS_SOCKET = 359 + SYS_SOCKETPAIR = 360 + SYS_BIND = 361 + SYS_CONNECT = 362 + SYS_LISTEN = 363 + SYS_ACCEPT4 = 364 + SYS_GETSOCKOPT = 365 + SYS_SETSOCKOPT = 366 + SYS_GETSOCKNAME = 367 + SYS_GETPEERNAME = 368 + SYS_SENDTO = 369 + SYS_SENDMSG = 370 + SYS_RECVFROM = 371 + SYS_RECVMSG = 372 + SYS_SHUTDOWN = 373 + SYS_USERFAULTFD = 374 + SYS_MEMBARRIER = 375 + SYS_MLOCK2 = 376 + SYS_COPY_FILE_RANGE = 377 + SYS_PREADV2 = 378 + SYS_PWRITEV2 = 379 + SYS_PKEY_MPROTECT = 380 + SYS_PKEY_ALLOC = 381 + SYS_PKEY_FREE = 382 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index ddac31f5..90423173 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm/unistd_64.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build amd64,linux @@ -318,4 +318,24 @@ const ( SYS_GETCPU = 309 SYS_PROCESS_VM_READV = 310 SYS_PROCESS_VM_WRITEV = 311 + SYS_KCMP = 312 + SYS_FINIT_MODULE = 313 + SYS_SCHED_SETATTR = 314 + SYS_SCHED_GETATTR = 315 + SYS_RENAMEAT2 = 316 + SYS_SECCOMP = 317 + SYS_GETRANDOM = 318 + SYS_MEMFD_CREATE = 319 + SYS_KEXEC_FILE_LOAD = 320 + SYS_BPF = 321 + SYS_EXECVEAT = 322 + SYS_USERFAULTFD = 323 + SYS_MEMBARRIER = 324 + SYS_MLOCK2 = 325 + SYS_COPY_FILE_RANGE = 326 + SYS_PREADV2 = 327 + SYS_PWRITEV2 = 328 + SYS_PKEY_MPROTECT = 329 + SYS_PKEY_ALLOC = 330 + SYS_PKEY_FREE = 331 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index 45ced17f..e3e67456 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl +// mksysnum_linux.pl -Ilinux/usr/include -m32 -D__ARM_EABI__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build arm,linux @@ -6,8 +6,6 @@ package unix const ( - SYS_OABI_SYSCALL_BASE = 0 - SYS_SYSCALL_BASE = 0 SYS_RESTART_SYSCALL = 0 SYS_EXIT = 1 SYS_FORK = 2 @@ -20,21 +18,16 @@ const ( SYS_UNLINK = 10 SYS_EXECVE = 11 SYS_CHDIR = 12 - SYS_TIME = 13 SYS_MKNOD = 14 SYS_CHMOD = 15 SYS_LCHOWN = 16 SYS_LSEEK = 19 SYS_GETPID = 20 SYS_MOUNT = 21 - SYS_UMOUNT = 22 SYS_SETUID = 23 SYS_GETUID = 24 - SYS_STIME = 25 SYS_PTRACE = 26 - SYS_ALARM = 27 SYS_PAUSE = 29 - SYS_UTIME = 30 SYS_ACCESS = 33 SYS_NICE = 34 SYS_SYNC = 36 @@ -69,20 +62,16 @@ const ( SYS_SIGPENDING = 73 SYS_SETHOSTNAME = 74 SYS_SETRLIMIT = 75 - SYS_GETRLIMIT = 76 SYS_GETRUSAGE = 77 SYS_GETTIMEOFDAY = 78 SYS_SETTIMEOFDAY = 79 SYS_GETGROUPS = 80 SYS_SETGROUPS = 81 - SYS_SELECT = 82 SYS_SYMLINK = 83 SYS_READLINK = 85 SYS_USELIB = 86 SYS_SWAPON = 87 SYS_REBOOT = 88 - SYS_READDIR = 89 - SYS_MMAP = 90 SYS_MUNMAP = 91 SYS_TRUNCATE = 92 SYS_FTRUNCATE = 93 @@ -92,7 +81,6 @@ const ( SYS_SETPRIORITY = 97 SYS_STATFS = 99 SYS_FSTATFS = 100 - SYS_SOCKETCALL = 102 SYS_SYSLOG = 103 SYS_SETITIMER = 104 SYS_GETITIMER = 105 @@ -100,11 +88,9 @@ const ( SYS_LSTAT = 107 SYS_FSTAT = 108 SYS_VHANGUP = 111 - SYS_SYSCALL = 113 SYS_WAIT4 = 114 SYS_SWAPOFF = 115 SYS_SYSINFO = 116 - SYS_IPC = 117 SYS_FSYNC = 118 SYS_SIGRETURN = 119 SYS_CLONE = 120 @@ -353,4 +339,23 @@ const ( SYS_SETNS = 375 SYS_PROCESS_VM_READV = 376 SYS_PROCESS_VM_WRITEV = 377 + SYS_KCMP = 378 + SYS_FINIT_MODULE = 379 + SYS_SCHED_SETATTR = 380 + SYS_SCHED_GETATTR = 381 + SYS_RENAMEAT2 = 382 + SYS_SECCOMP = 383 + SYS_GETRANDOM = 384 + SYS_MEMFD_CREATE = 385 + SYS_BPF = 386 + SYS_EXECVEAT = 387 + SYS_USERFAULTFD = 388 + SYS_MEMBARRIER = 389 + SYS_MLOCK2 = 390 + SYS_COPY_FILE_RANGE = 391 + SYS_PREADV2 = 392 + SYS_PWRITEV2 = 393 + SYS_PKEY_MPROTECT = 394 + SYS_PKEY_ALLOC = 395 + SYS_PKEY_FREE = 396 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 2e9514f2..90e43d00 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm-generic/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build arm64,linux @@ -269,4 +269,17 @@ const ( SYS_SCHED_GETATTR = 275 SYS_RENAMEAT2 = 276 SYS_SECCOMP = 277 + SYS_GETRANDOM = 278 + SYS_MEMFD_CREATE = 279 + SYS_BPF = 280 + SYS_EXECVEAT = 281 + SYS_USERFAULTFD = 282 + SYS_MEMBARRIER = 283 + SYS_MLOCK2 = 284 + SYS_COPY_FILE_RANGE = 285 + SYS_PREADV2 = 286 + SYS_PWRITEV2 = 287 + SYS_PKEY_MPROTECT = 288 + SYS_PKEY_ALLOC = 289 + SYS_PKEY_FREE = 290 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 0786867e..77ff644d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/mips-linux-gnu/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m32 -D_MIPS_SIM=_MIPS_SIM_ABI32 -D__MIPSEB__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build mips,linux @@ -352,8 +352,23 @@ const ( SYS_SETNS = 4344 SYS_PROCESS_VM_READV = 4345 SYS_PROCESS_VM_WRITEV = 4346 - SYS_LINUX_SYSCALLS = 4346 - SYS_O32_LINUX_SYSCALLS = 4346 - SYS_64_LINUX_SYSCALLS = 4305 - SYS_N32_LINUX_SYSCALLS = 4310 + SYS_KCMP = 4347 + SYS_FINIT_MODULE = 4348 + SYS_SCHED_SETATTR = 4349 + SYS_SCHED_GETATTR = 4350 + SYS_RENAMEAT2 = 4351 + SYS_SECCOMP = 4352 + SYS_GETRANDOM = 4353 + SYS_MEMFD_CREATE = 4354 + SYS_BPF = 4355 + SYS_EXECVEAT = 4356 + SYS_USERFAULTFD = 4357 + SYS_MEMBARRIER = 4358 + SYS_MLOCK2 = 4359 + SYS_COPY_FILE_RANGE = 4360 + SYS_PREADV2 = 4361 + SYS_PWRITEV2 = 4362 + SYS_PKEY_MPROTECT = 4363 + SYS_PKEY_ALLOC = 4364 + SYS_PKEY_FREE = 4365 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index 5ffe1c71..fc86fcdb 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 -D_MIPS_SIM=_MIPS_SIM_ABI64 -D__MIPSEB__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build mips64,linux @@ -324,4 +324,11 @@ const ( SYS_EXECVEAT = 5316 SYS_USERFAULTFD = 5317 SYS_MEMBARRIER = 5318 + SYS_MLOCK2 = 5319 + SYS_COPY_FILE_RANGE = 5320 + SYS_PREADV2 = 5321 + SYS_PWRITEV2 = 5322 + SYS_PKEY_MPROTECT = 5323 + SYS_PKEY_ALLOC = 5324 + SYS_PKEY_FREE = 5325 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index d192b940..993873c3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 -D_MIPS_SIM=_MIPS_SIM_ABI64 -D__MIPSEL__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build mips64le,linux @@ -324,4 +324,11 @@ const ( SYS_EXECVEAT = 5316 SYS_USERFAULTFD = 5317 SYS_MEMBARRIER = 5318 + SYS_MLOCK2 = 5319 + SYS_COPY_FILE_RANGE = 5320 + SYS_PREADV2 = 5321 + SYS_PWRITEV2 = 5322 + SYS_PKEY_MPROTECT = 5323 + SYS_PKEY_ALLOC = 5324 + SYS_PKEY_FREE = 5325 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index 25d23170..f0155ba5 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/mips-linux-gnu/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m32 -D_MIPS_SIM=_MIPS_SIM_ABI32 -D__MIPSEL__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build mipsle,linux @@ -352,8 +352,23 @@ const ( SYS_SETNS = 4344 SYS_PROCESS_VM_READV = 4345 SYS_PROCESS_VM_WRITEV = 4346 - SYS_LINUX_SYSCALLS = 4346 - SYS_O32_LINUX_SYSCALLS = 4346 - SYS_64_LINUX_SYSCALLS = 4305 - SYS_N32_LINUX_SYSCALLS = 4310 + SYS_KCMP = 4347 + SYS_FINIT_MODULE = 4348 + SYS_SCHED_SETATTR = 4349 + SYS_SCHED_GETATTR = 4350 + SYS_RENAMEAT2 = 4351 + SYS_SECCOMP = 4352 + SYS_GETRANDOM = 4353 + SYS_MEMFD_CREATE = 4354 + SYS_BPF = 4355 + SYS_EXECVEAT = 4356 + SYS_USERFAULTFD = 4357 + SYS_MEMBARRIER = 4358 + SYS_MLOCK2 = 4359 + SYS_COPY_FILE_RANGE = 4360 + SYS_PREADV2 = 4361 + SYS_PWRITEV2 = 4362 + SYS_PKEY_MPROTECT = 4363 + SYS_PKEY_ALLOC = 4364 + SYS_PKEY_FREE = 4365 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index e1b08f00..0deec82c 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__powerpc64__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build ppc64,linux @@ -357,4 +357,13 @@ const ( SYS_GETRANDOM = 359 SYS_MEMFD_CREATE = 360 SYS_BPF = 361 + SYS_EXECVEAT = 362 + SYS_SWITCH_ENDIAN = 363 + SYS_USERFAULTFD = 364 + SYS_MEMBARRIER = 365 + SYS_MLOCK2 = 378 + SYS_COPY_FILE_RANGE = 379 + SYS_PREADV2 = 380 + SYS_PWRITEV2 = 381 + SYS_KEXEC_FILE_LOAD = 382 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index 45e63f51..3f701be7 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/powerpc64le-linux-gnu/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__powerpc64__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build ppc64le,linux @@ -350,4 +350,20 @@ const ( SYS_PROCESS_VM_WRITEV = 352 SYS_FINIT_MODULE = 353 SYS_KCMP = 354 + SYS_SCHED_SETATTR = 355 + SYS_SCHED_GETATTR = 356 + SYS_RENAMEAT2 = 357 + SYS_SECCOMP = 358 + SYS_GETRANDOM = 359 + SYS_MEMFD_CREATE = 360 + SYS_BPF = 361 + SYS_EXECVEAT = 362 + SYS_SWITCH_ENDIAN = 363 + SYS_USERFAULTFD = 364 + SYS_MEMBARRIER = 365 + SYS_MLOCK2 = 378 + SYS_COPY_FILE_RANGE = 379 + SYS_PREADV2 = 380 + SYS_PWRITEV2 = 381 + SYS_KEXEC_FILE_LOAD = 382 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index 42d4f5cd..8b35997d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__s390x__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build s390x,linux @@ -303,6 +303,9 @@ const ( SYS_RECVMSG = 372 SYS_SHUTDOWN = 373 SYS_MLOCK2 = 374 + SYS_COPY_FILE_RANGE = 375 + SYS_PREADV2 = 376 + SYS_PWRITEV2 = 377 SYS_SELECT = 142 SYS_GETRLIMIT = 191 SYS_LCHOWN = 198 diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index 46b5bee1..c9c129dc 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -1,4 +1,4 @@ -// mksysnum_linux.pl /usr/include/sparc64-linux-gnu/asm/unistd.h +// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__arch64__ linux/usr/include/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build sparc64,linux diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/.travis.yml b/vendor/gopkg.in/alecthomas/kingpin.v2/.travis.yml index e564b743..b4f15bac 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/.travis.yml +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/.travis.yml @@ -1,4 +1,3 @@ -sudo: false language: go install: go get -t -v ./... go: 1.2 diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/README.md b/vendor/gopkg.in/alecthomas/kingpin.v2/README.md index c0100b31..1751eda0 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/README.md +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/README.md @@ -1,4 +1,4 @@ -# Kingpin - A Go (golang) command line and flag parser [](http://godoc.org/github.com/alecthomas/kingpin) [](https://travis-ci.org/alecthomas/kingpin) +# Kingpin - A Go (golang) command line and flag parser [](https://travis-ci.org/alecthomas/kingpin) <!-- MarkdownTOC --> @@ -19,13 +19,9 @@ - [Displaying errors and usage information](#displaying-errors-and-usage-information) - [Sub-commands](#sub-commands) - [Custom Parsers](#custom-parsers) - - [Repeatable flags](#repeatable-flags) - - [Boolean Values](#boolean-values) - [Default Values](#default-values) - [Place-holders in Help](#place-holders-in-help) - [Consuming all remaining arguments](#consuming-all-remaining-arguments) - - [Bash/ZSH Shell Completion](#bashzsh-shell-completion) - - [Supporting -h for help](#supporting--h-for-help) - [Custom help](#custom-help) <!-- /MarkdownTOC --> @@ -54,7 +50,7 @@ func main() { } ``` -More [examples](https://github.com/alecthomas/kingpin/tree/master/_examples) are available. +More [examples](https://github.com/alecthomas/kingpin/tree/master/examples) are available. Second to parsing, providing the user with useful help is probably the most important thing a command-line parser does. Kingpin tries to provide detailed @@ -67,14 +63,11 @@ contextual help if `--help` is encountered at any point in the command line - Fully [customisable help](#custom-help), via Go templates. - Parsed, type-safe flags (`kingpin.Flag("f", "help").Int()`) - Parsed, type-safe positional arguments (`kingpin.Arg("a", "help").Int()`). -- Parsed, type-safe, arbitrarily deep commands (`kingpin.Command("c", "help")`). - Support for required flags and required positional arguments (`kingpin.Flag("f", "").Required().Int()`). -- Support for arbitrarily nested default commands (`command.Default()`). - Callbacks per command, flag and argument (`kingpin.Command("c", "").Action(myAction)`). - POSIX-style short flag combining (`-a -b` -> `-ab`). - Short-flag+parameter combining (`-a parm` -> `-aparm`). - Read command-line from files (`@<file>`). -- Automatically generate man pages (`--help-man`). ## User-visible changes between v1 and v2 @@ -108,7 +101,7 @@ be separated by a space. That is no longer the case. - Added `Terminate()` function to override the termination function. - Added `UsageForContextWithTemplate()` for printing usage via a custom template. - Added `UsageTemplate()` for overriding the default template to use. Two templates are included: - 1. `DefaultUsageTemplate` - default template. + 1. `UsageTemplate` - default template. 2. `CompactUsageTemplate` - compact command template for larger applications. ## Versions @@ -135,19 +128,6 @@ $ go get gopkg.in/alecthomas/kingpin.v1 ## Change History -- *2015-09-19* -- Stable v2.1.0 release. - - Added `command.Default()` to specify a default command to use if no other - command matches. This allows for convenient user shortcuts. - - Exposed `HelpFlag` and `VersionFlag` for further customisation. - - `Action()` and `PreAction()` added and both now support an arbitrary - number of callbacks. - - `kingpin.SeparateOptionalFlagsUsageTemplate`. - - `--help-long` and `--help-man` (hidden by default) flags. - - Flags are "interspersed" by default, but can be disabled with `app.Interspersed(false)`. - - Added flags for all simple builtin types (int8, uint16, etc.) and slice variants. - - Use `app.Writer(os.Writer)` to specify the default writer for all output functions. - - Dropped `os.Writer` prefix from all printf-like functions. - - *2015-05-22* -- Stable v2.0.0 release. - Initial stable release of v2.0.0. - Fully supports interspersed flags, commands and arguments. @@ -346,11 +326,11 @@ The functions on `Application` are: Function | Purpose ---------|-------------- -`Errorf(format, args)` | Display a printf formatted error to the user. -`Fatalf(format, args)` | As with Errorf, but also call the termination handler. -`FatalUsage(format, args)` | As with Fatalf, but also print contextual usage information. -`FatalUsageContext(context, format, args)` | As with Fatalf, but also print contextual usage information from a `ParseContext`. -`FatalIfError(err, format, args)` | Conditionally print an error prefixed with format+args, then call the termination handler +`Errorf(w, format, args)` | Display a printf formatted error to the user. +`Fatalf(w, format, args)` | As with Errorf, but also call the termination handler. +`FatalUsage(w, format, args)` | As with Fatalf, but also print contextual usage information. +`FatalUsageContext(w, context, format, args)` | As with Fatalf, but also print contextual usage information from a `ParseContext`. +`FatalIfError(w, err, format, args)` | Conditionally print an error prefixed with format+args, then call the termination handler There are equivalent global functions in the kingpin namespace for the default `kingpin.CommandLine` instance. @@ -424,26 +404,12 @@ You would use it like so: headers = HTTPHeader(kingpin.Flag("header", "Add a HTTP header to the request.").Short('H')) ``` -### Repeatable flags - -Depending on the `Value` they hold, some flags may be repeated. The -`IsCumulative() bool` function on `Value` tells if it's safe to call `Set()` -multiple times or if an error should be raised if several values are passed. - -The built-in `Value`s returning slices and maps, as well as `Counter` are -examples of `Value`s that make a flag repeatable. - -### Boolean values - -Boolean values are uniquely managed by Kingpin. Each boolean flag will have a negative complement: -`--<name>` and `--no-<name>`. - ### Default Values The default value is the zero value for a type. This can be overridden with -the `Default(value...)` function on flags and arguments. This function accepts -one or several strings, which are parsed by the value itself, so they *must* -be compliant with the format expected. +the `Default(value)` function on flags and arguments. This function accepts a +string, which is parsed by the value itself, so it *must* be compliant with +the format expected. ### Place-holders in Help @@ -468,13 +434,13 @@ IP addresses as positional arguments: ./cmd ping 10.1.1.1 192.168.1.1 -Such arguments are similar to [repeatable flags](#repeatable-flags), but for -arguments. Therefore they use the same `IsCumulative() bool` function on the -underlying `Value`, so the built-in `Value`s for which the `Set()` function -can be called several times will consume multiple arguments. +Kingpin supports this by having `Value` provide a `IsCumulative() bool` +function. If this function exists and returns true, the value parser will be +called repeatedly for every remaining argument. -To implement the above example with a custom `Value`, we might do something -like this: +Examples of this are the `Strings()` and `StringMap()` values. + +To implement the above example we might do something like this: ```go type ipList []net.IP @@ -509,163 +475,57 @@ And use it like so: ips := IPList(kingpin.Arg("ips", "IP addresses to ping.")) ``` -### Bash/ZSH Shell Completion - -By default, all flags and commands/subcommands generate completions -internally. - -Out of the box, CLI tools using kingpin should be able to take advantage -of completion hinting for flags and commands. By specifying -`--completion-bash` as the first argument, your CLI tool will show -possible subcommands. By ending your argv with `--`, hints for flags -will be shown. - -To allow your end users to take advantage you must package a -`/etc/bash_completion.d` script with your distribution (or the equivalent -for your target platform/shell). An alternative is to instruct your end -user to source a script from their `bash_profile` (or equivalent). - -Fortunately Kingpin makes it easy to generate or source a script for use -with end users shells. `./yourtool --completion-script-bash` and -`./yourtool --completion-script-zsh` will generate these scripts for you. - -**Installation by Package** - -For the best user experience, you should bundle your pre-created -completion script with your CLI tool and install it inside -`/etc/bash_completion.d` (or equivalent). A good suggestion is to add -this as an automated step to your build pipeline, in the implementation -is improved for bug fixed. - -**Installation by `bash_profile`** - -Alternatively, instruct your users to add an additional statement to -their `bash_profile` (or equivalent): - -``` -eval "$(your-cli-tool --completion-script-bash)" -``` - -Or for ZSH - -``` -eval "$(your-cli-tool --completion-script-zsh)" -``` - -#### Additional API -To provide more flexibility, a completion option API has been -exposed for flags to allow user defined completion options, to extend -completions further than just EnumVar/Enum. - - -**Provide Static Options** - -When using an `Enum` or `EnumVar`, users are limited to only the options -given. Maybe we wish to hint possible options to the user, but also -allow them to provide their own custom option. `HintOptions` gives -this functionality to flags. - -``` -app := kingpin.New("completion", "My application with bash completion.") -app.Flag("port", "Provide a port to connect to"). - Required(). - HintOptions("80", "443", "8080"). - IntVar(&c.port) -``` - -**Provide Dynamic Options** -Consider the case that you needed to read a local database or a file to -provide suggestions. You can dynamically generate the options - -``` -func listHosts(args []string) []string { - // Provide a dynamic list of hosts from a hosts file or otherwise - // for bash completion. In this example we simply return static slice. - - // You could use this functionality to reach into a hosts file to provide - // completion for a list of known hosts. - return []string{"sshhost.example", "webhost.example", "ftphost.example"} -} - -app := kingpin.New("completion", "My application with bash completion.") -app.Flag("flag-1", "").HintAction(listHosts).String() -``` - -**EnumVar/Enum** -When using `Enum` or `EnumVar`, any provided options will be automatically -used for bash autocompletion. However, if you wish to provide a subset or -different options, you can use `HintOptions` or `HintAction` which will override -the default completion options for `Enum`/`EnumVar`. - - -**Examples** -You can see an in depth example of the completion API within -`examples/completion/main.go` - - -### Supporting -h for help - -`kingpin.CommandLine.HelpFlag.Short('h')` - ### Custom help Kingpin v2 supports templatised help using the text/template library (actually, [a fork](https://github.com/alecthomas/template)). You can specify the template to use with the [Application.UsageTemplate()](http://godoc.org/gopkg.in/alecthomas/kingpin.v2#Application.UsageTemplate) function. -There are four included templates: `kingpin.DefaultUsageTemplate` is the default, -`kingpin.CompactUsageTemplate` provides a more compact representation for more complex command-line structures, -`kingpin.SeparateOptionalFlagsUsageTemplate` looks like the default template, but splits required -and optional command flags into separate lists, and `kingpin.ManPageTemplate` is used to generate man pages. +There are two included templates: [kingpin.UsageTemplate](https://github.com/alecthomas/kingpin/blob/master/usage.go#L88) is the default, and +[kingpin.CompactUsageTemplate](https://github.com/alecthomas/kingpin/blob/master/usage.go#L133) provides a more compact representation for +commands, for more complex command line structures. -See the above templates for examples of usage, and the the function [UsageForContextWithTemplate()](https://github.com/alecthomas/kingpin/blob/master/usage.go#L198) method for details on the context. - -#### Default help template +This is the default template as of 22 May 2015: ``` -$ go run ./examples/curl/curl.go --help -usage: curl [<flags>] <command> [<args> ...] - -An example implementation of curl. - +{{define "FormatCommand"}}\ +{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ +{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ +{{end}}\ +{{define "FormatCommands"}}\ +{{range .FlattenedCommands}}\ + {{.FullCommand}}{{template "FormatCommand" .}} +{{.Help|Wrap 4}} +{{end}}\ +{{end}}\ +{{define "FormatUsage"}}\ +{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} +{{if .Help}} +{{.Help|Wrap 0}}\ +{{end}}\ +{{end}}\ +{{if .Context.SelectedCommand}}\ +usage: {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}} +{{else}}\ +usage: {{.App.Name}}{{template "FormatUsage" .App}} +{{end}}\ +{{if .Context.Flags}}\ Flags: - --help Show help. - -t, --timeout=5s Set connection timeout. - -H, --headers=HEADER=VALUE - Add HTTP headers to the request. - +{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}} +{{end}}\ +{{if .Context.Args}}\ +Args: +{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} +{{end}}\ +{{if .Context.SelectedCommand}}\ +Subcommands: +{{if .Context.SelectedCommand.Commands}}\ +{{template "FormatCommands" .Context.SelectedCommand}} +{{end}}\ +{{else if .App.Commands}}\ Commands: - help [<command>...] - Show help. - - get url <url> - Retrieve a URL. - - get file <file> - Retrieve a file. - - post [<flags>] <url> - POST a resource. +{{template "FormatCommands" .App}} +{{end}}\ ``` -#### Compact help template - -``` -$ go run ./examples/curl/curl.go --help -usage: curl [<flags>] <command> [<args> ...] - -An example implementation of curl. - -Flags: - --help Show help. - -t, --timeout=5s Set connection timeout. - -H, --headers=HEADER=VALUE - Add HTTP headers to the request. - -Commands: - help [<command>...] - get [<flags>] - url <url> - file <file> - post [<flags>] <url> -``` +See the above templates for examples of usage, and the the function [UsageForContextWithTemplate()](https://github.com/alecthomas/kingpin/blob/master/usage.go#L198) method for details on the context. diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat1/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat1/main.go deleted file mode 100644 index 2a233fc4..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat1/main.go +++ /dev/null @@ -1,20 +0,0 @@ -package main - -import ( - "fmt" - - "gopkg.in/alecthomas/kingpin.v2" -) - -var ( - debug = kingpin.Flag("debug", "Enable debug mode.").Bool() - timeout = kingpin.Flag("timeout", "Timeout waiting for ping.").Default("5s").OverrideDefaultFromEnvar("PING_TIMEOUT").Short('t').Duration() - ip = kingpin.Arg("ip", "IP address to ping.").Required().IP() - count = kingpin.Arg("count", "Number of packets to send").Int() -) - -func main() { - kingpin.Version("0.0.1") - kingpin.Parse() - fmt.Printf("Would ping: %s with timeout %s and count %d", *ip, *timeout, *count) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat2/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat2/main.go deleted file mode 100644 index 83891a78..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/chat2/main.go +++ /dev/null @@ -1,38 +0,0 @@ -package main - -import ( - "os" - "strings" - - "gopkg.in/alecthomas/kingpin.v2" -) - -var ( - app = kingpin.New("chat", "A command-line chat application.") - debug = app.Flag("debug", "Enable debug mode.").Bool() - serverIP = app.Flag("server", "Server address.").Default("127.0.0.1").IP() - - register = app.Command("register", "Register a new user.") - registerNick = register.Arg("nick", "Nickname for user.").Required().String() - registerName = register.Arg("name", "Name of user.").Required().String() - - post = app.Command("post", "Post a message to a channel.") - postImage = post.Flag("image", "Image to post.").File() - postChannel = post.Arg("channel", "Channel to post to.").Required().String() - postText = post.Arg("text", "Text to post.").Strings() -) - -func main() { - switch kingpin.MustParse(app.Parse(os.Args[1:])) { - // Register user - case register.FullCommand(): - println(*registerNick) - - // Post message - case post.FullCommand(): - if *postImage != nil { - } - text := strings.Join(*postText, " ") - println("Post:", text) - } -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/completion/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/completion/main.go deleted file mode 100644 index fe17b525..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/completion/main.go +++ /dev/null @@ -1,96 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "github.com/alecthomas/kingpin" -) - -func listHosts() []string { - // Provide a dynamic list of hosts from a hosts file or otherwise - // for bash completion. In this example we simply return static slice. - - // You could use this functionality to reach into a hosts file to provide - // completion for a list of known hosts. - return []string{"sshhost.example", "webhost.example", "ftphost.example"} -} - -type NetcatCommand struct { - hostName string - port int - format string -} - -func (n *NetcatCommand) run(c *kingpin.ParseContext) error { - fmt.Printf("Would have run netcat to hostname %v, port %d, and output format %v\n", n.hostName, n.port, n.format) - return nil -} - -func configureNetcatCommand(app *kingpin.Application) { - c := &NetcatCommand{} - nc := app.Command("nc", "Connect to a Host").Action(c.run) - nc.Flag("nop-flag", "Example of a flag with no options").Bool() - - // You can provide hint options using a function to generate them - nc.Flag("host", "Provide a hostname to nc"). - Required(). - HintAction(listHosts). - StringVar(&c.hostName) - - // You can provide hint options statically - nc.Flag("port", "Provide a port to connect to"). - Required(). - HintOptions("80", "443", "8080"). - IntVar(&c.port) - - // Enum/EnumVar options will be turned into completion options automatically - nc.Flag("format", "Define the output format"). - Default("raw"). - EnumVar(&c.format, "raw", "json") - - // You can combine HintOptions with HintAction too - nc.Flag("host-with-multi", "Define a hostname"). - HintAction(listHosts). - HintOptions("myhost.com"). - String() - - // And combine with themselves - nc.Flag("host-with-multi-options", "Define a hostname"). - HintOptions("myhost.com"). - HintOptions("myhost2.com"). - String() - - // If you specify HintOptions/HintActions for Enum/EnumVar, the options - // provided for Enum/EnumVar will be overridden. - nc.Flag("format-with-override-1", "Define a format"). - HintAction(listHosts). - Enum("option1", "option2") - - nc.Flag("format-with-override-2", "Define a format"). - HintOptions("myhost.com", "myhost2.com"). - Enum("option1", "option2") -} - -func addSubCommand(app *kingpin.Application, name string, description string) { - c := app.Command(name, description).Action(func(c *kingpin.ParseContext) error { - fmt.Printf("Would have run command %s.\n", name) - return nil - }) - c.Flag("nop-flag", "Example of a flag with no options").Bool() -} - -func main() { - app := kingpin.New("completion", "My application with bash completion.") - app.Flag("flag-1", "").String() - app.Flag("flag-2", "").HintOptions("opt1", "opt2").String() - - configureNetcatCommand(app) - - // Add some additional top level commands - addSubCommand(app, "ls", "Additional top level command to show command completion") - addSubCommand(app, "ping", "Additional top level command to show command completion") - addSubCommand(app, "nmap", "Additional top level command to show command completion") - - kingpin.MustParse(app.Parse(os.Args[1:])) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/curl/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/curl/main.go deleted file mode 100644 index a877e7ba..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/curl/main.go +++ /dev/null @@ -1,105 +0,0 @@ -// A curl-like HTTP command-line client. -package main - -import ( - "errors" - "fmt" - "io" - "net/http" - "os" - "strings" - - "gopkg.in/alecthomas/kingpin.v2" -) - -var ( - timeout = kingpin.Flag("timeout", "Set connection timeout.").Short('t').Default("5s").Duration() - headers = HTTPHeader(kingpin.Flag("headers", "Add HTTP headers to the request.").Short('H').PlaceHolder("HEADER=VALUE")) - - get = kingpin.Command("get", "GET a resource.").Default() - getFlag = get.Flag("test", "Test flag").Bool() - getURL = get.Command("url", "Retrieve a URL.").Default() - getURLURL = getURL.Arg("url", "URL to GET.").Required().URL() - getFile = get.Command("file", "Retrieve a file.") - getFileFile = getFile.Arg("file", "File to retrieve.").Required().ExistingFile() - - post = kingpin.Command("post", "POST a resource.") - postData = post.Flag("data", "Key-value data to POST").Short('d').PlaceHolder("KEY:VALUE").StringMap() - postBinaryFile = post.Flag("data-binary", "File with binary data to POST.").File() - postURL = post.Arg("url", "URL to POST to.").Required().URL() -) - -type HTTPHeaderValue http.Header - -func (h HTTPHeaderValue) Set(value string) error { - parts := strings.SplitN(value, "=", 2) - if len(parts) != 2 { - return fmt.Errorf("expected HEADER=VALUE got '%s'", value) - } - (http.Header)(h).Add(parts[0], parts[1]) - return nil -} - -func (h HTTPHeaderValue) String() string { - return "" -} - -func HTTPHeader(s kingpin.Settings) (target *http.Header) { - target = &http.Header{} - s.SetValue((*HTTPHeaderValue)(target)) - return -} - -func applyRequest(req *http.Request) error { - req.Header = *headers - resp, err := http.DefaultClient.Do(req) - if err != nil { - return err - } - defer resp.Body.Close() - if resp.StatusCode < 200 || resp.StatusCode > 299 { - return fmt.Errorf("HTTP request failed: %s", resp.Status) - } - _, err = io.Copy(os.Stdout, resp.Body) - return err -} - -func apply(method string, url string) error { - req, err := http.NewRequest(method, url, nil) - if err != nil { - return err - } - return applyRequest(req) -} - -func applyPOST() error { - req, err := http.NewRequest("POST", (*postURL).String(), nil) - if err != nil { - return err - } - if len(*postData) > 0 { - for key, value := range *postData { - req.Form.Set(key, value) - } - } else if postBinaryFile != nil { - if headers.Get("Content-Type") != "" { - headers.Set("Content-Type", "application/octet-stream") - } - req.Body = *postBinaryFile - } else { - return errors.New("--data or --data-binary must be provided to POST") - } - return applyRequest(req) -} - -func main() { - kingpin.UsageTemplate(kingpin.CompactUsageTemplate).Version("1.0").Author("Alec Thomas") - kingpin.CommandLine.Help = "An example implementation of curl." - switch kingpin.Parse() { - case "get url": - kingpin.FatalIfError(apply("GET", (*getURLURL).String()), "GET failed") - - case "post": - kingpin.FatalIfError(applyPOST(), "POST failed") - } -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/modular/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/modular/main.go deleted file mode 100644 index 34cfa0bf..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/modular/main.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "gopkg.in/alecthomas/kingpin.v2" -) - -// Context for "ls" command -type LsCommand struct { - All bool -} - -func (l *LsCommand) run(c *kingpin.ParseContext) error { - fmt.Printf("all=%v\n", l.All) - return nil -} - -func configureLsCommand(app *kingpin.Application) { - c := &LsCommand{} - ls := app.Command("ls", "List files.").Action(c.run) - ls.Flag("all", "List all files.").Short('a').BoolVar(&c.All) -} - -func main() { - app := kingpin.New("modular", "My modular application.") - configureLsCommand(app) - kingpin.MustParse(app.Parse(os.Args[1:])) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/ping/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/ping/main.go deleted file mode 100644 index 41ea263b..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/_examples/ping/main.go +++ /dev/null @@ -1,20 +0,0 @@ -package main - -import ( - "fmt" - - "gopkg.in/alecthomas/kingpin.v2" -) - -var ( - debug = kingpin.Flag("debug", "Enable debug mode.").Bool() - timeout = kingpin.Flag("timeout", "Timeout waiting for ping.").OverrideDefaultFromEnvar("PING_TIMEOUT").Required().Short('t').Duration() - ip = kingpin.Arg("ip", "IP address to ping.").Required().IP() - count = kingpin.Arg("count", "Number of packets to send").Int() -) - -func main() { - kingpin.Version("0.0.1") - kingpin.Parse() - fmt.Printf("Would ping: %s with timeout %s and count %d", *ip, *timeout, *count) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/actions.go b/vendor/gopkg.in/alecthomas/kingpin.v2/actions.go deleted file mode 100644 index 72d6cbd4..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/actions.go +++ /dev/null @@ -1,42 +0,0 @@ -package kingpin - -// Action callback executed at various stages after all values are populated. -// The application, commands, arguments and flags all have corresponding -// actions. -type Action func(*ParseContext) error - -type actionMixin struct { - actions []Action - preActions []Action -} - -type actionApplier interface { - applyActions(*ParseContext) error - applyPreActions(*ParseContext) error -} - -func (a *actionMixin) addAction(action Action) { - a.actions = append(a.actions, action) -} - -func (a *actionMixin) addPreAction(action Action) { - a.preActions = append(a.preActions, action) -} - -func (a *actionMixin) applyActions(context *ParseContext) error { - for _, action := range a.actions { - if err := action(context); err != nil { - return err - } - } - return nil -} - -func (a *actionMixin) applyPreActions(context *ParseContext) error { - for _, preAction := range a.preActions { - if err := preAction(context); err != nil { - return err - } - } - return nil -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/app.go b/vendor/gopkg.in/alecthomas/kingpin.v2/app.go index 91083aa1..06e25735 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/app.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/app.go @@ -4,7 +4,6 @@ import ( "fmt" "io" "os" - "regexp" "strings" ) @@ -12,107 +11,42 @@ var ( ErrCommandNotSpecified = fmt.Errorf("command not specified") ) -var ( - envarTransformRegexp = regexp.MustCompile(`[^a-zA-Z0-9_]+`) -) +// Action callback executed at various stages after all values are populated. +// The application, commands, arguments and flags all have corresponding +// actions. +type Action func(*ParseContext) error type ApplicationValidator func(*Application) error // An Application contains the definitions of flags, arguments and commands // for an application. type Application struct { - cmdMixin - initialized bool - - Name string - Help string - - author string - version string - errorWriter io.Writer // Destination for errors. - usageWriter io.Writer // Destination for usage - usageTemplate string - validator ApplicationValidator - terminate func(status int) // See Terminate() - noInterspersed bool // can flags be interspersed with args (or must they come first) - defaultEnvars bool - completion bool - - // Help flag. Exposed for user customisation. - HelpFlag *FlagClause - // Help command. Exposed for user customisation. May be nil. - HelpCommand *CmdClause - // Version flag. Exposed for user customisation. May be nil. - VersionFlag *FlagClause + *flagGroup + *argGroup + *cmdGroup + initialized bool + Name string + Help string + writer io.Writer // Destination for usage and errors. + usageTemplate string + action Action + validator ApplicationValidator + terminate func(status int) // See Terminate() } // New creates a new Kingpin application instance. func New(name, help string) *Application { a := &Application{ + flagGroup: newFlagGroup(), + argGroup: newArgGroup(), Name: name, Help: help, - errorWriter: os.Stderr, // Left for backwards compatibility purposes. - usageWriter: os.Stderr, - usageTemplate: DefaultUsageTemplate, + writer: os.Stderr, + usageTemplate: UsageTemplate, terminate: os.Exit, } - a.flagGroup = newFlagGroup() - a.argGroup = newArgGroup() a.cmdGroup = newCmdGroup(a) - a.HelpFlag = a.Flag("help", "Show context-sensitive help (also try --help-long and --help-man).") - a.HelpFlag.Bool() - a.Flag("help-long", "Generate long help.").Hidden().PreAction(a.generateLongHelp).Bool() - a.Flag("help-man", "Generate a man page.").Hidden().PreAction(a.generateManPage).Bool() - a.Flag("completion-bash", "Output possible completions for the given args.").Hidden().BoolVar(&a.completion) - a.Flag("completion-script-bash", "Generate completion script for bash.").Hidden().PreAction(a.generateBashCompletionScript).Bool() - a.Flag("completion-script-zsh", "Generate completion script for ZSH.").Hidden().PreAction(a.generateZSHCompletionScript).Bool() - - return a -} - -func (a *Application) generateLongHelp(c *ParseContext) error { - a.Writer(os.Stdout) - if err := a.UsageForContextWithTemplate(c, 2, LongHelpTemplate); err != nil { - return err - } - a.terminate(0) - return nil -} - -func (a *Application) generateManPage(c *ParseContext) error { - a.Writer(os.Stdout) - if err := a.UsageForContextWithTemplate(c, 2, ManPageTemplate); err != nil { - return err - } - a.terminate(0) - return nil -} - -func (a *Application) generateBashCompletionScript(c *ParseContext) error { - a.Writer(os.Stdout) - if err := a.UsageForContextWithTemplate(c, 2, BashCompletionTemplate); err != nil { - return err - } - a.terminate(0) - return nil -} - -func (a *Application) generateZSHCompletionScript(c *ParseContext) error { - a.Writer(os.Stdout) - if err := a.UsageForContextWithTemplate(c, 2, ZshCompletionTemplate); err != nil { - return err - } - a.terminate(0) - return nil -} - -// DefaultEnvars configures all flags (that do not already have an associated -// envar) to use a default environment variable in the form "<app>_<flag>". -// -// For example, if the application is named "foo" and a flag is named "bar- -// waz" the environment variable: "FOO_BAR_WAZ". -func (a *Application) DefaultEnvars() *Application { - a.defaultEnvars = true + a.Flag("help", "Show help.").Bool() return a } @@ -126,23 +60,9 @@ func (a *Application) Terminate(terminate func(int)) *Application { return a } -// Writer specifies the writer to use for usage and errors. Defaults to os.Stderr. -// DEPRECATED: See ErrorWriter and UsageWriter. +// Specify the writer to use for usage and errors. Defaults to os.Stderr. func (a *Application) Writer(w io.Writer) *Application { - a.errorWriter = w - a.usageWriter = w - return a -} - -// ErrorWriter sets the io.Writer to use for errors. -func (a *Application) ErrorWriter(w io.Writer) *Application { - a.usageWriter = w - return a -} - -// UsageWriter sets the io.Writer to use for errors. -func (a *Application) UsageWriter(w io.Writer) *Application { - a.usageWriter = w + a.writer = w return a } @@ -162,15 +82,11 @@ func (a *Application) Validate(validator ApplicationValidator) *Application { // ParseContext parses the given command line and returns the fully populated // ParseContext. func (a *Application) ParseContext(args []string) (*ParseContext, error) { - return a.parseContext(false, args) -} - -func (a *Application) parseContext(ignoreDefault bool, args []string) (*ParseContext, error) { if err := a.init(); err != nil { return nil, err } - context := tokenize(args, ignoreDefault) - err := parse(context, a) + context := tokenize(args) + _, err := parse(context, a) return context, err } @@ -181,91 +97,81 @@ func (a *Application) parseContext(ignoreDefault bool, args []string) (*ParseCon // This will populate all flag and argument values, call all callbacks, and so // on. func (a *Application) Parse(args []string) (command string, err error) { - - context, parseErr := a.ParseContext(args) - selected := []string{} - var setValuesErr error - - if context == nil { - // Since we do not throw error immediately, there could be a case - // where a context returns nil. Protect against that. - return "", parseErr - } - - if err = a.setDefaults(context); err != nil { + context, err := a.ParseContext(args) + if err != nil { + if a.hasHelp(args) { + a.writeUsage(context, err) + } return "", err } - - selected, setValuesErr = a.setValues(context) - - if err = a.applyPreActions(context, !a.completion); err != nil { - return "", err + a.maybeHelp(context) + if !context.EOL() { + return "", fmt.Errorf("unexpected argument '%s'", context.Peek()) } - - if a.completion { - a.generateBashCompletion(context) - a.terminate(0) - } else { - if parseErr != nil { - return "", parseErr - } - - a.maybeHelp(context) - if !context.EOL() { - return "", fmt.Errorf("unexpected argument '%s'", context.Peek()) - } - - if setValuesErr != nil { - return "", setValuesErr - } - - command, err = a.execute(context, selected) - if err == ErrCommandNotSpecified { - a.writeUsage(context, nil) - } + command, err = a.execute(context) + if err == ErrCommandNotSpecified { + a.writeUsage(context, nil) } return command, err } func (a *Application) writeUsage(context *ParseContext, err error) { if err != nil { - a.Errorf("%s", err) + a.Errorf(a.writer, "%s", err) } - if err := a.UsageForContext(context); err != nil { + if err := a.UsageForContext(a.writer, context); err != nil { panic(err) } - if err != nil { - a.terminate(1) - } else { - a.terminate(0) + a.terminate(1) +} + +func (a *Application) hasHelp(args []string) bool { + for _, arg := range args { + if arg == "--help" { + return true + } } + return false } func (a *Application) maybeHelp(context *ParseContext) { for _, element := range context.Elements { - if flag, ok := element.Clause.(*FlagClause); ok && flag == a.HelpFlag { - // Re-parse the command-line ignoring defaults, so that help works correctly. - context, _ = a.parseContext(true, context.rawArgs) + if flag, ok := element.Clause.(*FlagClause); ok && flag.name == "help" { a.writeUsage(context, nil) } } } +// findCommandFromArgs finds a command (if any) from the given command line arguments. +func (a *Application) findCommandFromArgs(args []string) (command string, err error) { + if err := a.init(); err != nil { + return "", err + } + context := tokenize(args) + if err := a.parse(context); err != nil { + return "", err + } + return a.findCommandFromContext(context), nil +} + +// findCommandFromContext finds a command (if any) from a parsed context. +func (a *Application) findCommandFromContext(context *ParseContext) string { + commands := []string{} + for _, element := range context.Elements { + if c, ok := element.Clause.(*CmdClause); ok { + commands = append(commands, c.name) + } + } + return strings.Join(commands, " ") +} + // Version adds a --version flag for displaying the application version. func (a *Application) Version(version string) *Application { - a.version = version - a.VersionFlag = a.Flag("version", "Show application version.").PreAction(func(*ParseContext) error { - fmt.Fprintln(a.usageWriter, version) + a.Flag("version", "Show application version.").Action(func(*ParseContext) error { + fmt.Println(version) a.terminate(0) return nil - }) - a.VersionFlag.Bool() - return a -} - -// Author sets the author output by some help templates. -func (a *Application) Author(author string) *Application { - a.author = author + }).Bool() return a } @@ -275,13 +181,7 @@ func (a *Application) Author(author string) *Application { // All Action() callbacks are called in the order they are encountered on the // command line. func (a *Application) Action(action Action) *Application { - a.addAction(action) - return a -} - -// Action called after parsing completes but before validation and execution. -func (a *Application) PreAction(action Action) *Application { - a.addPreAction(action) + a.action = action return a } @@ -290,21 +190,6 @@ func (a *Application) Command(name, help string) *CmdClause { return a.addCommand(name, help) } -// Interspersed control if flags can be interspersed with positional arguments -// -// true (the default) means that they can, false means that all the flags must appear before the first positional arguments. -func (a *Application) Interspersed(interspersed bool) *Application { - a.noInterspersed = !interspersed - return a -} - -func (a *Application) defaultEnvarPrefix() string { - if a.defaultEnvars { - return a.Name - } - return "" -} - func (a *Application) init() error { if a.initialized { return nil @@ -316,18 +201,18 @@ func (a *Application) init() error { // If we have subcommands, add a help command at the top-level. if a.cmdGroup.have() { var command []string - a.HelpCommand = a.Command("help", "Show help.").PreAction(func(context *ParseContext) error { - a.Usage(command) + help := a.Command("help", "Show help.").Action(func(c *ParseContext) error { + a.Usage(a.writer, command) a.terminate(0) return nil }) - a.HelpCommand.Arg("command", "Show help on command.").StringsVar(&command) + help.Arg("command", "Show help on command.").StringsVar(&command) // Make help first command. l := len(a.commandOrder) a.commandOrder = append(a.commandOrder[l-1:l], a.commandOrder[:l-1]...) } - if err := a.flagGroup.init(a.defaultEnvarPrefix()); err != nil { + if err := a.flagGroup.init(); err != nil { return err } if err := a.cmdGroup.init(); err != nil { @@ -376,10 +261,16 @@ func checkDuplicateFlags(current *CmdClause, flagGroups []*flagGroup) error { return nil } -func (a *Application) execute(context *ParseContext, selected []string) (string, error) { +func (a *Application) execute(context *ParseContext) (string, error) { var err error + selected := []string{} - if err = a.validateRequired(context); err != nil { + if err = a.setDefaults(context); err != nil { + return "", err + } + + selected, err = a.setValues(context) + if err != nil { return "", err } @@ -413,41 +304,6 @@ func (a *Application) setDefaults(context *ParseContext) error { } } - // Check required flags and set defaults. - for _, flag := range context.flags.long { - if flagElements[flag.name] == nil { - if err := flag.setDefault(); err != nil { - return err - } - } - } - - for _, arg := range context.arguments.args { - if argElements[arg.name] == nil { - if err := arg.setDefault(); err != nil { - return err - } - } - } - - return nil -} - -func (a *Application) validateRequired(context *ParseContext) error { - flagElements := map[string]*ParseElement{} - for _, element := range context.Elements { - if flag, ok := element.Clause.(*FlagClause); ok { - flagElements[flag.name] = element - } - } - - argElements := map[string]*ParseElement{} - for _, element := range context.Elements { - if arg, ok := element.Clause.(*ArgClause); ok { - argElements[arg.name] = element - } - } - // Check required flags and set defaults. for _, flag := range context.flags.long { if flagElements[flag.name] == nil { @@ -455,37 +311,41 @@ func (a *Application) validateRequired(context *ParseContext) error { if flag.needsValue() { return fmt.Errorf("required flag --%s not provided", flag.name) } + // Set defaults, if any. + if flag.defaultValue != "" { + if err := flag.value.Set(flag.defaultValue); err != nil { + return err + } + } } } for _, arg := range context.arguments.args { if argElements[arg.name] == nil { - if arg.needsValue() { + if arg.required { return fmt.Errorf("required argument '%s' not provided", arg.name) } + // Set defaults, if any. + if arg.defaultValue != "" { + if err := arg.value.Set(arg.defaultValue); err != nil { + return err + } + } } } + return nil } func (a *Application) setValues(context *ParseContext) (selected []string, err error) { // Set all arg and flag values. - var ( - lastCmd *CmdClause - flagSet = map[string]struct{}{} - ) + var lastCmd *CmdClause for _, element := range context.Elements { switch clause := element.Clause.(type) { case *FlagClause: - if _, ok := flagSet[clause.name]; ok { - if v, ok := clause.value.(repeatableFlag); !ok || !v.IsCumulative() { - return nil, fmt.Errorf("flag '%s' cannot be repeated", clause.name) - } - } if err = clause.value.Set(*element.Value); err != nil { return } - flagSet[clause.name] = struct{}{} case *ArgClause: if err = clause.value.Set(*element.Value); err != nil { @@ -526,33 +386,32 @@ func (a *Application) applyValidators(context *ParseContext) (err error) { return err } -func (a *Application) applyPreActions(context *ParseContext, dispatch bool) error { - if err := a.actionMixin.applyPreActions(context); err != nil { - return err +func (a *Application) applyActions(context *ParseContext) error { + if a.action != nil { + if err := a.action(context); err != nil { + return err + } } // Dispatch to actions. - if dispatch { - for _, element := range context.Elements { - if applier, ok := element.Clause.(actionApplier); ok { - if err := applier.applyPreActions(context); err != nil { + for _, element := range context.Elements { + switch clause := element.Clause.(type) { + case *ArgClause: + if clause.dispatch != nil { + if err := clause.dispatch(context); err != nil { return err } } - } - } - - return nil -} - -func (a *Application) applyActions(context *ParseContext) error { - if err := a.actionMixin.applyActions(context); err != nil { - return err - } - // Dispatch to actions. - for _, element := range context.Elements { - if applier, ok := element.Clause.(actionApplier); ok { - if err := applier.applyActions(context); err != nil { - return err + case *CmdClause: + if clause.dispatch != nil { + if err := clause.dispatch(context); err != nil { + return err + } + } + case *FlagClause: + if clause.dispatch != nil { + if err := clause.dispatch(context); err != nil { + return err + } } } } @@ -560,31 +419,29 @@ func (a *Application) applyActions(context *ParseContext) error { } // Errorf prints an error message to w in the format "<appname>: error: <message>". -func (a *Application) Errorf(format string, args ...interface{}) { - fmt.Fprintf(a.errorWriter, a.Name+": error: "+format+"\n", args...) +func (a *Application) Errorf(w io.Writer, format string, args ...interface{}) { + fmt.Fprintf(w, a.Name+": error: "+format+"\n", args...) } // Fatalf writes a formatted error to w then terminates with exit status 1. -func (a *Application) Fatalf(format string, args ...interface{}) { - a.Errorf(format, args...) +func (a *Application) Fatalf(w io.Writer, format string, args ...interface{}) { + a.Errorf(w, format, args...) a.terminate(1) } // FatalUsage prints an error message followed by usage information, then // exits with a non-zero status. -func (a *Application) FatalUsage(format string, args ...interface{}) { - a.Errorf(format, args...) - // Force usage to go to error output. - a.usageWriter = a.errorWriter - a.Usage([]string{}) +func (a *Application) FatalUsage(w io.Writer, format string, args ...interface{}) { + a.Errorf(w, format, args...) + a.Usage(w, []string{}) a.terminate(1) } // FatalUsageContext writes a printf formatted error message to w, then usage // information for the given ParseContext, before exiting. -func (a *Application) FatalUsageContext(context *ParseContext, format string, args ...interface{}) { - a.Errorf(format, args...) - if err := a.UsageForContext(context); err != nil { +func (a *Application) FatalUsageContext(w io.Writer, context *ParseContext, format string, args ...interface{}) { + a.Errorf(w, format, args...) + if err := a.UsageForContext(w, context); err != nil { panic(err) } a.terminate(1) @@ -592,94 +449,13 @@ func (a *Application) FatalUsageContext(context *ParseContext, format string, ar // FatalIfError prints an error and exits if err is not nil. The error is printed // with the given formatted string, if any. -func (a *Application) FatalIfError(err error, format string, args ...interface{}) { +func (a *Application) FatalIfError(w io.Writer, err error, format string, args ...interface{}) { if err != nil { prefix := "" if format != "" { prefix = fmt.Sprintf(format, args...) + ": " } - a.Errorf(prefix+"%s", err) + a.Errorf(w, prefix+"%s", err) a.terminate(1) } } - -func (a *Application) completionOptions(context *ParseContext) []string { - args := context.rawArgs - - var ( - currArg string - prevArg string - target cmdMixin - ) - - numArgs := len(args) - if numArgs > 1 { - args = args[1:] - currArg = args[len(args)-1] - } - if numArgs > 2 { - prevArg = args[len(args)-2] - } - - target = a.cmdMixin - if context.SelectedCommand != nil { - // A subcommand was in use. We will use it as the target - target = context.SelectedCommand.cmdMixin - } - - if (currArg != "" && strings.HasPrefix(currArg, "--")) || strings.HasPrefix(prevArg, "--") { - // Perform completion for A flag. The last/current argument started with "-" - var ( - flagName string // The name of a flag if given (could be half complete) - flagValue string // The value assigned to a flag (if given) (could be half complete) - ) - - if strings.HasPrefix(prevArg, "--") && !strings.HasPrefix(currArg, "--") { - // Matches: ./myApp --flag value - // Wont Match: ./myApp --flag -- - flagName = prevArg[2:] // Strip the "--" - flagValue = currArg - } else if strings.HasPrefix(currArg, "--") { - // Matches: ./myApp --flag -- - // Matches: ./myApp --flag somevalue -- - // Matches: ./myApp -- - flagName = currArg[2:] // Strip the "--" - } - - options, flagMatched, valueMatched := target.FlagCompletion(flagName, flagValue) - if valueMatched { - // Value Matched. Show cmdCompletions - return target.CmdCompletion(context) - } - - // Add top level flags if we're not at the top level and no match was found. - if context.SelectedCommand != nil && !flagMatched { - topOptions, topFlagMatched, topValueMatched := a.FlagCompletion(flagName, flagValue) - if topValueMatched { - // Value Matched. Back to cmdCompletions - return target.CmdCompletion(context) - } - - if topFlagMatched { - // Top level had a flag which matched the input. Return it's options. - options = topOptions - } else { - // Add top level flags - options = append(options, topOptions...) - } - } - return options - } - - // Perform completion for sub commands and arguments. - return target.CmdCompletion(context) -} - -func (a *Application) generateBashCompletion(context *ParseContext) { - options := a.completionOptions(context) - fmt.Printf("%s", strings.Join(options, "\n")) -} - -func envarTransform(name string) string { - return strings.ToUpper(envarTransformRegexp.ReplaceAllString(name, "_")) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/app_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/app_test.go index 993e25c4..a2880c15 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/app_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/app_test.go @@ -3,20 +3,14 @@ package kingpin import ( "io/ioutil" - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" - "sort" - "strings" "testing" "time" ) -func newTestApp() *Application { - return New("test", "").Terminate(nil) -} - func TestCommander(t *testing.T) { - c := newTestApp() + c := New("test", "test") ping := c.Command("ping", "Ping an IP address.") pingTTL := ping.Flag("ttl", "TTL for ICMP packets").Short('t').Default("5s").Duration() @@ -32,7 +26,7 @@ func TestCommander(t *testing.T) { } func TestRequiredFlags(t *testing.T) { - c := newTestApp() + c := New("test", "test") c.Flag("a", "a").String() c.Flag("b", "b").Required().String() @@ -42,25 +36,15 @@ func TestRequiredFlags(t *testing.T) { assert.NoError(t, err) } -func TestRepeatableFlags(t *testing.T) { - c := newTestApp() - c.Flag("a", "a").String() - c.Flag("b", "b").Strings() - _, err := c.Parse([]string{"--a=foo", "--a=bar"}) - assert.Error(t, err) - _, err = c.Parse([]string{"--b=foo", "--b=bar"}) - assert.NoError(t, err) -} - func TestInvalidDefaultFlagValueErrors(t *testing.T) { - c := newTestApp() + c := New("test", "test") c.Flag("foo", "foo").Default("a").Int() _, err := c.Parse([]string{}) assert.Error(t, err) } func TestInvalidDefaultArgValueErrors(t *testing.T) { - c := newTestApp() + c := New("test", "test") cmd := c.Command("cmd", "cmd") cmd.Arg("arg", "arg").Default("one").Int() _, err := c.Parse([]string{"cmd"}) @@ -68,7 +52,7 @@ func TestInvalidDefaultArgValueErrors(t *testing.T) { } func TestArgsRequiredAfterNonRequiredErrors(t *testing.T) { - c := newTestApp() + c := New("test", "test") cmd := c.Command("cmd", "") cmd.Arg("a", "a").String() cmd.Arg("b", "b").Required().String() @@ -77,7 +61,7 @@ func TestArgsRequiredAfterNonRequiredErrors(t *testing.T) { } func TestArgsMultipleRequiredThenNonRequired(t *testing.T) { - c := newTestApp().Writer(ioutil.Discard) + c := New("test", "test").Terminate(nil).Writer(ioutil.Discard) cmd := c.Command("cmd", "") cmd.Arg("a", "a").Required().String() cmd.Arg("b", "b").Required().String() @@ -91,7 +75,7 @@ func TestArgsMultipleRequiredThenNonRequired(t *testing.T) { func TestDispatchCallbackIsCalled(t *testing.T) { dispatched := false - c := newTestApp() + c := New("test", "") c.Command("cmd", "").Action(func(*ParseContext) error { dispatched = true return nil @@ -103,7 +87,7 @@ func TestDispatchCallbackIsCalled(t *testing.T) { } func TestTopLevelArgWorks(t *testing.T) { - c := newTestApp() + c := New("test", "test") s := c.Arg("arg", "help").String() _, err := c.Parse([]string{"foo"}) assert.NoError(t, err) @@ -111,7 +95,7 @@ func TestTopLevelArgWorks(t *testing.T) { } func TestTopLevelArgCantBeUsedWithCommands(t *testing.T) { - c := newTestApp() + c := New("test", "test") c.Arg("arg", "help").String() c.Command("cmd", "help") _, err := c.Parse([]string{}) @@ -119,14 +103,14 @@ func TestTopLevelArgCantBeUsedWithCommands(t *testing.T) { } func TestTooManyArgs(t *testing.T) { - a := newTestApp() + a := New("test", "test") a.Arg("a", "").String() _, err := a.Parse([]string{"a", "b"}) assert.Error(t, err) } func TestTooManyArgsAfterCommand(t *testing.T) { - a := newTestApp() + a := New("test", "test") a.Command("a", "") assert.NoError(t, a.init()) _, err := a.Parse([]string{"a", "b"}) @@ -134,14 +118,14 @@ func TestTooManyArgsAfterCommand(t *testing.T) { } func TestArgsLooksLikeFlagsWithConsumeRemainder(t *testing.T) { - a := newTestApp() + a := New("test", "") a.Arg("opts", "").Required().Strings() _, err := a.Parse([]string{"hello", "-world"}) assert.Error(t, err) } func TestCommandParseDoesNotResetFlagsToDefault(t *testing.T) { - app := newTestApp() + app := New("test", "") flag := app.Flag("flag", "").Default("default").String() app.Command("cmd", "") @@ -151,7 +135,7 @@ func TestCommandParseDoesNotResetFlagsToDefault(t *testing.T) { } func TestCommandParseDoesNotFailRequired(t *testing.T) { - app := newTestApp() + app := New("test", "") flag := app.Flag("flag", "").Required().String() app.Command("cmd", "") @@ -161,7 +145,7 @@ func TestCommandParseDoesNotFailRequired(t *testing.T) { } func TestSelectedCommand(t *testing.T) { - app := newTestApp() + app := New("test", "help") c0 := app.Command("c0", "") c0.Command("c1", "") s, err := app.Parse([]string{"c0", "c1"}) @@ -170,235 +154,9 @@ func TestSelectedCommand(t *testing.T) { } func TestSubCommandRequired(t *testing.T) { - app := newTestApp() + app := New("test", "help") c0 := app.Command("c0", "") c0.Command("c1", "") _, err := app.Parse([]string{"c0"}) assert.Error(t, err) } - -func TestInterspersedFalse(t *testing.T) { - app := newTestApp().Interspersed(false) - a1 := app.Arg("a1", "").String() - a2 := app.Arg("a2", "").String() - f1 := app.Flag("flag", "").String() - - _, err := app.Parse([]string{"a1", "--flag=flag"}) - assert.NoError(t, err) - assert.Equal(t, "a1", *a1) - assert.Equal(t, "--flag=flag", *a2) - assert.Equal(t, "", *f1) -} - -func TestInterspersedTrue(t *testing.T) { - // test once with the default value and once with explicit true - for i := 0; i < 2; i++ { - app := newTestApp() - if i != 0 { - t.Log("Setting explicit") - app.Interspersed(true) - } else { - t.Log("Using default") - } - a1 := app.Arg("a1", "").String() - a2 := app.Arg("a2", "").String() - f1 := app.Flag("flag", "").String() - - _, err := app.Parse([]string{"a1", "--flag=flag"}) - assert.NoError(t, err) - assert.Equal(t, "a1", *a1) - assert.Equal(t, "", *a2) - assert.Equal(t, "flag", *f1) - } -} - -func TestDefaultEnvars(t *testing.T) { - a := New("some-app", "").Terminate(nil).DefaultEnvars() - f0 := a.Flag("some-flag", "") - f0.Bool() - f1 := a.Flag("some-other-flag", "").NoEnvar() - f1.Bool() - f2 := a.Flag("a-1-flag", "") - f2.Bool() - _, err := a.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, "SOME_APP_SOME_FLAG", f0.envar) - assert.Equal(t, "", f1.envar) - assert.Equal(t, "SOME_APP_A_1_FLAG", f2.envar) -} - -func TestBashCompletionOptionsWithEmptyApp(t *testing.T) { - a := newTestApp() - context, err := a.ParseContext([]string{"--completion-bash"}) - if err != nil { - t.Errorf("Unexpected error whilst parsing context: [%v]", err) - } - args := a.completionOptions(context) - assert.Equal(t, []string(nil), args) -} - -func TestBashCompletionOptions(t *testing.T) { - a := newTestApp() - a.Command("one", "") - a.Flag("flag-0", "").String() - a.Flag("flag-1", "").HintOptions("opt1", "opt2", "opt3").String() - - two := a.Command("two", "") - two.Flag("flag-2", "").String() - two.Flag("flag-3", "").HintOptions("opt4", "opt5", "opt6").String() - - three := a.Command("three", "") - three.Flag("flag-4", "").String() - three.Arg("arg-1", "").String() - three.Arg("arg-2", "").HintOptions("arg-2-opt-1", "arg-2-opt-2").String() - three.Arg("arg-3", "").String() - three.Arg("arg-4", "").HintAction(func() []string { - return []string{"arg-4-opt-1", "arg-4-opt-2"} - }).String() - - cases := []struct { - Args string - ExpectedOptions []string - }{ - { - Args: "--completion-bash", - ExpectedOptions: []string{"help", "one", "three", "two"}, - }, - { - Args: "--completion-bash --", - ExpectedOptions: []string{"--flag-0", "--flag-1", "--help"}, - }, - { - Args: "--completion-bash --fla", - ExpectedOptions: []string{"--flag-0", "--flag-1", "--help"}, - }, - { - // No options available for flag-0, return to cmd completion - Args: "--completion-bash --flag-0", - ExpectedOptions: []string{"help", "one", "three", "two"}, - }, - { - Args: "--completion-bash --flag-0 --", - ExpectedOptions: []string{"--flag-0", "--flag-1", "--help"}, - }, - { - Args: "--completion-bash --flag-1", - ExpectedOptions: []string{"opt1", "opt2", "opt3"}, - }, - { - Args: "--completion-bash --flag-1 opt", - ExpectedOptions: []string{"opt1", "opt2", "opt3"}, - }, - { - Args: "--completion-bash --flag-1 opt1", - ExpectedOptions: []string{"help", "one", "three", "two"}, - }, - { - Args: "--completion-bash --flag-1 opt1 --", - ExpectedOptions: []string{"--flag-0", "--flag-1", "--help"}, - }, - - // Try Subcommand - { - Args: "--completion-bash two", - ExpectedOptions: []string(nil), - }, - { - Args: "--completion-bash two --", - ExpectedOptions: []string{"--help", "--flag-2", "--flag-3", "--flag-0", "--flag-1"}, - }, - { - Args: "--completion-bash two --flag", - ExpectedOptions: []string{"--help", "--flag-2", "--flag-3", "--flag-0", "--flag-1"}, - }, - { - Args: "--completion-bash two --flag-2", - ExpectedOptions: []string(nil), - }, - { - // Top level flags carry downwards - Args: "--completion-bash two --flag-1", - ExpectedOptions: []string{"opt1", "opt2", "opt3"}, - }, - { - // Top level flags carry downwards - Args: "--completion-bash two --flag-1 opt", - ExpectedOptions: []string{"opt1", "opt2", "opt3"}, - }, - { - // Top level flags carry downwards - Args: "--completion-bash two --flag-1 opt1", - ExpectedOptions: []string(nil), - }, - { - Args: "--completion-bash two --flag-3", - ExpectedOptions: []string{"opt4", "opt5", "opt6"}, - }, - { - Args: "--completion-bash two --flag-3 opt", - ExpectedOptions: []string{"opt4", "opt5", "opt6"}, - }, - { - Args: "--completion-bash two --flag-3 opt4", - ExpectedOptions: []string(nil), - }, - { - Args: "--completion-bash two --flag-3 opt4 --", - ExpectedOptions: []string{"--help", "--flag-2", "--flag-3", "--flag-0", "--flag-1"}, - }, - - // Args complete - { - // After a command with an arg with no options, nothing should be - // shown - Args: "--completion-bash three ", - ExpectedOptions: []string(nil), - }, - { - // After a command with an arg, explicitly starting a flag should - // complete flags - Args: "--completion-bash three --", - ExpectedOptions: []string{"--flag-0", "--flag-1", "--flag-4", "--help"}, - }, - { - // After a command with an arg that does have completions, they - // should be shown - Args: "--completion-bash three arg1 ", - ExpectedOptions: []string{"arg-2-opt-1", "arg-2-opt-2"}, - }, - { - // After a command with an arg that does have completions, but a - // flag is started, flag options should be completed - Args: "--completion-bash three arg1 --", - ExpectedOptions: []string{"--flag-0", "--flag-1", "--flag-4", "--help"}, - }, - { - // After a command with an arg that has no completions, and isn't first, - // nothing should be shown - Args: "--completion-bash three arg1 arg2 ", - ExpectedOptions: []string(nil), - }, - { - // After a command with a different arg that also has completions, - // those different options should be shown - Args: "--completion-bash three arg1 arg2 arg3 ", - ExpectedOptions: []string{"arg-4-opt-1", "arg-4-opt-2"}, - }, - { - // After a command with all args listed, nothing should complete - Args: "--completion-bash three arg1 arg2 arg3 arg4", - ExpectedOptions: []string(nil), - }, - } - - for _, c := range cases { - context, _ := a.ParseContext(strings.Split(c.Args, " ")) - args := a.completionOptions(context) - - sort.Strings(args) - sort.Strings(c.ExpectedOptions) - - assert.Equal(t, c.ExpectedOptions, args, "Expected != Actual: [%v] != [%v]. \nInput was: [%v]", c.ExpectedOptions, args, c.Args) - } - -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/args.go b/vendor/gopkg.in/alecthomas/kingpin.v2/args.go index 3edb4489..8d3f70f8 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/args.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/args.go @@ -1,8 +1,6 @@ package kingpin -import ( - "fmt" -) +import "fmt" type argGroup struct { args []*ArgClause @@ -16,19 +14,6 @@ func (a *argGroup) have() bool { return len(a.args) > 0 } -// GetArg gets an argument definition. -// -// This allows existing arguments to be modified after definition but before parsing. Useful for -// modular applications. -func (a *argGroup) GetArg(name string) *ArgClause { - for _, arg := range a.args { - if arg.name == name { - return arg - } - } - return nil -} - func (a *argGroup) Arg(name, help string) *ArgClause { arg := newArg(name, help) a.args = append(a.args, arg) @@ -64,14 +49,12 @@ func (a *argGroup) init() error { } type ArgClause struct { - actionMixin parserMixin - completionsMixin - envarMixin - name string - help string - defaultValues []string - required bool + name string + help string + defaultValue string + required bool + dispatch Action } func newArg(name, help string) *ArgClause { @@ -82,38 +65,6 @@ func newArg(name, help string) *ArgClause { return a } -func (a *ArgClause) setDefault() error { - if a.HasEnvarValue() { - if v, ok := a.value.(remainderArg); !ok || !v.IsCumulative() { - // Use the value as-is - return a.value.Set(a.GetEnvarValue()) - } else { - for _, value := range a.GetSplitEnvarValue() { - if err := a.value.Set(value); err != nil { - return err - } - } - return nil - } - } - - if len(a.defaultValues) > 0 { - for _, defaultValue := range a.defaultValues { - if err := a.value.Set(defaultValue); err != nil { - return err - } - } - return nil - } - - return nil -} - -func (a *ArgClause) needsValue() bool { - haveDefault := len(a.defaultValues) > 0 - return a.required && !(haveDefault || a.HasEnvarValue()) -} - func (a *ArgClause) consumesRemainder() bool { if r, ok := a.value.(remainderArg); ok { return r.IsCumulative() @@ -127,55 +78,19 @@ func (a *ArgClause) Required() *ArgClause { return a } -// Default values for this argument. They *must* be parseable by the value of the argument. -func (a *ArgClause) Default(values ...string) *ArgClause { - a.defaultValues = values - return a -} - -// Envar overrides the default value(s) for a flag from an environment variable, -// if it is set. Several default values can be provided by using new lines to -// separate them. -func (a *ArgClause) Envar(name string) *ArgClause { - a.envar = name - a.noEnvar = false - return a -} - -// NoEnvar forces environment variable defaults to be disabled for this flag. -// Most useful in conjunction with app.DefaultEnvars(). -func (a *ArgClause) NoEnvar() *ArgClause { - a.envar = "" - a.noEnvar = true - return a -} - -func (a *ArgClause) Action(action Action) *ArgClause { - a.addAction(action) - return a -} - -func (a *ArgClause) PreAction(action Action) *ArgClause { - a.addPreAction(action) - return a -} - -// HintAction registers a HintAction (function) for the arg to provide completions -func (a *ArgClause) HintAction(action HintAction) *ArgClause { - a.addHintAction(action) +// Default value for this argument. It *must* be parseable by the value of the argument. +func (a *ArgClause) Default(value string) *ArgClause { + a.defaultValue = value return a } -// HintOptions registers any number of options for the flag to provide completions -func (a *ArgClause) HintOptions(options ...string) *ArgClause { - a.addHintAction(func() []string { - return options - }) +func (a *ArgClause) Action(dispatch Action) *ArgClause { + a.dispatch = dispatch return a } func (a *ArgClause) init() error { - if a.required && len(a.defaultValues) > 0 { + if a.required && a.defaultValue != "" { return fmt.Errorf("required argument '%s' with unusable default value", a.name) } if a.value == nil { diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/args_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/args_test.go index 104874a5..b7794653 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/args_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/args_test.go @@ -1,11 +1,9 @@ package kingpin import ( - "io/ioutil" "testing" - "os" - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" ) func TestArgRemainder(t *testing.T) { @@ -25,12 +23,9 @@ func TestArgRemainderErrorsWhenNotLast(t *testing.T) { } func TestArgMultipleRequired(t *testing.T) { - terminated := false app := New("test", "") - app.Version("0.0.0").Writer(ioutil.Discard) app.Arg("a", "").Required().String() app.Arg("b", "").Required().String() - app.Terminate(func(int) { terminated = true }) _, err := app.Parse([]string{}) assert.Error(t, err) @@ -38,8 +33,6 @@ func TestArgMultipleRequired(t *testing.T) { assert.Error(t, err) _, err = app.Parse([]string{"A", "B"}) assert.NoError(t, err) - _, err = app.Parse([]string{"--version"}) - assert.True(t, terminated) } func TestInvalidArgsDefaultCanBeOverridden(t *testing.T) { @@ -48,37 +41,3 @@ func TestInvalidArgsDefaultCanBeOverridden(t *testing.T) { _, err := app.Parse([]string{}) assert.Error(t, err) } - -func TestArgMultipleValuesDefault(t *testing.T) { - app := New("test", "") - a := app.Arg("a", "").Default("default1", "default2").Strings() - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, []string{"default1", "default2"}, *a) -} - -func TestRequiredArgWithEnvarMissingErrors(t *testing.T) { - app := newTestApp() - app.Arg("t", "").Envar("TEST_ARG_ENVAR").Required().Int() - _, err := app.Parse([]string{}) - assert.Error(t, err) -} - -func TestArgRequiredWithEnvar(t *testing.T) { - os.Setenv("TEST_ARG_ENVAR", "123") - app := newTestApp() - flag := app.Arg("t", "").Envar("TEST_ARG_ENVAR").Required().Int() - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, 123, *flag) -} - -func TestSubcommandArgRequiredWithEnvar(t *testing.T) { - os.Setenv("TEST_ARG_ENVAR", "123") - app := newTestApp() - cmd := app.Command("command", "") - flag := cmd.Arg("t", "").Envar("TEST_ARG_ENVAR").Required().Int() - _, err := app.Parse([]string{"command"}) - assert.NoError(t, err) - assert.Equal(t, 123, *flag) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/cmd.go b/vendor/gopkg.in/alecthomas/kingpin.v2/cmd.go index 0473b871..6c398f0d 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/cmd.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/cmd.go @@ -5,92 +5,6 @@ import ( "strings" ) -type cmdMixin struct { - *flagGroup - *argGroup - *cmdGroup - actionMixin -} - -// CmdCompletion returns completion options for arguments, if that's where -// parsing left off, or commands if there aren't any unsatisfied args. -func (c *cmdMixin) CmdCompletion(context *ParseContext) []string { - var options []string - - // Count args already satisfied - we won't complete those, and add any - // default commands' alternatives, since they weren't listed explicitly - // and the user may want to explicitly list something else. - argsSatisfied := 0 - for _, el := range context.Elements { - switch clause := el.Clause.(type) { - case *ArgClause: - if el.Value != nil && *el.Value != "" { - argsSatisfied++ - } - case *CmdClause: - options = append(options, clause.completionAlts...) - default: - } - } - - if argsSatisfied < len(c.argGroup.args) { - // Since not all args have been satisfied, show options for the current one - options = append(options, c.argGroup.args[argsSatisfied].resolveCompletions()...) - } else { - // If all args are satisfied, then go back to completing commands - for _, cmd := range c.cmdGroup.commandOrder { - if !cmd.hidden { - options = append(options, cmd.name) - } - } - } - - return options -} - -func (c *cmdMixin) FlagCompletion(flagName string, flagValue string) (choices []string, flagMatch bool, optionMatch bool) { - // Check if flagName matches a known flag. - // If it does, show the options for the flag - // Otherwise, show all flags - - options := []string{} - - for _, flag := range c.flagGroup.flagOrder { - // Loop through each flag and determine if a match exists - if flag.name == flagName { - // User typed entire flag. Need to look for flag options. - options = flag.resolveCompletions() - if len(options) == 0 { - // No Options to Choose From, Assume Match. - return options, true, true - } - - // Loop options to find if the user specified value matches - isPrefix := false - matched := false - - for _, opt := range options { - if flagValue == opt { - matched = true - } else if strings.HasPrefix(opt, flagValue) { - isPrefix = true - } - } - - // Matched Flag Directly - // Flag Value Not Prefixed, and Matched Directly - return options, true, !isPrefix && matched - } - - if !flag.hidden { - options = append(options, "--"+flag.name) - } - } - // No Flag directly matched. - return options, false, false - -} - type cmdGroup struct { app *Application parent *CmdClause @@ -98,31 +12,6 @@ type cmdGroup struct { commandOrder []*CmdClause } -func (c *cmdGroup) defaultSubcommand() *CmdClause { - for _, cmd := range c.commandOrder { - if cmd.isDefault { - return cmd - } - } - return nil -} - -func (c *cmdGroup) cmdNames() []string { - names := make([]string, 0, len(c.commandOrder)) - for _, cmd := range c.commandOrder { - names = append(names, cmd.name) - } - return names -} - -// GetArg gets a command definition. -// -// This allows existing commands to be modified after definition but before parsing. Useful for -// modular applications. -func (c *cmdGroup) GetCommand(name string) *CmdClause { - return c.commands[name] -} - func newCmdGroup(app *Application) *cmdGroup { return &cmdGroup{ app: app, @@ -149,34 +38,17 @@ func (c *cmdGroup) addCommand(name, help string) *CmdClause { func (c *cmdGroup) init() error { seen := map[string]bool{} - if c.defaultSubcommand() != nil && !c.have() { - return fmt.Errorf("default subcommand %q provided but no subcommands defined", c.defaultSubcommand().name) - } - defaults := []string{} for _, cmd := range c.commandOrder { - if cmd.isDefault { - defaults = append(defaults, cmd.name) - } if seen[cmd.name] { - return fmt.Errorf("duplicate command %q", cmd.name) + return fmt.Errorf("duplicate command '%s'", cmd.name) } seen[cmd.name] = true - for _, alias := range cmd.aliases { - if seen[alias] { - return fmt.Errorf("alias duplicates existing command %q", alias) - } - c.commands[alias] = cmd - } if err := cmd.init(); err != nil { return err } } - if len(defaults) > 1 { - return fmt.Errorf("more than one default subcommand exists: %s", strings.Join(defaults, ", ")) - } return nil } - func (c *cmdGroup) have() bool { return len(c.commands) > 0 } @@ -186,32 +58,25 @@ type CmdClauseValidator func(*CmdClause) error // A CmdClause is a single top-level command. It encapsulates a set of flags // and either subcommands or positional arguments. type CmdClause struct { - cmdMixin - app *Application - name string - aliases []string - help string - isDefault bool - validator CmdClauseValidator - hidden bool - completionAlts []string + *flagGroup + *argGroup + *cmdGroup + app *Application + name string + help string + dispatch Action + validator CmdClauseValidator } func newCommand(app *Application, name, help string) *CmdClause { c := &CmdClause{ - app: app, - name: name, - help: help, + flagGroup: newFlagGroup(), + argGroup: newArgGroup(), + cmdGroup: newCmdGroup(app), + app: app, + name: name, + help: help, } - c.flagGroup = newFlagGroup() - c.argGroup = newArgGroup() - c.cmdGroup = newCmdGroup(app) - return c -} - -// Add an Alias for this command. -func (c *CmdClause) Alias(name string) *CmdClause { - c.aliases = append(c.aliases, name) return c } @@ -236,24 +101,13 @@ func (c *CmdClause) Command(name, help string) *CmdClause { return cmd } -// Default makes this command the default if commands don't match. -func (c *CmdClause) Default() *CmdClause { - c.isDefault = true - return c -} - -func (c *CmdClause) Action(action Action) *CmdClause { - c.addAction(action) - return c -} - -func (c *CmdClause) PreAction(action Action) *CmdClause { - c.addPreAction(action) +func (c *CmdClause) Action(dispatch Action) *CmdClause { + c.dispatch = dispatch return c } func (c *CmdClause) init() error { - if err := c.flagGroup.init(c.app.defaultEnvarPrefix()); err != nil { + if err := c.flagGroup.init(); err != nil { return err } if c.argGroup.have() && c.cmdGroup.have() { @@ -267,8 +121,3 @@ func (c *CmdClause) init() error { } return nil } - -func (c *CmdClause) Hidden() *CmdClause { - c.hidden = true - return c -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/cmd/genvalues/main.go b/vendor/gopkg.in/alecthomas/kingpin.v2/cmd/genvalues/main.go deleted file mode 100644 index 14115390..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/cmd/genvalues/main.go +++ /dev/null @@ -1,134 +0,0 @@ -package main - -import ( - "encoding/json" - "os" - "os/exec" - "strings" - - "github.com/alecthomas/template" -) - -const ( - tmpl = `package kingpin - -// This file is autogenerated by "go generate .". Do not modify. - -{{range .}} -{{if not .NoValueParser}} -// -- {{.Type}} Value -type {{.|ValueName}} struct { v *{{.Type}} } - -func new{{.|Name}}Value(p *{{.Type}}) *{{.|ValueName}} { - return &{{.|ValueName}}{p} -} - -func (f *{{.|ValueName}}) Set(s string) error { - v, err := {{.Parser}} - if err == nil { - *f.v = ({{.Type}})(v) - } - return err -} - -func (f *{{.|ValueName}}) Get() interface{} { return ({{.Type}})(*f.v) } - -func (f *{{.|ValueName}}) String() string { return {{.|Format}} } - -{{if .Help}} -// {{.Help}} -{{else}}\ -// {{.|Name}} parses the next command-line value as {{.Type}}. -{{end}}\ -func (p *parserMixin) {{.|Name}}() (target *{{.Type}}) { - target = new({{.Type}}) - p.{{.|Name}}Var(target) - return -} - -func (p *parserMixin) {{.|Name}}Var(target *{{.Type}}) { - p.SetValue(new{{.|Name}}Value(target)) -} - -{{end}} -// {{.|Plural}} accumulates {{.Type}} values into a slice. -func (p *parserMixin) {{.|Plural}}() (target *[]{{.Type}}) { - target = new([]{{.Type}}) - p.{{.|Plural}}Var(target) - return -} - -func (p *parserMixin) {{.|Plural}}Var(target *[]{{.Type}}) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return new{{.|Name}}Value(v.(*{{.Type}})) - })) -} - -{{end}} -` -) - -type Value struct { - Name string `json:"name"` - NoValueParser bool `json:"no_value_parser"` - Type string `json:"type"` - Parser string `json:"parser"` - Format string `json:"format"` - Plural string `json:"plural"` - Help string `json:"help"` -} - -func fatalIfError(err error) { - if err != nil { - panic(err) - } -} - -func main() { - r, err := os.Open("values.json") - fatalIfError(err) - defer r.Close() - - v := []Value{} - err = json.NewDecoder(r).Decode(&v) - fatalIfError(err) - - valueName := func(v *Value) string { - if v.Name != "" { - return v.Name - } - return strings.Title(v.Type) - } - - t, err := template.New("genvalues").Funcs(template.FuncMap{ - "Lower": strings.ToLower, - "Format": func(v *Value) string { - if v.Format != "" { - return v.Format - } - return "fmt.Sprintf(\"%v\", *f)" - }, - "ValueName": func(v *Value) string { - name := valueName(v) - return strings.ToLower(name[0:1]) + name[1:] + "Value" - }, - "Name": valueName, - "Plural": func(v *Value) string { - if v.Plural != "" { - return v.Plural - } - return valueName(v) + "List" - }, - }).Parse(tmpl) - fatalIfError(err) - - w, err := os.Create("values_generated.go") - fatalIfError(err) - defer w.Close() - - err = t.Execute(w, v) - fatalIfError(err) - - err = exec.Command("goimports", "-w", "values_generated.go").Run() - fatalIfError(err) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/cmd_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/cmd_test.go index 86877dae..ae606885 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/cmd_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/cmd_test.go @@ -1,38 +1,18 @@ package kingpin import ( - "sort" "strings" - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" "testing" ) func parseAndExecute(app *Application, context *ParseContext) (string, error) { - if err := parse(context, app); err != nil { + if _, err := parse(context, app); err != nil { return "", err } - - selected, err := app.setValues(context) - if err != nil { - return "", err - } - - return app.execute(context, selected) -} - -func complete(t *testing.T, app *Application, args ...string) []string { - context, err := app.ParseContext(args) - assert.NoError(t, err) - if err != nil { - return nil - } - - completions := app.completionOptions(context) - sort.Strings(completions) - - return completions + return app.execute(context) } func TestNestedCommands(t *testing.T) { @@ -46,7 +26,7 @@ func TestNestedCommands(t *testing.T) { sub2.Flag("sub2", "") sub2.Command("sub2sub1", "") - context := tokenize([]string{"sub1", "sub1sub1", "sub1sub1end"}, false) + context := tokenize([]string{"sub1", "sub1sub1", "sub1sub1end"}) selected, err := parseAndExecute(app, context) assert.NoError(t, err) assert.True(t, context.EOL()) @@ -58,7 +38,7 @@ func TestNestedCommandsWithArgs(t *testing.T) { cmd := app.Command("a", "").Command("b", "") a := cmd.Arg("a", "").String() b := cmd.Arg("b", "").String() - context := tokenize([]string{"a", "b", "c", "d"}, false) + context := tokenize([]string{"a", "b", "c", "d"}) selected, err := parseAndExecute(app, context) assert.NoError(t, err) assert.True(t, context.EOL()) @@ -74,7 +54,7 @@ func TestNestedCommandsWithFlags(t *testing.T) { b := cmd.Flag("bbb", "").Short('b').String() err := app.init() assert.NoError(t, err) - context := tokenize(strings.Split("a b --aaa x -b x", " "), false) + context := tokenize(strings.Split("a b --aaa x -b x", " ")) selected, err := parseAndExecute(app, context) assert.NoError(t, err) assert.True(t, context.EOL()) @@ -93,7 +73,7 @@ func TestNestedCommandWithMergedFlags(t *testing.T) { cmd00f0 := cmd00.Flag("aaflag", "").Bool() err := app.init() assert.NoError(t, err) - context := tokenize(strings.Split("a aa --aflag --aaflag", " "), false) + context := tokenize(strings.Split("a aa --aflag --aaflag", " ")) selected, err := parseAndExecute(app, context) assert.NoError(t, err) assert.True(t, *cmd0f0) @@ -120,7 +100,7 @@ func TestNestedCommandWithArgAndMergedFlags(t *testing.T) { cmd00f0 := cmd00.Flag("aaflag", "").Bool() err := app.init() assert.NoError(t, err) - context := tokenize(strings.Split("a aa hello --aflag --aaflag", " "), false) + context := tokenize(strings.Split("a aa hello --aflag --aaflag", " ")) selected, err := parseAndExecute(app, context) assert.NoError(t, err) assert.True(t, *cmd0f0) @@ -128,247 +108,3 @@ func TestNestedCommandWithArgAndMergedFlags(t *testing.T) { assert.Equal(t, "a aa", selected) assert.Equal(t, "hello", *cmd00a0) } - -func TestDefaultSubcommandEOL(t *testing.T) { - app := newTestApp() - c0 := app.Command("c0", "").Default() - c0.Command("c01", "").Default() - c0.Command("c02", "") - - cmd, err := app.Parse([]string{"c0"}) - assert.NoError(t, err) - assert.Equal(t, "c0 c01", cmd) -} - -func TestDefaultSubcommandWithArg(t *testing.T) { - app := newTestApp() - c0 := app.Command("c0", "").Default() - c01 := c0.Command("c01", "").Default() - c012 := c01.Command("c012", "").Default() - a0 := c012.Arg("a0", "").String() - c0.Command("c02", "") - - cmd, err := app.Parse([]string{"c0", "hello"}) - assert.NoError(t, err) - assert.Equal(t, "c0 c01 c012", cmd) - assert.Equal(t, "hello", *a0) -} - -func TestDefaultSubcommandWithFlags(t *testing.T) { - app := newTestApp() - c0 := app.Command("c0", "").Default() - _ = c0.Flag("f0", "").Int() - c0c1 := c0.Command("c1", "").Default() - c0c1f1 := c0c1.Flag("f1", "").Int() - selected, err := app.Parse([]string{"--f1=2"}) - assert.NoError(t, err) - assert.Equal(t, "c0 c1", selected) - assert.Equal(t, 2, *c0c1f1) - _, err = app.Parse([]string{"--f2"}) - assert.Error(t, err) -} - -func TestMultipleDefaultCommands(t *testing.T) { - app := newTestApp() - app.Command("c0", "").Default() - app.Command("c1", "").Default() - _, err := app.Parse([]string{}) - assert.Error(t, err) -} - -func TestAliasedCommand(t *testing.T) { - app := newTestApp() - app.Command("one", "").Alias("two") - selected, _ := app.Parse([]string{"one"}) - assert.Equal(t, "one", selected) - selected, _ = app.Parse([]string{"two"}) - assert.Equal(t, "one", selected) - // 2 due to "help" and "one" - assert.Equal(t, 2, len(app.Model().FlattenedCommands())) -} - -func TestDuplicateAlias(t *testing.T) { - app := newTestApp() - app.Command("one", "") - app.Command("two", "").Alias("one") - _, err := app.Parse([]string{"one"}) - assert.Error(t, err) -} - -func TestFlagCompletion(t *testing.T) { - app := newTestApp() - app.Command("one", "") - two := app.Command("two", "") - two.Flag("flag-1", "") - two.Flag("flag-2", "").HintOptions("opt1", "opt2", "opt3") - two.Flag("flag-3", "") - - cases := []struct { - target cmdMixin - flagName string - flagValue string - expectedFlagMatch bool - expectedOptionMatch bool - expectedFlags []string - }{ - { - // Test top level flags - target: app.cmdMixin, - flagName: "", - flagValue: "", - expectedFlagMatch: false, - expectedOptionMatch: false, - expectedFlags: []string{"--help"}, - }, - { - // Test no flag passed - target: two.cmdMixin, - flagName: "", - flagValue: "", - expectedFlagMatch: false, - expectedOptionMatch: false, - expectedFlags: []string{"--flag-1", "--flag-2", "--flag-3"}, - }, - { - // Test an incomplete flag. Should still give all options as if the flag wasn't given at all. - target: two.cmdMixin, - flagName: "flag-", - flagValue: "", - expectedFlagMatch: false, - expectedOptionMatch: false, - expectedFlags: []string{"--flag-1", "--flag-2", "--flag-3"}, - }, - { - // Test with a complete flag. Should show available choices for the flag - // This flag has no options. No options should be produced. - // Should also report an option was matched - target: two.cmdMixin, - flagName: "flag-1", - flagValue: "", - expectedFlagMatch: true, - expectedOptionMatch: true, - expectedFlags: []string(nil), - }, - { - // Test with a complete flag. Should show available choices for the flag - target: two.cmdMixin, - flagName: "flag-2", - flagValue: "", - expectedFlagMatch: true, - expectedOptionMatch: false, - expectedFlags: []string{"opt1", "opt2", "opt3"}, - }, - { - // Test with a complete flag and complete option for that flag. - target: two.cmdMixin, - flagName: "flag-2", - flagValue: "opt1", - expectedFlagMatch: true, - expectedOptionMatch: true, - expectedFlags: []string{"opt1", "opt2", "opt3"}, - }, - } - - for i, c := range cases { - choices, flagMatch, optionMatch := c.target.FlagCompletion(c.flagName, c.flagValue) - assert.Equal(t, c.expectedFlags, choices, "Test case %d: expectedFlags != actual flags", i+1) - assert.Equal(t, c.expectedFlagMatch, flagMatch, "Test case %d: expectedFlagMatch != flagMatch", i+1) - assert.Equal(t, c.expectedOptionMatch, optionMatch, "Test case %d: expectedOptionMatch != optionMatch", i+1) - } - -} - -func TestCmdCompletion(t *testing.T) { - app := newTestApp() - app.Command("one", "") - two := app.Command("two", "") - two.Command("sub1", "") - two.Command("sub2", "") - - assert.Equal(t, []string{"help", "one", "two"}, complete(t, app)) - assert.Equal(t, []string{"sub1", "sub2"}, complete(t, app, "two")) -} - -func TestHiddenCmdCompletion(t *testing.T) { - app := newTestApp() - - // top level visible & hidden cmds, with no sub-cmds - app.Command("visible1", "") - app.Command("hidden1", "").Hidden() - - // visible cmd with visible & hidden sub-cmds - visible2 := app.Command("visible2", "") - visible2.Command("visible2-visible", "") - visible2.Command("visible2-hidden", "").Hidden() - - // hidden cmd with visible & hidden sub-cmds - hidden2 := app.Command("hidden2", "").Hidden() - hidden2.Command("hidden2-visible", "") - hidden2.Command("hidden2-hidden", "").Hidden() - - // Only top level visible cmds should show - assert.Equal(t, []string{"help", "visible1", "visible2"}, complete(t, app)) - - // Only visible sub-cmds should show - assert.Equal(t, []string{"visible2-visible"}, complete(t, app, "visible2")) - - // Hidden commands should still complete visible sub-cmds - assert.Equal(t, []string{"hidden2-visible"}, complete(t, app, "hidden2")) -} - -func TestDefaultCmdCompletion(t *testing.T) { - app := newTestApp() - - cmd1 := app.Command("cmd1", "") - - cmd1Sub1 := cmd1.Command("cmd1-sub1", "") - cmd1Sub1.Arg("cmd1-sub1-arg1", "").HintOptions("cmd1-arg1").String() - - cmd2 := app.Command("cmd2", "").Default() - - cmd2.Command("cmd2-sub1", "") - - cmd2Sub2 := cmd2.Command("cmd2-sub2", "").Default() - - cmd2Sub2Sub1 := cmd2Sub2.Command("cmd2-sub2-sub1", "").Default() - cmd2Sub2Sub1.Arg("cmd2-sub2-sub1-arg1", "").HintOptions("cmd2-sub2-sub1-arg1").String() - cmd2Sub2Sub1.Arg("cmd2-sub2-sub1-arg2", "").HintOptions("cmd2-sub2-sub1-arg2").String() - - // Without args, should get: - // - root cmds (incuding implicit "help") - // - thread of default cmds - // - first arg hints for the final default cmd - assert.Equal(t, []string{"cmd1", "cmd2", "cmd2-sub1", "cmd2-sub2", "cmd2-sub2-sub1", "cmd2-sub2-sub1-arg1", "help"}, complete(t, app)) - - // With a non-default cmd already listed, should get: - // - sub cmds of that arg - assert.Equal(t, []string{"cmd1-sub1"}, complete(t, app, "cmd1")) - - // With an explicit default cmd listed, should get: - // - default child-cmds - // - first arg hints for the final default cmd - assert.Equal(t, []string{"cmd2-sub1", "cmd2-sub2", "cmd2-sub2-sub1", "cmd2-sub2-sub1-arg1"}, complete(t, app, "cmd2")) - - // Args should be completed when all preceding cmds are explicit, and when - // any of them are implicit (not listed). Check this by trying all possible - // combinations of choosing/excluding the three levels of cmds. This tests - // root-level default, middle default, and end default. - for i := 0; i < 8; i++ { - var cmdline []string - - if i&1 != 0 { - cmdline = append(cmdline, "cmd2") - } - if i&2 != 0 { - cmdline = append(cmdline, "cmd2-sub2") - } - if i&4 != 0 { - cmdline = append(cmdline, "cmd2-sub2-sub1") - } - - assert.Contains(t, complete(t, app, cmdline...), "cmd2-sub2-sub1-arg1", "with cmdline: %v", cmdline) - } - - // With both args of a default sub cmd, should get no completions - assert.Empty(t, complete(t, app, "arg1", "arg2")) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/completions.go b/vendor/gopkg.in/alecthomas/kingpin.v2/completions.go deleted file mode 100644 index 6e7b409f..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/completions.go +++ /dev/null @@ -1,33 +0,0 @@ -package kingpin - -// HintAction is a function type who is expected to return a slice of possible -// command line arguments. -type HintAction func() []string -type completionsMixin struct { - hintActions []HintAction - builtinHintActions []HintAction -} - -func (a *completionsMixin) addHintAction(action HintAction) { - a.hintActions = append(a.hintActions, action) -} - -// Allow adding of HintActions which are added internally, ie, EnumVar -func (a *completionsMixin) addHintActionBuiltin(action HintAction) { - a.builtinHintActions = append(a.builtinHintActions, action) -} - -func (a *completionsMixin) resolveCompletions() []string { - var hints []string - - options := a.builtinHintActions - if len(a.hintActions) > 0 { - // User specified their own hintActions. Use those instead. - options = a.hintActions - } - - for _, hintAction := range options { - hints = append(hints, hintAction()...) - } - return hints -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/completions_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/completions_test.go deleted file mode 100644 index 74656ea8..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/completions_test.go +++ /dev/null @@ -1,78 +0,0 @@ -package kingpin - -import ( - "testing" - - "github.com/alecthomas/assert" -) - -func TestResolveWithBuiltin(t *testing.T) { - a := completionsMixin{} - - hintAction1 := func() []string { - return []string{"opt1", "opt2"} - } - hintAction2 := func() []string { - return []string{"opt3", "opt4"} - } - - a.builtinHintActions = []HintAction{hintAction1, hintAction2} - - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2", "opt3", "opt4"}, args) -} - -func TestResolveWithUser(t *testing.T) { - a := completionsMixin{} - hintAction1 := func() []string { - return []string{"opt1", "opt2"} - } - hintAction2 := func() []string { - return []string{"opt3", "opt4"} - } - - a.hintActions = []HintAction{hintAction1, hintAction2} - - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2", "opt3", "opt4"}, args) -} - -func TestResolveWithCombination(t *testing.T) { - a := completionsMixin{} - builtin := func() []string { - return []string{"opt1", "opt2"} - } - user := func() []string { - return []string{"opt3", "opt4"} - } - - a.builtinHintActions = []HintAction{builtin} - a.hintActions = []HintAction{user} - - args := a.resolveCompletions() - // User provided args take preference over builtin (enum-defined) args. - assert.Equal(t, []string{"opt3", "opt4"}, args) -} - -func TestAddHintAction(t *testing.T) { - a := completionsMixin{} - hintFunc := func() []string { - return []string{"opt1", "opt2"} - } - a.addHintAction(hintFunc) - - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} - -func TestAddHintActionBuiltin(t *testing.T) { - a := completionsMixin{} - hintFunc := func() []string { - return []string{"opt1", "opt2"} - } - - a.addHintActionBuiltin(hintFunc) - - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/envar.go b/vendor/gopkg.in/alecthomas/kingpin.v2/envar.go deleted file mode 100644 index c01a27df..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/envar.go +++ /dev/null @@ -1,45 +0,0 @@ -package kingpin - -import ( - "os" - "regexp" -) - -var ( - envVarValuesSeparator = "\r?\n" - envVarValuesTrimmer = regexp.MustCompile(envVarValuesSeparator + "$") - envVarValuesSplitter = regexp.MustCompile(envVarValuesSeparator) -) - -type envarMixin struct { - envar string - noEnvar bool -} - -func (e *envarMixin) HasEnvarValue() bool { - return e.GetEnvarValue() != "" -} - -func (e *envarMixin) GetEnvarValue() string { - if e.noEnvar || e.envar == "" { - return "" - } - return os.Getenv(e.envar) -} - -func (e *envarMixin) GetSplitEnvarValue() []string { - values := make([]string, 0) - - envarValue := e.GetEnvarValue() - if envarValue == "" { - return values - } - - // Split by new line to extract multiple values, if any. - trimmed := envVarValuesTrimmer.ReplaceAllString(envarValue, "") - for _, value := range envVarValuesSplitter.Split(trimmed, -1) { - values = append(values, value) - } - - return values -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/examples_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/examples_test.go index 7c3e34f0..55741d36 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/examples_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/examples_test.go @@ -17,10 +17,6 @@ func (h *HTTPHeaderValue) Set(value string) error { return nil } -func (h *HTTPHeaderValue) Get() interface{} { - return (http.Header)(*h) -} - func (h *HTTPHeaderValue) String() string { return "" } diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/flags.go b/vendor/gopkg.in/alecthomas/kingpin.v2/flags.go index c9d677a5..9f43b41a 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/flags.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/flags.go @@ -2,6 +2,7 @@ package kingpin import ( "fmt" + "os" "strings" ) @@ -13,17 +14,19 @@ type flagGroup struct { func newFlagGroup() *flagGroup { return &flagGroup{ - short: map[string]*FlagClause{}, - long: map[string]*FlagClause{}, + short: make(map[string]*FlagClause), + long: make(map[string]*FlagClause), } } -// GetFlag gets a flag definition. -// -// This allows existing flags to be modified after definition but before parsing. Useful for -// modular applications. -func (f *flagGroup) GetFlag(name string) *FlagClause { - return f.long[name] +func (f *flagGroup) merge(o *flagGroup) { + for _, flag := range o.flagOrder { + if flag.shorthand != 0 { + f.short[string(flag.shorthand)] = flag + } + f.long[flag.name] = flag + f.flagOrder = append(f.flagOrder, flag) + } } // Flag defines a new flag with the given long name and help. @@ -34,14 +37,8 @@ func (f *flagGroup) Flag(name, help string) *FlagClause { return flag } -func (f *flagGroup) init(defaultEnvarPrefix string) error { - if err := f.checkDuplicates(); err != nil { - return err - } +func (f *flagGroup) init() error { for _, flag := range f.long { - if defaultEnvarPrefix != "" && !flag.noEnvar && flag.envar == "" { - flag.envar = envarTransform(defaultEnvarPrefix + "_" + flag.name) - } if err := flag.init(); err != nil { return err } @@ -52,25 +49,7 @@ func (f *flagGroup) init(defaultEnvarPrefix string) error { return nil } -func (f *flagGroup) checkDuplicates() error { - seenShort := map[byte]bool{} - seenLong := map[string]bool{} - for _, flag := range f.flagOrder { - if flag.shorthand != 0 { - if _, ok := seenShort[flag.shorthand]; ok { - return fmt.Errorf("duplicate short flag -%c", flag.shorthand) - } - seenShort[flag.shorthand] = true - } - if _, ok := seenLong[flag.name]; ok { - return fmt.Errorf("duplicate long flag --%s", flag.name) - } - seenLong[flag.name] = true - } - return nil -} - -func (f *flagGroup) parse(context *ParseContext) (*FlagClause, error) { +func (f *flagGroup) parse(context *ParseContext) error { var token *Token loop: @@ -89,21 +68,18 @@ loop: name := token.Value if token.Type == TokenLong { - flag, ok = f.long[name] - if !ok { - if strings.HasPrefix(name, "no-") { - name = name[3:] - invert = true - } - flag, ok = f.long[name] + if strings.HasPrefix(name, "no-") { + name = name[3:] + invert = true } + flag, ok = f.long[name] if !ok { - return nil, fmt.Errorf("unknown long flag '%s'", flagToken) + return fmt.Errorf("unknown long flag '%s'", flagToken) } } else { flag, ok = f.short[name] if !ok { - return nil, fmt.Errorf("unknown short flag '%s'", flagToken) + return fmt.Errorf("unknown short flag '%s'", flagToken) } } @@ -118,40 +94,46 @@ loop: } } else { if invert { - context.Push(token) - return nil, fmt.Errorf("unknown long flag '%s'", flagToken) + return fmt.Errorf("unknown long flag '%s'", flagToken) } token = context.Peek() if token.Type != TokenArg { - context.Push(token) - return nil, fmt.Errorf("expected argument for flag '%s'", flagToken) + return fmt.Errorf("expected argument for flag '%s'", flagToken) } context.Next() defaultValue = token.Value } context.matchedFlag(flag, defaultValue) - return flag, nil default: break loop } } - return nil, nil + return nil +} + +func (f *flagGroup) visibleFlags() int { + count := 0 + for _, flag := range f.long { + if !flag.hidden { + count++ + } + } + return count } // FlagClause is a fluid interface used to build flags. type FlagClause struct { parserMixin - actionMixin - completionsMixin - envarMixin - name string - shorthand byte - help string - defaultValues []string - placeholder string - hidden bool + name string + shorthand byte + help string + envar string + defaultValue string + placeholder string + dispatch Action + hidden bool } func newFlag(name, help string) *FlagClause { @@ -162,115 +144,54 @@ func newFlag(name, help string) *FlagClause { return f } -func (f *FlagClause) setDefault() error { - if f.HasEnvarValue() { - if v, ok := f.value.(repeatableFlag); !ok || !v.IsCumulative() { - // Use the value as-is - return f.value.Set(f.GetEnvarValue()) - } else { - for _, value := range f.GetSplitEnvarValue() { - if err := f.value.Set(value); err != nil { - return err - } - } - return nil - } - } +func (f *FlagClause) needsValue() bool { + return f.required && f.defaultValue == "" +} - if len(f.defaultValues) > 0 { - for _, defaultValue := range f.defaultValues { - if err := f.value.Set(defaultValue); err != nil { - return err - } +func (f *FlagClause) formatPlaceHolder() string { + if f.placeholder != "" { + return f.placeholder + } + if f.defaultValue != "" { + if _, ok := f.value.(*stringValue); ok { + return fmt.Sprintf("%q", f.defaultValue) } - return nil + return f.defaultValue } - - return nil -} - -func (f *FlagClause) needsValue() bool { - haveDefault := len(f.defaultValues) > 0 - return f.required && !(haveDefault || f.HasEnvarValue()) + return strings.ToUpper(f.name) } func (f *FlagClause) init() error { - if f.required && len(f.defaultValues) > 0 { + if f.required && f.defaultValue != "" { return fmt.Errorf("required flag '--%s' with default value that will never be used", f.name) } if f.value == nil { return fmt.Errorf("no type defined for --%s (eg. .String())", f.name) } - if v, ok := f.value.(repeatableFlag); (!ok || !v.IsCumulative()) && len(f.defaultValues) > 1 { - return fmt.Errorf("invalid default for '--%s', expecting single value", f.name) + if f.envar != "" { + if v := os.Getenv(f.envar); v != "" { + f.defaultValue = v + } } return nil } -// Dispatch to the given function after the flag is parsed and validated. -func (f *FlagClause) Action(action Action) *FlagClause { - f.addAction(action) - return f -} - -func (f *FlagClause) PreAction(action Action) *FlagClause { - f.addPreAction(action) +// Dispatch to the given function when the flag is parsed. +func (f *FlagClause) Action(dispatch Action) *FlagClause { + f.dispatch = dispatch return f } -// HintAction registers a HintAction (function) for the flag to provide completions -func (a *FlagClause) HintAction(action HintAction) *FlagClause { - a.addHintAction(action) - return a -} - -// HintOptions registers any number of options for the flag to provide completions -func (a *FlagClause) HintOptions(options ...string) *FlagClause { - a.addHintAction(func() []string { - return options - }) - return a -} - -func (a *FlagClause) EnumVar(target *string, options ...string) { - a.parserMixin.EnumVar(target, options...) - a.addHintActionBuiltin(func() []string { - return options - }) -} - -func (a *FlagClause) Enum(options ...string) (target *string) { - a.addHintActionBuiltin(func() []string { - return options - }) - return a.parserMixin.Enum(options...) -} - -// Default values for this flag. They *must* be parseable by the value of the flag. -func (f *FlagClause) Default(values ...string) *FlagClause { - f.defaultValues = values +// Default value for this flag. It *must* be parseable by the value of the flag. +func (f *FlagClause) Default(value string) *FlagClause { + f.defaultValue = value return f } -// DEPRECATED: Use Envar(name) instead. +// OverrideDefaultFromEnvar overrides the default value for a flag from an +// environment variable, if available. func (f *FlagClause) OverrideDefaultFromEnvar(envar string) *FlagClause { - return f.Envar(envar) -} - -// Envar overrides the default value(s) for a flag from an environment variable, -// if it is set. Several default values can be provided by using new lines to -// separate them. -func (f *FlagClause) Envar(name string) *FlagClause { - f.envar = name - f.noEnvar = false - return f -} - -// NoEnvar forces environment variable defaults to be disabled for this flag. -// Most useful in conjunction with app.DefaultEnvars(). -func (f *FlagClause) NoEnvar() *FlagClause { - f.envar = "" - f.noEnvar = true + f.envar = envar return f } diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/flags_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/flags_test.go index 3cadc51b..789f1621 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/flags_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/flags_test.go @@ -1,16 +1,13 @@ package kingpin import ( - "io/ioutil" - "os" - - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" "testing" ) func TestBool(t *testing.T) { - app := newTestApp() + app := New("test", "") b := app.Flag("b", "").Bool() _, err := app.Parse([]string{"--b"}) assert.NoError(t, err) @@ -21,9 +18,9 @@ func TestNoBool(t *testing.T) { fg := newFlagGroup() f := fg.Flag("b", "").Default("true") b := f.Bool() - fg.init("") - tokens := tokenize([]string{"--no-b"}, false) - _, err := fg.parse(tokens) + fg.init() + tokens := tokenize([]string{"--no-b"}) + err := fg.parse(tokens) assert.NoError(t, err) assert.False(t, *b) } @@ -32,46 +29,30 @@ func TestNegateNonBool(t *testing.T) { fg := newFlagGroup() f := fg.Flag("b", "") f.Int() - fg.init("") - tokens := tokenize([]string{"--no-b"}, false) - _, err := fg.parse(tokens) + fg.init() + tokens := tokenize([]string{"--no-b"}) + err := fg.parse(tokens) assert.Error(t, err) } -func TestNegativePrefixLongFlag(t *testing.T) { - fg := newFlagGroup() - f := fg.Flag("no-comment", "") - b := f.Bool() - fg.init("") - tokens := tokenize([]string{"--no-comment"}, false) - _, err := fg.parse(tokens) - assert.NoError(t, err) - assert.False(t, *b) -} - func TestInvalidFlagDefaultCanBeOverridden(t *testing.T) { - app := newTestApp() + app := New("test", "") app.Flag("a", "").Default("invalid").Bool() _, err := app.Parse([]string{}) assert.Error(t, err) } func TestRequiredFlag(t *testing.T) { - app := newTestApp() - app.Version("0.0.0").Writer(ioutil.Discard) - exits := 0 - app.Terminate(func(int) { exits++ }) + app := New("test", "") app.Flag("a", "").Required().Bool() _, err := app.Parse([]string{"--a"}) assert.NoError(t, err) _, err = app.Parse([]string{}) assert.Error(t, err) - _, err = app.Parse([]string{"--version"}) - assert.Equal(t, 1, exits) } func TestShortFlag(t *testing.T) { - app := newTestApp() + app := New("test", "") f := app.Flag("long", "").Short('s').Bool() _, err := app.Parse([]string{"-s"}) assert.NoError(t, err) @@ -79,7 +60,7 @@ func TestShortFlag(t *testing.T) { } func TestCombinedShortFlags(t *testing.T) { - app := newTestApp() + app := New("test", "") a := app.Flag("short0", "").Short('0').Bool() b := app.Flag("short1", "").Short('1').Bool() c := app.Flag("short2", "").Short('2').Bool() @@ -91,7 +72,7 @@ func TestCombinedShortFlags(t *testing.T) { } func TestCombinedShortFlagArg(t *testing.T) { - a := newTestApp() + a := New("test", "") n := a.Flag("short", "").Short('s').Int() _, err := a.Parse([]string{"-s10"}) assert.NoError(t, err) @@ -99,232 +80,6 @@ func TestCombinedShortFlagArg(t *testing.T) { } func TestEmptyShortFlagIsAnError(t *testing.T) { - _, err := newTestApp().Parse([]string{"-"}) - assert.Error(t, err) -} - -func TestRequiredWithEnvarMissingErrors(t *testing.T) { - app := newTestApp() - app.Flag("t", "").OverrideDefaultFromEnvar("TEST_ENVAR").Required().Int() - _, err := app.Parse([]string{}) - assert.Error(t, err) -} - -func TestRequiredWithEnvar(t *testing.T) { - os.Setenv("TEST_ENVAR", "123") - app := newTestApp() - flag := app.Flag("t", "").Envar("TEST_ENVAR").Required().Int() - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, 123, *flag) -} - -func TestSubcommandFlagRequiredWithEnvar(t *testing.T) { - os.Setenv("TEST_ENVAR", "123") - app := newTestApp() - cmd := app.Command("command", "") - flag := cmd.Flag("t", "").Envar("TEST_ENVAR").Required().Int() - _, err := app.Parse([]string{"command"}) - assert.NoError(t, err) - assert.Equal(t, 123, *flag) -} - -func TestRegexp(t *testing.T) { - app := newTestApp() - flag := app.Flag("reg", "").Regexp() - _, err := app.Parse([]string{"--reg", "^abc$"}) - assert.NoError(t, err) - assert.NotNil(t, *flag) - assert.Equal(t, "^abc$", (*flag).String()) - assert.Regexp(t, *flag, "abc") - assert.NotRegexp(t, *flag, "abcd") -} - -func TestDuplicateShortFlag(t *testing.T) { - app := newTestApp() - app.Flag("a", "").Short('a').String() - app.Flag("b", "").Short('a').String() - _, err := app.Parse([]string{}) - assert.Error(t, err) -} - -func TestDuplicateLongFlag(t *testing.T) { - app := newTestApp() - app.Flag("a", "").String() - app.Flag("a", "").String() - _, err := app.Parse([]string{}) - assert.Error(t, err) -} - -func TestGetFlagAndOverrideDefault(t *testing.T) { - app := newTestApp() - a := app.Flag("a", "").Default("default").String() - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, "default", *a) - app.GetFlag("a").Default("new") - _, err = app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, "new", *a) -} - -func TestEnvarOverrideDefault(t *testing.T) { - os.Setenv("TEST_ENVAR", "123") - app := newTestApp() - flag := app.Flag("t", "").Default("default").Envar("TEST_ENVAR").String() - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, "123", *flag) -} - -func TestFlagMultipleValuesDefault(t *testing.T) { - app := newTestApp() - a := app.Flag("a", "").Default("default1", "default2").Strings() - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, []string{"default1", "default2"}, *a) -} - -func TestFlagMultipleValuesDefaultNonRepeatable(t *testing.T) { - c := newTestApp() - c.Flag("foo", "foo").Default("a", "b").String() - _, err := c.Parse([]string{}) + _, err := New("test", "").Parse([]string{"-"}) assert.Error(t, err) } - -func TestFlagMultipleValuesDefaultEnvarUnix(t *testing.T) { - app := newTestApp() - a := app.Flag("a", "").Envar("TEST_MULTIPLE_VALUES").Strings() - os.Setenv("TEST_MULTIPLE_VALUES", "123\n456\n") - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, []string{"123", "456"}, *a) -} - -func TestFlagMultipleValuesDefaultEnvarWindows(t *testing.T) { - app := newTestApp() - a := app.Flag("a", "").Envar("TEST_MULTIPLE_VALUES").Strings() - os.Setenv("TEST_MULTIPLE_VALUES", "123\r\n456\r\n") - _, err := app.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, []string{"123", "456"}, *a) -} - -func TestFlagMultipleValuesDefaultEnvarNonRepeatable(t *testing.T) { - c := newTestApp() - a := c.Flag("foo", "foo").Envar("TEST_MULTIPLE_VALUES_NON_REPEATABLE").String() - os.Setenv("TEST_MULTIPLE_VALUES_NON_REPEATABLE", "123\n456") - _, err := c.Parse([]string{}) - assert.NoError(t, err) - assert.Equal(t, "123\n456", *a) -} - -func TestFlagHintAction(t *testing.T) { - c := newTestApp() - - action := func() []string { - return []string{"opt1", "opt2"} - } - - a := c.Flag("foo", "foo").HintAction(action) - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} - -func TestFlagHintOptions(t *testing.T) { - c := newTestApp() - - a := c.Flag("foo", "foo").HintOptions("opt1", "opt2") - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} - -func TestFlagEnumVar(t *testing.T) { - c := newTestApp() - var bar string - - a := c.Flag("foo", "foo") - a.Enum("opt1", "opt2") - b := c.Flag("bar", "bar") - b.EnumVar(&bar, "opt3", "opt4") - - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) - - args = b.resolveCompletions() - assert.Equal(t, []string{"opt3", "opt4"}, args) -} - -func TestMultiHintOptions(t *testing.T) { - c := newTestApp() - - a := c.Flag("foo", "foo").HintOptions("opt1").HintOptions("opt2") - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} -func TestMultiHintActions(t *testing.T) { - c := newTestApp() - - a := c.Flag("foo", "foo"). - HintAction(func() []string { - return []string{"opt1"} - }). - HintAction(func() []string { - return []string{"opt2"} - }) - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} - -func TestCombinationHintActionsOptions(t *testing.T) { - c := newTestApp() - - a := c.Flag("foo", "foo").HintAction(func() []string { - return []string{"opt1"} - }).HintOptions("opt2") - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) -} - -func TestCombinationEnumActions(t *testing.T) { - c := newTestApp() - var foo string - - a := c.Flag("foo", "foo"). - HintAction(func() []string { - return []string{"opt1", "opt2"} - }) - a.Enum("opt3", "opt4") - - b := c.Flag("bar", "bar"). - HintAction(func() []string { - return []string{"opt5", "opt6"} - }) - b.EnumVar(&foo, "opt3", "opt4") - - // Provided HintActions should override automatically generated Enum options. - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) - - args = b.resolveCompletions() - assert.Equal(t, []string{"opt5", "opt6"}, args) -} - -func TestCombinationEnumOptions(t *testing.T) { - c := newTestApp() - var foo string - - a := c.Flag("foo", "foo").HintOptions("opt1", "opt2") - a.Enum("opt3", "opt4") - - b := c.Flag("bar", "bar").HintOptions("opt5", "opt6") - b.EnumVar(&foo, "opt3", "opt4") - - // Provided HintOptions should override automatically generated Enum options. - args := a.resolveCompletions() - assert.Equal(t, []string{"opt1", "opt2"}, args) - - args = b.resolveCompletions() - assert.Equal(t, []string{"opt5", "opt6"}, args) - -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/global.go b/vendor/gopkg.in/alecthomas/kingpin.v2/global.go index 10a29137..7c0cad9f 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/global.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/global.go @@ -8,12 +8,6 @@ import ( var ( // CommandLine is the default Kingpin parser. CommandLine = New(filepath.Base(os.Args[0]), "") - // Global help flag. Exposed for user customisation. - HelpFlag = CommandLine.HelpFlag - // Top-level help command. Exposed for user customisation. May be nil. - HelpCommand = CommandLine.HelpCommand - // Global version flag. Exposed for user customisation. May be nil. - VersionFlag = CommandLine.VersionFlag ) // Command adds a new command to the default parser. @@ -44,40 +38,35 @@ func Parse() string { // Errorf prints an error message to stderr. func Errorf(format string, args ...interface{}) { - CommandLine.Errorf(format, args...) + CommandLine.Errorf(os.Stderr, format, args...) } // Fatalf prints an error message to stderr and exits. func Fatalf(format string, args ...interface{}) { - CommandLine.Fatalf(format, args...) + CommandLine.Fatalf(os.Stderr, format, args...) } // FatalIfError prints an error and exits if err is not nil. The error is printed // with the given prefix. -func FatalIfError(err error, format string, args ...interface{}) { - CommandLine.FatalIfError(err, format, args...) +func FatalIfError(err error, prefix string) { + CommandLine.FatalIfError(os.Stderr, err, prefix) } // FatalUsage prints an error message followed by usage information, then // exits with a non-zero status. func FatalUsage(format string, args ...interface{}) { - CommandLine.FatalUsage(format, args...) + CommandLine.FatalUsage(os.Stderr, format, args...) } // FatalUsageContext writes a printf formatted error message to stderr, then // usage information for the given ParseContext, before exiting. func FatalUsageContext(context *ParseContext, format string, args ...interface{}) { - CommandLine.FatalUsageContext(context, format, args...) + CommandLine.FatalUsageContext(os.Stderr, context, format, args...) } // Usage prints usage to stderr. func Usage() { - CommandLine.Usage(os.Args[1:]) -} - -// Set global usage template to use (defaults to DefaultUsageTemplate). -func UsageTemplate(template string) *Application { - return CommandLine.UsageTemplate(template) + CommandLine.Usage(os.Stderr, os.Args[1:]) } // MustParse can be used with app.Parse(args) to exit with an error if parsing fails. @@ -89,6 +78,6 @@ func MustParse(command string, err error) string { } // Version adds a flag for displaying the application version number. -func Version(version string) *Application { - return CommandLine.Version(version) +func Version(version string) { + CommandLine.Version(version) } diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth.go b/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth.go index a269531c..22674c88 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth.go @@ -1,4 +1,4 @@ -// +build appengine !linux,!freebsd,!darwin,!dragonfly,!netbsd,!openbsd +// +build !linux,!freebsd,!darwin,!dragonfly,!netbsd,!openbsd package kingpin diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth_unix.go b/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth_unix.go index ad8163f5..a93484d7 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth_unix.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/guesswidth_unix.go @@ -1,4 +1,4 @@ -// +build !appengine,linux freebsd darwin dragonfly netbsd openbsd +// +build linux freebsd darwin dragonfly netbsd openbsd package kingpin diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/model.go b/vendor/gopkg.in/alecthomas/kingpin.v2/model.go index a4ee83b4..ae13133e 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/model.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/model.go @@ -36,8 +36,8 @@ func (f *FlagGroupModel) FlagSummary() string { type FlagModel struct { Name string Help string - Short rune - Default []string + Short byte + Default string Envar string PlaceHolder string Required bool @@ -60,15 +60,11 @@ func (f *FlagModel) FormatPlaceHolder() string { if f.PlaceHolder != "" { return f.PlaceHolder } - if len(f.Default) > 0 { - ellipsis := "" - if len(f.Default) > 1 { - ellipsis = "..." - } + if f.Default != "" { if _, ok := f.Value.(*stringValue); ok { - return strconv.Quote(f.Default[0]) + ellipsis + return strconv.Quote(f.Default) } - return f.Default[0] + ellipsis + return f.Default } return strings.ToUpper(f.Name) } @@ -95,8 +91,7 @@ func (a *ArgGroupModel) ArgSummary() string { type ArgModel struct { Name string Help string - Default []string - Envar string + Default string Required bool Value Value } @@ -121,12 +116,9 @@ func (c *CmdGroupModel) FlattenedCommands() (out []*CmdModel) { type CmdModel struct { Name string - Aliases []string Help string FullCommand string Depth int - Hidden bool - Default bool *FlagGroupModel *ArgGroupModel *CmdGroupModel @@ -137,10 +129,8 @@ func (c *CmdModel) String() string { } type ApplicationModel struct { - Name string - Help string - Version string - Author string + Name string + Help string *ArgGroupModel *CmdGroupModel *FlagGroupModel @@ -150,8 +140,6 @@ func (a *Application) Model() *ApplicationModel { return &ApplicationModel{ Name: a.Name, Help: a.Help, - Version: a.version, - Author: a.author, FlagGroupModel: a.flagGroup.Model(), ArgGroupModel: a.argGroup.Model(), CmdGroupModel: a.cmdGroup.Model(), @@ -170,8 +158,7 @@ func (a *ArgClause) Model() *ArgModel { return &ArgModel{ Name: a.name, Help: a.help, - Default: a.defaultValues, - Envar: a.envar, + Default: a.defaultValue, Required: a.required, Value: a.value, } @@ -189,8 +176,8 @@ func (f *FlagClause) Model() *FlagModel { return &FlagModel{ Name: f.name, Help: f.help, - Short: rune(f.shorthand), - Default: f.defaultValues, + Short: f.shorthand, + Default: f.defaultValue, Envar: f.envar, PlaceHolder: f.placeholder, Required: f.required, @@ -214,11 +201,8 @@ func (c *CmdClause) Model() *CmdModel { } return &CmdModel{ Name: c.name, - Aliases: c.aliases, Help: c.help, Depth: depth, - Hidden: c.hidden, - Default: c.isDefault, FullCommand: c.FullCommand(), FlagGroupModel: c.flagGroup.Model(), ArgGroupModel: c.argGroup.Model(), diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/parser.go b/vendor/gopkg.in/alecthomas/kingpin.v2/parser.go index f9af98f5..2779c790 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/parser.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/parser.go @@ -87,12 +87,10 @@ type ParseElement struct { // any). type ParseContext struct { SelectedCommand *CmdClause - ignoreDefault bool argsOnly bool peek []*Token argi int // Index of current command-line arg we're processing. args []string - rawArgs []string flags *flagGroup arguments *argGroup argumenti int // Cursor into arguments @@ -122,13 +120,11 @@ func (p *ParseContext) HasTrailingArgs() bool { return len(p.args) > 0 } -func tokenize(args []string, ignoreDefault bool) *ParseContext { +func tokenize(args []string) *ParseContext { return &ParseContext{ - ignoreDefault: ignoreDefault, - args: args, - rawArgs: args, - flags: newFlagGroup(), - arguments: newArgGroup(), + args: args, + flags: newFlagGroup(), + arguments: newArgGroup(), } } @@ -180,7 +176,7 @@ func (p *ParseContext) Next() *Token { parts := strings.SplitN(arg[2:], "=", 2) token := &Token{p.argi, TokenLong, parts[0]} if len(parts) == 2 { - p.Push(&Token{p.argi, TokenArg, parts[1]}) + p.push(&Token{p.argi, TokenArg, parts[1]}) } return token } @@ -199,7 +195,7 @@ func (p *ParseContext) Next() *Token { // Short flag with combined argument: -fARG token := &Token{p.argi, TokenShort, short} if len(arg) > 2 { - p.Push(&Token{p.argi, TokenArg, arg[2:]}) + p.push(&Token{p.argi, TokenArg, arg[2:]}) } return token } @@ -226,12 +222,12 @@ func (p *ParseContext) Next() *Token { func (p *ParseContext) Peek() *Token { if len(p.peek) == 0 { - return p.Push(p.Next()) + return p.push(p.Next()) } return p.peek[len(p.peek)-1] } -func (p *ParseContext) Push(token *Token) *Token { +func (p *ParseContext) push(token *Token) *Token { p.peek = append(p.peek, token) return token } @@ -281,62 +277,32 @@ func ExpandArgsFromFile(filename string) (out []string, err error) { return } -func parse(context *ParseContext, app *Application) (err error) { +func parse(context *ParseContext, app *Application) (selected []string, err error) { context.mergeFlags(app.flagGroup) context.mergeArgs(app.argGroup) cmds := app.cmdGroup - ignoreDefault := context.ignoreDefault loop: for !context.EOL() { token := context.Peek() - switch token.Type { case TokenLong, TokenShort: - if flag, err := context.flags.parse(context); err != nil { - if !ignoreDefault { - if cmd := cmds.defaultSubcommand(); cmd != nil { - cmd.completionAlts = cmds.cmdNames() - context.matchedCmd(cmd) - cmds = cmd.cmdGroup - break - } - } - return err - } else if flag == HelpFlag { - ignoreDefault = true + if err := context.flags.parse(context); err != nil { + return nil, err } case TokenArg: if cmds.have() { - selectedDefault := false cmd, ok := cmds.commands[token.String()] if !ok { - if !ignoreDefault { - if cmd = cmds.defaultSubcommand(); cmd != nil { - cmd.completionAlts = cmds.cmdNames() - selectedDefault = true - } - } - if cmd == nil { - return fmt.Errorf("expected command but got %q", token) - } - } - if cmd == HelpCommand { - ignoreDefault = true + return nil, fmt.Errorf("expected command but got %s", token) } - cmd.completionAlts = nil context.matchedCmd(cmd) + selected = append([]string{token.String()}, selected...) cmds = cmd.cmdGroup - if !selectedDefault { - context.Next() - } + context.Next() } else if context.arguments.have() { - if app.noInterspersed { - // no more flags - context.argsOnly = true - } arg := context.nextArg() if arg == nil { break loop @@ -352,26 +318,15 @@ loop: } } - // Move to innermost default command. - for !ignoreDefault { - if cmd := cmds.defaultSubcommand(); cmd != nil { - cmd.completionAlts = cmds.cmdNames() - context.matchedCmd(cmd) - cmds = cmd.cmdGroup - } else { - break - } - } - if !context.EOL() { - return fmt.Errorf("unexpected %s", context.Peek()) + return nil, fmt.Errorf("unexpected %s", context.Peek()) } // Set defaults for all remaining args. for arg := context.nextArg(); arg != nil && !arg.consumesRemainder(); arg = context.nextArg() { - for _, defaultValue := range arg.defaultValues { - if err := arg.value.Set(defaultValue); err != nil { - return fmt.Errorf("invalid default value '%s' for argument '%s'", defaultValue, arg.name) + if arg.defaultValue != "" { + if err := arg.value.Set(arg.defaultValue); err != nil { + return nil, fmt.Errorf("invalid default value '%s' for argument '%s'", arg.defaultValue, arg.name) } } } diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/parser_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/parser_test.go index f6667ff8..60ccbf50 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/parser_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/parser_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" ) func TestParserExpandFromFile(t *testing.T) { @@ -24,19 +24,3 @@ func TestParserExpandFromFile(t *testing.T) { assert.Equal(t, "hello", *arg0) assert.Equal(t, "world", *arg1) } - -func TestParseContextPush(t *testing.T) { - app := New("test", "") - app.Command("foo", "").Command("bar", "") - c := tokenize([]string{"foo", "bar"}, false) - a := c.Next() - assert.Equal(t, TokenArg, a.Type) - b := c.Next() - assert.Equal(t, TokenArg, b.Type) - c.Push(b) - c.Push(a) - a = c.Next() - assert.Equal(t, "foo", a.Value) - b = c.Next() - assert.Equal(t, "bar", b.Value) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/parsers.go b/vendor/gopkg.in/alecthomas/kingpin.v2/parsers.go index d9ad57e5..6328d9c6 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/parsers.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/parsers.go @@ -1,6 +1,9 @@ package kingpin +//go:generate go run ./genrepeated/main.go + import ( + "fmt" "net" "net/url" "os" @@ -22,6 +25,13 @@ func (p *parserMixin) SetValue(value Value) { p.value = value } +// String sets the parser to a string parser. +func (p *parserMixin) String() (target *string) { + target = new(string) + p.StringVar(target) + return +} + // StringMap provides key=value parsing into a map. func (p *parserMixin) StringMap() (target *map[string]string) { target = &(map[string]string{}) @@ -29,6 +39,41 @@ func (p *parserMixin) StringMap() (target *map[string]string) { return } +// Bool sets the parser to a boolean parser. Supports --no-<X> to disable the flag. +func (p *parserMixin) Bool() (target *bool) { + target = new(bool) + p.BoolVar(target) + return +} + +// Int sets the parser to an int parser. +func (p *parserMixin) Int() (target *int) { + target = new(int) + p.IntVar(target) + return +} + +// Int64 parses an int64 +func (p *parserMixin) Int64() (target *int64) { + target = new(int64) + p.Int64Var(target) + return +} + +// Uint64 parses a uint64 +func (p *parserMixin) Uint64() (target *uint64) { + target = new(uint64) + p.Uint64Var(target) + return +} + +// Float sets the parser to a float64 parser. +func (p *parserMixin) Float() (target *float64) { + target = new(float64) + p.FloatVar(target) + return +} + // Duration sets the parser to a time.Duration parser. func (p *parserMixin) Duration() (target *time.Duration) { target = new(time.Duration) @@ -76,13 +121,6 @@ func (p *parserMixin) ExistingDir() (target *string) { return } -// ExistingFileOrDir sets the parser to one that requires and returns an existing file OR directory. -func (p *parserMixin) ExistingFileOrDir() (target *string) { - target = new(string) - p.ExistingFileOrDirVar(target) - return -} - // File returns an os.File against an existing file. func (p *parserMixin) File() (target **os.File) { target = new(*os.File) @@ -104,19 +142,39 @@ func (p *parserMixin) URL() (target **url.URL) { return } +// String sets the parser to a string parser. +func (p *parserMixin) StringVar(target *string) { + p.SetValue(newStringValue(target)) +} + // StringMap provides key=value parsing into a map. func (p *parserMixin) StringMapVar(target *map[string]string) { p.SetValue(newStringMapValue(target)) } -// Float sets the parser to a float64 parser. -func (p *parserMixin) Float() (target *float64) { - return p.Float64() +// Bool sets the parser to a boolean parser. Supports --no-<X> to disable the flag. +func (p *parserMixin) BoolVar(target *bool) { + p.SetValue(newBoolValue(target)) +} + +// Int sets the parser to an int parser. +func (p *parserMixin) IntVar(target *int) { + p.SetValue(newIntValue(target)) +} + +// Int64 parses an int64 +func (p *parserMixin) Int64Var(target *int64) { + p.SetValue(newInt64Value(target)) +} + +// Uint64 parses a uint64 +func (p *parserMixin) Uint64Var(target *uint64) { + p.SetValue(newUint64Value(target)) } // Float sets the parser to a float64 parser. func (p *parserMixin) FloatVar(target *float64) { - p.Float64Var(target) + p.SetValue(newFloat64Value(target)) } // Duration sets the parser to a time.Duration parser. @@ -136,17 +194,22 @@ func (p *parserMixin) IPVar(target *net.IP) { // ExistingFile sets the parser to one that requires and returns an existing file. func (p *parserMixin) ExistingFileVar(target *string) { - p.SetValue(newExistingFileValue(target)) + p.SetValue(newFileStatValue(target, func(s os.FileInfo) error { + if s.IsDir() { + return fmt.Errorf("'%s' is a directory", s.Name()) + } + return nil + })) } // ExistingDir sets the parser to one that requires and returns an existing directory. func (p *parserMixin) ExistingDirVar(target *string) { - p.SetValue(newExistingDirValue(target)) -} - -// ExistingDir sets the parser to one that requires and returns an existing directory. -func (p *parserMixin) ExistingFileOrDirVar(target *string) { - p.SetValue(newExistingFileOrDirValue(target)) + p.SetValue(newFileStatValue(target, func(s os.FileInfo) error { + if !s.IsDir() { + return fmt.Errorf("'%s' is a file", s.Name()) + } + return nil + })) } // FileVar opens an existing file. @@ -179,12 +242,12 @@ func (p *parserMixin) URLListVar(target *[]*url.URL) { // Enum allows a value from a set of options. func (p *parserMixin) Enum(options ...string) (target *string) { target = new(string) - p.EnumVar(target, options...) + p.EnumVar(&target, options...) return } // EnumVar allows a value from a set of options. -func (p *parserMixin) EnumVar(target *string, options ...string) { +func (p *parserMixin) EnumVar(target **string, options ...string) { p.SetValue(newEnumFlag(target, options...)) } @@ -199,14 +262,3 @@ func (p *parserMixin) Enums(options ...string) (target *[]string) { func (p *parserMixin) EnumsVar(target *[]string, options ...string) { p.SetValue(newEnumsFlag(target, options...)) } - -// A Counter increments a number each time it is encountered. -func (p *parserMixin) Counter() (target *int) { - target = new(int) - p.CounterVar(target) - return -} - -func (p *parserMixin) CounterVar(target *int) { - p.SetValue(newCounterValue(target)) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/parsers_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/parsers_test.go index 04e836c9..88d8e7be 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/parsers_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/parsers_test.go @@ -6,7 +6,7 @@ import ( "net/url" "os" - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" "testing" ) @@ -88,11 +88,3 @@ func TestParseTCPAddrList(t *testing.T) { assert.NoError(t, err) assert.Equal(t, "127.0.0.1:1234,127.0.0.1:1235", p.value.String()) } - -func TestFloat32(t *testing.T) { - p := parserMixin{} - v := p.Float32() - err := p.value.Set("123.45") - assert.NoError(t, err) - assert.InEpsilon(t, 123.45, *v, 0.001) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/templates.go b/vendor/gopkg.in/alecthomas/kingpin.v2/templates.go deleted file mode 100644 index 97b5c9fc..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/templates.go +++ /dev/null @@ -1,262 +0,0 @@ -package kingpin - -// Default usage template. -var DefaultUsageTemplate = `{{define "FormatCommand"}}\ -{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ -{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ -{{end}}\ - -{{define "FormatCommands"}}\ -{{range .FlattenedCommands}}\ -{{if not .Hidden}}\ - {{.FullCommand}}{{if .Default}}*{{end}}{{template "FormatCommand" .}} -{{.Help|Wrap 4}} -{{end}}\ -{{end}}\ -{{end}}\ - -{{define "FormatUsage"}}\ -{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} -{{if .Help}} -{{.Help|Wrap 0}}\ -{{end}}\ - -{{end}}\ - -{{if .Context.SelectedCommand}}\ -usage: {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}} -{{else}}\ -usage: {{.App.Name}}{{template "FormatUsage" .App}} -{{end}}\ -{{if .Context.Flags}}\ -Flags: -{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.Args}}\ -Args: -{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.SelectedCommand}}\ -{{if len .Context.SelectedCommand.Commands}}\ -Subcommands: -{{template "FormatCommands" .Context.SelectedCommand}} -{{end}}\ -{{else if .App.Commands}}\ -Commands: -{{template "FormatCommands" .App}} -{{end}}\ -` - -// Usage template where command's optional flags are listed separately -var SeparateOptionalFlagsUsageTemplate = `{{define "FormatCommand"}}\ -{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ -{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ -{{end}}\ - -{{define "FormatCommands"}}\ -{{range .FlattenedCommands}}\ -{{if not .Hidden}}\ - {{.FullCommand}}{{if .Default}}*{{end}}{{template "FormatCommand" .}} -{{.Help|Wrap 4}} -{{end}}\ -{{end}}\ -{{end}}\ - -{{define "FormatUsage"}}\ -{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} -{{if .Help}} -{{.Help|Wrap 0}}\ -{{end}}\ - -{{end}}\ -{{if .Context.SelectedCommand}}\ -usage: {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}} -{{else}}\ -usage: {{.App.Name}}{{template "FormatUsage" .App}} -{{end}}\ - -{{if .Context.Flags|RequiredFlags}}\ -Required flags: -{{.Context.Flags|RequiredFlags|FlagsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.Flags|OptionalFlags}}\ -Optional flags: -{{.Context.Flags|OptionalFlags|FlagsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.Args}}\ -Args: -{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.SelectedCommand}}\ -Subcommands: -{{if .Context.SelectedCommand.Commands}}\ -{{template "FormatCommands" .Context.SelectedCommand}} -{{end}}\ -{{else if .App.Commands}}\ -Commands: -{{template "FormatCommands" .App}} -{{end}}\ -` - -// Usage template with compactly formatted commands. -var CompactUsageTemplate = `{{define "FormatCommand"}}\ -{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ -{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ -{{end}}\ - -{{define "FormatCommandList"}}\ -{{range .}}\ -{{if not .Hidden}}\ -{{.Depth|Indent}}{{.Name}}{{if .Default}}*{{end}}{{template "FormatCommand" .}} -{{end}}\ -{{template "FormatCommandList" .Commands}}\ -{{end}}\ -{{end}}\ - -{{define "FormatUsage"}}\ -{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} -{{if .Help}} -{{.Help|Wrap 0}}\ -{{end}}\ - -{{end}}\ - -{{if .Context.SelectedCommand}}\ -usage: {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}} -{{else}}\ -usage: {{.App.Name}}{{template "FormatUsage" .App}} -{{end}}\ -{{if .Context.Flags}}\ -Flags: -{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.Args}}\ -Args: -{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.SelectedCommand}}\ -{{if .Context.SelectedCommand.Commands}}\ -Commands: - {{.Context.SelectedCommand}} -{{template "FormatCommandList" .Context.SelectedCommand.Commands}} -{{end}}\ -{{else if .App.Commands}}\ -Commands: -{{template "FormatCommandList" .App.Commands}} -{{end}}\ -` - -var ManPageTemplate = `{{define "FormatFlags"}}\ -{{range .Flags}}\ -{{if not .Hidden}}\ -.TP -\fB{{if .Short}}-{{.Short|Char}}, {{end}}--{{.Name}}{{if not .IsBoolFlag}}={{.FormatPlaceHolder}}{{end}}\\fR -{{.Help}} -{{end}}\ -{{end}}\ -{{end}}\ - -{{define "FormatCommand"}}\ -{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ -{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}{{if .Default}}*{{end}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ -{{end}}\ - -{{define "FormatCommands"}}\ -{{range .FlattenedCommands}}\ -{{if not .Hidden}}\ -.SS -\fB{{.FullCommand}}{{template "FormatCommand" .}}\\fR -.PP -{{.Help}} -{{template "FormatFlags" .}}\ -{{end}}\ -{{end}}\ -{{end}}\ - -{{define "FormatUsage"}}\ -{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}}\\fR -{{end}}\ - -.TH {{.App.Name}} 1 {{.App.Version}} "{{.App.Author}}" -.SH "NAME" -{{.App.Name}} -.SH "SYNOPSIS" -.TP -\fB{{.App.Name}}{{template "FormatUsage" .App}} -.SH "DESCRIPTION" -{{.App.Help}} -.SH "OPTIONS" -{{template "FormatFlags" .App}}\ -{{if .App.Commands}}\ -.SH "COMMANDS" -{{template "FormatCommands" .App}}\ -{{end}}\ -` - -// Default usage template. -var LongHelpTemplate = `{{define "FormatCommand"}}\ -{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ -{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ -{{end}}\ - -{{define "FormatCommands"}}\ -{{range .FlattenedCommands}}\ -{{if not .Hidden}}\ - {{.FullCommand}}{{template "FormatCommand" .}} -{{.Help|Wrap 4}} -{{with .Flags|FlagsToTwoColumns}}{{FormatTwoColumnsWithIndent . 4 2}}{{end}} -{{end}}\ -{{end}}\ -{{end}}\ - -{{define "FormatUsage"}}\ -{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} -{{if .Help}} -{{.Help|Wrap 0}}\ -{{end}}\ - -{{end}}\ - -usage: {{.App.Name}}{{template "FormatUsage" .App}} -{{if .Context.Flags}}\ -Flags: -{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .Context.Args}}\ -Args: -{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} -{{end}}\ -{{if .App.Commands}}\ -Commands: -{{template "FormatCommands" .App}} -{{end}}\ -` - -var BashCompletionTemplate = ` -_{{.App.Name}}_bash_autocomplete() { - local cur prev opts base - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - opts=$( ${COMP_WORDS[0]} --completion-bash ${COMP_WORDS[@]:1:$COMP_CWORD} ) - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 -} -complete -F _{{.App.Name}}_bash_autocomplete {{.App.Name}} - -` - -var ZshCompletionTemplate = ` -#compdef {{.App.Name}} -autoload -U compinit && compinit -autoload -U bashcompinit && bashcompinit - -_{{.App.Name}}_bash_autocomplete() { - local cur prev opts base - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - opts=$( ${COMP_WORDS[0]} --completion-bash ${COMP_WORDS[@]:1:$COMP_CWORD} ) - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 -} -complete -F _{{.App.Name}}_bash_autocomplete {{.App.Name}} -` diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/usage.go b/vendor/gopkg.in/alecthomas/kingpin.v2/usage.go index 44af6f65..bed34c5c 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/usage.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/usage.go @@ -18,7 +18,7 @@ func formatTwoColumns(w io.Writer, indent, padding, width int, rows [][2]string) // Find size of first column. s := 0 for _, row := range rows { - if c := len(row[0]); c > s && c < 30 { + if c := len(row[0]); c > s && c < 20 { s = c } } @@ -31,7 +31,7 @@ func formatTwoColumns(w io.Writer, indent, padding, width int, rows [][2]string) doc.ToText(buf, row[1], "", preIndent, width-s-padding-indent) lines := strings.Split(strings.TrimRight(buf.String(), "\n"), "\n") fmt.Fprintf(w, "%s%-*s%*s", indentStr, s, row[0], padding, "") - if len(row[0]) >= 30 { + if len(row[0]) >= 20 { fmt.Fprintf(w, "\n%s%s", indentStr, offsetStr) } fmt.Fprintf(w, "%s\n", lines[0]) @@ -43,10 +43,10 @@ func formatTwoColumns(w io.Writer, indent, padding, width int, rows [][2]string) // Usage writes application usage to w. It parses args to determine // appropriate help context, such as which command to show help for. -func (a *Application) Usage(args []string) { - context, err := a.parseContext(true, args) - a.FatalIfError(err, "") - if err := a.UsageForContextWithTemplate(context, 2, a.usageTemplate); err != nil { +func (a *Application) Usage(w io.Writer, args []string) { + context, err := a.ParseContext(args) + a.FatalIfError(w, err, "") + if err := a.UsageForContextWithTemplate(context, w, 2, a.usageTemplate); err != nil { panic(err) } } @@ -73,26 +73,109 @@ func formatCmdUsage(app *ApplicationModel, cmd *CmdModel) string { return strings.Join(s, " ") } -func formatFlag(haveShort bool, flag *FlagModel) string { +func formatFlag(flag *FlagModel) string { flagString := "" if flag.Short != 0 { - flagString += fmt.Sprintf("-%c, --%s", flag.Short, flag.Name) - } else { - if haveShort { - flagString += fmt.Sprintf(" --%s", flag.Name) - } else { - flagString += fmt.Sprintf("--%s", flag.Name) - } + flagString += fmt.Sprintf("-%c, ", flag.Short) } + flagString += fmt.Sprintf("--%s", flag.Name) if !flag.IsBoolFlag() { flagString += fmt.Sprintf("=%s", flag.FormatPlaceHolder()) } - if v, ok := flag.Value.(repeatableFlag); ok && v.IsCumulative() { - flagString += " ..." - } return flagString } +// Default usage template. +var UsageTemplate = `{{define "FormatCommand"}}\ +{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ +{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ +{{end}}\ + +{{define "FormatCommands"}}\ +{{range .FlattenedCommands}}\ + {{.FullCommand}}{{template "FormatCommand" .}} +{{.Help|Wrap 4}} +{{end}}\ +{{end}}\ + +{{define "FormatUsage"}}\ +{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} +{{if .Help}} +{{.Help|Wrap 0}}\ +{{end}}\ + +{{end}}\ + +{{if .Context.SelectedCommand}}\ +usage: {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}} +{{else}}\ +usage: {{.App.Name}}{{template "FormatUsage" .App}} +{{end}}\ +{{if .Context.Flags}}\ +Flags: +{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}} +{{end}}\ +{{if .Context.Args}}\ +Args: +{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} +{{end}}\ +{{if .Context.SelectedCommand}}\ +Subcommands: +{{if .Context.SelectedCommand.Commands}}\ +{{template "FormatCommands" .Context.SelectedCommand}} +{{end}}\ +{{else if .App.Commands}}\ +Commands: +{{template "FormatCommands" .App}} +{{end}}\ +` + +// Usage template with compactly formatted commands. +var CompactUsageTemplate = `{{define "FormatCommand"}}\ +{{if .FlagSummary}} {{.FlagSummary}}{{end}}\ +{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\ +{{end}}\ + +{{define "FormatCommandList"}}\ +{{range .}}\ +{{.Depth|Indent}}{{.Name}}{{template "FormatCommand" .}} +{{template "FormatCommandList" .Commands}}\ +{{end}}\ +{{end}}\ + +{{define "FormatUsage"}}\ +{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}} +{{if .Help}} +{{.Help|Wrap 0}}\ +{{end}}\ + +{{end}}\ + +{{if .Context.SelectedCommand}}\ +usage: {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}} +{{else}}\ +usage: {{.App.Name}}{{template "FormatUsage" .App}} +{{end}}\ +{{if .Context.Flags}}\ +Flags: +{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}} +{{end}}\ +{{if .Context.Args}}\ +Args: +{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}} +{{end}}\ +{{if .Context.SelectedCommand}}\ +{{if .Context.SelectedCommand.Commands}}\ +Commands: + {{.Context.SelectedCommand}} +{{template "FormatCommandList" .Context.SelectedCommand.Commands}} +{{end}}\ +{{else if .App.Commands}}\ +Commands: +{{template "FormatCommandList" .App.Commands}} +{{end}}\ +` + type templateParseContext struct { SelectedCommand *CmdModel *FlagGroupModel @@ -107,13 +190,13 @@ type templateContext struct { // UsageForContext displays usage information from a ParseContext (obtained from // Application.ParseContext() or Action(f) callbacks). -func (a *Application) UsageForContext(context *ParseContext) error { - return a.UsageForContextWithTemplate(context, 2, a.usageTemplate) +func (a *Application) UsageForContext(w io.Writer, context *ParseContext) error { + return a.UsageForContextWithTemplate(context, w, 2, a.usageTemplate) } // UsageForContextWithTemplate is the base usage function. You generally don't need to use this. -func (a *Application) UsageForContextWithTemplate(context *ParseContext, indent int, tmpl string) error { - width := guessWidth(a.usageWriter) +func (a *Application) UsageForContextWithTemplate(context *ParseContext, w io.Writer, indent int, tmpl string) error { + width := guessWidth(w) funcs := template.FuncMap{ "Indent": func(level int) string { return strings.Repeat(" ", level*indent) @@ -121,44 +204,19 @@ func (a *Application) UsageForContextWithTemplate(context *ParseContext, indent "Wrap": func(indent int, s string) string { buf := bytes.NewBuffer(nil) indentText := strings.Repeat(" ", indent) - doc.ToText(buf, s, indentText, " "+indentText, width-indent) + doc.ToText(buf, s, indentText, indentText, width) return buf.String() }, "FormatFlag": formatFlag, "FlagsToTwoColumns": func(f []*FlagModel) [][2]string { rows := [][2]string{} - haveShort := false - for _, flag := range f { - if flag.Short != 0 { - haveShort = true - break - } - } for _, flag := range f { if !flag.Hidden { - rows = append(rows, [2]string{formatFlag(haveShort, flag), flag.Help}) + rows = append(rows, [2]string{formatFlag(flag), flag.Help}) } } return rows }, - "RequiredFlags": func(f []*FlagModel) []*FlagModel { - requiredFlags := []*FlagModel{} - for _, flag := range f { - if flag.Required { - requiredFlags = append(requiredFlags, flag) - } - } - return requiredFlags - }, - "OptionalFlags": func(f []*FlagModel) []*FlagModel { - optionalFlags := []*FlagModel{} - for _, flag := range f { - if !flag.Required { - optionalFlags = append(optionalFlags, flag) - } - } - return optionalFlags - }, "ArgsToTwoColumns": func(a []*ArgModel) [][2]string { rows := [][2]string{} for _, arg := range a { @@ -175,19 +233,11 @@ func (a *Application) UsageForContextWithTemplate(context *ParseContext, indent formatTwoColumns(buf, indent, indent, width, rows) return buf.String() }, - "FormatTwoColumnsWithIndent": func(rows [][2]string, indent, padding int) string { - buf := bytes.NewBuffer(nil) - formatTwoColumns(buf, indent, padding, width, rows) - return buf.String() - }, "FormatAppUsage": formatAppUsage, "FormatCommandUsage": formatCmdUsage, "IsCumulative": func(value Value) bool { - r, ok := value.(remainderArg) - return ok && r.IsCumulative() - }, - "Char": func(c rune) string { - return string(c) + _, ok := value.(remainderArg) + return ok }, } t, err := template.New("usage").Funcs(funcs).Parse(tmpl) @@ -207,5 +257,5 @@ func (a *Application) UsageForContextWithTemplate(context *ParseContext, indent ArgGroupModel: context.arguments.Model(), }, } - return t.Execute(a.usageWriter, ctx) + return t.Execute(w, ctx) } diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/usage_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/usage_test.go index 441b90c2..d2cc6dbd 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/usage_test.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/usage_test.go @@ -2,10 +2,11 @@ package kingpin import ( "bytes" + "fmt" "strings" "testing" - "github.com/alecthomas/assert" + "github.com/stretchr/testify/assert" ) func TestFormatTwoColumns(t *testing.T) { @@ -25,41 +26,14 @@ func TestFormatTwoColumns(t *testing.T) { func TestFormatTwoColumnsWide(t *testing.T) { samples := [][2]string{ - {strings.Repeat("x", 29), "29 chars"}, - {strings.Repeat("x", 30), "30 chars"}} + {strings.Repeat("x", 19), "19 chars"}, + {strings.Repeat("x", 20), "20 chars"}} buf := bytes.NewBuffer(nil) formatTwoColumns(buf, 0, 0, 200, samples) - expected := `xxxxxxxxxxxxxxxxxxxxxxxxxxxxx29 chars -xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - 30 chars + fmt.Println(buf.String()) + expected := `xxxxxxxxxxxxxxxxxxx19 chars +xxxxxxxxxxxxxxxxxxxx + 20 chars ` assert.Equal(t, expected, buf.String()) } - -func TestHiddenCommand(t *testing.T) { - templates := []struct{ name, template string }{ - {"default", DefaultUsageTemplate}, - {"Compact", CompactUsageTemplate}, - {"Long", LongHelpTemplate}, - {"Man", ManPageTemplate}, - } - - var buf bytes.Buffer - t.Log("1") - - a := New("test", "Test").Writer(&buf).Terminate(nil) - a.Command("visible", "visible") - a.Command("hidden", "hidden").Hidden() - - for _, tp := range templates { - buf.Reset() - a.UsageTemplate(tp.template) - a.Parse(nil) - // a.Parse([]string{"--help"}) - usage := buf.String() - t.Logf("Usage for %s is:\n%s\n", tp.name, usage) - - assert.NotContains(t, usage, "hidden") - assert.Contains(t, usage, "visible") - } -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/values.go b/vendor/gopkg.in/alecthomas/kingpin.v2/values.go index b986f127..b3e69848 100644 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/values.go +++ b/vendor/gopkg.in/alecthomas/kingpin.v2/values.go @@ -1,7 +1,5 @@ package kingpin -//go:generate go run ./cmd/genvalues/main.go - import ( "fmt" "net" @@ -9,6 +7,7 @@ import ( "os" "reflect" "regexp" + "strconv" "strings" "time" @@ -53,12 +52,6 @@ type remainderArg interface { IsCumulative() bool } -// Optional interface for flags that can be repeated. -type repeatableFlag interface { - Value - IsCumulative() bool -} - type accumulator struct { element func(value interface{}) Value typ reflect.Type @@ -102,16 +95,129 @@ func (a *accumulator) Set(value string) error { return nil } -func (a *accumulator) Get() interface{} { - return a.slice.Interface() -} - func (a *accumulator) IsCumulative() bool { return true } +// -- bool Value +type boolValue bool + +func newBoolValue(p *bool) *boolValue { + return (*boolValue)(p) +} + +func (b *boolValue) Set(s string) error { + if s == "" { + s = "true" + } + v, err := strconv.ParseBool(s) + *b = boolValue(v) + return err +} + +func (b *boolValue) Get() interface{} { return bool(*b) } + +func (b *boolValue) String() string { return fmt.Sprintf("%v", *b) } + func (b *boolValue) IsBoolFlag() bool { return true } +// -- int Value +type intValue int + +func newIntValue(p *int) *intValue { + return (*intValue)(p) +} + +func (i *intValue) Set(s string) error { + v, err := strconv.ParseInt(s, 0, 64) + *i = intValue(v) + return err +} + +func (i *intValue) Get() interface{} { return int(*i) } + +func (i *intValue) String() string { return fmt.Sprintf("%v", *i) } + +// -- int64 Value +type int64Value int64 + +func newInt64Value(p *int64) *int64Value { + return (*int64Value)(p) +} + +func (i *int64Value) Set(s string) error { + v, err := strconv.ParseInt(s, 0, 64) + *i = int64Value(v) + return err +} + +func (i *int64Value) Get() interface{} { return int64(*i) } + +func (i *int64Value) String() string { return fmt.Sprintf("%v", *i) } + +// -- uint Value +type uintValue uint + +func (i *uintValue) Set(s string) error { + v, err := strconv.ParseUint(s, 0, 64) + *i = uintValue(v) + return err +} + +func (i *uintValue) Get() interface{} { return uint(*i) } + +func (i *uintValue) String() string { return fmt.Sprintf("%v", *i) } + +// -- uint64 Value +type uint64Value uint64 + +func newUint64Value(p *uint64) *uint64Value { + return (*uint64Value)(p) +} + +func (i *uint64Value) Set(s string) error { + v, err := strconv.ParseUint(s, 0, 64) + *i = uint64Value(v) + return err +} + +func (i *uint64Value) Get() interface{} { return uint64(*i) } + +func (i *uint64Value) String() string { return fmt.Sprintf("%v", *i) } + +// -- string Value +type stringValue string + +func newStringValue(p *string) *stringValue { + return (*stringValue)(p) +} + +func (s *stringValue) Set(val string) error { + *s = stringValue(val) + return nil +} + +func (s *stringValue) Get() interface{} { return string(*s) } + +func (s *stringValue) String() string { return fmt.Sprintf("%s", *s) } + +// -- float64 Value +type float64Value float64 + +func newFloat64Value(p *float64) *float64Value { + return (*float64Value)(p) +} + +func (f *float64Value) Set(s string) error { + v, err := strconv.ParseFloat(s, 64) + *f = float64Value(v) + return err +} + +func (f *float64Value) Get() interface{} { return float64(*f) } + +func (f *float64Value) String() string { return fmt.Sprintf("%v", *f) } + // -- time.Duration Value type durationValue time.Duration @@ -146,11 +252,6 @@ func (s *stringMapValue) Set(value string) error { (*s)[parts[0]] = parts[1] return nil } - -func (s *stringMapValue) Get() interface{} { - return (map[string]string)(*s) -} - func (s *stringMapValue) String() string { return fmt.Sprintf("%s", map[string]string(*s)) } @@ -175,10 +276,6 @@ func (i *ipValue) Set(value string) error { } } -func (i *ipValue) Get() interface{} { - return (net.IP)(*i) -} - func (i *ipValue) String() string { return (*net.IP)(i).String() } @@ -201,10 +298,6 @@ func (i *tcpAddrValue) Set(value string) error { } } -func (t *tcpAddrValue) Get() interface{} { - return (*net.TCPAddr)(*t.addr) -} - func (i *tcpAddrValue) String() string { return (*i.addr).String() } @@ -235,10 +328,6 @@ func (e *fileStatValue) Set(value string) error { return nil } -func (f *fileStatValue) Get() interface{} { - return (string)(*f.path) -} - func (e *fileStatValue) String() string { return *e.path } @@ -264,10 +353,6 @@ func (f *fileValue) Set(value string) error { } } -func (f *fileValue) Get() interface{} { - return (*os.File)(*f.f) -} - func (f *fileValue) String() string { if *f.f == nil { return "<nil>" @@ -293,10 +378,6 @@ func (u *urlValue) Set(value string) error { } } -func (u *urlValue) Get() interface{} { - return (*url.URL)(*u.u) -} - func (u *urlValue) String() string { if *u.u == nil { return "<nil>" @@ -320,10 +401,6 @@ func (u *urlListValue) Set(value string) error { } } -func (u *urlListValue) Get() interface{} { - return ([]*url.URL)(*u) -} - func (u *urlListValue) String() string { out := []string{} for _, url := range *u { @@ -338,9 +415,9 @@ type enumValue struct { options []string } -func newEnumFlag(target *string, options ...string) *enumValue { +func newEnumFlag(target **string, options ...string) *enumValue { return &enumValue{ - value: target, + value: *target, options: options, } } @@ -359,10 +436,6 @@ func (a *enumValue) Set(value string) error { return fmt.Errorf("enum value must be one of %s, got '%s'", strings.Join(a.options, ","), value) } -func (e *enumValue) Get() interface{} { - return (string)(*e.value) -} - // -- []string Enum Value type enumsValue struct { value *[]string @@ -386,10 +459,6 @@ func (s *enumsValue) Set(value string) error { return fmt.Errorf("enum value must be one of %s, got '%s'", strings.Join(s.options, ","), value) } -func (e *enumsValue) Get() interface{} { - return ([]string)(*e.value) -} - func (s *enumsValue) String() string { return strings.Join(*s.value, ",") } @@ -414,53 +483,3 @@ func (d *bytesValue) Set(s string) error { func (d *bytesValue) Get() interface{} { return units.Base2Bytes(*d) } func (d *bytesValue) String() string { return (*units.Base2Bytes)(d).String() } - -func newExistingFileValue(target *string) *fileStatValue { - return newFileStatValue(target, func(s os.FileInfo) error { - if s.IsDir() { - return fmt.Errorf("'%s' is a directory", s.Name()) - } - return nil - }) -} - -func newExistingDirValue(target *string) *fileStatValue { - return newFileStatValue(target, func(s os.FileInfo) error { - if !s.IsDir() { - return fmt.Errorf("'%s' is a file", s.Name()) - } - return nil - }) -} - -func newExistingFileOrDirValue(target *string) *fileStatValue { - return newFileStatValue(target, func(s os.FileInfo) error { return nil }) -} - -type counterValue int - -func newCounterValue(n *int) *counterValue { - return (*counterValue)(n) -} - -func (c *counterValue) Set(s string) error { - *c++ - return nil -} - -func (c *counterValue) Get() interface{} { return (int)(*c) } -func (c *counterValue) IsBoolFlag() bool { return true } -func (c *counterValue) String() string { return fmt.Sprintf("%d", *c) } -func (c *counterValue) IsCumulative() bool { return true } - -func resolveHost(value string) (net.IP, error) { - if ip := net.ParseIP(value); ip != nil { - return ip, nil - } else { - if addr, err := net.ResolveIPAddr("ip", value); err != nil { - return nil, err - } else { - return addr.IP, nil - } - } -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/values.json b/vendor/gopkg.in/alecthomas/kingpin.v2/values.json deleted file mode 100644 index 23c67448..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/values.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - {"type": "bool", "parser": "strconv.ParseBool(s)"}, - {"type": "string", "parser": "s, error(nil)", "format": "string(*f.v)", "plural": "Strings"}, - {"type": "uint", "parser": "strconv.ParseUint(s, 0, 64)", "plural": "Uints"}, - {"type": "uint8", "parser": "strconv.ParseUint(s, 0, 8)"}, - {"type": "uint16", "parser": "strconv.ParseUint(s, 0, 16)"}, - {"type": "uint32", "parser": "strconv.ParseUint(s, 0, 32)"}, - {"type": "uint64", "parser": "strconv.ParseUint(s, 0, 64)"}, - {"type": "int", "parser": "strconv.ParseFloat(s, 64)", "plural": "Ints"}, - {"type": "int8", "parser": "strconv.ParseInt(s, 0, 8)"}, - {"type": "int16", "parser": "strconv.ParseInt(s, 0, 16)"}, - {"type": "int32", "parser": "strconv.ParseInt(s, 0, 32)"}, - {"type": "int64", "parser": "strconv.ParseInt(s, 0, 64)"}, - {"type": "float64", "parser": "strconv.ParseFloat(s, 64)"}, - {"type": "float32", "parser": "strconv.ParseFloat(s, 32)"}, - {"name": "Duration", "type": "time.Duration", "no_value_parser": true}, - {"name": "IP", "type": "net.IP", "no_value_parser": true}, - {"name": "TCPAddr", "Type": "*net.TCPAddr", "plural": "TCPList", "no_value_parser": true}, - {"name": "ExistingFile", "Type": "string", "plural": "ExistingFiles", "no_value_parser": true}, - {"name": "ExistingDir", "Type": "string", "plural": "ExistingDirs", "no_value_parser": true}, - {"name": "ExistingFileOrDir", "Type": "string", "plural": "ExistingFilesOrDirs", "no_value_parser": true}, - {"name": "Regexp", "Type": "*regexp.Regexp", "parser": "regexp.Compile(s)"}, - {"name": "ResolvedIP", "Type": "net.IP", "parser": "resolveHost(s)", "help": "Resolve a hostname or IP to an IP."}, - {"name": "HexBytes", "Type": "[]byte", "parser": "hex.DecodeString(s)", "help": "Bytes as a hex string."} -] diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/values_generated.go b/vendor/gopkg.in/alecthomas/kingpin.v2/values_generated.go deleted file mode 100644 index 602cfc9b..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/values_generated.go +++ /dev/null @@ -1,821 +0,0 @@ -package kingpin - -import ( - "encoding/hex" - "fmt" - "net" - "regexp" - "strconv" - "time" -) - -// This file is autogenerated by "go generate .". Do not modify. - -// -- bool Value -type boolValue struct{ v *bool } - -func newBoolValue(p *bool) *boolValue { - return &boolValue{p} -} - -func (f *boolValue) Set(s string) error { - v, err := strconv.ParseBool(s) - if err == nil { - *f.v = (bool)(v) - } - return err -} - -func (f *boolValue) Get() interface{} { return (bool)(*f.v) } - -func (f *boolValue) String() string { return fmt.Sprintf("%v", *f) } - -// Bool parses the next command-line value as bool. -func (p *parserMixin) Bool() (target *bool) { - target = new(bool) - p.BoolVar(target) - return -} - -func (p *parserMixin) BoolVar(target *bool) { - p.SetValue(newBoolValue(target)) -} - -// BoolList accumulates bool values into a slice. -func (p *parserMixin) BoolList() (target *[]bool) { - target = new([]bool) - p.BoolListVar(target) - return -} - -func (p *parserMixin) BoolListVar(target *[]bool) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newBoolValue(v.(*bool)) - })) -} - -// -- string Value -type stringValue struct{ v *string } - -func newStringValue(p *string) *stringValue { - return &stringValue{p} -} - -func (f *stringValue) Set(s string) error { - v, err := s, error(nil) - if err == nil { - *f.v = (string)(v) - } - return err -} - -func (f *stringValue) Get() interface{} { return (string)(*f.v) } - -func (f *stringValue) String() string { return string(*f.v) } - -// String parses the next command-line value as string. -func (p *parserMixin) String() (target *string) { - target = new(string) - p.StringVar(target) - return -} - -func (p *parserMixin) StringVar(target *string) { - p.SetValue(newStringValue(target)) -} - -// Strings accumulates string values into a slice. -func (p *parserMixin) Strings() (target *[]string) { - target = new([]string) - p.StringsVar(target) - return -} - -func (p *parserMixin) StringsVar(target *[]string) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newStringValue(v.(*string)) - })) -} - -// -- uint Value -type uintValue struct{ v *uint } - -func newUintValue(p *uint) *uintValue { - return &uintValue{p} -} - -func (f *uintValue) Set(s string) error { - v, err := strconv.ParseUint(s, 0, 64) - if err == nil { - *f.v = (uint)(v) - } - return err -} - -func (f *uintValue) Get() interface{} { return (uint)(*f.v) } - -func (f *uintValue) String() string { return fmt.Sprintf("%v", *f) } - -// Uint parses the next command-line value as uint. -func (p *parserMixin) Uint() (target *uint) { - target = new(uint) - p.UintVar(target) - return -} - -func (p *parserMixin) UintVar(target *uint) { - p.SetValue(newUintValue(target)) -} - -// Uints accumulates uint values into a slice. -func (p *parserMixin) Uints() (target *[]uint) { - target = new([]uint) - p.UintsVar(target) - return -} - -func (p *parserMixin) UintsVar(target *[]uint) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newUintValue(v.(*uint)) - })) -} - -// -- uint8 Value -type uint8Value struct{ v *uint8 } - -func newUint8Value(p *uint8) *uint8Value { - return &uint8Value{p} -} - -func (f *uint8Value) Set(s string) error { - v, err := strconv.ParseUint(s, 0, 8) - if err == nil { - *f.v = (uint8)(v) - } - return err -} - -func (f *uint8Value) Get() interface{} { return (uint8)(*f.v) } - -func (f *uint8Value) String() string { return fmt.Sprintf("%v", *f) } - -// Uint8 parses the next command-line value as uint8. -func (p *parserMixin) Uint8() (target *uint8) { - target = new(uint8) - p.Uint8Var(target) - return -} - -func (p *parserMixin) Uint8Var(target *uint8) { - p.SetValue(newUint8Value(target)) -} - -// Uint8List accumulates uint8 values into a slice. -func (p *parserMixin) Uint8List() (target *[]uint8) { - target = new([]uint8) - p.Uint8ListVar(target) - return -} - -func (p *parserMixin) Uint8ListVar(target *[]uint8) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newUint8Value(v.(*uint8)) - })) -} - -// -- uint16 Value -type uint16Value struct{ v *uint16 } - -func newUint16Value(p *uint16) *uint16Value { - return &uint16Value{p} -} - -func (f *uint16Value) Set(s string) error { - v, err := strconv.ParseUint(s, 0, 16) - if err == nil { - *f.v = (uint16)(v) - } - return err -} - -func (f *uint16Value) Get() interface{} { return (uint16)(*f.v) } - -func (f *uint16Value) String() string { return fmt.Sprintf("%v", *f) } - -// Uint16 parses the next command-line value as uint16. -func (p *parserMixin) Uint16() (target *uint16) { - target = new(uint16) - p.Uint16Var(target) - return -} - -func (p *parserMixin) Uint16Var(target *uint16) { - p.SetValue(newUint16Value(target)) -} - -// Uint16List accumulates uint16 values into a slice. -func (p *parserMixin) Uint16List() (target *[]uint16) { - target = new([]uint16) - p.Uint16ListVar(target) - return -} - -func (p *parserMixin) Uint16ListVar(target *[]uint16) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newUint16Value(v.(*uint16)) - })) -} - -// -- uint32 Value -type uint32Value struct{ v *uint32 } - -func newUint32Value(p *uint32) *uint32Value { - return &uint32Value{p} -} - -func (f *uint32Value) Set(s string) error { - v, err := strconv.ParseUint(s, 0, 32) - if err == nil { - *f.v = (uint32)(v) - } - return err -} - -func (f *uint32Value) Get() interface{} { return (uint32)(*f.v) } - -func (f *uint32Value) String() string { return fmt.Sprintf("%v", *f) } - -// Uint32 parses the next command-line value as uint32. -func (p *parserMixin) Uint32() (target *uint32) { - target = new(uint32) - p.Uint32Var(target) - return -} - -func (p *parserMixin) Uint32Var(target *uint32) { - p.SetValue(newUint32Value(target)) -} - -// Uint32List accumulates uint32 values into a slice. -func (p *parserMixin) Uint32List() (target *[]uint32) { - target = new([]uint32) - p.Uint32ListVar(target) - return -} - -func (p *parserMixin) Uint32ListVar(target *[]uint32) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newUint32Value(v.(*uint32)) - })) -} - -// -- uint64 Value -type uint64Value struct{ v *uint64 } - -func newUint64Value(p *uint64) *uint64Value { - return &uint64Value{p} -} - -func (f *uint64Value) Set(s string) error { - v, err := strconv.ParseUint(s, 0, 64) - if err == nil { - *f.v = (uint64)(v) - } - return err -} - -func (f *uint64Value) Get() interface{} { return (uint64)(*f.v) } - -func (f *uint64Value) String() string { return fmt.Sprintf("%v", *f) } - -// Uint64 parses the next command-line value as uint64. -func (p *parserMixin) Uint64() (target *uint64) { - target = new(uint64) - p.Uint64Var(target) - return -} - -func (p *parserMixin) Uint64Var(target *uint64) { - p.SetValue(newUint64Value(target)) -} - -// Uint64List accumulates uint64 values into a slice. -func (p *parserMixin) Uint64List() (target *[]uint64) { - target = new([]uint64) - p.Uint64ListVar(target) - return -} - -func (p *parserMixin) Uint64ListVar(target *[]uint64) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newUint64Value(v.(*uint64)) - })) -} - -// -- int Value -type intValue struct{ v *int } - -func newIntValue(p *int) *intValue { - return &intValue{p} -} - -func (f *intValue) Set(s string) error { - v, err := strconv.ParseFloat(s, 64) - if err == nil { - *f.v = (int)(v) - } - return err -} - -func (f *intValue) Get() interface{} { return (int)(*f.v) } - -func (f *intValue) String() string { return fmt.Sprintf("%v", *f) } - -// Int parses the next command-line value as int. -func (p *parserMixin) Int() (target *int) { - target = new(int) - p.IntVar(target) - return -} - -func (p *parserMixin) IntVar(target *int) { - p.SetValue(newIntValue(target)) -} - -// Ints accumulates int values into a slice. -func (p *parserMixin) Ints() (target *[]int) { - target = new([]int) - p.IntsVar(target) - return -} - -func (p *parserMixin) IntsVar(target *[]int) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newIntValue(v.(*int)) - })) -} - -// -- int8 Value -type int8Value struct{ v *int8 } - -func newInt8Value(p *int8) *int8Value { - return &int8Value{p} -} - -func (f *int8Value) Set(s string) error { - v, err := strconv.ParseInt(s, 0, 8) - if err == nil { - *f.v = (int8)(v) - } - return err -} - -func (f *int8Value) Get() interface{} { return (int8)(*f.v) } - -func (f *int8Value) String() string { return fmt.Sprintf("%v", *f) } - -// Int8 parses the next command-line value as int8. -func (p *parserMixin) Int8() (target *int8) { - target = new(int8) - p.Int8Var(target) - return -} - -func (p *parserMixin) Int8Var(target *int8) { - p.SetValue(newInt8Value(target)) -} - -// Int8List accumulates int8 values into a slice. -func (p *parserMixin) Int8List() (target *[]int8) { - target = new([]int8) - p.Int8ListVar(target) - return -} - -func (p *parserMixin) Int8ListVar(target *[]int8) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newInt8Value(v.(*int8)) - })) -} - -// -- int16 Value -type int16Value struct{ v *int16 } - -func newInt16Value(p *int16) *int16Value { - return &int16Value{p} -} - -func (f *int16Value) Set(s string) error { - v, err := strconv.ParseInt(s, 0, 16) - if err == nil { - *f.v = (int16)(v) - } - return err -} - -func (f *int16Value) Get() interface{} { return (int16)(*f.v) } - -func (f *int16Value) String() string { return fmt.Sprintf("%v", *f) } - -// Int16 parses the next command-line value as int16. -func (p *parserMixin) Int16() (target *int16) { - target = new(int16) - p.Int16Var(target) - return -} - -func (p *parserMixin) Int16Var(target *int16) { - p.SetValue(newInt16Value(target)) -} - -// Int16List accumulates int16 values into a slice. -func (p *parserMixin) Int16List() (target *[]int16) { - target = new([]int16) - p.Int16ListVar(target) - return -} - -func (p *parserMixin) Int16ListVar(target *[]int16) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newInt16Value(v.(*int16)) - })) -} - -// -- int32 Value -type int32Value struct{ v *int32 } - -func newInt32Value(p *int32) *int32Value { - return &int32Value{p} -} - -func (f *int32Value) Set(s string) error { - v, err := strconv.ParseInt(s, 0, 32) - if err == nil { - *f.v = (int32)(v) - } - return err -} - -func (f *int32Value) Get() interface{} { return (int32)(*f.v) } - -func (f *int32Value) String() string { return fmt.Sprintf("%v", *f) } - -// Int32 parses the next command-line value as int32. -func (p *parserMixin) Int32() (target *int32) { - target = new(int32) - p.Int32Var(target) - return -} - -func (p *parserMixin) Int32Var(target *int32) { - p.SetValue(newInt32Value(target)) -} - -// Int32List accumulates int32 values into a slice. -func (p *parserMixin) Int32List() (target *[]int32) { - target = new([]int32) - p.Int32ListVar(target) - return -} - -func (p *parserMixin) Int32ListVar(target *[]int32) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newInt32Value(v.(*int32)) - })) -} - -// -- int64 Value -type int64Value struct{ v *int64 } - -func newInt64Value(p *int64) *int64Value { - return &int64Value{p} -} - -func (f *int64Value) Set(s string) error { - v, err := strconv.ParseInt(s, 0, 64) - if err == nil { - *f.v = (int64)(v) - } - return err -} - -func (f *int64Value) Get() interface{} { return (int64)(*f.v) } - -func (f *int64Value) String() string { return fmt.Sprintf("%v", *f) } - -// Int64 parses the next command-line value as int64. -func (p *parserMixin) Int64() (target *int64) { - target = new(int64) - p.Int64Var(target) - return -} - -func (p *parserMixin) Int64Var(target *int64) { - p.SetValue(newInt64Value(target)) -} - -// Int64List accumulates int64 values into a slice. -func (p *parserMixin) Int64List() (target *[]int64) { - target = new([]int64) - p.Int64ListVar(target) - return -} - -func (p *parserMixin) Int64ListVar(target *[]int64) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newInt64Value(v.(*int64)) - })) -} - -// -- float64 Value -type float64Value struct{ v *float64 } - -func newFloat64Value(p *float64) *float64Value { - return &float64Value{p} -} - -func (f *float64Value) Set(s string) error { - v, err := strconv.ParseFloat(s, 64) - if err == nil { - *f.v = (float64)(v) - } - return err -} - -func (f *float64Value) Get() interface{} { return (float64)(*f.v) } - -func (f *float64Value) String() string { return fmt.Sprintf("%v", *f) } - -// Float64 parses the next command-line value as float64. -func (p *parserMixin) Float64() (target *float64) { - target = new(float64) - p.Float64Var(target) - return -} - -func (p *parserMixin) Float64Var(target *float64) { - p.SetValue(newFloat64Value(target)) -} - -// Float64List accumulates float64 values into a slice. -func (p *parserMixin) Float64List() (target *[]float64) { - target = new([]float64) - p.Float64ListVar(target) - return -} - -func (p *parserMixin) Float64ListVar(target *[]float64) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newFloat64Value(v.(*float64)) - })) -} - -// -- float32 Value -type float32Value struct{ v *float32 } - -func newFloat32Value(p *float32) *float32Value { - return &float32Value{p} -} - -func (f *float32Value) Set(s string) error { - v, err := strconv.ParseFloat(s, 32) - if err == nil { - *f.v = (float32)(v) - } - return err -} - -func (f *float32Value) Get() interface{} { return (float32)(*f.v) } - -func (f *float32Value) String() string { return fmt.Sprintf("%v", *f) } - -// Float32 parses the next command-line value as float32. -func (p *parserMixin) Float32() (target *float32) { - target = new(float32) - p.Float32Var(target) - return -} - -func (p *parserMixin) Float32Var(target *float32) { - p.SetValue(newFloat32Value(target)) -} - -// Float32List accumulates float32 values into a slice. -func (p *parserMixin) Float32List() (target *[]float32) { - target = new([]float32) - p.Float32ListVar(target) - return -} - -func (p *parserMixin) Float32ListVar(target *[]float32) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newFloat32Value(v.(*float32)) - })) -} - -// DurationList accumulates time.Duration values into a slice. -func (p *parserMixin) DurationList() (target *[]time.Duration) { - target = new([]time.Duration) - p.DurationListVar(target) - return -} - -func (p *parserMixin) DurationListVar(target *[]time.Duration) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newDurationValue(v.(*time.Duration)) - })) -} - -// IPList accumulates net.IP values into a slice. -func (p *parserMixin) IPList() (target *[]net.IP) { - target = new([]net.IP) - p.IPListVar(target) - return -} - -func (p *parserMixin) IPListVar(target *[]net.IP) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newIPValue(v.(*net.IP)) - })) -} - -// TCPList accumulates *net.TCPAddr values into a slice. -func (p *parserMixin) TCPList() (target *[]*net.TCPAddr) { - target = new([]*net.TCPAddr) - p.TCPListVar(target) - return -} - -func (p *parserMixin) TCPListVar(target *[]*net.TCPAddr) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newTCPAddrValue(v.(**net.TCPAddr)) - })) -} - -// ExistingFiles accumulates string values into a slice. -func (p *parserMixin) ExistingFiles() (target *[]string) { - target = new([]string) - p.ExistingFilesVar(target) - return -} - -func (p *parserMixin) ExistingFilesVar(target *[]string) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newExistingFileValue(v.(*string)) - })) -} - -// ExistingDirs accumulates string values into a slice. -func (p *parserMixin) ExistingDirs() (target *[]string) { - target = new([]string) - p.ExistingDirsVar(target) - return -} - -func (p *parserMixin) ExistingDirsVar(target *[]string) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newExistingDirValue(v.(*string)) - })) -} - -// ExistingFilesOrDirs accumulates string values into a slice. -func (p *parserMixin) ExistingFilesOrDirs() (target *[]string) { - target = new([]string) - p.ExistingFilesOrDirsVar(target) - return -} - -func (p *parserMixin) ExistingFilesOrDirsVar(target *[]string) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newExistingFileOrDirValue(v.(*string)) - })) -} - -// -- *regexp.Regexp Value -type regexpValue struct{ v **regexp.Regexp } - -func newRegexpValue(p **regexp.Regexp) *regexpValue { - return ®expValue{p} -} - -func (f *regexpValue) Set(s string) error { - v, err := regexp.Compile(s) - if err == nil { - *f.v = (*regexp.Regexp)(v) - } - return err -} - -func (f *regexpValue) Get() interface{} { return (*regexp.Regexp)(*f.v) } - -func (f *regexpValue) String() string { return fmt.Sprintf("%v", *f) } - -// Regexp parses the next command-line value as *regexp.Regexp. -func (p *parserMixin) Regexp() (target **regexp.Regexp) { - target = new(*regexp.Regexp) - p.RegexpVar(target) - return -} - -func (p *parserMixin) RegexpVar(target **regexp.Regexp) { - p.SetValue(newRegexpValue(target)) -} - -// RegexpList accumulates *regexp.Regexp values into a slice. -func (p *parserMixin) RegexpList() (target *[]*regexp.Regexp) { - target = new([]*regexp.Regexp) - p.RegexpListVar(target) - return -} - -func (p *parserMixin) RegexpListVar(target *[]*regexp.Regexp) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newRegexpValue(v.(**regexp.Regexp)) - })) -} - -// -- net.IP Value -type resolvedIPValue struct{ v *net.IP } - -func newResolvedIPValue(p *net.IP) *resolvedIPValue { - return &resolvedIPValue{p} -} - -func (f *resolvedIPValue) Set(s string) error { - v, err := resolveHost(s) - if err == nil { - *f.v = (net.IP)(v) - } - return err -} - -func (f *resolvedIPValue) Get() interface{} { return (net.IP)(*f.v) } - -func (f *resolvedIPValue) String() string { return fmt.Sprintf("%v", *f) } - -// Resolve a hostname or IP to an IP. -func (p *parserMixin) ResolvedIP() (target *net.IP) { - target = new(net.IP) - p.ResolvedIPVar(target) - return -} - -func (p *parserMixin) ResolvedIPVar(target *net.IP) { - p.SetValue(newResolvedIPValue(target)) -} - -// ResolvedIPList accumulates net.IP values into a slice. -func (p *parserMixin) ResolvedIPList() (target *[]net.IP) { - target = new([]net.IP) - p.ResolvedIPListVar(target) - return -} - -func (p *parserMixin) ResolvedIPListVar(target *[]net.IP) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newResolvedIPValue(v.(*net.IP)) - })) -} - -// -- []byte Value -type hexBytesValue struct{ v *[]byte } - -func newHexBytesValue(p *[]byte) *hexBytesValue { - return &hexBytesValue{p} -} - -func (f *hexBytesValue) Set(s string) error { - v, err := hex.DecodeString(s) - if err == nil { - *f.v = ([]byte)(v) - } - return err -} - -func (f *hexBytesValue) Get() interface{} { return ([]byte)(*f.v) } - -func (f *hexBytesValue) String() string { return fmt.Sprintf("%v", *f) } - -// Bytes as a hex string. -func (p *parserMixin) HexBytes() (target *[]byte) { - target = new([]byte) - p.HexBytesVar(target) - return -} - -func (p *parserMixin) HexBytesVar(target *[]byte) { - p.SetValue(newHexBytesValue(target)) -} - -// HexBytesList accumulates []byte values into a slice. -func (p *parserMixin) HexBytesList() (target *[][]byte) { - target = new([][]byte) - p.HexBytesListVar(target) - return -} - -func (p *parserMixin) HexBytesListVar(target *[][]byte) { - p.SetValue(newAccumulator(target, func(v interface{}) Value { - return newHexBytesValue(v.(*[]byte)) - })) -} diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2/values_test.go b/vendor/gopkg.in/alecthomas/kingpin.v2/values_test.go deleted file mode 100644 index 7d1c375b..00000000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2/values_test.go +++ /dev/null @@ -1,89 +0,0 @@ -package kingpin - -import ( - "net" - - "github.com/alecthomas/assert" - - "testing" -) - -func TestAccumulatorStrings(t *testing.T) { - target := []string{} - acc := newAccumulator(&target, func(v interface{}) Value { return newStringValue(v.(*string)) }) - acc.Set("a") - assert.Equal(t, []string{"a"}, target) - acc.Set("b") - assert.Equal(t, []string{"a", "b"}, target) -} - -func TestStrings(t *testing.T) { - app := New("", "") - app.Arg("a", "").Required().String() - app.Arg("b", "").Required().String() - c := app.Arg("c", "").Required().Strings() - app.Parse([]string{"a", "b", "a", "b"}) - assert.Equal(t, []string{"a", "b"}, *c) -} - -func TestEnum(t *testing.T) { - app := New("", "") - a := app.Arg("a", "").Enum("one", "two", "three") - _, err := app.Parse([]string{"moo"}) - assert.Error(t, err) - _, err = app.Parse([]string{"one"}) - assert.NoError(t, err) - assert.Equal(t, "one", *a) -} - -func TestEnumVar(t *testing.T) { - app := New("", "") - var a string - app.Arg("a", "").EnumVar(&a, "one", "two", "three") - _, err := app.Parse([]string{"moo"}) - assert.Error(t, err) - _, err = app.Parse([]string{"one"}) - assert.NoError(t, err) - assert.Equal(t, "one", a) -} - -func TestCounter(t *testing.T) { - app := New("", "") - c := app.Flag("f", "").Counter() - _, err := app.Parse([]string{"--f", "--f", "--f"}) - assert.NoError(t, err) - assert.Equal(t, 3, *c) -} - -func TestIPv4Addr(t *testing.T) { - app := newTestApp() - flag := app.Flag("addr", "").ResolvedIP() - _, err := app.Parse([]string{"--addr", net.IPv4(1, 2, 3, 4).String()}) - assert.NoError(t, err) - assert.NotNil(t, *flag) - assert.Equal(t, net.IPv4(1, 2, 3, 4), *flag) -} - -func TestInvalidIPv4Addr(t *testing.T) { - app := newTestApp() - app.Flag("addr", "").ResolvedIP() - _, err := app.Parse([]string{"--addr", "1.2.3.256"}) - assert.Error(t, err) -} - -func TestIPv6Addr(t *testing.T) { - app := newTestApp() - flag := app.Flag("addr", "").ResolvedIP() - _, err := app.Parse([]string{"--addr", net.IPv6interfacelocalallnodes.String()}) - assert.NoError(t, err) - assert.NotNil(t, *flag) - assert.Equal(t, net.IPv6interfacelocalallnodes, *flag) -} - -func TestHexBytes(t *testing.T) { - app := newTestApp() - actual := app.Arg("bytes", "").HexBytes() - _, err := app.Parse([]string{"01020aff"}) - assert.NoError(t, err) - assert.Equal(t, []byte{0x01, 0x02, 0x0a, 0xff}, *actual) -}