From 39006846ec8653630c46df9df83936d7991a7386 Mon Sep 17 00:00:00 2001 From: Miguel Moll Date: Tue, 7 Feb 2017 00:22:17 -0500 Subject: [PATCH] go aws-sdk update --- Godeps/Godeps.json | 210 +- .../aws/aws-sdk-go/aws/endpoints/defaults.go | 20 +- .../aws/aws-sdk-go/aws/session/session.go | 6 +- vendor/github.com/aws/aws-sdk-go/aws/types.go | 2 +- .../github.com/aws/aws-sdk-go/aws/version.go | 2 +- .../aws/aws-sdk-go/private/model/api/api.go | 43 +- .../private/model/api/customization_passes.go | 3 +- .../aws-sdk-go/private/model/api/operation.go | 8 +- .../aws/aws-sdk-go/private/model/api/shape.go | 8 +- .../private/protocol/json/jsonutil/build.go | 60 +- .../aws/aws-sdk-go/service/acm/api.go | 232 +- .../aws/aws-sdk-go/service/acm/errors.go | 71 + .../aws/aws-sdk-go/service/autoscaling/api.go | 162 +- .../aws-sdk-go/service/autoscaling/errors.go | 47 + .../aws-sdk-go/service/cloudformation/api.go | 26 +- .../service/cloudformation/errors.go | 40 + .../aws/aws-sdk-go/service/cloudwatch/api.go | 32 +- .../aws-sdk-go/service/cloudwatch/errors.go | 54 + .../aws-sdk-go/service/cloudwatchlogs/api.go | 192 +- .../service/cloudwatchlogs/errors.go | 60 + .../aws/aws-sdk-go/service/dynamodb/api.go | 1979 ++++++++--------- .../dynamodb/dynamodbattribute/decode.go | 2 +- .../aws/aws-sdk-go/service/dynamodb/errors.go | 64 + .../aws-sdk-go/service/dynamodb/service.go | 131 +- .../aws/aws-sdk-go/service/ec2/api.go | 120 +- .../aws/aws-sdk-go/service/ec2/errors.go | 3 + .../aws/aws-sdk-go/service/ecr/api.go | 136 +- .../aws/aws-sdk-go/service/ecr/errors.go | 121 + .../aws/aws-sdk-go/service/ecs/api.go | 568 +++-- .../aws/aws-sdk-go/service/ecs/errors.go | 108 + .../aws/aws-sdk-go/service/elb/api.go | 160 +- .../aws/aws-sdk-go/service/elb/errors.go | 134 ++ .../aws/aws-sdk-go/service/iam/api.go | 949 ++++---- .../aws/aws-sdk-go/service/iam/errors.go | 169 ++ .../aws/aws-sdk-go/service/kinesis/api.go | 118 +- .../aws/aws-sdk-go/service/kinesis/errors.go | 51 + .../aws/aws-sdk-go/service/kms/api.go | 382 ++-- .../aws/aws-sdk-go/service/kms/errors.go | 148 ++ .../aws/aws-sdk-go/service/lambda/api.go | 315 ++- .../aws/aws-sdk-go/service/lambda/errors.go | 148 ++ .../aws/aws-sdk-go/service/lambda/service.go | 4 +- .../aws/aws-sdk-go/service/rds/api.go | 1171 ++++++---- .../aws-sdk-go/service/rds/customizations.go | 16 +- .../aws/aws-sdk-go/service/rds/errors.go | 490 ++++ .../aws/aws-sdk-go/service/s3/api.go | 25 +- .../aws/aws-sdk-go/service/s3/errors.go | 48 + .../aws/aws-sdk-go/service/sns/api.go | 238 +- .../aws/aws-sdk-go/service/sns/errors.go | 67 + .../aws/aws-sdk-go/service/sqs/api.go | 60 +- .../aws/aws-sdk-go/service/sqs/errors.go | 110 + .../aws/aws-sdk-go/service/sts/api.go | 42 +- .../aws/aws-sdk-go/service/sts/errors.go | 73 + 52 files changed, 6072 insertions(+), 3356 deletions(-) create mode 100644 vendor/github.com/aws/aws-sdk-go/service/acm/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/elb/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/iam/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/kms/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/rds/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/sns/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/sts/errors.go diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index f473ed4fc2..db5d0c74ca 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -1,7 +1,7 @@ { "ImportPath": "github.com/convox/rack", "GoVersion": "go1.7", - "GodepVersion": "v75", + "GodepVersion": "v76", "Packages": [ "./..." ], @@ -17,83 +17,83 @@ }, { "ImportPath": "github.com/aws/aws-sdk-go/aws", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/awserr", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/awsutil", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/client", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/client/metadata", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/corehandlers", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/credentials", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/credentials/stscreds", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/defaults", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/ec2metadata", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/request", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/session", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/signer/v4", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/awstesting", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/endpoints", @@ -102,168 +102,168 @@ }, { "ImportPath": "github.com/aws/aws-sdk-go/private/model/api", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/ec2query", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/query", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/rest", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restjson", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restxml", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/util", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/private/waiter", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/acm", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/autoscaling", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/cloudformation", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatch", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatchlogs", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/dynamodb", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/ec2", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/ecr", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/ecs", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/elb", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/iam", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/kinesis", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/kms", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/lambda", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/rds", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/s3", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/sns", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/sqs", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/service/sts", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/briandowns/spinner", @@ -575,18 +575,18 @@ }, { "ImportPath": "github.com/aws/aws-sdk-go/aws/endpoints", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" }, { "ImportPath": "github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath", - "Comment": "v1.6.9-2-g6ad900d", - "Rev": "6ad900d30b0f1a41b14ee02300f7268bdabea1eb" + "Comment": "v1.6.18-6-g4590e9b", + "Rev": "4590e9b51cd6698144a025a75608fa7a90752d5d" } ] } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go index 945f408bb9..aa29a4077f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go @@ -49,6 +49,7 @@ const ( AppstreamServiceID = "appstream" // Appstream. Appstream2ServiceID = "appstream2" // Appstream2. AutoscalingServiceID = "autoscaling" // Autoscaling. + BatchServiceID = "batch" // Batch. BudgetsServiceID = "budgets" // Budgets. CloudformationServiceID = "cloudformation" // Cloudformation. CloudfrontServiceID = "cloudfront" // Cloudfront. @@ -63,6 +64,7 @@ const ( CognitoIdpServiceID = "cognito-idp" // CognitoIdp. CognitoSyncServiceID = "cognito-sync" // CognitoSync. ConfigServiceID = "config" // Config. + CurServiceID = "cur" // Cur. DatapipelineServiceID = "datapipeline" // Datapipeline. DevicefarmServiceID = "devicefarm" // Devicefarm. DirectconnectServiceID = "directconnect" // Directconnect. @@ -320,6 +322,12 @@ var awsPartition = partition{ "us-west-2": endpoint{}, }, }, + "batch": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, "budgets": service{ PartitionEndpoint: "aws-global", IsRegionalized: boxedFalse, @@ -523,6 +531,12 @@ var awsPartition = partition{ "us-west-2": endpoint{}, }, }, + "cur": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, "datapipeline": service{ Endpoints: endpoints{ @@ -1041,7 +1055,11 @@ var awsPartition = partition{ }, }, "metering.marketplace": service{ - + Defaults: endpoint{ + CredentialScope: credentialScope{ + Service: "aws-marketplace", + }, + }, Endpoints: endpoints{ "ap-northeast-1": endpoint{}, "ap-southeast-1": endpoint{}, 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 c9427e9133..18743baf2b 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 @@ -40,7 +40,7 @@ type Session struct { // // If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value // the shared config file (~/.aws/config) will also be loaded, in addition to -// the shared credentials file (~/.aws/config). Values set in both the +// the shared credentials file (~/.aws/credentials). Values set in both the // shared config, and shared credentials will be taken from the shared // credentials file. // @@ -83,7 +83,7 @@ func New(cfgs ...*aws.Config) *Session { // // If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value // the shared config file (~/.aws/config) will also be loaded in addition to -// the shared credentials file (~/.aws/config). Values set in both the +// the shared credentials file (~/.aws/credentials). Values set in both the // shared config, and shared credentials will be taken from the shared // credentials file. Enabling the Shared Config will also allow the Session // to be built with retrieving credentials with AssumeRole set in the config. @@ -155,7 +155,7 @@ type Options struct { // // If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value // the shared config file (~/.aws/config) will also be loaded in addition to -// the shared credentials file (~/.aws/config). Values set in both the +// the shared credentials file (~/.aws/credentials). Values set in both the // shared config, and shared credentials will be taken from the shared // credentials file. Enabling the Shared Config will also allow the Session // to be built with retrieving credentials with AssumeRole set in the config. diff --git a/vendor/github.com/aws/aws-sdk-go/aws/types.go b/vendor/github.com/aws/aws-sdk-go/aws/types.go index 9ca685e904..0e2d864e10 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/types.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/types.go @@ -114,5 +114,5 @@ func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) { func (b *WriteAtBuffer) Bytes() []byte { b.m.Lock() defer b.m.Unlock() - return b.buf[:len(b.buf):len(b.buf)] + return b.buf } 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 f900b59c20..289e654472 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.9" +const SDKVersion = "1.6.18" 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 8cfa753f0b..71a4cb60d3 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 @@ -185,10 +185,21 @@ func (a *API) ShapeList() []*Shape { list := make([]*Shape, 0, len(a.Shapes)) for _, n := range a.ShapeNames() { // Ignore error shapes in list - if a.Shapes[n].IsError { - continue + if s := a.Shapes[n]; !s.IsError { + list = append(list, s) + } + } + return list +} + +// ShapeListErrors returns a list of the errors defined by the API model +func (a *API) ShapeListErrors() []*Shape { + list := []*Shape{} + for _, n := range a.ShapeNames() { + // Ignore error shapes in list + if s := a.Shapes[n]; s.IsError { + list = append(list, s) } - list = append(list, a.Shapes[n]) } return list } @@ -638,3 +649,29 @@ func resolveShapeValidations(s *Shape, ancestry ...*Shape) { } ancestry = ancestry[:len(ancestry)-1] } + +// A tplAPIErrors is the top level template for the API +var tplAPIErrors = template.Must(template.New("api").Parse(` +const ( +{{ range $_, $s := $.ShapeListErrors }} + // {{ $s.ErrorCodeName }} for service response error code + // {{ printf "%q" $s.ErrorName }}. + {{ if $s.Docstring -}} + // + {{ $s.Docstring }} + {{ end -}} + {{ $s.ErrorCodeName }} = {{ printf "%q" $s.ErrorName }} +{{ end }} +) +`)) + +func (a *API) APIErrorsGoCode() string { + var buf bytes.Buffer + err := tplAPIErrors.Execute(&buf, a) + + if err != nil { + panic(err) + } + + return strings.TrimSpace(buf.String()) +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go index 8833c29c5b..5678e8fb30 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go @@ -33,7 +33,7 @@ func (a *API) customizationPasses() { var svcCustomizations = map[string]func(*API){ "s3": s3Customizations, "cloudfront": cloudfrontCustomizations, - "rds": rdsCustomizations, + "rds": rdsCustomizations, } for k, _ := range mergeServices { @@ -145,6 +145,7 @@ func mergeServicesCustomizations(a *API) { func rdsCustomizations(a *API) { inputs := []string{ "CopyDBSnapshotInput", + "CreateDBInstanceReadReplicaInput", } for _, input := range inputs { if ref, ok := a.Shapes[input]; ok { 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 f965ebb6af..f273caa94f 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 @@ -125,10 +125,10 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + // // Returned Error Codes: {{ range $_, $err := .ErrorRefs -}} - {{ $errDoc := $err.IndentedDocstring -}} -// * {{ $err.Shape.ErrorName }} -{{ if $errDoc -}} -{{ $errDoc }}{{ end }} +// * {{ $err.Shape.ErrorCodeName }} "{{ $err.Shape.ErrorName}}" +{{ if $err.Docstring -}} +{{ $err.IndentedDocstring }} +{{ end -}} // {{ end -}} {{ end -}} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go index 84ef592045..24f2567e63 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go @@ -87,8 +87,14 @@ type Shape struct { ErrorInfo ErrorInfo `json:"error"` } +// ErrorCodeName will return the error shape's name formated for +// error code const. +func (s *Shape) ErrorCodeName() string { + return "ErrCode" + s.ShapeName +} + // ErrorName will return the shape's name or error code if available based -// on the API's protocol. +// on the API's protocol. This is the error code string returned by the service. func (s *Shape) ErrorName() string { name := s.ShapeName switch s.API.Metadata.Protocol { diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go index e166a857d8..6efe43d5f3 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go @@ -4,7 +4,9 @@ package jsonutil import ( "bytes" "encoding/base64" + "encoding/json" "fmt" + "math" "reflect" "sort" "strconv" @@ -25,6 +27,7 @@ func BuildJSON(v interface{}) ([]byte, error) { } func buildAny(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { + origVal := value value = reflect.Indirect(value) if !value.IsValid() { return nil @@ -61,7 +64,7 @@ func buildAny(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err case "map": return buildMap(value, buf, tag) default: - return buildScalar(value, buf, tag) + return buildScalar(origVal, buf, tag) } } @@ -87,6 +90,10 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) first := true for i := 0; i < t.NumField(); i++ { member := value.Field(i) + + // This allocates the most memory. + // Additionally, we cannot skip nil fields due to + // idempotency auto filling. field := t.Field(i) if field.PkgPath != "" { @@ -182,21 +189,32 @@ func buildMap(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err return nil } -func buildScalar(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { - switch value.Kind() { +func buildScalar(v reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { + // prevents allocation on the heap. + scratch := [64]byte{} + switch value := reflect.Indirect(v); value.Kind() { case reflect.String: writeString(value.String(), buf) case reflect.Bool: - buf.WriteString(strconv.FormatBool(value.Bool())) + if value.Bool() { + buf.WriteString("true") + } else { + buf.WriteString("false") + } case reflect.Int64: - buf.WriteString(strconv.FormatInt(value.Int(), 10)) + buf.Write(strconv.AppendInt(scratch[:0], value.Int(), 10)) case reflect.Float64: - buf.WriteString(strconv.FormatFloat(value.Float(), 'f', -1, 64)) + f := value.Float() + if math.IsInf(f, 0) || math.IsNaN(f) { + return &json.UnsupportedValueError{Value: v, Str: strconv.FormatFloat(f, 'f', -1, 64)} + } + buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64)) default: switch value.Type() { case timeType: - converted := value.Interface().(time.Time) - buf.WriteString(strconv.FormatInt(converted.UTC().Unix(), 10)) + converted := v.Interface().(*time.Time) + + buf.Write(strconv.AppendInt(scratch[:0], converted.UTC().Unix(), 10)) case byteSliceType: if !value.IsNil() { converted := value.Interface().([]byte) @@ -222,27 +240,31 @@ func buildScalar(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) return nil } +var hex = "0123456789abcdef" + func writeString(s string, buf *bytes.Buffer) { buf.WriteByte('"') - for _, r := range s { - if r == '"' { + for i := 0; i < len(s); i++ { + if s[i] == '"' { buf.WriteString(`\"`) - } else if r == '\\' { + } else if s[i] == '\\' { buf.WriteString(`\\`) - } else if r == '\b' { + } else if s[i] == '\b' { buf.WriteString(`\b`) - } else if r == '\f' { + } else if s[i] == '\f' { buf.WriteString(`\f`) - } else if r == '\r' { + } else if s[i] == '\r' { buf.WriteString(`\r`) - } else if r == '\t' { + } else if s[i] == '\t' { buf.WriteString(`\t`) - } else if r == '\n' { + } else if s[i] == '\n' { buf.WriteString(`\n`) - } else if r < 32 { - fmt.Fprintf(buf, "\\u%0.4x", r) + } else if s[i] < 32 { + buf.WriteString("\\u00") + buf.WriteByte(hex[s[i]>>4]) + buf.WriteByte(hex[s[i]&0xF]) } else { - buf.WriteRune(r) + buf.WriteByte(s[i]) } } buf.WriteByte('"') diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go index 19bc0f325d..d17990db4a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go @@ -86,18 +86,18 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req // API operation AddTagsToCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // -// * TooManyTagsException +// * ErrCodeTooManyTagsException "TooManyTagsException" // The request contains too many tags. Try the request again with fewer tags. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate @@ -172,15 +172,15 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // API operation DeleteCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The certificate is in use by another AWS service in the caller's account. // Remove the association and try again. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate @@ -235,11 +235,7 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * // DescribeCertificate API operation for AWS Certificate Manager. // -// Returns a list of the fields contained in the specified ACM Certificate. -// For example, this action returns the certificate status, a flag that indicates -// whether the certificate is associated with any other AWS service, and the -// date at which the certificate request was created. You specify the ACM Certificate -// on input by its Amazon Resource Name (ARN). +// Returns detailed metadata about the specified ACM Certificate. // // 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 @@ -249,11 +245,11 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * // API operation DescribeCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate @@ -326,15 +322,15 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // API operation GetCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * RequestInProgressException +// * ErrCodeRequestInProgressException "RequestInProgressException" // The certificate request is in process and the certificate in your account // has not yet been issued. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate @@ -424,11 +420,11 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ // API operation ImportCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An ACM limit has been exceeded. For example, you may have input more domains // than are allowed or you've requested too many certificates for your account. // See the exception message returned by ACM to determine which limit you have @@ -580,10 +576,10 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) // ListTagsForCertificate API operation for AWS Certificate Manager. // -// Lists the tags that have been applied to the ACM Certificate. Use the certificate -// ARN to specify the certificate. To add a tag to an ACM Certificate, use the -// AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate -// action. +// Lists the tags that have been applied to the ACM Certificate. Use the certificate's +// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an +// ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use +// the RemoveTagsFromCertificate action. // // 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 @@ -593,11 +589,11 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) // API operation ListTagsForCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate @@ -671,14 +667,14 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI // API operation RemoveTagsFromCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // @@ -750,14 +746,14 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re // API operation RequestCertificate for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An ACM limit has been exceeded. For example, you may have input more domains // than are allowed or you've requested too many certificates for your account. // See the exception message returned by ACM to determine which limit you have // violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) // topic. // -// * InvalidDomainValidationOptionsException +// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException" // One or more values in the DomainValidationOption structure is incorrect. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate @@ -832,20 +828,20 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r // API operation ResendValidationEmail for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // Processing has reached an invalid state. For example, this exception can // occur if the specified domain is not using email validation, or the current // certificate status does not permit the requested operation. See the exception // message returned by ACM to determine which state is not valid. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * InvalidDomainValidationOptionsException +// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException" // One or more values in the DomainValidationOption structure is incorrect. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail @@ -945,8 +941,8 @@ func (s AddTagsToCertificateOutput) GoString() string { return s.String() } -// Contains detailed metadata about an ACM Certificate. This structure is returned -// in the response to a DescribeCertificate request. +// Contains metadata about an ACM certificate. This structure is returned in +// the response to a DescribeCertificate request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateDetail type CertificateDetail struct { _ struct{} `type:"structure"` @@ -964,8 +960,9 @@ type CertificateDetail struct { // or example.com. DomainName *string `min:"1" type:"string"` - // Contains information about the email address or addresses used for domain - // validation. This field exists only when the certificate type is AMAZON_ISSUED. + // Contains information about the initial validation of each domain name that + // occurs as a result of the RequestCertificate request. This field exists only + // when the certificate type is AMAZON_ISSUED. DomainValidationOptions []*DomainValidation `min:"1" type:"list"` // The reason the certificate request failed. This value exists only when the @@ -999,6 +996,11 @@ type CertificateDetail struct { // The time before which the certificate is not valid. NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"` + // Contains information about the status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) + // for the certificate. This field exists only when the certificate type is + // AMAZON_ISSUED. + RenewalSummary *RenewalSummary `type:"structure"` + // The reason the certificate was revoked. This value exists only when the certificate // status is REVOKED. RevocationReason *string `type:"string" enum:"RevocationReason"` @@ -1119,6 +1121,12 @@ func (s *CertificateDetail) SetNotBefore(v time.Time) *CertificateDetail { return s } +// SetRenewalSummary sets the RenewalSummary field's value. +func (s *CertificateDetail) SetRenewalSummary(v *RenewalSummary) *CertificateDetail { + s.RenewalSummary = v + return s +} + // SetRevocationReason sets the RevocationReason field's value. func (s *CertificateDetail) SetRevocationReason(v string) *CertificateDetail { s.RevocationReason = &v @@ -1274,7 +1282,8 @@ func (s DeleteCertificateOutput) GoString() string { type DescribeCertificateInput struct { _ struct{} `type:"structure"` - // String that contains an ACM Certificate ARN. The ARN must be of the form: + // The Amazon Resource Name (ARN) of the ACM Certificate. The ARN must have + // the following form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // @@ -1321,7 +1330,7 @@ func (s *DescribeCertificateInput) SetCertificateArn(v string) *DescribeCertific type DescribeCertificateOutput struct { _ struct{} `type:"structure"` - // Contains a CertificateDetail structure that lists the fields of an ACM Certificate. + // Metadata about an ACM certificate. Certificate *CertificateDetail `type:"structure"` } @@ -1341,24 +1350,25 @@ func (s *DescribeCertificateOutput) SetCertificate(v *CertificateDetail) *Descri return s } -// Structure that contains the domain name, the base validation domain to which -// validation email is sent, and the email addresses used to validate the domain -// identity. +// Contains information about the validation of each domain name in the certificate. // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidation type DomainValidation struct { _ struct{} `type:"structure"` - // Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com. + // A fully qualified domain name (FQDN) in the certificate. For example, www.example.com + // or example.com. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The base validation domain that acts as the suffix of the email addresses - // that are used to send the emails. + // The domain name that ACM used to send domain validation emails. ValidationDomain *string `min:"1" type:"string"` - // A list of contact address for the domain registrant. + // A list of email addresses that ACM used to send domain validation emails. ValidationEmails []*string `type:"list"` + + // The validation status of the domain name. + ValidationStatus *string `type:"string" enum:"DomainStatus"` } // String returns the string representation @@ -1389,33 +1399,39 @@ func (s *DomainValidation) SetValidationEmails(v []*string) *DomainValidation { return s } -// This structure is used in the request object of the RequestCertificate action. +// SetValidationStatus sets the ValidationStatus field's value. +func (s *DomainValidation) SetValidationStatus(v string) *DomainValidation { + s.ValidationStatus = &v + return s +} + +// Contains information about the domain names that you want ACM to use to send +// you emails to validate your ownership of the domain. // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidationOption type DomainValidationOption struct { _ struct{} `type:"structure"` - // Fully Qualified Domain Name (FQDN) of the certificate being requested. + // A fully qualified domain name (FQDN) in the certificate request. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The domain to which validation email is sent. This is the base validation - // domain that will act as the suffix of the email addresses. This must be the - // same as the DomainName value or a superdomain of the DomainName value. For - // example, if you requested a certificate for site.subdomain.example.com and - // specify a ValidationDomain of subdomain.example.com, ACM sends email to the - // domain registrant, technical contact, and administrative contact in WHOIS - // for the base domain and the following five addresses: + // The domain name that you want ACM to use to send you validation emails. This + // domain name is the suffix of the email addresses that you want ACM to use. + // This must be the same as the DomainName value or a superdomain of the DomainName + // value. For example, if you request a certificate for testing.example.com, + // you can specify example.com for this value. In that case, ACM sends domain + // validation emails to the following five addresses: // - // * admin@subdomain.example.com + // * admin@example.com // - // * administrator@subdomain.example.com + // * administrator@example.com // - // * hostmaster@subdomain.example.com + // * hostmaster@example.com // - // * postmaster@subdomain.example.com + // * postmaster@example.com // - // * webmaster@subdomain.example.com + // * webmaster@example.com // // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` @@ -1779,7 +1795,7 @@ type ListTagsForCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate for which you want to - // list the tags. This must be of the form: + // list the tags. This has the following form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // @@ -1936,34 +1952,65 @@ func (s RemoveTagsFromCertificateOutput) GoString() string { return s.String() } +// Contains information about the status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) +// for the certificate. This structure exists only when the certificate type +// is AMAZON_ISSUED. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewalSummary +type RenewalSummary struct { + _ struct{} `type:"structure"` + + // Contains information about the validation of each domain name in the certificate, + // as it pertains to ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html). + // This is different from the initial validation that occurs as a result of + // the RequestCertificate request. This field exists only when the certificate + // type is AMAZON_ISSUED. + // + // DomainValidationOptions is a required field + DomainValidationOptions []*DomainValidation `min:"1" type:"list" required:"true"` + + // The status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) + // of the certificate. + // + // RenewalStatus is a required field + RenewalStatus *string `type:"string" required:"true" enum:"RenewalStatus"` +} + +// String returns the string representation +func (s RenewalSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RenewalSummary) GoString() string { + return s.String() +} + +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *RenewalSummary) SetDomainValidationOptions(v []*DomainValidation) *RenewalSummary { + s.DomainValidationOptions = v + return s +} + +// SetRenewalStatus sets the RenewalStatus field's value. +func (s *RenewalSummary) SetRenewalStatus(v string) *RenewalSummary { + s.RenewalStatus = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateRequest type RequestCertificateInput struct { _ struct{} `type:"structure"` // Fully qualified domain name (FQDN), such as www.example.com, of the site - // you want to secure with an ACM Certificate. Use an asterisk (*) to create + // that you want to secure with an ACM Certificate. Use an asterisk (*) to create // a wildcard certificate that protects several sites in the same domain. For // example, *.example.com protects www.example.com, site.example.com, and images.example.com. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The base validation domain that will act as the suffix of the email addresses - // that are used to send the emails. This must be the same as the Domain value - // or a superdomain of the Domain value. For example, if you requested a certificate - // for test.example.com and specify DomainValidationOptions of example.com, - // ACM sends email to the domain registrant, technical contact, and administrative - // contact in WHOIS and the following five addresses: - // - // * admin@example.com - // - // * administrator@example.com - // - // * hostmaster@example.com - // - // * postmaster@example.com - // - // * webmaster@example.com + // The domain name that you want ACM to use to send you emails to validate your + // ownership of the domain. DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"` // Customer chosen string that can be used to distinguish between calls to RequestCertificate. @@ -2093,7 +2140,7 @@ type ResendValidationEmailInput struct { // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` - // The Fully Qualified Domain Name (FQDN) of the certificate that needs to be + // The fully qualified domain name (FQDN) of the certificate that needs to be // validated. // // Domain is a required field @@ -2274,6 +2321,17 @@ const ( CertificateTypeAmazonIssued = "AMAZON_ISSUED" ) +const ( + // DomainStatusPendingValidation is a DomainStatus enum value + DomainStatusPendingValidation = "PENDING_VALIDATION" + + // DomainStatusSuccess is a DomainStatus enum value + DomainStatusSuccess = "SUCCESS" + + // DomainStatusFailed is a DomainStatus enum value + DomainStatusFailed = "FAILED" +) + const ( // FailureReasonNoAvailableContacts is a FailureReason enum value FailureReasonNoAvailableContacts = "NO_AVAILABLE_CONTACTS" @@ -2302,6 +2360,20 @@ const ( KeyAlgorithmEcPrime256v1 = "EC_prime256v1" ) +const ( + // RenewalStatusPendingAutoRenewal is a RenewalStatus enum value + RenewalStatusPendingAutoRenewal = "PENDING_AUTO_RENEWAL" + + // RenewalStatusPendingValidation is a RenewalStatus enum value + RenewalStatusPendingValidation = "PENDING_VALIDATION" + + // RenewalStatusSuccess is a RenewalStatus enum value + RenewalStatusSuccess = "SUCCESS" + + // RenewalStatusFailed is a RenewalStatus enum value + RenewalStatusFailed = "FAILED" +) + const ( // RevocationReasonUnspecified is a RevocationReason enum value RevocationReasonUnspecified = "UNSPECIFIED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go new file mode 100644 index 0000000000..73093d1c5d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go @@ -0,0 +1,71 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package acm + +const ( + + // ErrCodeInvalidArnException for service response error code + // "InvalidArnException". + // + // The requested Amazon Resource Name (ARN) does not refer to an existing resource. + ErrCodeInvalidArnException = "InvalidArnException" + + // ErrCodeInvalidDomainValidationOptionsException for service response error code + // "InvalidDomainValidationOptionsException". + // + // One or more values in the DomainValidationOption structure is incorrect. + ErrCodeInvalidDomainValidationOptionsException = "InvalidDomainValidationOptionsException" + + // ErrCodeInvalidStateException for service response error code + // "InvalidStateException". + // + // Processing has reached an invalid state. For example, this exception can + // occur if the specified domain is not using email validation, or the current + // certificate status does not permit the requested operation. See the exception + // message returned by ACM to determine which state is not valid. + ErrCodeInvalidStateException = "InvalidStateException" + + // ErrCodeInvalidTagException for service response error code + // "InvalidTagException". + // + // One or both of the values that make up the key-value pair is not valid. For + // example, you cannot specify a tag value that begins with aws:. + ErrCodeInvalidTagException = "InvalidTagException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // An ACM limit has been exceeded. For example, you may have input more domains + // than are allowed or you've requested too many certificates for your account. + // See the exception message returned by ACM to determine which limit you have + // violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) + // topic. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeRequestInProgressException for service response error code + // "RequestInProgressException". + // + // The certificate request is in process and the certificate in your account + // has not yet been issued. + ErrCodeRequestInProgressException = "RequestInProgressException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The certificate is in use by another AWS service in the caller's account. + // Remove the association and try again. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified certificate cannot be found in the caller's account, or the + // caller's account cannot be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTagsException". + // + // The request contains too many tags. Try the request again with fewer tags. + ErrCodeTooManyTagsException = "TooManyTagsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go index cca681bfbe..64bb6017f9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go @@ -84,7 +84,7 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * // API operation AttachInstances for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -157,7 +157,7 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal // API operation AttachLoadBalancerTargetGroups for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -233,7 +233,7 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput // API operation AttachLoadBalancers for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -321,7 +321,7 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // API operation CompleteLifecycleAction for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -396,16 +396,16 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou // API operation CreateAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -480,16 +480,16 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig // API operation CreateLaunchConfiguration for usage and error information. // // Returned Error Codes: -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -563,16 +563,16 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) // API operation CreateOrUpdateTags for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -654,14 +654,14 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // API operation DeleteAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -733,10 +733,10 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig // API operation DeleteLaunchConfiguration for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -805,7 +805,7 @@ func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput // API operation DeleteLifecycleHook for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -873,7 +873,7 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi // API operation DeleteNotificationConfiguration for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -944,7 +944,7 @@ func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *reques // API operation DeletePolicy for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1012,7 +1012,7 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI // API operation DeleteScheduledAction for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1080,7 +1080,7 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1150,7 +1150,7 @@ func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsI // API operation DescribeAccountLimits for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1216,7 +1216,7 @@ func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTy // API operation DescribeAdjustmentTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1288,10 +1288,10 @@ func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalin // API operation DescribeAutoScalingGroups for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1388,10 +1388,10 @@ func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoSca // API operation DescribeAutoScalingInstances for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1482,7 +1482,7 @@ func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *Describ // API operation DescribeAutoScalingNotificationTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1554,10 +1554,10 @@ func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchC // API operation DescribeLaunchConfigurations for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1648,7 +1648,7 @@ func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycle // API operation DescribeLifecycleHookTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1714,7 +1714,7 @@ func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHook // API operation DescribeLifecycleHooks for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1780,7 +1780,7 @@ func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoa // API operation DescribeLoadBalancerTargetGroups for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1849,7 +1849,7 @@ func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersI // API operation DescribeLoadBalancers for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1918,7 +1918,7 @@ func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetric // API operation DescribeMetricCollectionTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -1991,10 +1991,10 @@ func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeN // API operation DescribeNotificationConfigurations for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2091,10 +2091,10 @@ func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req // API operation DescribePolicies for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2191,10 +2191,10 @@ func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingAct // API operation DescribeScalingActivities for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2285,7 +2285,7 @@ func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingP // API operation DescribeScalingProcessTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2358,10 +2358,10 @@ func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledAc // API operation DescribeScheduledActions for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2467,10 +2467,10 @@ func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *reques // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2561,7 +2561,7 @@ func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTermi // API operation DescribeTerminationPolicyTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2642,7 +2642,7 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * // API operation DetachInstances for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2708,7 +2708,7 @@ func (c *AutoScaling) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBal // API operation DetachLoadBalancerTargetGroups for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2783,7 +2783,7 @@ func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput // API operation DetachLoadBalancers for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2851,7 +2851,7 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle // API operation DisableMetricsCollection for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2921,7 +2921,7 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect // API operation EnableMetricsCollection for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -2990,7 +2990,7 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques // API operation EnterStandby for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3058,11 +3058,11 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ // API operation ExecutePolicy for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3131,7 +3131,7 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. // API operation ExitStandby for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3227,12 +3227,12 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // API operation PutLifecycleHook for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3308,12 +3308,12 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification // API operation PutNotificationConfiguration for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3387,12 +3387,12 @@ func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req // API operation PutScalingPolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3465,16 +3465,16 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp // API operation PutScheduledUpdateGroupAction for usage and error information. // // Returned Error Codes: -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3563,7 +3563,7 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // API operation RecordLifecycleActionHeartbeat for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3636,10 +3636,10 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r // API operation ResumeProcesses for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3710,11 +3710,11 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) // API operation SetDesiredCapacity for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3785,7 +3785,7 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r // API operation SetInstanceHealth for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3854,12 +3854,12 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI // API operation SetInstanceProtection for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -3937,10 +3937,10 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * // API operation SuspendProcesses for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -4010,11 +4010,11 @@ func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *Terminat // API operation TerminateInstanceInAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // @@ -4105,11 +4105,11 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // API operation UpdateAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go new file mode 100644 index 0000000000..227e6b3b33 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go @@ -0,0 +1,47 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package autoscaling + +const ( + + // ErrCodeAlreadyExistsFault for service response error code + // "AlreadyExists". + // + // You already have an Auto Scaling group or launch configuration with this + // name. + ErrCodeAlreadyExistsFault = "AlreadyExists" + + // ErrCodeInvalidNextToken for service response error code + // "InvalidNextToken". + // + // The NextToken value is not valid. + ErrCodeInvalidNextToken = "InvalidNextToken" + + // ErrCodeLimitExceededFault for service response error code + // "LimitExceeded". + // + // You have already reached a limit for your Auto Scaling resources (for example, + // groups, launch configurations, or lifecycle hooks). For more information, + // see DescribeAccountLimits. + ErrCodeLimitExceededFault = "LimitExceeded" + + // ErrCodeResourceContentionFault for service response error code + // "ResourceContention". + // + // You already have a pending update to an Auto Scaling resource (for example, + // a group, instance, or load balancer). + ErrCodeResourceContentionFault = "ResourceContention" + + // ErrCodeResourceInUseFault for service response error code + // "ResourceInUse". + // + // The operation can't be performed because the resource is in use. + ErrCodeResourceInUseFault = "ResourceInUse" + + // ErrCodeScalingActivityInProgressFault for service response error code + // "ScalingActivityInProgress". + // + // The operation can't be performed because there are scaling activities in + // progress. + ErrCodeScalingActivityInProgressFault = "ScalingActivityInProgress" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go index 28daadcdfb..be60e851f1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go @@ -217,14 +217,14 @@ func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (re // API operation CreateChangeSet for usage and error information. // // Returned Error Codes: -// * AlreadyExistsException +// * ErrCodeAlreadyExistsException "AlreadyExistsException" // Resource with the name requested already exists. // -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Quota for the resource has already been reached. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet @@ -291,13 +291,13 @@ func (c *CloudFormation) CreateStackRequest(input *CreateStackInput) (req *reque // API operation CreateStack for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Quota for the resource has already been reached. // -// * AlreadyExistsException +// * ErrCodeAlreadyExistsException "AlreadyExistsException" // Resource with the name requested already exists. // -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // @@ -367,7 +367,7 @@ func (c *CloudFormation) DeleteChangeSetRequest(input *DeleteChangeSetInput) (re // API operation DeleteChangeSet for usage and error information. // // Returned Error Codes: -// * InvalidChangeSetStatus +// * ErrCodeInvalidChangeSetStatusException "InvalidChangeSetStatus" // The specified change set cannot be used to update the stack. For example, // the change set status might be CREATE_IN_PROGRESS or the stack status might // be UPDATE_IN_PROGRESS. @@ -562,7 +562,7 @@ func (c *CloudFormation) DescribeChangeSetRequest(input *DescribeChangeSetInput) // API operation DescribeChangeSet for usage and error information. // // Returned Error Codes: -// * ChangeSetNotFound +// * ErrCodeChangeSetNotFoundException "ChangeSetNotFound" // The specified change set name or ID doesn't exit. To view valid change sets // for a stack, use the ListChangeSets action. // @@ -1031,16 +1031,16 @@ func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) ( // API operation ExecuteChangeSet for usage and error information. // // Returned Error Codes: -// * InvalidChangeSetStatus +// * ErrCodeInvalidChangeSetStatusException "InvalidChangeSetStatus" // The specified change set cannot be used to update the stack. For example, // the change set status might be CREATE_IN_PROGRESS or the stack status might // be UPDATE_IN_PROGRESS. // -// * ChangeSetNotFound +// * ErrCodeChangeSetNotFoundException "ChangeSetNotFound" // The specified change set name or ID doesn't exit. To view valid change sets // for a stack, use the ListChangeSets action. // -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // @@ -1173,7 +1173,7 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // API operation GetTemplate for usage and error information. // // Returned Error Codes: -// * ChangeSetNotFound +// * ErrCodeChangeSetNotFoundException "ChangeSetNotFound" // The specified change set name or ID doesn't exit. To view valid change sets // for a stack, use the ListChangeSets action. // @@ -1828,7 +1828,7 @@ func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *reque // API operation UpdateStack for usage and error information. // // Returned Error Codes: -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go new file mode 100644 index 0000000000..29fae92219 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go @@ -0,0 +1,40 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudformation + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + // + // Resource with the name requested already exists. + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeChangeSetNotFoundException for service response error code + // "ChangeSetNotFound". + // + // The specified change set name or ID doesn't exit. To view valid change sets + // for a stack, use the ListChangeSets action. + ErrCodeChangeSetNotFoundException = "ChangeSetNotFound" + + // ErrCodeInsufficientCapabilitiesException for service response error code + // "InsufficientCapabilitiesException". + // + // The template contains resources with capabilities that were not specified + // in the Capabilities parameter. + ErrCodeInsufficientCapabilitiesException = "InsufficientCapabilitiesException" + + // ErrCodeInvalidChangeSetStatusException for service response error code + // "InvalidChangeSetStatus". + // + // The specified change set cannot be used to update the stack. For example, + // the change set status might be CREATE_IN_PROGRESS or the stack status might + // be UPDATE_IN_PROGRESS. + ErrCodeInvalidChangeSetStatusException = "InvalidChangeSetStatus" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Quota for the resource has already been reached. + ErrCodeLimitExceededException = "LimitExceededException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go index f047009611..3abedb2cef 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go @@ -70,7 +70,7 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request // API operation DeleteAlarms for usage and error information. // // Returned Error Codes: -// * ResourceNotFound +// * ErrCodeResourceNotFound "ResourceNotFound" // The named resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms @@ -146,7 +146,7 @@ func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInpu // API operation DescribeAlarmHistory for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The next token specified is invalid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory @@ -244,7 +244,7 @@ func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *req // API operation DescribeAlarms for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The next token specified is invalid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms @@ -551,16 +551,16 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // API operation GetMetricStatistics for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value of an input parameter is bad or out-of-range. // -// * MissingParameter +// * ErrCodeMissingRequiredParameterException "MissingParameter" // An input parameter that is required is missing. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Parameters that cannot be used together were used together. // -// * InternalServiceError +// * ErrCodeInternalServiceFault "InternalServiceError" // Request processing has failed due to some unknown error, exception, or failure. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics @@ -639,10 +639,10 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // API operation ListMetrics for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceFault "InternalServiceError" // Request processing has failed due to some unknown error, exception, or failure. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value of an input parameter is bad or out-of-range. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics @@ -775,7 +775,7 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // API operation PutMetricAlarm for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // The quota for alarms for this customer has already been reached. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm @@ -859,16 +859,16 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // API operation PutMetricData for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value of an input parameter is bad or out-of-range. // -// * MissingParameter +// * ErrCodeMissingRequiredParameterException "MissingParameter" // An input parameter that is required is missing. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Parameters that cannot be used together were used together. // -// * InternalServiceError +// * ErrCodeInternalServiceFault "InternalServiceError" // Request processing has failed due to some unknown error, exception, or failure. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData @@ -942,10 +942,10 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque // API operation SetAlarmState for usage and error information. // // Returned Error Codes: -// * ResourceNotFound +// * ErrCodeResourceNotFound "ResourceNotFound" // The named resource does not exist. // -// * InvalidFormat +// * ErrCodeInvalidFormatFault "InvalidFormat" // Data was not syntactically valid JSON. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go new file mode 100644 index 0000000000..60bced5f19 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go @@ -0,0 +1,54 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatch + +const ( + + // ErrCodeInternalServiceFault for service response error code + // "InternalServiceError". + // + // Request processing has failed due to some unknown error, exception, or failure. + ErrCodeInternalServiceFault = "InternalServiceError" + + // ErrCodeInvalidFormatFault for service response error code + // "InvalidFormat". + // + // Data was not syntactically valid JSON. + ErrCodeInvalidFormatFault = "InvalidFormat" + + // ErrCodeInvalidNextToken for service response error code + // "InvalidNextToken". + // + // The next token specified is invalid. + ErrCodeInvalidNextToken = "InvalidNextToken" + + // ErrCodeInvalidParameterCombinationException for service response error code + // "InvalidParameterCombination". + // + // Parameters that cannot be used together were used together. + ErrCodeInvalidParameterCombinationException = "InvalidParameterCombination" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValue". + // + // The value of an input parameter is bad or out-of-range. + ErrCodeInvalidParameterValueException = "InvalidParameterValue" + + // ErrCodeLimitExceededFault for service response error code + // "LimitExceeded". + // + // The quota for alarms for this customer has already been reached. + ErrCodeLimitExceededFault = "LimitExceeded" + + // ErrCodeMissingRequiredParameterException for service response error code + // "MissingParameter". + // + // An input parameter that is required is missing. + ErrCodeMissingRequiredParameterException = "MissingParameter" + + // ErrCodeResourceNotFound for service response error code + // "ResourceNotFound". + // + // The named resource does not exist. + ErrCodeResourceNotFound = "ResourceNotFound" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go index a7bae1e534..38fee5bc76 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go @@ -71,16 +71,16 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( // API operation CancelExportTask for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation is not valid on the specified resource. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask @@ -156,22 +156,22 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( // API operation CreateExportTask for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // You have reached the maximum number of resources that can be created. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The specified resource already exists. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask @@ -249,19 +249,19 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // API operation CreateLogGroup for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The specified resource already exists. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // You have reached the maximum number of resources that can be created. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup @@ -339,16 +339,16 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // API operation CreateLogStream for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The specified resource already exists. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream @@ -417,16 +417,16 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) // API operation DeleteDestination for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination @@ -494,16 +494,16 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req // API operation DeleteLogGroup for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup @@ -571,16 +571,16 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re // API operation DeleteLogStream for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream @@ -647,16 +647,16 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu // API operation DeleteMetricFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter @@ -726,16 +726,16 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli // API operation DeleteRetentionPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy @@ -802,16 +802,16 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti // API operation DeleteSubscriptionFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter @@ -883,10 +883,10 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations // API operation DescribeDestinations for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations @@ -977,10 +977,10 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn // API operation DescribeExportTasks for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks @@ -1052,10 +1052,10 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) // API operation DescribeLogGroups for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups @@ -1156,13 +1156,13 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu // API operation DescribeLogStreams for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams @@ -1260,13 +1260,13 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte // API operation DescribeMetricFilters for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters @@ -1364,13 +1364,13 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc // API operation DescribeSubscriptionFilters for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters @@ -1474,13 +1474,13 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re // API operation FilterLogEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents @@ -1582,13 +1582,13 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req // API operation GetLogEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents @@ -1680,10 +1680,10 @@ func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) ( // API operation ListTagsLogGroup for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup @@ -1758,13 +1758,13 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req // API operation PutDestination for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination @@ -1834,13 +1834,13 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy // API operation PutDestinationPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy @@ -1930,19 +1930,19 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // API operation PutLogEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * InvalidSequenceTokenException +// * ErrCodeInvalidSequenceTokenException "InvalidSequenceTokenException" // The sequence token is not valid. // -// * DataAlreadyAcceptedException +// * ErrCodeDataAlreadyAcceptedException "DataAlreadyAcceptedException" // The event was already logged. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents @@ -2014,19 +2014,19 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re // API operation PutMetricFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // You have reached the maximum number of resources that can be created. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter @@ -2095,16 +2095,16 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu // API operation PutRetentionPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy @@ -2188,19 +2188,19 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // API operation PutSubscriptionFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * OperationAbortedException +// * ErrCodeOperationAbortedException "OperationAbortedException" // Multiple requests to update the same resource were in conflict. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // You have reached the maximum number of resources that can be created. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter @@ -2274,10 +2274,10 @@ func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) (req *reque // API operation TagLogGroup for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup @@ -2344,10 +2344,10 @@ func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) ( // API operation TestMetricFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // A parameter is specified incorrectly. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter @@ -2417,7 +2417,7 @@ func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) (req *r // API operation UntagLogGroup for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go new file mode 100644 index 0000000000..de1b3fd9d3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go @@ -0,0 +1,60 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatchlogs + +const ( + + // ErrCodeDataAlreadyAcceptedException for service response error code + // "DataAlreadyAcceptedException". + // + // The event was already logged. + ErrCodeDataAlreadyAcceptedException = "DataAlreadyAcceptedException" + + // ErrCodeInvalidOperationException for service response error code + // "InvalidOperationException". + // + // The operation is not valid on the specified resource. + ErrCodeInvalidOperationException = "InvalidOperationException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // A parameter is specified incorrectly. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidSequenceTokenException for service response error code + // "InvalidSequenceTokenException". + // + // The sequence token is not valid. + ErrCodeInvalidSequenceTokenException = "InvalidSequenceTokenException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // You have reached the maximum number of resources that can be created. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeOperationAbortedException for service response error code + // "OperationAbortedException". + // + // Multiple requests to update the same resource were in conflict. + ErrCodeOperationAbortedException = "OperationAbortedException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // The specified resource already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service cannot complete the request. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" +) 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 bc9cfc6fea..b43a399be1 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 @@ -9,6 +9,8 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opBatchGetItem = "BatchGetItem" @@ -104,7 +106,7 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // // When designing your application, keep in mind that DynamoDB does not return // items in any particular order. To help parse the response by item, include -// the primary key values for the items in your request in the AttributesToGet +// the primary key values for the items in your request in the ProjectionExpression // parameter. // // If a requested item does not exist, it is not returned in the result. Requests @@ -120,19 +122,19 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // API operation BatchGetItem for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchGetItem @@ -217,7 +219,7 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // can comprise as many as 25 put or delete requests. Individual items to be // written can be as large as 400 KB. // -// BatchWriteItem cannot update items. To update items, use the UpdateItem API. +// BatchWriteItem cannot update items. To update items, use the UpdateItem action. // // The individual PutItem and DeleteItem operations specified in BatchWriteItem // are atomic; however BatchWriteItem as a whole is not. If any requested operations @@ -254,9 +256,9 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // threads to write items in parallel. Your application must include the necessary // logic to manage the threads. With languages that don't support threading, // you must update or delete the specified items one at a time. In both situations, -// BatchWriteItem provides an alternative where the API performs the specified -// put and delete operations in parallel, giving you the power of the thread -// pool approach without having to introduce complexity into your application. +// BatchWriteItem performs the specified put and delete operations in parallel, +// giving you the power of the thread pool approach without having to introduce +// complexity into your application. // // Parallel processing reduces latency, but each specified put and delete request // consumes the same number of write capacity units whether it is processed @@ -290,23 +292,23 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // API operation BatchWriteItem for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItem @@ -375,7 +377,7 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // indexes on them, you must create the tables sequentially. Only one table // with secondary indexes can be in the CREATING state at any given time. // -// You can use the DescribeTable API to check the table status. +// You can use the DescribeTable action to check the table 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 @@ -385,12 +387,12 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // API operation CreateTable for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * 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. // -// * LimitExceededException +// * 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. // @@ -400,7 +402,7 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // // The total limit of tables in the ACTIVE state is 250. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable @@ -478,26 +480,26 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque // API operation DeleteItem for usage and error information. // // Returned Error Codes: -// * ConditionalCheckFailedException +// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" // A condition specified in the operation could not be evaluated. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItem @@ -569,7 +571,7 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // stream on that table goes into the DISABLED state, and the stream is automatically // deleted after 24 hours. // -// Use the DescribeTable API to check the status of the table. +// Use the DescribeTable action to check the status of the 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 @@ -579,16 +581,16 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // API operation DeleteTable for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * 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. // -// * ResourceNotFoundException +// * 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. // -// * LimitExceededException +// * 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. // @@ -598,7 +600,7 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // // The total limit of tables in the ACTIVE state is 250. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable @@ -666,7 +668,7 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // // Although you can increase these limits by filing a case at AWS Support Center // (https://console.aws.amazon.com/support/home#/), obtaining the increase is -// not instantaneous. The DescribeLimits API lets you write code to compare +// not instantaneous. The DescribeLimits 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. // @@ -719,7 +721,7 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // API operation DescribeLimits for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeLimits @@ -792,11 +794,11 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request // API operation DescribeTable for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * 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. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTable @@ -852,7 +854,8 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // GetItem API operation for Amazon DynamoDB. // // The GetItem operation returns a set of attributes for the item with the given -// primary key. If there is no matching item, GetItem does not return any data. +// primary key. If there is no matching item, GetItem does not return any data +// and there will be no Item element in the response. // // GetItem provides an eventually consistent read by default. If your application // requires a strongly consistent read, set ConsistentRead to true. Although @@ -867,19 +870,19 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // API operation GetItem for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GetItem @@ -952,7 +955,7 @@ func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Reque // API operation ListTables for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTables @@ -987,6 +990,79 @@ func (c *DynamoDB) ListTablesPages(input *ListTablesInput, fn func(p *ListTables }) } +const opListTagsOfResource = "ListTagsOfResource" + +// ListTagsOfResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsOfResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListTagsOfResource 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 ListTagsOfResource 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 ListTagsOfResourceRequest method. +// req, resp := client.ListTagsOfResourceRequest(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/ListTagsOfResource +func (c *DynamoDB) ListTagsOfResourceRequest(input *ListTagsOfResourceInput) (req *request.Request, output *ListTagsOfResourceOutput) { + op := &request.Operation{ + Name: opListTagsOfResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsOfResourceInput{} + } + + output = &ListTagsOfResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsOfResource API operation for Amazon DynamoDB. +// +// List all tags on an Amazon DynamoDB resource. You can call ListTagsOfResource +// up to 10 times per second, per account. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.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 ListTagsOfResource 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/ListTagsOfResource +func (c *DynamoDB) ListTagsOfResource(input *ListTagsOfResourceInput) (*ListTagsOfResourceOutput, error) { + req, out := c.ListTagsOfResourceRequest(input) + err := req.Send() + return out, err +} + const opPutItem = "PutItem" // PutItemRequest generates a "aws/request.Request" representing the @@ -1047,17 +1123,13 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // must have lengths greater than zero. Set type attributes cannot be empty. // Requests with empty values will be rejected with a ValidationException exception. // -// You can request that PutItem return either a copy of the original item (before -// the update) or a copy of the updated item (after the update). For more information, -// see the ReturnValues description below. -// // To prevent a new item from replacing an existing item, use a conditional // expression that contains the attribute_not_exists function with the name // of the attribute being used as the partition key for the table. Since every // record must contain that attribute, the attribute_not_exists function will // only succeed if no matching item exists. // -// For more information about using this API, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) +// For more information about PutItem, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // in the Amazon DynamoDB Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1068,26 +1140,26 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // API operation PutItem for usage and error information. // // Returned Error Codes: -// * ConditionalCheckFailedException +// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" // A condition specified in the operation could not be evaluated. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItem @@ -1183,19 +1255,19 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // API operation Query for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Query @@ -1283,7 +1355,7 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // // The Scan operation returns one or more items and item attributes by accessing // every item in a table or a secondary index. To have DynamoDB return fewer -// items, you can provide a ScanFilter operation. +// items, you can provide a FilterExpression operation. // // If the total number of scanned items exceeds the maximum data set size limit // of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey @@ -1311,19 +1383,19 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // API operation Scan for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Scan @@ -1358,6 +1430,188 @@ func (c *DynamoDB) ScanPages(input *ScanInput, fn func(p *ScanOutput, lastPage b }) } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TagResource 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 TagResource 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 TagResourceRequest method. +// req, resp := client.TagResourceRequest(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/TagResource +func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon DynamoDB. +// +// 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. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.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 TagResource for usage and error information. +// +// Returned Error Codes: +// * 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. +// +// * 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. +// +// * 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. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResource +func (c *DynamoDB) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UntagResource 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 UntagResource 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 UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(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/UntagResource +func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon DynamoDB. +// +// Removes the association of tags from an Amazon DynamoDB resource. You can +// call UntagResource up to 5 times per second, per account. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.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 UntagResource for usage and error information. +// +// Returned Error Codes: +// * 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. +// +// * 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. +// +// * 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. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResource +func (c *DynamoDB) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + err := req.Send() + return out, err +} + const opUpdateItem = "UpdateItem" // UpdateItemRequest generates a "aws/request.Request" representing the @@ -1420,26 +1674,26 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // API operation UpdateItem for usage and error information. // // Returned Error Codes: -// * ConditionalCheckFailedException +// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" // A condition specified in the operation could not be evaluated. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * 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. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItem @@ -1521,16 +1775,16 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // API operation UpdateTable for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * 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. // -// * ResourceNotFoundException +// * 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. // -// * LimitExceededException +// * 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. // @@ -1540,7 +1794,7 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // // The total limit of tables in the ACTIVE state is 250. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable @@ -1613,47 +1867,75 @@ func (s *AttributeDefinition) SetAttributeType(v string) *AttributeDefinition { return s } -// Represents the data for an attribute. You can set one, and only one, of the -// elements. +// Represents the data for an attribute. // -// Each attribute in an item is a name-value pair. An attribute can be single-valued -// or multi-valued set. For example, a book item can have title and authors -// attributes. Each book has one title but can have many authors. The multi-valued -// attribute is a set; duplicate values are not allowed. +// Each attribute value is described as a name-value pair. The name is the data +// type, and the value is the data itself. +// +// For more information, see Data Types (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) +// in the Amazon DynamoDB Developer Guide. // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AttributeValue type AttributeValue struct { _ struct{} `type:"structure"` - // A Binary data type. + // An attribute of type Binary. For example: + // + // "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" // // B is automatically base64 encoded/decoded by the SDK. B []byte `type:"blob"` - // A Boolean data type. + // An attribute of type Boolean. For example: + // + // "BOOL": true BOOL *bool `type:"boolean"` - // A Binary Set data type. + // An attribute of type Binary Set. For example: + // + // "BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="] BS [][]byte `type:"list"` - // A List of attribute values. + // An attribute of type List. For example: + // + // "L": ["Cookies", "Coffee", 3.14159] L []*AttributeValue `type:"list"` - // A Map of attribute values. + // An attribute of type Map. For example: + // + // "M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}} M map[string]*AttributeValue `type:"map"` - // A Number data type. + // An attribute of type Number. For example: + // + // "N": "123.45" + // + // Numbers are sent across the network to DynamoDB as strings, to maximize compatibility + // across languages and libraries. However, DynamoDB treats them as number type + // attributes for mathematical operations. N *string `type:"string"` - // A Number Set data type. + // An attribute of type Number Set. For example: + // + // "NS": ["42.2", "-19", "7.5", "3.14"] + // + // Numbers are sent across the network to DynamoDB as strings, to maximize compatibility + // across languages and libraries. However, DynamoDB treats them as number type + // attributes for mathematical operations. NS []*string `type:"list"` - // A Null data type. + // An attribute of type Null. For example: + // + // "NULL": true NULL *bool `type:"boolean"` - // A String data type. + // An attribute of type String. For example: + // + // "S": "Hello" S *string `type:"string"` - // A String Set data type. + // An attribute of type String Set. For example: + // + // "SS": ["Giraffe", "Hippo" ,"Zebra"] SS []*string `type:"list"` } @@ -1806,13 +2088,13 @@ type AttributeValueUpdate struct { // are number and number set; no other data types can be specified. Action *string `type:"string" enum:"AttributeAction"` - // Represents the data for an attribute. You can set one, and only one, of the - // elements. + // Represents the data for an attribute. // - // Each attribute in an item is a name-value pair. An attribute can be single-valued - // or multi-valued set. For example, a book item can have title and authors - // attributes. Each book has one title but can have many authors. The multi-valued - // attribute is a set; duplicate values are not allowed. + // Each attribute value is described as a name-value pair. The name is the data + // type, and the value is the data itself. + // + // For more information, see Data TYpes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + // in the Amazon DynamoDB Developer Guide. Value *AttributeValue `type:"structure"` } @@ -1906,23 +2188,9 @@ type BatchGetItemInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // * AttributesToGet - - // - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names are - // provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on - // the amount of data that is returned to an application. + // * AttributesToGet - This is a legacy parameter. Use ProjectionExpression + // instead. For more information, see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. // // RequestItems is a required field RequestItems map[string]*KeysAndAttributes `min:"1" type:"map" required:"true"` @@ -1998,7 +2266,7 @@ func (s *BatchGetItemInput) SetReturnConsumedCapacity(v string) *BatchGetItemInp type BatchGetItemOutput struct { _ struct{} `type:"structure"` - // The read capacity units consumed by the operation. + // The read capacity units consumed by the entire BatchGetItem operation. // // Each element consists of: // @@ -2022,9 +2290,9 @@ type BatchGetItemOutput struct { // * Keys - An array of primary key attribute values that define specific // items in the table. // - // * AttributesToGet - One or more attributes to be retrieved from the table - // or index. By default, all attributes are returned. If a requested attribute - // is not found, it does not appear in the result. + // * ProjectionExpression - One or more attributes to be retrieved from the + // table or index. By default, all attributes are returned. If a requested + // attribute is not found, it does not appear in the result. // // * ConsistentRead - The consistency of a read operation. If set to true, // then a strongly consistent read is used; otherwise, an eventually consistent @@ -2171,7 +2439,7 @@ func (s *BatchWriteItemInput) SetReturnItemCollectionMetrics(v string) *BatchWri type BatchWriteItemOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by the operation. + // The capacity units consumed by the entire BatchWriteItem operation. // // Each element consists of: // @@ -2328,7 +2596,8 @@ type Condition struct { // // The following are descriptions of each comparison operator. // - // * EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // * EQ : Equal. EQ is supported for all data types, including lists and + // maps. // // AttributeValueList can contain only one AttributeValue element of type String, // Number, Binary, String Set, Number Set, or Binary Set. If an item contains @@ -2336,8 +2605,8 @@ type Condition struct { // the request, the value does not match. For example, {"S":"6"} does not // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // * NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // * NE : Not equal. NE is supported for all data types, including lists + // and maps. // // * AttributeValueList can contain only one AttributeValue of type String, // Number, Binary, String Set, Number Set, or Binary Set. If an item contains @@ -2486,8 +2755,8 @@ type CreateGlobalSecondaryIndexAction struct { // Projection is a required field Projection *Projection `type:"structure" required:"true"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. + // Represents the provisioned throughput settings for the specified global secondary + // index. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) @@ -2860,7 +3129,7 @@ func (s *CreateTableInput) SetTableName(v string) *CreateTableInput { type CreateTableOutput struct { _ struct{} `type:"structure"` - // Represents the properties of a table. + // Represents the properties of the table. TableDescription *TableDescription `type:"structure"` } @@ -2938,201 +3207,78 @@ type DeleteItemInput struct { // // These function names are case-sensitive. // - // * Comparison operators: = | <> | < | > | <= - // | >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // * Logical operators: AND | OR | NOT // // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - // - // ConditionExpression replaces the legacy ConditionalOperator and Expected - // parameters. ConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A logical operator to apply to the conditions in the Expected map: + // This is a legacy parameter. Use ConditionExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. + ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` + + // This is a legacy parameter. Use ConditionExpresssion instead. For more information, + // see Expected (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + // in the Amazon DynamoDB Developer Guide. + Expected map[string]*ExpectedAttributeValue `type:"map"` + + // One or more substitution tokens for attribute names in an expression. The + // following are some use cases for using ExpressionAttributeNames: // - // * AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // * OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // If you omit ConditionalOperator, then AND is the default. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // The operation will succeed only if the entire map evaluates to true. + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // This parameter does not support attributes of type List or Map. - ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` - - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. + // * Percentile // - // A map of attribute/condition pairs. Expected provides a conditional block - // for the DeleteItem operation. + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, + // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // in the Amazon DynamoDB Developer Guide). To work around this, you could specify + // the following for ExpressionAttributeNames: // - // Each element of Expected consists of an attribute name, a comparison operator, - // and one or more values. DynamoDB compares the attribute with the value(s) - // you supplied, using the comparison operator. For each Expected element, the - // result of the evaluation is either true or false. + // * {"#P":"Percentile"} // - // If you specify more than one element in the Expected map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) + // You could then use this substitution in an expression, as in this example: // - // If the Expected map evaluates to true, then the conditional operation succeeds; - // otherwise, it fails. + // * #P = :val // - // Expected contains the following: + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // * AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // in the Amazon DynamoDB Developer Guide. + ExpressionAttributeNames map[string]*string `type:"map"` + + // One or more values that can be substituted in an expression. // - // For type Number, value comparisons are numeric. + // Use the : (colon) character in an expression to dereference an attribute + // value. For example, suppose that you wanted to check whether the value of + // the ProductStatus attribute was one of the following: // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and - // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // Available | Backordered | Discontinued // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. + // You would first need to specify ExpressionAttributeValues as follows: // - // * ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // } // - // The following comparison operators are available: + // You could then use these values in an expression, such as this: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | - // BEGINS_WITH | IN | BETWEEN - // - // The following are descriptions of each comparison operator. - // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue element of a different type than the one provided in - // the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue of type String, Number, - // Binary, String Set, Number Set, or Binary Set. If an item contains an - // AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // * LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * LT : Less than. - // - // * AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT: Greater than. - // - // AttributeValueListcan contain only one AttributeValueelement of type String, Number, or Binary (not a set type). If an item contains - // an AttributeValueelement of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL - // : The attribute exists. NOT_NULL - // is supported for all datatypes, including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULLcomparison operator. - // - // NULL - // : The attribute does not exist. NULL - // is supported for all datatypes, including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL - Expected map[string]*ExpectedAttributeValue `type:"map"` - - // One or more substitution tokens for attribute names in an expression. The - // following are some use cases for using ExpressionAttributeNames: - // - // * To access an attribute whose name conflicts with a DynamoDB reserved - // word. - // - // * To create a placeholder for repeating occurrences of an attribute name - // in an expression. - // - // * To prevent special characters in an attribute name from being misinterpreted - // in an expression. - // - // Use the # character in an expression to dereference an attribute name. For - // example, consider the following attribute name: - // - // * Percentile - // - // The name of this attribute conflicts with a reserved word, so it cannot be - // used directly in an expression. (For the complete list of reserved words, - // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - // in the Amazon DynamoDB Developer Guide). To work around this, you could specify - // the following for ExpressionAttributeNames: - // - // * {"#P":"Percentile"} - // - // You could then use this substitution in an expression, as in this example: - // - // * #P = :val - // - // Tokens that begin with the : character are expression attribute values, which - // are placeholders for the actual value at runtime. - // - // For more information on expression attribute names, see Accessing Item Attributes - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string `type:"map"` - - // One or more values that can be substituted in an expression. - // - // Use the : (colon) character in an expression to dereference an attribute - // value. For example, suppose that you wanted to check whether the value of - // the ProductStatus attribute was one of the following: - // - // Available | Backordered | Discontinued - // - // You would first need to specify ExpressionAttributeValues as follows: - // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} - // } - // - // You could then use these values in an expression, such as this: - // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -3290,18 +3436,18 @@ type DeleteItemOutput struct { // only if ReturnValues was specified as ALL_OLD in the request. Attributes map[string]*AttributeValue `type:"map"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the DeleteItem operation. The data returned + // includes the total provisioned throughput consumed, along with statistics + // for the table and any indexes involved in the operation. ConsumedCapacity + // is only returned if the ReturnConsumedCapacity parameter was specified. For + // more information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // Information about item collections, if any, that were affected by the operation. - // ItemCollectionMetrics is only returned if the request asked for it. If the - // table does not have any local secondary indexes, this information is not - // returned in the response. + // Information about item collections, if any, that were affected by the DeleteItem + // operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics + // parameter was specified. If the table does not have any local secondary indexes, + // this information is not returned in the response. // // Each ItemCollectionMetrics element consists of: // @@ -3567,7 +3713,7 @@ func (s *DescribeTableInput) SetTableName(v string) *DescribeTableInput { type DescribeTableOutput struct { _ struct{} `type:"structure"` - // Represents the properties of a table. + // The properties of the table. Table *TableDescription `type:"structure"` } @@ -3638,7 +3784,8 @@ type ExpectedAttributeValue struct { // // The following are descriptions of each comparison operator. // - // * EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // * EQ : Equal. EQ is supported for all data types, including lists and + // maps. // // AttributeValueList can contain only one AttributeValue element of type String, // Number, Binary, String Set, Number Set, or Binary Set. If an item contains @@ -3646,8 +3793,8 @@ type ExpectedAttributeValue struct { // the request, the value does not match. For example, {"S":"6"} does not // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // * NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // * NE : Not equal. NE is supported for all data types, including lists + // and maps. // // * AttributeValueList can contain only one AttributeValue of type String, // Number, Binary, String Set, Number Set, or Binary Set. If an item contains @@ -3694,13 +3841,13 @@ type ExpectedAttributeValue struct { // attribute to have a value, while also expecting it not to exist.) Exists *bool `type:"boolean"` - // Represents the data for an attribute. You can set one, and only one, of the - // elements. + // Represents the data for the expected attribute. + // + // Each attribute value is described as a name-value pair. The name is the data + // type, and the value is the data itself. // - // Each attribute in an item is a name-value pair. An attribute can be single-valued - // or multi-valued set. For example, a book item can have title and authors - // attributes. Each book has one title but can have many authors. The multi-valued - // attribute is a set; duplicate values are not allowed. + // For more information, see Data Types (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + // in the Amazon DynamoDB Developer Guide. Value *AttributeValue `type:"structure"` } @@ -3743,21 +3890,9 @@ func (s *ExpectedAttributeValue) SetValue(v *AttributeValue) *ExpectedAttributeV type GetItemInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names are - // provided, then all attributes will be returned. If any of the requested attributes - // are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` // Determines the read consistency model: If set to true, then the operation @@ -3823,8 +3958,6 @@ type GetItemInput struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that @@ -3929,15 +4062,15 @@ func (s *GetItemInput) SetTableName(v string) *GetItemInput { type GetItemOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the GetItem operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified. For more + // information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // A map of attribute names to AttributeValue objects, as specified by AttributesToGet. + // A map of attribute names to AttributeValue objects, as specified by ProjectionExpression. Item map[string]*AttributeValue `type:"map"` } @@ -3993,15 +4126,15 @@ type GlobalSecondaryIndex struct { // KeySchema is a required field KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // global secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. // // Projection is a required field Projection *Projection `type:"structure" required:"true"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. + // Represents the provisioned throughput settings for the specified global secondary + // index. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) @@ -4152,13 +4285,17 @@ type GlobalSecondaryIndexDescription struct { // key physically close together, in sorted order by the sort key value. KeySchema []*KeySchemaElement `min:"1" type:"list"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // global secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Projection *Projection `type:"structure"` - // Represents the provisioned throughput settings for the table, consisting - // of read and write capacity units, along with data about increases and decreases. + // Represents the provisioned throughput settings for the specified global secondary + // index. + // + // For current minimum and maximum provisioned throughput values, see Limits + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + // in the Amazon DynamoDB Developer Guide. ProvisionedThroughput *ProvisionedThroughputDescription `type:"structure"` } @@ -4450,9 +4587,9 @@ func (s *KeySchemaElement) SetKeyType(v string) *KeySchemaElement { type KeysAndAttributes struct { _ struct{} `type:"structure"` - // One or more attributes to retrieve from the table or index. If no attribute - // names are specified then all attributes will be returned. If any of the specified - // attributes are not found, they will not appear in the result. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` // The consistency of a read operation. If set to true, then a strongly consistent @@ -4512,8 +4649,6 @@ type KeysAndAttributes struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` } @@ -4673,6 +4808,95 @@ func (s *ListTablesOutput) SetTableNames(v []*string) *ListTablesOutput { return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResourceInput +type ListTagsOfResourceInput struct { + _ struct{} `type:"structure"` + + // An optional string that, if supplied, must be copied from the output of a + // previous call to ListTagOfResource. When provided in this manner, this API + // fetches the next page of results. + NextToken *string `type:"string"` + + // The Amazon DynamoDB resource with tags to be listed. This value is an Amazon + // Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsOfResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsOfResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsOfResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsOfResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOfResourceInput) SetNextToken(v string) *ListTagsOfResourceInput { + s.NextToken = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsOfResourceInput) SetResourceArn(v string) *ListTagsOfResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResourceOutput +type ListTagsOfResourceOutput struct { + _ struct{} `type:"structure"` + + // If this value is returned, there are additional results to be displayed. + // To retrieve them, call ListTagsOfResource again, with NextToken set to this + // value. + NextToken *string `type:"string"` + + // The tags currently associated with the Amazon DynamoDB resource. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsOfResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsOfResourceOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOfResourceOutput) SetNextToken(v string) *ListTagsOfResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsOfResourceOutput) SetTags(v []*Tag) *ListTagsOfResourceOutput { + s.Tags = v + return s +} + // Represents the properties of a local secondary index. // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/LocalSecondaryIndex type LocalSecondaryIndex struct { @@ -4703,9 +4927,9 @@ type LocalSecondaryIndex struct { // KeySchema is a required field KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // local secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. // // Projection is a required field Projection *Projection `type:"structure" required:"true"` @@ -4816,9 +5040,9 @@ type LocalSecondaryIndexDescription struct { // key physically close together, in sorted order by the sort key value. KeySchema []*KeySchemaElement `min:"1" type:"list"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // global secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Projection *Projection `type:"structure"` } @@ -5084,148 +5308,23 @@ type PutItemInput struct { // // These function names are case-sensitive. // - // * Comparison operators: = | <> | < | > | <= - // | >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // * Logical operators: AND | OR | NOT // // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - // - // ConditionExpression replaces the legacy ConditionalOperator and Expected - // parameters. ConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A logical operator to apply to the conditions in the Expected map: - // - // * AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // * OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use ConditionExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A map of attribute/condition pairs. Expected provides a conditional block - // for the PutItem operation. - // - // This parameter does not support attributes of type List or Map. - // - // Each element of Expected consists of an attribute name, a comparison operator, - // and one or more values. DynamoDB compares the attribute with the value(s) - // you supplied, using the comparison operator. For each Expected element, the - // result of the evaluation is either true or false. - // - // If you specify more than one element in the Expected map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // If the Expected map evaluates to true, then the conditional operation succeeds; - // otherwise, it fails. - // - // Expected contains the following: - // - // * AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and - // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // * ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | - // BEGINS_WITH | IN | BETWEEN - // - // The following are descriptions of each comparison operator. - // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue element of a different type than the one provided in - // the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue of type String, Number, - // Binary, String Set, Number Set, or Binary Set. If an item contains an - // AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // * LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * LT : Less than. - // - // * AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT: Greater than. - // - // AttributeValueListcan contain only one AttributeValueelement of type String, Number, or Binary (not a set type). If an item contains - // an AttributeValueelement of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL - // : The attribute exists. NOT_NULL - // is supported for all datatypes, including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULLcomparison operator. - // - // NULL - // : The attribute does not exist. NULL - // is supported for all datatypes, including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL + // This is a legacy parameter. Use ConditionExpresssion instead. For more information, + // see Expected (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + // in the Amazon DynamoDB Developer Guide. Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The @@ -5450,18 +5549,18 @@ type PutItemOutput struct { // of an attribute name and an attribute value. Attributes map[string]*AttributeValue `type:"map"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the PutItem operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified. For more + // information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // Information about item collections, if any, that were affected by the operation. - // ItemCollectionMetrics is only returned if the request asked for it. If the - // table does not have any local secondary indexes, this information is not - // returned in the response. + // Information about item collections, if any, that were affected by the PutItem + // operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics + // parameter was specified. If the table does not have any local secondary indexes, + // this information is not returned in the response. // // Each ItemCollectionMetrics element consists of: // @@ -5544,56 +5643,14 @@ func (s *PutRequest) SetItem(v map[string]*AttributeValue) *PutRequest { type QueryInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names are - // provided, then all attributes will be returned. If any of the requested attributes - // are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. - // - // You cannot use both AttributesToGet and Select together in a Query request, - // unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent - // to specifying AttributesToGet without any value for Select.) - // - // If you query a local secondary index and request only attributes that are - // projected into that index, the operation will read only the index and not - // the table. If any of the requested attributes are not projected into the - // local secondary index, DynamoDB will fetch each of these attributes from - // the parent table. This extra fetching incurs additional throughput cost and - // latency. - // - // If you query a global secondary index, you can only request attributes that - // are projected into the index. Global secondary index queries cannot fetch - // attributes from the parent table. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A logical operator to apply to the conditions in a QueryFilter map: - // - // * AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // * OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // Determines the read consistency model: If set to true, then the operation @@ -5675,14 +5732,14 @@ type QueryInput struct { // but before the data is returned to you. Items that do not satisfy the FilterExpression // criteria are not returned. // + // A FilterExpression does not allow key attributes. You cannot define a filter + // expression based on a partition key or a sort key. + // // A FilterExpression is applied after the items have already been read; the // process of filtering does not consume any additional read capacity units. // // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. - // - // FilterExpression replaces the legacy QueryFilter and ConditionalOperator - // parameters. FilterExpression *string `type:"string"` // The name of an index to query. This index can be any local secondary index @@ -5756,98 +5813,11 @@ type QueryInput struct { // For more information on ExpressionAttributeNames and ExpressionAttributeValues, // see Using Placeholders for Attribute Names and Values (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html) // in the Amazon DynamoDB Developer Guide. - // - // KeyConditionExpression replaces the legacy KeyConditions parameter. KeyConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use KeyConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // The selection criteria for the query. For a query on a table, you can have - // conditions only on the table primary key attributes. You must provide the - // partition key name and value as an EQ condition. You can optionally provide - // a second condition, referring to the sort key. - // - // If you don't provide a sort key condition, all of the items that match the - // partition key will be retrieved. If a FilterExpression or QueryFilter is - // present, it will be applied after the items are retrieved. - // - // For a query on an index, you can have conditions only on the index key attributes. - // You must provide the index partition key name and value as an EQ condition. - // You can optionally provide a second condition, referring to the index sort - // key. - // - // Each KeyConditions element consists of an attribute name to compare, along - // with the following: - // - // * AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and - // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For Binary, DynamoDB treats each byte of the binary data as unsigned when - // it compares binary values. - // - // * ComparisonOperator - A comparator for evaluating attributes, for example, - // equals, greater than, less than, and so on. - // - // For KeyConditions, only the following comparison operators are supported: - // - // EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN - // - // The following are descriptions of these comparison operators. - // - // EQ : Equal. - // - // AttributeValueList can contain only one AttributeValue of type String, Number, - // or Binary (not a set type). If an item contains an AttributeValue element - // of a different type than the one specified in the request, the value does - // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not equal {"NS":["6", "2", "1"]}. - // - // LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, Number, - // or Binary (not a set type). If an item contains an AttributeValue element - // of a different type than the one provided in the request, the value does - // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // * GE : Greater than or equal. - // - // * AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // BEGINS_WITH: Checks for a prefix. - // - // AttributeValueListcan contain only one AttributeValue + // This is a legacy parameter. Use KeyConditionExpression instead. For more + // information, see KeyConditions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html) + // in the Amazon DynamoDB Developer Guide. KeyConditions map[string]*Condition `type:"map"` // The maximum number of items to evaluate (not necessarily the number of matching @@ -5872,63 +5842,11 @@ type QueryInput struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A condition that evaluates the query results after the items are read and - // returns only the desired values. - // - // This parameter does not support attributes of type List or Map. - // - // A QueryFilter is applied after the items have already been read; the process - // of filtering does not consume any additional read capacity units. - // - // If you provide more than one condition in the QueryFilter map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // Note that QueryFilter does not allow key attributes. You cannot define a - // filter condition on a partition key or a sort key. - // - // Each QueryFilter element consists of an attribute name to compare, along - // with the following: - // - // * AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the operator specified - // in ComparisonOperator. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and - // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) - // in the Amazon DynamoDB Developer Guide. - // - // * ComparisonOperator - A comparator for evaluating attributes. For example, - // equals, greater than, less than, etc. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | - // BEGINS_WITH | IN | BETWEEN - // - // For complete descriptions of all comparison operators, see the Condition - // (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html) - // data type. + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see QueryFilter (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html) + // in the Amazon DynamoDB Developer Guide. QueryFilter map[string]*Condition `type:"map"` // Determines the level of detail about provisioned throughput consumption that @@ -5987,16 +5905,16 @@ type QueryInput struct { // This return value is equivalent to specifying AttributesToGet without // specifying any value for Select. // - // If you query a local secondary index and request only attributes that are - // projected into that index, the operation will read only the index and - // not the table. If any of the requested attributes are not projected into - // the local secondary index, DynamoDB will fetch each of these attributes + // If you query or scan a local secondary index and request only attributes + // that are projected into that index, the operation will read only the index + // and not the table. If any of the requested attributes are not projected + // into the local secondary index, DynamoDB will fetch each of these attributes // from the parent table. This extra fetching incurs additional throughput // cost and latency. // - // If you query a global secondary index, you can only request attributes that - // are projected into the index. Global secondary index queries cannot fetch - // attributes from the parent table. + // If you query or scan a global secondary index, you can only request attributes + // that are projected into the index. Global secondary index queries cannot + // fetch attributes from the parent table. // // If neither Select nor AttributesToGet are specified, DynamoDB defaults to // ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when @@ -6178,11 +6096,11 @@ func (s *QueryInput) SetTableName(v string) *QueryInput { type QueryOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the Query operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified For more information, + // see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` @@ -6267,41 +6185,14 @@ func (s *QueryOutput) SetScannedCount(v int64) *QueryOutput { type ScanInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names are - // provided, then all attributes will be returned. If any of the requested attributes - // are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A logical operator to apply to the conditions in a ScanFilter map: - // - // * AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // * OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // A Boolean value that determines the read consistency model during the scan: @@ -6399,8 +6290,6 @@ type ScanInput struct { // // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. - // - // FilterExpression replaces the legacy ScanFilter and ConditionalOperator parameters. FilterExpression *string `type:"string"` // The name of a secondary index to scan. This index can be any local secondary @@ -6430,8 +6319,6 @@ type ScanInput struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that @@ -6451,51 +6338,9 @@ type ScanInput struct { // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A condition that evaluates the scan results and returns only the desired - // values. - // - // This parameter does not support attributes of type List or Map. - // - // If you specify more than one condition in the ScanFilter map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // Each ScanFilter element consists of an attribute name to compare, along with - // the following: - // - // * AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the operator specified - // in ComparisonOperator . - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and - // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For Binary, DynamoDB treats each byte of the binary data as unsigned when - // it compares binary values. - // - // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) - // in the Amazon DynamoDB Developer Guide. - // - // * ComparisonOperator - A comparator for evaluating attributes. For example, - // equals, greater than, less than, etc. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | - // BEGINS_WITH | IN | BETWEEN - // - // For complete descriptions of all comparison operators, see Condition (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html). + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see ScanFilter (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html) + // in the Amazon DynamoDB Developer Guide. ScanFilter map[string]*Condition `type:"map"` // For a parallel Scan request, Segment identifies an individual segment to @@ -6517,9 +6362,15 @@ type ScanInput struct { Segment *int64 `type:"integer"` // The attributes to be returned in the result. You can retrieve all item attributes, - // specific item attributes, or the count of matching items. + // specific item attributes, the count of matching items, or in the case of + // an index, some or all of the attributes projected into the index. // - // * ALL_ATTRIBUTES - Returns all of the item attributes. + // * ALL_ATTRIBUTES - Returns all of the item attributes from the specified + // table or index. If you query a local secondary index, then for each matching + // item in the index DynamoDB will fetch the entire item from the parent + // table. If the index is configured to project all item attributes, then + // all of the data can be obtained from the local secondary index, and no + // fetching is required. // // * ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves // all attributes that have been projected into the index. If the index is @@ -6533,10 +6384,27 @@ type ScanInput struct { // This return value is equivalent to specifying AttributesToGet without // specifying any value for Select. // + // If you query or scan a local secondary index and request only attributes + // that are projected into that index, the operation will read only the index + // and not the table. If any of the requested attributes are not projected + // into the local secondary index, DynamoDB will fetch each of these attributes + // from the parent table. This extra fetching incurs additional throughput + // cost and latency. + // + // If you query or scan a global secondary index, you can only request attributes + // that are projected into the index. Global secondary index queries cannot + // fetch attributes from the parent table. + // // If neither Select nor AttributesToGet are specified, DynamoDB defaults to - // ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together in - // a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This - // usage is equivalent to specifying AttributesToGet without any value for Select.) + // ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when + // accessing an index. You cannot use both Select and AttributesToGet together + // in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. + // (This usage is equivalent to specifying AttributesToGet without any value + // for Select.) + // + // If you use the ProjectionExpression parameter, then the value for Select + // can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an + // error. Select *string `type:"string" enum:"Select"` // The name of the table containing the requested items; or, if you provide @@ -6708,11 +6576,11 @@ func (s *ScanInput) SetTotalSegments(v int64) *ScanInput { type ScanOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the Scan operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified. For more + // information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` @@ -6800,26 +6668,21 @@ type StreamSpecification struct { // on the table. StreamEnabled *bool `type:"boolean"` - // The DynamoDB Streams settings for the table. These settings consist of: - // - // * StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) - // or disabled (false) on the table. - // - // * StreamViewType - When an item in the table is modified, StreamViewType - // determines what information is written to the stream for this table. Valid - // values for StreamViewType are: - // - // KEYS_ONLY - Only the key attributes of the modified item are written to the - // stream. - // - // NEW_IMAGE - The entire item, as it appears after it was modified, is written - // to the stream. + // When an item in the table is modified, StreamViewType determines what information + // is written to the stream for this table. Valid values for StreamViewType + // are: // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is written + // * KEYS_ONLY - Only the key attributes of the modified item are written // to the stream. // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are + // * NEW_IMAGE - The entire item, as it appears after it was modified, is // written to the stream. + // + // * OLD_IMAGE - The entire item, as it appeared before it was modified, + // is written to the stream. + // + // * NEW_AND_OLD_IMAGES - Both the new and the old item images of the item + // are written to the stream. StreamViewType *string `type:"string" enum:"StreamViewType"` } @@ -7138,6 +7001,229 @@ func (s *TableDescription) SetTableStatus(v string) *TableDescription { return s } +// Describes a tag. A tag is a key-value pair. You can add up to 50 tags to +// a single DynamoDB table. +// +// AWS-assigned tag names and values are automatically assigned the aws: prefix, +// which the user cannot assign. AWS-assigned tag names do not count towards +// the tag limit of 50. User-assigned tag names have the prefix user: in the +// Cost Allocation Report. You cannot backdate the application of a tag. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html) +// in the Amazon DynamoDB Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Tag +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag.Tag keys are case sensitive. Each DynamoDB table can only + // have up to one tag with the same key. If you try to add an existing tag (same + // key), the existing tag value will be updated to the new value. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The value of the tag. Tag values are case-sensitive and can be null. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResourceInput +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // Identifies the Amazon DynamoDB resource to which tags should be added. This + // value is an Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // The tags to be assigned to the Amazon DynamoDB resource. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResourceOutput +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResourceInput +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon DyanamoDB resource the tags will be removed from. This value is + // an Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // A list of tag keys. Existing tags of the resource whose keys are members + // of this list will be removed from the Amazon DynamoDB resource. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResourceOutput +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // Represents the new provisioned throughput settings to be applied to a global // secondary index. // Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalSecondaryIndexAction @@ -7149,8 +7235,8 @@ type UpdateGlobalSecondaryIndexAction struct { // IndexName is a required field IndexName *string `min:"3" type:"string" required:"true"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. + // Represents the provisioned throughput settings for the specified global secondary + // index. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) @@ -7211,93 +7297,9 @@ func (s *UpdateGlobalSecondaryIndexAction) SetProvisionedThroughput(v *Provision type UpdateItemInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use UpdateExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // This parameter can be used for modifying top-level attributes; however, it - // does not support individual list or map elements. - // - // The names of attributes to be modified, the action to perform on each, and - // the new value for each. If you are updating an attribute that is an index - // key attribute for any indexes on that table, the attribute type must match - // the index key type defined in the AttributesDefinition of the table description. - // You can use UpdateItem to update any non-key attributes. - // - // Attribute values cannot be null. String and Binary type attributes must have - // lengths greater than zero. Set type attributes must not be empty. Requests - // with empty values will be rejected with a ValidationException exception. - // - // Each AttributeUpdates element consists of an attribute name to modify, along - // with the following: - // - // * Value - The new value, if applicable, for this attribute. - // - // * Action - A value that specifies how to perform the update. This action - // is only valid for an existing attribute whose data type is Number or is - // a set; do not use ADD for other data types. - // - // If an item with the specified primary key is found in the table, the following - // values perform the following actions: - // - // PUT - Adds the specified attribute to the item. If the attribute already - // exists, it is replaced by the new value. - // - // DELETE - Removes the attribute and its value, if no value is specified for - // DELETE. The data type of the specified value must match the existing value's - // data type. - // - // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specifies [a,c], then the final attribute value is [b]. - // Specifying an empty set is an error. - // - // ADD - Adds the specified value to the item, if the attribute does not already - // exist. If the attribute does exist, then the behavior of ADD depends on - // the data type of the attribute: - // - // If the existing attribute is a number, and if Value is also a number, then - // Value is mathematically added to the existing attribute. If Value is a - // negative number, then it is subtracted from the existing attribute. - // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. - // - // Similarly, if you use ADD for an existing item to increment or decrement - // an attribute value that doesn't exist before the update, DynamoDB uses - // 0 as the initial value. For example, suppose that the item you want to - // update doesn't have an attribute named itemcount, but you decide to ADD - // the number 3 to this attribute anyway. DynamoDB will create the itemcount - // attribute, set its initial value to 0, and finally add 3 to it. The result - // will be a new itemcount attribute, with a value of 3. - // - // If the existing data type is a set, and if Value is also a set, then Value - // is appended to the existing set. For example, if the attribute value is - // the set [1,2], and the ADD action specified [3], then the final attribute - // value is [1,2,3]. An error occurs if an ADD action is specified for a - // set attribute and the attribute type specified does not match the existing - // set type. - // - // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, Value must also be a set of strings. - // - // If no item with the specified key is found in the table, the following values - // perform the following actions: - // - // PUT - Causes DynamoDB to create a new item with the specified primary key, - // and then adds the attribute. - // - // DELETE - Nothing happens, because attributes cannot be deleted from a nonexistent - // item. The operation succeeds, but DynamoDB does not create a new item. - // - // ADD - Causes DynamoDB to create an item with the supplied primary key and - // number (or set of numbers) for the attribute value. The only data types - // allowed are Number and Number Set. - // - // If you provide any attributes that are part of an index key, then the data - // types for those attributes must match those of the schema in the table's - // attribute definition. + // This is a legacy parameter. Use UpdateExpression instead. For more information, + // see AttributeUpdates (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html) + // in the Amazon DynamoDB Developer Guide. AttributeUpdates map[string]*AttributeValueUpdate `type:"map"` // A condition that must be satisfied in order for a conditional update to succeed. @@ -7309,146 +7311,23 @@ type UpdateItemInput struct { // // These function names are case-sensitive. // - // * Comparison operators: = | <> | < | > | <= - // | >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // * Logical operators: AND | OR | NOT // // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - // - // ConditionExpression replaces the legacy ConditionalOperator and Expected - // parameters. ConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A logical operator to apply to the conditions in the Expected map: - // - // * AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // * OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use ConditionExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A map of attribute/condition pairs. Expected provides a conditional block - // for the UpdateItem operation. - // - // Each element of Expected consists of an attribute name, a comparison operator, - // and one or more values. DynamoDB compares the attribute with the value(s) - // you supplied, using the comparison operator. For each Expected element, the - // result of the evaluation is either true or false. - // - // If you specify more than one element in the Expected map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // If the Expected map evaluates to true, then the conditional operation succeeds; - // otherwise, it fails. - // - // Expected contains the following: - // - // * AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and - // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // * ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | - // BEGINS_WITH | IN | BETWEEN - // - // The following are descriptions of each comparison operator. - // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue element of a different type than the one provided in - // the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue of type String, Number, - // Binary, String Set, Number Set, or Binary Set. If an item contains an - // AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // * LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * LT : Less than. - // - // * AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the - // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. - // - // * GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT: Greater than. - // - // AttributeValueListcan contain only one AttributeValueelement of type String, Number, or Binary (not a set type). If an item contains - // an AttributeValueelement of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL - // : The attribute exists. NOT_NULL - // is supported for all datatypes, including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULLcomparison operator. - // - // NULL - // : The attribute does not exist. NULL - // is supported for all datatypes, including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL + // This is a legacy parameter. Use ConditionExpresssion instead. For more information, + // see Expected (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + // in the Amazon DynamoDB Developer Guide. Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The @@ -7645,8 +7524,6 @@ type UpdateItemInput struct { // For more information on update expressions, see Modifying Items and Attributes // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html) // in the Amazon DynamoDB Developer Guide. - // - // UpdateExpression replaces the legacy AttributeUpdates parameter. UpdateExpression *string `type:"string"` } @@ -7761,18 +7638,33 @@ type UpdateItemOutput struct { // NONE in the request. Each element represents one attribute. Attributes map[string]*AttributeValue `type:"map"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the UpdateItem operation. The data returned + // includes the total provisioned throughput consumed, along with statistics + // for the table and any indexes involved in the operation. ConsumedCapacity + // is only returned if the ReturnConsumedCapacity parameter was specified. For + // more information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // Information about item collections, if any, that were affected by the operation. - // ItemCollectionMetrics is only returned if the request asked for it. If the - // table does not have any local secondary indexes, this information is not - // returned in the response. + // Information about item collections, if any, that were affected by the UpdateItem + // operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics + // parameter was specified. If the table does not have any local secondary indexes, + // this information is not returned in the response. + // + // Each ItemCollectionMetrics element consists of: + // + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item itself. + // + // * SizeEstimateRange - An estimate of item collection size, in gigabytes. + // This value is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on that table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. + // + // The estimate is subject to change over time; therefore, do not rely on the + // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` } @@ -7828,12 +7720,7 @@ type UpdateTableInput struct { // in the Amazon DynamoDB Developer Guide. GlobalSecondaryIndexUpdates []*GlobalSecondaryIndexUpdate `type:"list"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. - // - // For current minimum and maximum provisioned throughput values, see Limits - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) - // in the Amazon DynamoDB Developer Guide. + // The new provisioned throughput settings for the specified table or index. ProvisionedThroughput *ProvisionedThroughput `type:"structure"` // Represents the DynamoDB Streams configuration for the table. @@ -7935,7 +7822,7 @@ func (s *UpdateTableInput) SetTableName(v string) *UpdateTableInput { type UpdateTableOutput struct { _ struct{} `type:"structure"` - // Represents the properties of a table. + // Represents the properties of the table. TableDescription *TableDescription `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go index fed0793cc3..b6afaf1267 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go @@ -241,7 +241,7 @@ func (d *Decoder) decodeBinary(b []byte, v reflect.Value) error { func (d *Decoder) decodeBool(b *bool, v reflect.Value) error { switch v.Kind() { case reflect.Bool, reflect.Interface: - v.Set(reflect.ValueOf(*b)) + v.Set(reflect.ValueOf(*b).Convert(v.Type())) default: return &UnmarshalTypeError{Value: "bool", Type: v.Type()} } diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go new file mode 100644 index 0000000000..05a9ee84cd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go @@ -0,0 +1,64 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package dynamodb + +const ( + + // ErrCodeConditionalCheckFailedException for service response error code + // "ConditionalCheckFailedException". + // + // A condition specified in the operation could not be evaluated. + ErrCodeConditionalCheckFailedException = "ConditionalCheckFailedException" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // An error occurred on the server side. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeItemCollectionSizeLimitExceededException for service response error code + // "ItemCollectionSizeLimitExceededException". + // + // An item collection is too large. This exception is only returned for tables + // that have one or more local secondary indexes. + ErrCodeItemCollectionSizeLimitExceededException = "ItemCollectionSizeLimitExceededException" + + // ErrCodeLimitExceededException for service response error code + // "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. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeProvisionedThroughputExceededException for service response error code + // "ProvisionedThroughputExceededException". + // + // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry + // requests that receive this exception. Your request is eventually successful, + // unless your retry queue is too large to finish. Reduce the frequency of requests + // and use exponential backoff. For more information, go to Error Retries and + // Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) + // in the Amazon DynamoDB Developer Guide. + ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" + + // ErrCodeResourceInUseException for service response error code + // "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. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "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. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go index 6816764dec..b8765f0336 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go @@ -11,119 +11,24 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// This is the Amazon DynamoDB API Reference. This guide provides descriptions -// of the low-level DynamoDB API. -// -// This guide is intended for use with the following DynamoDB documentation: -// -// * Amazon DynamoDB Getting Started Guide (http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/) -// - provides hands-on exercises that help you learn the basics of working -// with DynamoDB. If you are new to DynamoDB, we recommend that you begin -// with the Getting Started Guide. -// -// * Amazon DynamoDB Developer Guide (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/) -// - contains detailed information about DynamoDB concepts, usage, and best -// practices. -// -// * Amazon DynamoDB Streams API Reference (http://docs.aws.amazon.com/dynamodbstreams/latest/APIReference/) -// - provides descriptions and samples of the DynamoDB Streams API. (For -// more information, see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) -// in the Amazon DynamoDB Developer Guide.) -// -// Instead of making the requests to the low-level DynamoDB API directly from -// your application, we recommend that you use the AWS Software Development -// Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary -// to call the low-level DynamoDB API directly from your application. The libraries -// take care of request authentication, serialization, and connection management. -// For more information, see Using the AWS SDKs with DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/UsingAWSSDK.html) -// in the Amazon DynamoDB Developer Guide. -// -// If you decide to code against the low-level DynamoDB API directly, you will -// need to write the necessary code to authenticate your requests. For more -// information on signing your requests, see Using the DynamoDB API (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/API.html) -// in the Amazon DynamoDB Developer Guide. -// -// The following are short descriptions of each low-level API action, organized -// by function. -// -// Managing Tables -// -// * CreateTable - Creates a table with user-specified provisioned throughput -// settings. You must define a primary key for the table - either a simple -// primary key (partition key), or a composite primary key (partition key -// and sort key). Optionally, you can create one or more secondary indexes, -// which provide fast data access using non-key attributes. -// -// * DescribeTable - Returns metadata for a table, such as table size, status, -// and index information. -// -// * UpdateTable - Modifies the provisioned throughput settings for a table. -// Optionally, you can modify the provisioned throughput settings for global -// secondary indexes on the table. -// -// * ListTables - Returns a list of all tables associated with the current -// AWS account and endpoint. -// -// * DeleteTable - Deletes a table and all of its indexes. -// -// For conceptual information about managing tables, see Working with Tables -// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html) -// in the Amazon DynamoDB Developer Guide. -// -// Reading Data -// -// * GetItem - Returns a set of attributes for the item that has a given -// primary key. By default, GetItem performs an eventually consistent read; -// however, applications can request a strongly consistent read instead. -// -// * BatchGetItem - Performs multiple GetItem requests for data items using -// their primary keys, from one table or multiple tables. The response from -// BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. -// Both eventually consistent and strongly consistent reads can be used. -// -// * Query - Returns one or more items from a table or a secondary index. -// You must provide a specific value for the partition key. You can narrow -// the scope of the query using comparison operators against a sort key value, -// or on the index key. Query supports either eventual or strong consistency. -// A single response has a size limit of 1 MB. -// -// * Scan - Reads every item in a table; the result set is eventually consistent. -// You can limit the number of items returned by filtering the data attributes, -// using conditional expressions. Scan can be used to enable ad-hoc querying -// of a table against non-key attributes; however, since this is a full table -// scan without using an index, Scan should not be used for any application -// query use case that requires predictable performance. -// -// For conceptual information about reading data, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) -// and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) -// in the Amazon DynamoDB Developer Guide. -// -// Modifying Data -// -// * PutItem - Creates a new item, or replaces an existing item with a new -// item (including all the attributes). By default, if an item in the table -// already exists with the same primary key, the new item completely replaces -// the existing item. You can use conditional operators to replace an item -// only if its attribute values match certain conditions, or to insert a -// new item only if that item doesn't already exist. -// -// * UpdateItem - Modifies the attributes of an existing item. You can also -// use conditional operators to perform an update only if the item's attribute -// values match certain conditions. -// -// * DeleteItem - Deletes an item in a table by primary key. You can use -// conditional operators to perform a delete an item only if the item's attribute -// values match certain conditions. -// -// * BatchWriteItem - Performs multiple PutItem and DeleteItem requests across -// multiple tables in a single request. A failure of any request(s) in the -// batch will not cause the entire BatchWriteItem operation to fail. Supports -// batches of up to 25 items to put or delete, with a maximum total request -// size of 16 MB. -// -// For conceptual information about modifying data, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) -// and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) -// in the Amazon DynamoDB Developer Guide. +// Amazon DynamoDB is a fully managed NoSQL database service that provides fast +// and predictable performance with seamless scalability. DynamoDB lets you +// offload the administrative burdens of operating and scaling a distributed +// database, so that you don't have to worry about hardware provisioning, setup +// and configuration, replication, software patching, or cluster scaling. +// +// With DynamoDB, you can create database tables that can store and retrieve +// any amount of data, and serve any level of request traffic. You can scale +// up or scale down your tables' throughput capacity without downtime or performance +// degradation, and use the AWS Management Console to monitor resource utilization +// and performance metrics. +// +// DynamoDB automatically spreads the data and traffic for your tables over +// a sufficient number of servers to handle your throughput and storage requirements, +// while maintaining consistent and fast performance. All of your data is stored +// on solid state disks (SSDs) and automatically replicated across multiple +// Availability Zones in an AWS region, providing built-in high availability +// and data durability. // 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/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 e006e7e7b7..125247059d 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 @@ -2945,6 +2945,10 @@ func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstanc // listing at a time. To get a list of your Standard Reserved Instances, you // can use the DescribeReservedInstances operation. // +// Only Standard Reserved Instances with a capacity reservation can be sold +// in the Reserved Instance Marketplace. Convertible Reserved Instances and +// Standard Reserved Instances with a regional benefit cannot be sold. +// // The Reserved Instance Marketplace matches sellers who want to resell Standard // Reserved Instance capacity that they no longer need with buyers who want // to purchase additional capacity. Reserved Instances bought and sold through @@ -3647,8 +3651,8 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out // // You can specify the instance tenancy value for the VPC when you create it. // You can't change this value for the VPC after you create it. For more information, -// see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html.html) -// in the Amazon Virtual Private Cloud User Guide. +// see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) +// in the Amazon Elastic Compute Cloud User 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 @@ -3714,7 +3718,7 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ // that will control access to the service from your VPC. You can also specify // the VPC route tables that use the endpoint. // -// Currently, only endpoints to Amazon S3 are supported. +// Use DescribeVpcEndpointServices to get a list of supported AWS services. // // 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 @@ -15500,6 +15504,11 @@ func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeVal type ActiveInstance struct { _ struct{} `type:"structure"` + // The health status of the instance. If the status of both the instance status + // check and the system status check is impaired, the health status of the instance + // is unhealthy. Otherwise, the health status is healthy. + InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"` + // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` @@ -15520,6 +15529,12 @@ func (s ActiveInstance) GoString() string { return s.String() } +// SetInstanceHealth sets the InstanceHealth field's value. +func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance { + s.InstanceHealth = &v + return s +} + // SetInstanceId sets the InstanceId field's value. func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance { s.InstanceId = &v @@ -24472,6 +24487,9 @@ type DescribeCustomerGatewaysInput struct { // is ipsec.1. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -24564,6 +24582,9 @@ type DescribeDhcpOptionsInput struct { // * value - The value for one of the options. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -24880,8 +24901,7 @@ type DescribeHostReservationOfferingsInput struct { // // * instance-family - The instance family of the offering (e.g., m4). // - // * payment-option - The payment option (No Upfront | Partial Upfront | - // All Upfront). + // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront). Filter []*Filter `locationNameList:"Filter" type:"list"` // This is the maximum duration of the reservation you'd like to purchase, specified @@ -24999,8 +25019,7 @@ type DescribeHostReservationsInput struct { // // * instance-family - The instance family (e.g., m4). // - // * payment-option - The payment option (No Upfront | Partial Upfront | - // All Upfront). + // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront). // // * state - The state of the reservation (payment-pending | payment-failed // | active | retired). @@ -25557,6 +25576,9 @@ type DescribeImagesInput struct { // * state-reason-message - The message for the state change. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -26457,8 +26479,10 @@ type DescribeInstancesInput struct { // // * subnet-id - The ID of the subnet for the instance. // - // * tag:key=value - The key/value combination of a tag assigned to the resource, - // where tag:key is the tag's key. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -26590,6 +26614,9 @@ type DescribeInternetGatewaysInput struct { // * internet-gateway-id - The ID of the Internet gateway. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -26997,6 +27024,9 @@ type DescribeNetworkAclsInput struct { // * network-acl-id - The ID of the network ACL. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -27299,6 +27329,9 @@ type DescribeNetworkInterfacesInput struct { // * subnet-id - The ID of the subnet for the network interface. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -27684,6 +27717,9 @@ type DescribeReservedInstancesInput struct { // | payment-failed | retired). // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -28269,6 +28305,9 @@ type DescribeRouteTablesInput struct { // specified in a route in the table. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -28972,6 +29011,9 @@ type DescribeSnapshotsInput struct { // * status - The status of the snapshot (pending | completed | error). // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -29646,6 +29688,9 @@ type DescribeSpotInstanceRequestsInput struct { // request. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -30033,6 +30078,9 @@ type DescribeSubnetsInput struct { // * subnet-id - The ID of the subnet. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -30496,6 +30544,9 @@ type DescribeVolumesInput struct { // | deleted | error). // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -30839,6 +30890,9 @@ type DescribeVpcClassicLinkInput struct { // (true | false). // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -31145,6 +31199,9 @@ type DescribeVpcPeeringConnectionsInput struct { // status of the VPC peering connection, if applicable. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -31253,6 +31310,9 @@ type DescribeVpcsInput struct { // * state - The state of the VPC (pending | available). // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -31360,6 +31420,9 @@ type DescribeVpnConnectionsInput struct { // device. // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -31465,6 +31528,9 @@ type DescribeVpnGatewaysInput struct { // | deleting | deleted). // // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // // * tag-key - The key of a tag assigned to the resource. This filter is // independent of the tag-value filter. For example, if you use both the @@ -39385,6 +39451,10 @@ type ModifySubnetAttributeInput struct { // subnet should be assigned an IPv6 address. This includes a network interface // that's created when launching an instance into the subnet (the instance therefore // receives an IPv6 address). + // + // If you enable the IPv6 addressing feature for your subnet, your network interface + // or instance only receives an IPv6 address if it's created using version 2016-11-15 + // or later of the Amazon EC2 API. AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"` // Specify true to indicate that network interfaces created in the specified @@ -41048,8 +41118,8 @@ type Placement struct { // The name of the placement group the instance is in (for cluster compute instances). GroupName *string `locationName:"groupName" type:"string"` - // The ID of the Dedicted host on which the instance resides. This parameter - // is not support for the ImportInstance command. + // The ID of the Dedicated Host on which the instance resides. This parameter + // is not supported for the ImportInstance command. HostId *string `locationName:"hostId" type:"string"` // The tenancy of the instance (if the instance is running in a VPC). An instance @@ -48174,6 +48244,9 @@ type SpotFleetRequestConfigData struct { // LaunchSpecifications is a required field LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"` + // Indicates whether Spot fleet should replace unhealthy instances. + ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"` + // The bid price per unit hour. // // SpotPrice is a required field @@ -48291,6 +48364,12 @@ func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunc return s } +// SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value. +func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData { + s.ReplaceUnhealthyInstances = &v + return s +} + // SetSpotPrice sets the SpotPrice field's value. func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData { s.SpotPrice = &v @@ -48611,6 +48690,11 @@ type SpotPlacement struct { // The name of the placement group (for cluster instances). GroupName *string `locationName:"groupName" type:"string"` + + // The tenancy of the instance (if the instance is running in a VPC). An instance + // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy + // is not supported for Spot instances. + Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` } // String returns the string representation @@ -48635,6 +48719,12 @@ func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement { return s } +// SetTenancy sets the Tenancy field's value. +func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement { + s.Tenancy = &v + return s +} + // Describes the maximum hourly price (bid) for any Spot instance launched to // fulfill the request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPrice @@ -51873,6 +51963,14 @@ const ( InstanceAttributeNameEnaSupport = "enaSupport" ) +const ( + // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value + InstanceHealthStatusHealthy = "healthy" + + // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value + InstanceHealthStatusUnhealthy = "unhealthy" +) + const ( // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value InstanceLifecycleTypeSpot = "spot" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go new file mode 100644 index 0000000000..f90fa6ec54 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go @@ -0,0 +1,3 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ec2 diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go index 01e09341ca..fc46f51459 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go @@ -70,15 +70,15 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil // API operation BatchCheckLayerAvailability for usage and error information. // // Returned Error Codes: -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailability @@ -151,14 +151,14 @@ func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *reques // API operation BatchDeleteImage for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -225,14 +225,14 @@ func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Requ // API operation BatchGetImage for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -304,32 +304,32 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * // API operation CompleteLayerUpload for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * UploadNotFoundException +// * ErrCodeUploadNotFoundException "UploadNotFoundException" // The upload could not be found, or the specified upload id is not valid for // this repository. // -// * InvalidLayerException +// * ErrCodeInvalidLayerException "InvalidLayerException" // The layer digest calculation performed by Amazon ECR upon receipt of the // image layer does not match the digest specified. // -// * LayerPartTooSmallException +// * ErrCodeLayerPartTooSmallException "LayerPartTooSmallException" // Layer parts must be at least 5 MiB in size. // -// * LayerAlreadyExistsException +// * ErrCodeLayerAlreadyExistsException "LayerAlreadyExistsException" // The image layer already exists in the associated repository. // -// * EmptyUploadException +// * ErrCodeEmptyUploadException "EmptyUploadException" // The specified layer upload does not contain any layer parts. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUpload @@ -394,17 +394,17 @@ func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *reques // API operation CreateRepository for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryAlreadyExistsException +// * ErrCodeRepositoryAlreadyExistsException "RepositoryAlreadyExistsException" // The specified repository already exists in the specified registry. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) @@ -473,18 +473,18 @@ func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *reques // API operation DeleteRepository for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * RepositoryNotEmptyException +// * ErrCodeRepositoryNotEmptyException "RepositoryNotEmptyException" // The specified repository contains images. To delete a repository that contains // images, you must force the deletion with the force parameter. // @@ -550,18 +550,18 @@ func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) // API operation DeleteRepositoryPolicy for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * RepositoryPolicyNotFoundException +// * ErrCodeRepositoryPolicyNotFoundException "RepositoryPolicyNotFoundException" // The specified repository and registry combination does not have an associated // repository policy. // @@ -639,18 +639,18 @@ func (c *ECR) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // API operation DescribeImages for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ImageNotFoundException +// * ErrCodeImageNotFoundException "ImageNotFoundException" // The image requested does not exist in the specified repository. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImages @@ -746,14 +746,14 @@ func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req // API operation DescribeRepositories for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -851,10 +851,10 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r // API operation GetAuthorizationToken for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -925,22 +925,22 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) // API operation GetDownloadUrlForLayer for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * LayersNotFoundException +// * ErrCodeLayersNotFoundException "LayersNotFoundException" // The specified layers could not be found, or the specified layer is not valid // for this repository. // -// * LayerInaccessibleException +// * ErrCodeLayerInaccessibleException "LayerInaccessibleException" // The specified layer is not available because it is not associated with an // image. Unassociated image layers may be cleaned up at any time. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1006,18 +1006,18 @@ func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req * // API operation GetRepositoryPolicy for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * RepositoryPolicyNotFoundException +// * ErrCodeRepositoryPolicyNotFoundException "RepositoryPolicyNotFoundException" // The specified repository and registry combination does not have an associated // repository policy. // @@ -1087,14 +1087,14 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * // API operation InitiateLayerUpload for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1172,14 +1172,14 @@ func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, o // API operation ListImages for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1274,26 +1274,26 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu // API operation PutImage for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ImageAlreadyExistsException +// * ErrCodeImageAlreadyExistsException "ImageAlreadyExistsException" // The specified image has already been pushed, and there are no changes to // the manifest or image tag since the last push. // -// * LayersNotFoundException +// * ErrCodeLayersNotFoundException "LayersNotFoundException" // The specified layers could not be found, or the specified layer is not valid // for this repository. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) @@ -1361,14 +1361,14 @@ func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req * // API operation SetRepositoryPolicy for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1438,26 +1438,26 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. // API operation UploadLayerPart for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * InvalidLayerPartException +// * ErrCodeInvalidLayerPartException "InvalidLayerPartException" // The layer part size is not valid, or the first byte specified is not consecutive // to the last byte of a previous layer part upload. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * UploadNotFoundException +// * ErrCodeUploadNotFoundException "UploadNotFoundException" // The upload could not be found, or the specified upload id is not valid for // this repository. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go new file mode 100644 index 0000000000..c51948bc77 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go @@ -0,0 +1,121 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ecr + +const ( + + // ErrCodeEmptyUploadException for service response error code + // "EmptyUploadException". + // + // The specified layer upload does not contain any layer parts. + ErrCodeEmptyUploadException = "EmptyUploadException" + + // ErrCodeImageAlreadyExistsException for service response error code + // "ImageAlreadyExistsException". + // + // The specified image has already been pushed, and there are no changes to + // the manifest or image tag since the last push. + ErrCodeImageAlreadyExistsException = "ImageAlreadyExistsException" + + // ErrCodeImageNotFoundException for service response error code + // "ImageNotFoundException". + // + // The image requested does not exist in the specified repository. + ErrCodeImageNotFoundException = "ImageNotFoundException" + + // ErrCodeInvalidLayerException for service response error code + // "InvalidLayerException". + // + // The layer digest calculation performed by Amazon ECR upon receipt of the + // image layer does not match the digest specified. + ErrCodeInvalidLayerException = "InvalidLayerException" + + // ErrCodeInvalidLayerPartException for service response error code + // "InvalidLayerPartException". + // + // The layer part size is not valid, or the first byte specified is not consecutive + // to the last byte of a previous layer part upload. + ErrCodeInvalidLayerPartException = "InvalidLayerPartException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // The specified parameter is invalid. Review the available parameters for the + // API request. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeLayerAlreadyExistsException for service response error code + // "LayerAlreadyExistsException". + // + // The image layer already exists in the associated repository. + ErrCodeLayerAlreadyExistsException = "LayerAlreadyExistsException" + + // ErrCodeLayerInaccessibleException for service response error code + // "LayerInaccessibleException". + // + // The specified layer is not available because it is not associated with an + // image. Unassociated image layers may be cleaned up at any time. + ErrCodeLayerInaccessibleException = "LayerInaccessibleException" + + // ErrCodeLayerPartTooSmallException for service response error code + // "LayerPartTooSmallException". + // + // Layer parts must be at least 5 MiB in size. + ErrCodeLayerPartTooSmallException = "LayerPartTooSmallException" + + // ErrCodeLayersNotFoundException for service response error code + // "LayersNotFoundException". + // + // The specified layers could not be found, or the specified layer is not valid + // for this repository. + ErrCodeLayersNotFoundException = "LayersNotFoundException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The operation did not succeed because it would have exceeded a service limit + // for your account. For more information, see Amazon ECR Default Service Limits + // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) + // in the Amazon EC2 Container Registry User Guide. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeRepositoryAlreadyExistsException for service response error code + // "RepositoryAlreadyExistsException". + // + // The specified repository already exists in the specified registry. + ErrCodeRepositoryAlreadyExistsException = "RepositoryAlreadyExistsException" + + // ErrCodeRepositoryNotEmptyException for service response error code + // "RepositoryNotEmptyException". + // + // The specified repository contains images. To delete a repository that contains + // images, you must force the deletion with the force parameter. + ErrCodeRepositoryNotEmptyException = "RepositoryNotEmptyException" + + // ErrCodeRepositoryNotFoundException for service response error code + // "RepositoryNotFoundException". + // + // The specified repository could not be found. Check the spelling of the specified + // repository and ensure that you are performing operations on the correct registry. + ErrCodeRepositoryNotFoundException = "RepositoryNotFoundException" + + // ErrCodeRepositoryPolicyNotFoundException for service response error code + // "RepositoryPolicyNotFoundException". + // + // The specified repository and registry combination does not have an associated + // repository policy. + ErrCodeRepositoryPolicyNotFoundException = "RepositoryPolicyNotFoundException" + + // ErrCodeServerException for service response error code + // "ServerException". + // + // These errors are usually caused by a server-side issue. + ErrCodeServerException = "ServerException" + + // ErrCodeUploadNotFoundException for service response error code + // "UploadNotFoundException". + // + // The upload could not be found, or the specified upload id is not valid for + // this repository. + ErrCodeUploadNotFoundException = "UploadNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go index 81e0698707..68ccbd5116 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go @@ -68,15 +68,15 @@ func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ // API operation CreateCluster for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -153,34 +153,33 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // service's tasks that must remain in the RUNNING state during a deployment, // as a percentage of the desiredCount (rounded up to the nearest integer). // This parameter enables you to deploy without using additional cluster capacity. -// For example, if your service has a desiredCount of four tasks and a minimumHealthyPercent -// of 50%, the scheduler may stop two existing tasks to free up cluster capacity -// before starting two new tasks. Tasks for services that do not use a load -// balancer are considered healthy if they are in the RUNNING state; tasks for -// services that do use a load balancer are considered healthy if they are in -// the RUNNING state and the container instance it is hosted on is reported -// as healthy by the load balancer. The default value for minimumHealthyPercent -// is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs. +// For example, if desiredCount is four tasks and the minimum is 50%, the scheduler +// can stop two existing tasks to free up cluster capacity before starting two +// new tasks. Tasks for services that do not use a load balancer are considered +// healthy if they are in the RUNNING state. Tasks for services that use a load +// balancer are considered healthy if they are in the RUNNING state and the +// container instance they are hosted on is reported as healthy by the load +// balancer. The default value is 50% in the console and 100% for the AWS CLI, +// the AWS SDKs, and the APIs. // // The maximumPercent parameter represents an upper limit on the number of your // service's tasks that are allowed in the RUNNING or PENDING state during a // deployment, as a percentage of the desiredCount (rounded down to the nearest // integer). This parameter enables you to define the deployment batch size. -// For example, if your service has a desiredCount of four tasks and a maximumPercent -// value of 200%, the scheduler may start four new tasks before stopping the -// four older tasks (provided that the cluster resources required to do this -// are available). The default value for maximumPercent is 200%. +// For example, if desiredCount is four tasks and the maximum is 200%, the scheduler +// can start four new tasks before stopping the four older tasks (provided that +// the cluster resources required to do this are available). The default value +// is 200%. // // When the service scheduler launches new tasks, it determines task placement -// in your cluster with the following logic: +// in your cluster using the following logic: // // * Determine which of the container instances in your cluster can support // your service's task definition (for example, they have the required CPU, // memory, ports, and container instance attributes). // // * By default, the service scheduler attempts to balance tasks across Availability -// Zones in this manner (although you can choose a different placement strategy -// with the placementStrategy parameter): +// Zones in this manner (although you can choose a different placement strategy): // // Sort the valid container instances by the fewest number of running tasks // for this service in the same Availability Zone as the instance. For example, @@ -200,19 +199,19 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // API operation CreateService for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -261,15 +260,14 @@ func (c *ECS) DeleteAttributesRequest(input *DeleteAttributesInput) (req *reques input = &DeleteAttributesInput{} } - req = c.newRequest(op, input, output) output = &DeleteAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteAttributes API operation for Amazon EC2 Container Service. // -// Deletes one or more attributes from an Amazon ECS resource. +// Deletes one or more custom attributes from an Amazon ECS resource. // // 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 @@ -279,16 +277,16 @@ func (c *ECS) DeleteAttributesRequest(input *DeleteAttributesInput) (req *reques // API operation DeleteAttributes for usage and error information. // // Returned Error Codes: -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * TargetNotFoundException +// * ErrCodeTargetNotFoundException "TargetNotFoundException" // The specified target could not be found. You can view your available container // instances with ListContainerInstances. Amazon ECS container instances are // cluster-specific and region-specific. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -356,28 +354,28 @@ func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ // API operation DeleteCluster for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ClusterContainsContainerInstancesException +// * ErrCodeClusterContainsContainerInstancesException "ClusterContainsContainerInstancesException" // You cannot delete a cluster that has registered container instances. You // must first deregister the container instances before you can delete the cluster. // For more information, see DeregisterContainerInstance. // -// * ClusterContainsServicesException +// * ErrCodeClusterContainsServicesException "ClusterContainsServicesException" // You cannot delete a cluster that contains services. You must first update // the service to reduce its desired task count to 0 and then delete the service. // For more information, see UpdateService and DeleteService. @@ -457,23 +455,23 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // API operation DeleteService for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ServiceNotFoundException +// * ErrCodeServiceNotFoundException "ServiceNotFoundException" // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and region-specific. // @@ -553,19 +551,19 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // API operation DeregisterContainerInstance for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -640,15 +638,15 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp // API operation DeregisterTaskDefinition for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -714,15 +712,15 @@ func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *reques // API operation DescribeClusters for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -789,19 +787,19 @@ func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstance // API operation DescribeContainerInstances for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -867,19 +865,19 @@ func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *reques // API operation DescribeServices for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -950,15 +948,15 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) // API operation DescribeTaskDefinition for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1024,19 +1022,19 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ // API operation DescribeTasks for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -1106,10 +1104,10 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req // API operation DiscoverPollEndpoint for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. @@ -1159,9 +1157,8 @@ func (c *ECS) ListAttributesRequest(input *ListAttributesInput) (req *request.Re input = &ListAttributesInput{} } - req = c.newRequest(op, input, output) output = &ListAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1183,11 +1180,11 @@ func (c *ECS) ListAttributesRequest(input *ListAttributesInput) (req *request.Re // API operation ListAttributes for usage and error information. // // Returned Error Codes: -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1259,15 +1256,15 @@ func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Reques // API operation ListClusters for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1368,19 +1365,19 @@ func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) // API operation ListContainerInstances for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -1477,19 +1474,19 @@ func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Reques // API operation ListServices for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -1592,15 +1589,15 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie // API operation ListTaskDefinitionFamilies for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1699,15 +1696,15 @@ func (c *ECS) ListTaskDefinitionsRequest(input *ListTaskDefinitionsInput) (req * // API operation ListTaskDefinitions for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1809,23 +1806,23 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out // API operation ListTasks for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ServiceNotFoundException +// * ErrCodeServiceNotFoundException "ServiceNotFoundException" // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and region-specific. // @@ -1899,17 +1896,18 @@ func (c *ECS) PutAttributesRequest(input *PutAttributesInput) (req *request.Requ input = &PutAttributesInput{} } - req = c.newRequest(op, input, output) output = &PutAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // PutAttributes API operation for Amazon EC2 Container Service. // // Create or update an attribute on an Amazon ECS resource. If the attribute -// does not already exist on the given target, it is created; if it does exist, -// it is replaced with the new value. +// does not exist, it is created. If the attribute exists, its value is replaced +// with the specified value. To delete an attribute, use DeleteAttributes. For +// more information, see Attributes (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes) +// in the Amazon EC2 Container Service 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 @@ -1919,21 +1917,21 @@ func (c *ECS) PutAttributesRequest(input *PutAttributesInput) (req *request.Requ // API operation PutAttributes for usage and error information. // // Returned Error Codes: -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * TargetNotFoundException +// * ErrCodeTargetNotFoundException "TargetNotFoundException" // The specified target could not be found. You can view your available container // instances with ListContainerInstances. Amazon ECS container instances are // cluster-specific and region-specific. // -// * AttributeLimitExceededException +// * ErrCodeAttributeLimitExceededException "AttributeLimitExceededException" // You can apply up to 10 custom attributes per resource. You can view the attributes // of a resource with ListAttributes. You can remove existing attributes on // a resource with DeleteAttributes. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2003,10 +2001,10 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI // API operation RegisterContainerInstance for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. @@ -2089,15 +2087,15 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) // API operation RegisterTaskDefinition for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2171,19 +2169,19 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // API operation RunTask for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -2254,19 +2252,19 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out // API operation StartTask for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -2338,19 +2336,19 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu // API operation StopTask for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // @@ -2419,10 +2417,10 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang // API operation SubmitContainerStateChange for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. @@ -2492,10 +2490,10 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r // API operation SubmitTaskStateChange for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. @@ -2572,35 +2570,35 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // API operation UpdateContainerAgent for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * UpdateInProgressException +// * ErrCodeUpdateInProgressException "UpdateInProgressException" // There is already a current Amazon ECS container agent update in progress // on the specified container instance. If the container agent becomes disconnected // while it is in a transitional stage, such as PENDING or STAGING, the update // process can get stuck in that state. However, when the agent reconnects, // it resumes where it stopped previously. // -// * NoUpdateAvailableException +// * ErrCodeNoUpdateAvailableException "NoUpdateAvailableException" // There is no update available for this Amazon ECS container agent. This could // be because the agent is already running the latest version, or it is so old // that there is no update path to the current version. // -// * MissingVersionException +// * ErrCodeMissingVersionException "MissingVersionException" // Amazon ECS is unable to determine the current version of the Amazon ECS container // agent on the container instance and does not have enough information to proceed // with an update. This could be because the agent running on the container @@ -2613,6 +2611,127 @@ func (c *ECS) UpdateContainerAgent(input *UpdateContainerAgentInput) (*UpdateCon return out, err } +const opUpdateContainerInstancesState = "UpdateContainerInstancesState" + +// UpdateContainerInstancesStateRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContainerInstancesState operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateContainerInstancesState 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 UpdateContainerInstancesState 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 UpdateContainerInstancesStateRequest method. +// req, resp := client.UpdateContainerInstancesStateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesState +func (c *ECS) UpdateContainerInstancesStateRequest(input *UpdateContainerInstancesStateInput) (req *request.Request, output *UpdateContainerInstancesStateOutput) { + op := &request.Operation{ + Name: opUpdateContainerInstancesState, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateContainerInstancesStateInput{} + } + + output = &UpdateContainerInstancesStateOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateContainerInstancesState API operation for Amazon EC2 Container Service. +// +// Modifies the status of an Amazon ECS container instance. +// +// You can change the status of a container instance to DRAINING to manually +// remove an instance from a cluster, for example to perform system updates, +// update the Docker daemon, or scale down the cluster size. +// +// When you set a container instance to DRAINING, Amazon ECS prevents new tasks +// from being scheduled for placement on the container instance and replacement +// service tasks are started on other container instances in the cluster if +// the resources are available. Service tasks on the container instance that +// are in the PENDING state are stopped immediately. +// +// Service tasks on the container instance that are in the RUNNING state are +// stopped and replaced according the service's deployment configuration parameters, +// minimumHealthyPercent and maximumPercent. Note that you can change the deployment +// configuration of your service using UpdateService. +// +// * If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount +// temporarily during task replacement. For example, desiredCount is four +// tasks, a minimum of 50% allows the scheduler to stop two existing tasks +// before starting two new tasks. If the minimum is 100%, the service scheduler +// can't remove existing tasks until the replacement tasks are considered +// healthy. Tasks for services that do not use a load balancer are considered +// healthy if they are in the RUNNING state. Tasks for services that use +// a load balancer are considered healthy if they are in the RUNNING state +// and the container instance they are hosted on is reported as healthy by +// the load balancer. +// +// * The maximumPercent parameter represents an upper limit on the number +// of running tasks during task replacement, which enables you to define +// the replacement batch size. For example, if desiredCount of four tasks, +// a maximum of 200% starts four new tasks before stopping the four tasks +// to be drained (provided that the cluster resources required to do this +// are available). If the maximum is 100%, then replacement tasks can't start +// until the draining tasks have stopped. +// +// Any PENDING or RUNNING tasks that do not belong to a service are not affected; +// you must wait for them to finish or stop them manually. +// +// A container instance has completed draining when it has no more RUNNING tasks. +// You can verify this using ListTasks. +// +// When you set a container instance to ACTIVE, the Amazon ECS scheduler can +// begin scheduling tasks on the instance again. +// +// 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 EC2 Container Service's +// API operation UpdateContainerInstancesState for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesState +func (c *ECS) UpdateContainerInstancesState(input *UpdateContainerInstancesStateInput) (*UpdateContainerInstancesStateOutput, error) { + req, out := c.UpdateContainerInstancesStateRequest(input) + err := req.Send() + return out, err +} + const opUpdateService = "UpdateService" // UpdateServiceRequest generates a "aws/request.Request" representing the @@ -2673,20 +2792,20 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, // to determine the deployment strategy. // -// If the minimumHealthyPercent is below 100%, the scheduler can ignore the -// desiredCount temporarily during a deployment. For example, if your service -// has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the -// scheduler to stop two existing tasks before starting two new tasks. Tasks -// for services that do not use a load balancer are considered healthy if they -// are in the RUNNING state; tasks for services that do use a load balancer -// are considered healthy if they are in the RUNNING state and the container -// instance it is hosted on is reported as healthy by the load balancer. -// -// The maximumPercent parameter represents an upper limit on the number of running -// tasks during a deployment, which enables you to define the deployment batch -// size. For example, if your service has a desiredCount of four tasks, a maximumPercent -// value of 200% starts four new tasks before stopping the four older tasks -// (provided that the cluster resources required to do this are available). +// * If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount +// temporarily during a deployment. For example, if desiredCount is four +// tasks, a minimum of 50% allows the scheduler to stop two existing tasks +// before starting two new tasks. Tasks for services that do not use a load +// balancer are considered healthy if they are in the RUNNING state. Tasks +// for services that use a load balancer are considered healthy if they are +// in the RUNNING state and the container instance they are hosted on is +// reported as healthy by the load balancer. +// +// * The maximumPercent parameter represents an upper limit on the number +// of running tasks during a deployment, which enables you to define the +// deployment batch size. For example, if desiredCount is four tasks, a maximum +// of 200% starts four new tasks before stopping the four older tasks (provided +// that the cluster resources required to do this are available). // // When UpdateService stops a task during a deployment, the equivalent of docker // stop is issued to the containers running in the task. This results in a SIGTERM @@ -2702,8 +2821,7 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // memory, ports, and container instance attributes). // // * By default, the service scheduler attempts to balance tasks across Availability -// Zones in this manner (although you can choose a different placement strategy -// with the placementStrategy parameter): +// Zones in this manner (although you can choose a different placement strategy): // // Sort the valid container instances by the fewest number of running tasks // for this service in the same Availability Zone as the instance. For example, @@ -2716,7 +2834,7 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // the fewest number of running tasks for this service. // // When the service scheduler stops running tasks, it attempts to maintain balance -// across the Availability Zones in your cluster with the following logic: +// across the Availability Zones in your cluster using the following logic: // // * Sort the container instances by the largest number of running tasks // for this service in the same Availability Zone as the instance. For example, @@ -2735,27 +2853,27 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // API operation UpdateService for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ServiceNotFoundException +// * ErrCodeServiceNotFoundException "ServiceNotFoundException" // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and region-specific. // -// * ServiceNotActiveException +// * ErrCodeServiceNotActiveException "ServiceNotActiveException" // The specified service is not active. You cannot update a service that is // not active. If you have previously deleted a service, you can re-create it // with CreateService. @@ -2767,9 +2885,10 @@ func (c *ECS) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, er return out, err } -// Attributes are name-value pairs associated with various Amazon ECS objects. -// Attributes allow you to extend the Amazon ECS data model by adding custom -// metadata to your resources. +// An attribute is a name-value pair associated with an Amazon ECS object. Attributes +// enable you to extend the Amazon ECS data model by adding custom metadata +// to your resources. For more information, see Attributes (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes) +// in the Amazon EC2 Container Service Developer Guide. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Attribute type Attribute struct { _ struct{} `type:"structure"` @@ -4306,14 +4425,13 @@ type DeploymentConfiguration struct { // The upper limit (as a percentage of the service's desiredCount) of the number // of tasks that are allowed in the RUNNING or PENDING state in a service during // a deployment. The maximum number of tasks during a deployment is the desiredCount - // multiplied by the maximumPercent/100, rounded down to the nearest integer - // value. + // multiplied by maximumPercent/100, rounded down to the nearest integer value. MaximumPercent *int64 `locationName:"maximumPercent" type:"integer"` // The lower limit (as a percentage of the service's desiredCount) of the number // of running tasks that must remain in the RUNNING state in a service during // a deployment. The minimum healthy tasks during a deployment is the desiredCount - // multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer + // multiplied by minimumHealthyPercent/100, rounded up to the nearest integer // value. MinimumHealthyPercent *int64 `locationName:"minimumHealthyPercent" type:"integer"` } @@ -5352,6 +5470,12 @@ type ListContainerInstancesInput struct { // This token should be treated as an opaque identifier that is only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` + + // The container instance status with which to filter the ListContainerInstances + // results. Specifying a container instance status of DRAINING limits the results + // to container instances that have been set to drain with the UpdateContainerInstancesState + // operation. + Status *string `locationName:"status" type:"string" enum:"ContainerInstanceStatus"` } // String returns the string representation @@ -5388,6 +5512,12 @@ func (s *ListContainerInstancesInput) SetNextToken(v string) *ListContainerInsta return s } +// SetStatus sets the Status field's value. +func (s *ListContainerInstancesInput) SetStatus(v string) *ListContainerInstancesInput { + s.Status = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListContainerInstancesResponse type ListContainerInstancesOutput struct { _ struct{} `type:"structure"` @@ -6139,7 +6269,8 @@ type PlacementConstraint struct { // The type of constraint. Use distinctInstance to ensure that each task in // a particular group is running on a different container instance. Use memberOf - // to restrict selection to a group of valid candidates. + // to restrict selection to a group of valid candidates. Note that distinctInstance + // is not supported in task definitions. Type *string `locationName:"type" type:"string" enum:"PlacementConstraintType"` } @@ -6176,7 +6307,8 @@ type PlacementStrategy struct { // strategy, valid values are instanceId (or host, which has the same effect), // or any platform or custom attribute that is applied to a container instance, // such as attribute:ecs.availability-zone. For the binpack placement strategy, - // valid values are CPU and MEMORY. + // valid values are cpu and memory. For the random placement strategy, this + // field is not used. Field *string `locationName:"field" type:"string"` // The type of placement strategy. The random placement strategy randomly places @@ -6664,7 +6796,7 @@ type Resource struct { // precision floating-point type. LongValue *int64 `locationName:"longValue" type:"long"` - // The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource. + // The name of the resource, such as cpu, memory, ports, or a user-defined resource. Name *string `locationName:"name" type:"string"` // When the stringSetValue type is set, the value of the resource must be a @@ -6734,8 +6866,8 @@ type RunTaskInput struct { // You can specify up to 10 tasks per call. Count *int64 `locationName:"count" type:"integer"` - // The task group to associate with the task. By default, if you do not specify - // a task group, the group family:TASKDEF-FAMILY is applied. + // The name of the task group to associate with the task. The default value + // is the family name of the task definition (for example, family:my-family-name). Group *string `locationName:"group" type:"string"` // A list of container overrides in JSON format that specify the name of a container @@ -7118,8 +7250,8 @@ type StartTaskInput struct { // ContainerInstances is a required field ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` - // The task group to associate with the task. By default, if you do not specify - // a task group, the default group is family:TASKDEF-FAMILY. + // The name of the task group to associate with the task. The default value + // is the family name of the task definition (for example, family:my-family-name). Group *string `locationName:"group" type:"string"` // A list of container overrides in JSON format that specify the name of a container @@ -7537,7 +7669,7 @@ type Task struct { // The desired status of the task. DesiredStatus *string `locationName:"desiredStatus" type:"string"` - // The task group associated with the task. + // The name of the task group associated with the task. Group *string `locationName:"group" type:"string"` // The last known status of the task. @@ -8023,6 +8155,104 @@ func (s *UpdateContainerAgentOutput) SetContainerInstance(v *ContainerInstance) return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesStateRequest +type UpdateContainerInstancesStateInput struct { + _ struct{} `type:"structure"` + + // The short name or full Amazon Resource Name (ARN) of the cluster that hosts + // the container instance to update. If you do not specify a cluster, the default + // cluster is assumed. + Cluster *string `locationName:"cluster" type:"string"` + + // A space-separated list of container instance IDs or full Amazon Resource + // Name (ARN) entries. + // + // ContainerInstances is a required field + ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` + + // The container instance state with which to update the container instance. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ContainerInstanceStatus"` +} + +// String returns the string representation +func (s UpdateContainerInstancesStateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateContainerInstancesStateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateContainerInstancesStateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateContainerInstancesStateInput"} + if s.ContainerInstances == nil { + invalidParams.Add(request.NewErrParamRequired("ContainerInstances")) + } + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCluster sets the Cluster field's value. +func (s *UpdateContainerInstancesStateInput) SetCluster(v string) *UpdateContainerInstancesStateInput { + s.Cluster = &v + return s +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *UpdateContainerInstancesStateInput) SetContainerInstances(v []*string) *UpdateContainerInstancesStateInput { + s.ContainerInstances = v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateContainerInstancesStateInput) SetStatus(v string) *UpdateContainerInstancesStateInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesStateResponse +type UpdateContainerInstancesStateOutput struct { + _ struct{} `type:"structure"` + + // The list of container instances. + ContainerInstances []*ContainerInstance `locationName:"containerInstances" type:"list"` + + // Any failures associated with the call. + Failures []*Failure `locationName:"failures" type:"list"` +} + +// String returns the string representation +func (s UpdateContainerInstancesStateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateContainerInstancesStateOutput) GoString() string { + return s.String() +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *UpdateContainerInstancesStateOutput) SetContainerInstances(v []*ContainerInstance) *UpdateContainerInstancesStateOutput { + s.ContainerInstances = v + return s +} + +// SetFailures sets the Failures field's value. +func (s *UpdateContainerInstancesStateOutput) SetFailures(v []*Failure) *UpdateContainerInstancesStateOutput { + s.Failures = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServiceRequest type UpdateServiceInput struct { _ struct{} `type:"structure"` @@ -8271,6 +8501,14 @@ const ( AgentUpdateStatusFailed = "FAILED" ) +const ( + // ContainerInstanceStatusActive is a ContainerInstanceStatus enum value + ContainerInstanceStatusActive = "ACTIVE" + + // ContainerInstanceStatusDraining is a ContainerInstanceStatus enum value + ContainerInstanceStatusDraining = "DRAINING" +) + const ( // DesiredStatusRunning is a DesiredStatus enum value DesiredStatusRunning = "RUNNING" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go new file mode 100644 index 0000000000..02d4d4ab54 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go @@ -0,0 +1,108 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ecs + +const ( + + // ErrCodeAttributeLimitExceededException for service response error code + // "AttributeLimitExceededException". + // + // You can apply up to 10 custom attributes per resource. You can view the attributes + // of a resource with ListAttributes. You can remove existing attributes on + // a resource with DeleteAttributes. + ErrCodeAttributeLimitExceededException = "AttributeLimitExceededException" + + // ErrCodeClientException for service response error code + // "ClientException". + // + // These errors are usually caused by a client action, such as using an action + // or resource on behalf of a user that doesn't have permission to use the action + // or resource, or specifying an identifier that is not valid. + ErrCodeClientException = "ClientException" + + // ErrCodeClusterContainsContainerInstancesException for service response error code + // "ClusterContainsContainerInstancesException". + // + // You cannot delete a cluster that has registered container instances. You + // must first deregister the container instances before you can delete the cluster. + // For more information, see DeregisterContainerInstance. + ErrCodeClusterContainsContainerInstancesException = "ClusterContainsContainerInstancesException" + + // ErrCodeClusterContainsServicesException for service response error code + // "ClusterContainsServicesException". + // + // You cannot delete a cluster that contains services. You must first update + // the service to reduce its desired task count to 0 and then delete the service. + // For more information, see UpdateService and DeleteService. + ErrCodeClusterContainsServicesException = "ClusterContainsServicesException" + + // ErrCodeClusterNotFoundException for service response error code + // "ClusterNotFoundException". + // + // The specified cluster could not be found. You can view your available clusters + // with ListClusters. Amazon ECS clusters are region-specific. + ErrCodeClusterNotFoundException = "ClusterNotFoundException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // The specified parameter is invalid. Review the available parameters for the + // API request. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeMissingVersionException for service response error code + // "MissingVersionException". + // + // Amazon ECS is unable to determine the current version of the Amazon ECS container + // agent on the container instance and does not have enough information to proceed + // with an update. This could be because the agent running on the container + // instance is an older or custom version that does not use our version information. + ErrCodeMissingVersionException = "MissingVersionException" + + // ErrCodeNoUpdateAvailableException for service response error code + // "NoUpdateAvailableException". + // + // There is no update available for this Amazon ECS container agent. This could + // be because the agent is already running the latest version, or it is so old + // that there is no update path to the current version. + ErrCodeNoUpdateAvailableException = "NoUpdateAvailableException" + + // ErrCodeServerException for service response error code + // "ServerException". + // + // These errors are usually caused by a server issue. + ErrCodeServerException = "ServerException" + + // ErrCodeServiceNotActiveException for service response error code + // "ServiceNotActiveException". + // + // The specified service is not active. You cannot update a service that is + // not active. If you have previously deleted a service, you can re-create it + // with CreateService. + ErrCodeServiceNotActiveException = "ServiceNotActiveException" + + // ErrCodeServiceNotFoundException for service response error code + // "ServiceNotFoundException". + // + // The specified service could not be found. You can view your available services + // with ListServices. Amazon ECS services are cluster-specific and region-specific. + ErrCodeServiceNotFoundException = "ServiceNotFoundException" + + // ErrCodeTargetNotFoundException for service response error code + // "TargetNotFoundException". + // + // The specified target could not be found. You can view your available container + // instances with ListContainerInstances. Amazon ECS container instances are + // cluster-specific and region-specific. + ErrCodeTargetNotFoundException = "TargetNotFoundException" + + // ErrCodeUpdateInProgressException for service response error code + // "UpdateInProgressException". + // + // There is already a current Amazon ECS container agent update in progress + // on the specified container instance. If the container agent becomes disconnected + // while it is in a transitional stage, such as PENDING or STAGING, the update + // process can get stuck in that state. However, when the agent reconnects, + // it resumes where it stopped previously. + ErrCodeUpdateInProgressException = "UpdateInProgressException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go index 2fdca7da43..b8c6d428ea 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go @@ -73,14 +73,14 @@ func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output // API operation AddTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // The quota for the number of tags that can be assigned to a load balancer // has been reached. // -// * DuplicateTagKeys +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeys" // A tag key was specified more than once. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags @@ -150,13 +150,13 @@ func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroup // API operation ApplySecurityGroupsToLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * InvalidSecurityGroup +// * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup" // One or more of the specified security groups do not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer @@ -227,16 +227,16 @@ func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubn // API operation AttachLoadBalancerToSubnets for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * SubnetNotFound +// * ErrCodeSubnetNotFoundException "SubnetNotFound" // One or more of the specified subnets do not exist. // -// * InvalidSubnet +// * ErrCodeInvalidSubnetException "InvalidSubnet" // The specified VPC has no associated Internet gateway. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets @@ -306,7 +306,7 @@ func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req // API operation ConfigureHealthCheck for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck @@ -385,16 +385,16 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick // API operation CreateAppCookieStickinessPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DuplicatePolicyName +// * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName" // A policy with the specified name already exists for this load balancer. // -// * TooManyPolicies +// * ErrCodeTooManyPoliciesException "TooManyPolicies" // The quota for the number of policies for this load balancer has been reached. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy @@ -475,16 +475,16 @@ func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickin // API operation CreateLBCookieStickinessPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DuplicatePolicyName +// * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName" // A policy with the specified name already exists for this load balancer. // -// * TooManyPolicies +// * ErrCodeTooManyPoliciesException "TooManyPolicies" // The quota for the number of policies for this load balancer has been reached. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy @@ -561,43 +561,42 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re // API operation CreateLoadBalancer for usage and error information. // // Returned Error Codes: -// * DuplicateLoadBalancerName +// * ErrCodeDuplicateAccessPointNameException "DuplicateLoadBalancerName" // The specified load balancer name already exists for this account. // -// * TooManyLoadBalancers +// * ErrCodeTooManyAccessPointsException "TooManyLoadBalancers" // The quota for the number of load balancers has been reached. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified ARN does not refer to a valid SSL certificate in AWS Identity // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if // you recently uploaded the certificate to IAM, this error might indicate that // the certificate is not fully available yet. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * SubnetNotFound +// * ErrCodeSubnetNotFoundException "SubnetNotFound" // One or more of the specified subnets do not exist. // -// * InvalidSubnet +// * ErrCodeInvalidSubnetException "InvalidSubnet" // The specified VPC has no associated Internet gateway. // -// * InvalidSecurityGroup +// * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup" // One or more of the specified security groups do not exist. // -// * InvalidScheme +// * ErrCodeInvalidSchemeException "InvalidScheme" // The specified value for the schema is not valid. You can only specify a scheme // for load balancers in a VPC. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // The quota for the number of tags that can be assigned to a load balancer // has been reached. // -// * DuplicateTagKeys +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeys" // A tag key was specified more than once. // -// * UnsupportedProtocol - +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { @@ -667,24 +666,23 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen // API operation CreateLoadBalancerListeners for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DuplicateListener +// * ErrCodeDuplicateListenerException "DuplicateListener" // A listener already exists for the specified load balancer name and port, // but with a different instance port, protocol, or SSL certificate. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified ARN does not refer to a valid SSL certificate in AWS Identity // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if // you recently uploaded the certificate to IAM, this error might indicate that // the certificate is not fully available yet. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * UnsupportedProtocol - +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) { @@ -752,19 +750,19 @@ func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInp // API operation CreateLoadBalancerPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyTypeNotFound +// * ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound" // One or more of the specified policy types do not exist. // -// * DuplicatePolicyName +// * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName" // A policy with the specified name already exists for this load balancer. // -// * TooManyPolicies +// * ErrCodeTooManyPoliciesException "TooManyPolicies" // The quota for the number of policies for this load balancer has been reached. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy @@ -898,7 +896,7 @@ func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListen // API operation DeleteLoadBalancerListeners for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners @@ -964,10 +962,10 @@ func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInp // API operation DeleteLoadBalancerPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy @@ -1040,10 +1038,10 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstan // API operation DeregisterInstancesFromLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidInstance +// * ErrCodeInvalidEndPointException "InvalidInstance" // The specified endpoint is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer @@ -1113,10 +1111,10 @@ func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) // API operation DescribeInstanceHealth for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidInstance +// * ErrCodeInvalidEndPointException "InvalidInstance" // The specified endpoint is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth @@ -1181,10 +1179,10 @@ func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerA // API operation DescribeLoadBalancerAttributes for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * LoadBalancerAttributeNotFound +// * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound" // The specified load balancer attribute does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes @@ -1256,10 +1254,10 @@ func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPol // API operation DescribeLoadBalancerPolicies for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyNotFound +// * ErrCodePolicyNotFoundException "PolicyNotFound" // One or more of the specified policies do not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies @@ -1335,7 +1333,7 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer // API operation DescribeLoadBalancerPolicyTypes for usage and error information. // // Returned Error Codes: -// * PolicyTypeNotFound +// * ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound" // One or more of the specified policy types do not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes @@ -1407,11 +1405,10 @@ func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (r // API operation DescribeLoadBalancers for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DependencyThrottle - +// * ErrCodeDependencyThrottleException "DependencyThrottle" // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { @@ -1500,7 +1497,7 @@ func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags @@ -1570,10 +1567,10 @@ func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFrom // API operation DetachLoadBalancerFromSubnets for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets @@ -1648,10 +1645,10 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvail // API operation DisableAvailabilityZonesForLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer @@ -1723,7 +1720,7 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab // API operation EnableAvailabilityZonesForLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer @@ -1803,13 +1800,13 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri // API operation ModifyLoadBalancerAttributes for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * LoadBalancerAttributeNotFound +// * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound" // The specified load balancer attribute does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes @@ -1896,10 +1893,10 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW // API operation RegisterInstancesWithLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidInstance +// * ErrCodeInvalidEndPointException "InvalidInstance" // The specified endpoint is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer @@ -1964,7 +1961,7 @@ func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags @@ -2035,23 +2032,22 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance // API operation SetLoadBalancerListenerSSLCertificate for usage and error information. // // Returned Error Codes: -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified ARN does not refer to a valid SSL certificate in AWS Identity // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if // you recently uploaded the certificate to IAM, this error might indicate that // the certificate is not fully available yet. // -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The load balancer does not have a listener configured at the specified port. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * UnsupportedProtocol - +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) { @@ -2130,13 +2126,13 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan // API operation SetLoadBalancerPoliciesForBackendServer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyNotFound +// * ErrCodePolicyNotFoundException "PolicyNotFound" // One or more of the specified policies do not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer @@ -2210,16 +2206,16 @@ func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPol // API operation SetLoadBalancerPoliciesOfListener for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyNotFound +// * ErrCodePolicyNotFoundException "PolicyNotFound" // One or more of the specified policies do not exist. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The load balancer does not have a listener configured at the specified port. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elb/errors.go new file mode 100644 index 0000000000..aab5399871 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/errors.go @@ -0,0 +1,134 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elb + +const ( + + // ErrCodeAccessPointNotFoundException for service response error code + // "LoadBalancerNotFound". + // + // The specified load balancer does not exist. + ErrCodeAccessPointNotFoundException = "LoadBalancerNotFound" + + // ErrCodeCertificateNotFoundException for service response error code + // "CertificateNotFound". + // + // The specified ARN does not refer to a valid SSL certificate in AWS Identity + // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if + // you recently uploaded the certificate to IAM, this error might indicate that + // the certificate is not fully available yet. + ErrCodeCertificateNotFoundException = "CertificateNotFound" + + // ErrCodeDependencyThrottleException for service response error code + // "DependencyThrottle". + ErrCodeDependencyThrottleException = "DependencyThrottle" + + // ErrCodeDuplicateAccessPointNameException for service response error code + // "DuplicateLoadBalancerName". + // + // The specified load balancer name already exists for this account. + ErrCodeDuplicateAccessPointNameException = "DuplicateLoadBalancerName" + + // ErrCodeDuplicateListenerException for service response error code + // "DuplicateListener". + // + // A listener already exists for the specified load balancer name and port, + // but with a different instance port, protocol, or SSL certificate. + ErrCodeDuplicateListenerException = "DuplicateListener" + + // ErrCodeDuplicatePolicyNameException for service response error code + // "DuplicatePolicyName". + // + // A policy with the specified name already exists for this load balancer. + ErrCodeDuplicatePolicyNameException = "DuplicatePolicyName" + + // ErrCodeDuplicateTagKeysException for service response error code + // "DuplicateTagKeys". + // + // A tag key was specified more than once. + ErrCodeDuplicateTagKeysException = "DuplicateTagKeys" + + // ErrCodeInvalidConfigurationRequestException for service response error code + // "InvalidConfigurationRequest". + // + // The requested configuration change is not valid. + ErrCodeInvalidConfigurationRequestException = "InvalidConfigurationRequest" + + // ErrCodeInvalidEndPointException for service response error code + // "InvalidInstance". + // + // The specified endpoint is not valid. + ErrCodeInvalidEndPointException = "InvalidInstance" + + // ErrCodeInvalidSchemeException for service response error code + // "InvalidScheme". + // + // The specified value for the schema is not valid. You can only specify a scheme + // for load balancers in a VPC. + ErrCodeInvalidSchemeException = "InvalidScheme" + + // ErrCodeInvalidSecurityGroupException for service response error code + // "InvalidSecurityGroup". + // + // One or more of the specified security groups do not exist. + ErrCodeInvalidSecurityGroupException = "InvalidSecurityGroup" + + // ErrCodeInvalidSubnetException for service response error code + // "InvalidSubnet". + // + // The specified VPC has no associated Internet gateway. + ErrCodeInvalidSubnetException = "InvalidSubnet" + + // ErrCodeListenerNotFoundException for service response error code + // "ListenerNotFound". + // + // The load balancer does not have a listener configured at the specified port. + ErrCodeListenerNotFoundException = "ListenerNotFound" + + // ErrCodeLoadBalancerAttributeNotFoundException for service response error code + // "LoadBalancerAttributeNotFound". + // + // The specified load balancer attribute does not exist. + ErrCodeLoadBalancerAttributeNotFoundException = "LoadBalancerAttributeNotFound" + + // ErrCodePolicyNotFoundException for service response error code + // "PolicyNotFound". + // + // One or more of the specified policies do not exist. + ErrCodePolicyNotFoundException = "PolicyNotFound" + + // ErrCodePolicyTypeNotFoundException for service response error code + // "PolicyTypeNotFound". + // + // One or more of the specified policy types do not exist. + ErrCodePolicyTypeNotFoundException = "PolicyTypeNotFound" + + // ErrCodeSubnetNotFoundException for service response error code + // "SubnetNotFound". + // + // One or more of the specified subnets do not exist. + ErrCodeSubnetNotFoundException = "SubnetNotFound" + + // ErrCodeTooManyAccessPointsException for service response error code + // "TooManyLoadBalancers". + // + // The quota for the number of load balancers has been reached. + ErrCodeTooManyAccessPointsException = "TooManyLoadBalancers" + + // ErrCodeTooManyPoliciesException for service response error code + // "TooManyPolicies". + // + // The quota for the number of policies for this load balancer has been reached. + ErrCodeTooManyPoliciesException = "TooManyPolicies" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTags". + // + // The quota for the number of tags that can be assigned to a load balancer + // has been reached. + ErrCodeTooManyTagsException = "TooManyTags" + + // ErrCodeUnsupportedProtocolException for service response error code + // "UnsupportedProtocol". + ErrCodeUnsupportedProtocolException = "UnsupportedProtocol" +) 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 6a7f9354aa..1364f78c5b 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 @@ -74,19 +74,19 @@ func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpen // API operation AddClientIDToOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -161,19 +161,19 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp // API operation AddRoleToInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -241,15 +241,15 @@ func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Re // API operation AddUserToGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -324,19 +324,19 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ // API operation AttachGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -415,19 +415,19 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques // API operation AttachRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -502,19 +502,19 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques // API operation AttachUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -587,29 +587,29 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re // API operation ChangePassword for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidUserType +// * ErrCodeInvalidUserTypeException "InvalidUserType" // The request was rejected because the type of user for the transaction was // incorrect. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * PasswordPolicyViolation +// * ErrCodePasswordPolicyViolationException "PasswordPolicyViolation" // The request was rejected because the provided password did not meet the requirements // imposed by the account password policy. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -691,15 +691,15 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. // API operation CreateAccessKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -769,15 +769,15 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re // API operation CreateAccountAlias for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -847,19 +847,19 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, // API operation CreateGroup for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -930,15 +930,15 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r // API operation CreateInstanceProfile for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1007,23 +1007,23 @@ func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *re // API operation CreateLoginProfile for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * PasswordPolicyViolation +// * ErrCodePasswordPolicyViolationException "PasswordPolicyViolation" // The request was rejected because the provided password did not meet the requirements // imposed by the account password policy. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1105,19 +1105,19 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi // API operation CreateOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1192,23 +1192,23 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // API operation CreatePolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1285,23 +1285,23 @@ func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // API operation CreatePolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1371,19 +1371,19 @@ func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, o // API operation CreateRole for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1470,19 +1470,19 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re // API operation CreateSAMLProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1561,15 +1561,15 @@ func (c *IAM) CreateServiceSpecificCredentialRequest(input *CreateServiceSpecifi // API operation CreateServiceSpecificCredential for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * NotSupportedService +// * ErrCodeServiceNotSupportedException "NotSupportedService" // The specified service does not support service-specific credentials. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredential @@ -1638,19 +1638,19 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o // API operation CreateUser for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1729,15 +1729,15 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) // API operation CreateVirtualMFADevice for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1810,21 +1810,21 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req * // API operation DeactivateMFADevice for usage and error information. // // Returned Error Codes: -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1897,15 +1897,15 @@ func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request. // API operation DeleteAccessKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -1975,15 +1975,15 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re // API operation DeleteAccountAlias for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2051,15 +2051,15 @@ func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPol // API operation DeleteAccountPasswordPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2128,19 +2128,19 @@ func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, // API operation DeleteGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2214,15 +2214,15 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ // API operation DeleteGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2299,19 +2299,19 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r // API operation DeleteInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2385,21 +2385,21 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re // API operation DeleteLoginProfile for usage and error information. // // Returned Error Codes: -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2474,15 +2474,15 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi // API operation DeleteOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2572,23 +2572,23 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // API operation DeletePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2664,23 +2664,23 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // API operation DeletePolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2753,19 +2753,19 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o // API operation DeleteRole for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2839,15 +2839,15 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques // API operation DeleteRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -2922,19 +2922,19 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re // API operation DeleteSAMLProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3008,7 +3008,7 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re // API operation DeleteSSHPublicKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -3091,19 +3091,19 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput // API operation DeleteServerCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3171,7 +3171,7 @@ func (c *IAM) DeleteServiceSpecificCredentialRequest(input *DeleteServiceSpecifi // API operation DeleteServiceSpecificCredential for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -3244,15 +3244,15 @@ func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInp // API operation DeleteSigningCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3321,19 +3321,19 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o // API operation DeleteUser for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3407,15 +3407,15 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques // API operation DeleteUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3486,19 +3486,19 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) // API operation DeleteVirtualMFADevice for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3571,19 +3571,19 @@ func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *requ // API operation DetachGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3656,19 +3656,19 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques // API operation DetachRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3741,19 +3741,19 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques // API operation DetachUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3823,29 +3823,29 @@ func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request. // API operation EnableMFADevice for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * InvalidAuthenticationCode +// * ErrCodeInvalidAuthenticationCodeException "InvalidAuthenticationCode" // The request was rejected because the authentication code was not recognized. // The error message describes the specific error. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3913,11 +3913,11 @@ func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInp // API operation GenerateCredentialReport for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -3986,7 +3986,7 @@ func (c *IAM) GetAccessKeyLastUsedRequest(input *GetAccessKeyLastUsedInput) (req // API operation GetAccessKeyLastUsed for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -4064,7 +4064,7 @@ func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizati // API operation GetAccountAuthorizationDetails for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4156,11 +4156,11 @@ func (c *IAM) GetAccountPasswordPolicyRequest(input *GetAccountPasswordPolicyInp // API operation GetAccountPasswordPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4230,7 +4230,7 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ // API operation GetAccountSummary for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4305,7 +4305,7 @@ func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCusto // API operation GetContextKeysForCustomPolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -4387,11 +4387,11 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr // API operation GetContextKeysForPrincipalPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -4459,21 +4459,21 @@ func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req * // API operation GetCredentialReport for usage and error information. // // Returned Error Codes: -// * ReportNotPresent +// * ErrCodeCredentialReportNotPresentException "ReportNotPresent" // The request was rejected because the credential report does not exist. To // generate a credential report, use GenerateCredentialReport. // -// * ReportExpired +// * ErrCodeCredentialReportExpiredException "ReportExpired" // The request was rejected because the most recent credential report has expired. // To generate a new credential report, use GenerateCredentialReport. For more // information about credential report expiration, see Getting Credential Reports // (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) // in the IAM User Guide. // -// * ReportInProgress +// * ErrCodeCredentialReportNotReadyException "ReportInProgress" // The request was rejected because the credential report is still being generated. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4546,11 +4546,11 @@ func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, outpu // API operation GetGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4657,11 +4657,11 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re // API operation GetGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4730,11 +4730,11 @@ func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *re // API operation GetInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4802,11 +4802,11 @@ func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request. // API operation GetLoginProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4873,15 +4873,15 @@ func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInp // API operation GetOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -4960,15 +4960,15 @@ func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out // API operation GetPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5055,15 +5055,15 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // API operation GetPolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5137,11 +5137,11 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output // API operation GetRole for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5226,11 +5226,11 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ // API operation GetRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5299,15 +5299,15 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. // API operation GetSAMLProvider for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5379,11 +5379,11 @@ func (c *IAM) GetSSHPublicKeyRequest(input *GetSSHPublicKeyInput) (req *request. // API operation GetSSHPublicKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * UnrecognizedPublicKeyEncoding +// * ErrCodeUnrecognizedPublicKeyEncodingException "UnrecognizedPublicKeyEncoding" // The request was rejected because the public key encoding format is unsupported // or unrecognized. // @@ -5454,11 +5454,11 @@ func (c *IAM) GetServerCertificateRequest(input *GetServerCertificateInput) (req // API operation GetServerCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5528,11 +5528,11 @@ func (c *IAM) GetUserRequest(input *GetUserInput) (req *request.Request, output // API operation GetUser for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5614,11 +5614,11 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ // API operation GetUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5702,11 +5702,11 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re // API operation ListAccessKeys for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5806,7 +5806,7 @@ func (c *IAM) ListAccountAliasesRequest(input *ListAccountAliasesInput) (req *re // API operation ListAccountAliases for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -5914,15 +5914,15 @@ func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesI // API operation ListAttachedGroupPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6030,15 +6030,15 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp // API operation ListAttachedRolePolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6146,15 +6146,15 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp // API operation ListAttachedUserPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6259,15 +6259,15 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r // API operation ListEntitiesForPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6375,11 +6375,11 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ // API operation ListGroupPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6478,7 +6478,7 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o // API operation ListGroups for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6577,11 +6577,11 @@ func (c *IAM) ListGroupsForUserRequest(input *ListGroupsForUserInput) (req *requ // API operation ListGroupsForUser for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6682,7 +6682,7 @@ func (c *IAM) ListInstanceProfilesRequest(input *ListInstanceProfilesInput) (req // API operation ListInstanceProfiles for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6783,11 +6783,11 @@ func (c *IAM) ListInstanceProfilesForRoleRequest(input *ListInstanceProfilesForR // API operation ListInstanceProfilesForRole for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6889,11 +6889,11 @@ func (c *IAM) ListMFADevicesRequest(input *ListMFADevicesInput) (req *request.Re // API operation ListMFADevices for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -6985,7 +6985,7 @@ func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvider // API operation ListOpenIDConnectProviders for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7069,7 +7069,7 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // API operation ListPolicies for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7171,15 +7171,15 @@ func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re // API operation ListPolicyVersions for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7286,11 +7286,11 @@ func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *reques // API operation ListRolePolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7391,7 +7391,7 @@ func (c *IAM) ListRolesRequest(input *ListRolesInput) (req *request.Request, out // API operation ListRoles for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7484,7 +7484,7 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ // API operation ListSAMLProviders for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7566,7 +7566,7 @@ func (c *IAM) ListSSHPublicKeysRequest(input *ListSSHPublicKeysInput) (req *requ // API operation ListSSHPublicKeys for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -7671,7 +7671,7 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) // API operation ListServerCertificates for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7768,11 +7768,11 @@ func (c *IAM) ListServiceSpecificCredentialsRequest(input *ListServiceSpecificCr // API operation ListServiceSpecificCredentials for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * NotSupportedService +// * ErrCodeServiceNotSupportedException "NotSupportedService" // The specified service does not support service-specific credentials. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServiceSpecificCredentials @@ -7853,11 +7853,11 @@ func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput // API operation ListSigningCertificates for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -7963,11 +7963,11 @@ func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *reques // API operation ListUserPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8068,7 +8068,7 @@ func (c *IAM) ListUsersRequest(input *ListUsersInput) (req *request.Request, out // API operation ListUsers for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8273,19 +8273,19 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re // API operation PutGroupPolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8375,19 +8375,19 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // API operation PutRolePolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8471,19 +8471,19 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ // API operation PutUserPolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8556,15 +8556,15 @@ func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClient // API operation RemoveClientIDFromOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8641,15 +8641,15 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance // API operation RemoveRoleFromInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8717,15 +8717,15 @@ func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req * // API operation RemoveUserFromGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8794,7 +8794,7 @@ func (c *IAM) ResetServiceSpecificCredentialRequest(input *ResetServiceSpecificC // API operation ResetServiceSpecificCredential for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -8867,19 +8867,19 @@ func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request. // API operation ResyncMFADevice for usage and error information. // // Returned Error Codes: -// * InvalidAuthenticationCode +// * ErrCodeInvalidAuthenticationCodeException "InvalidAuthenticationCode" // The request was rejected because the authentication code was not recognized. // The error message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -8956,19 +8956,19 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // API operation SetDefaultPolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9056,11 +9056,11 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req // API operation SimulateCustomPolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * PolicyEvaluation +// * ErrCodePolicyEvaluationException "PolicyEvaluation" // The request failed because a provided policy could not be successfully evaluated. // An additional detail message indicates the source of the failure. // @@ -9183,15 +9183,15 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput // API operation SimulatePrincipalPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * PolicyEvaluation +// * ErrCodePolicyEvaluationException "PolicyEvaluation" // The request failed because a provided policy could not be successfully evaluated. // An additional detail message indicates the source of the failure. // @@ -9294,15 +9294,15 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // API operation UpdateAccessKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9379,19 +9379,19 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // API operation UpdateAccountPasswordPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9462,19 +9462,19 @@ func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) // API operation UpdateAssumeRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9552,19 +9552,19 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, // API operation UpdateGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9636,25 +9636,25 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re // API operation UpdateLoginProfile for usage and error information. // // Returned Error Codes: -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * PasswordPolicyViolation +// * ErrCodePasswordPolicyViolationException "PasswordPolicyViolation" // The request was rejected because the provided password did not meet the requirements // imposed by the account password policy. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9736,15 +9736,15 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo // API operation UpdateOpenIDConnectProviderThumbprint for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9812,19 +9812,19 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re // API operation UpdateSAMLProvider for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -9901,7 +9901,7 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re // API operation UpdateSSHPublicKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -9987,19 +9987,19 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput // API operation UpdateServerCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -10070,7 +10070,7 @@ func (c *IAM) UpdateServiceSpecificCredentialRequest(input *UpdateServiceSpecifi // API operation UpdateServiceSpecificCredential for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // @@ -10145,15 +10145,15 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp // API operation UpdateSigningCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -10232,25 +10232,25 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o // API operation UpdateUser for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -10322,23 +10322,23 @@ func (c *IAM) UploadSSHPublicKeyRequest(input *UploadSSHPublicKeyInput) (req *re // API operation UploadSSHPublicKey for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidPublicKey +// * ErrCodeInvalidPublicKeyException "InvalidPublicKey" // The request was rejected because the public key is malformed or otherwise // invalid. // -// * DuplicateSSHPublicKey +// * ErrCodeDuplicateSSHPublicKeyException "DuplicateSSHPublicKey" // The request was rejected because the SSH public key is already associated // with the specified IAM user. // -// * UnrecognizedPublicKeyEncoding +// * ErrCodeUnrecognizedPublicKeyEncodingException "UnrecognizedPublicKeyEncoding" // The request was rejected because the public key encoding format is unsupported // or unrecognized. // @@ -10423,23 +10423,23 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // API operation UploadServerCertificate for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedCertificate +// * ErrCodeMalformedCertificateException "MalformedCertificate" // The request was rejected because the certificate was malformed or expired. // The error message describes the specific error. // -// * KeyPairMismatch +// * ErrCodeKeyPairMismatchException "KeyPairMismatch" // The request was rejected because the public key certificate and the private // key do not match. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -10521,30 +10521,30 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp // API operation UploadSigningCertificate for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedCertificate +// * ErrCodeMalformedCertificateException "MalformedCertificate" // The request was rejected because the certificate was malformed or expired. // The error message describes the specific error. // -// * InvalidCertificate +// * ErrCodeInvalidCertificateException "InvalidCertificate" // The request was rejected because the certificate is invalid. // -// * DuplicateCertificate +// * ErrCodeDuplicateCertificateException "DuplicateCertificate" // The request was rejected because the same certificate is associated with // an IAM user in the account. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // @@ -11308,14 +11308,14 @@ type ChangePasswordInput struct { // The new password. The new password must conform to the AWS account's password // policy, if one exists. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of almost any printable ASCII character - // from the space (\u0020) through the end of the ASCII character range (\u00FF). - // You can also include the tab (\u0009), line feed (\u000A), and carriage return - // (\u000D) characters. Although any of these characters are valid in a password, - // note that many tools, such as the AWS Management Console, might restrict - // the ability to enter certain characters because they have special meaning - // within that tool. + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of almost any printable ASCII + // character from the space (\u0020) through the end of the ASCII character + // range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), + // and carriage return (\u000D) characters. Although any of these characters + // are valid in a password, note that many tools, such as the AWS Management + // Console, might restrict the ability to enter certain characters because they + // have special meaning within that tool. // // NewPassword is a required field NewPassword *string `min:"1" type:"string" required:"true"` @@ -11781,14 +11781,14 @@ type CreateLoginProfileInput struct { // The new password for the user. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of almost any printable ASCII character - // from the space (\u0020) through the end of the ASCII character range (\u00FF). - // You can also include the tab (\u0009), line feed (\u000A), and carriage return - // (\u000D) characters. Although any of these characters are valid in a password, - // note that many tools, such as the AWS Management Console, might restrict - // the ability to enter certain characters because they have special meaning - // within that tool. + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of almost any printable ASCII + // character from the space (\u0020) through the end of the ASCII character + // range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), + // and carriage return (\u000D) characters. Although any of these characters + // are valid in a password, note that many tools, such as the AWS Management + // Console, might restrict the ability to enter certain characters because they + // have special meaning within that tool. // // Password is a required field Password *string `min:"1" type:"string" required:"true"` @@ -12042,11 +12042,12 @@ type CreatePolicyInput struct { // The JSON policy document that you want to use as the content for the new // policy. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -12159,11 +12160,12 @@ type CreatePolicyVersionInput struct { // The JSON policy document that you want to use as the content for this new // version of the policy. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -12262,11 +12264,12 @@ type CreateRoleInput struct { // The trust relationship policy document that grants an entity permission to // assume the role. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // AssumeRolePolicyDocument is a required field AssumeRolePolicyDocument *string `min:"1" type:"string" required:"true"` @@ -15031,11 +15034,12 @@ type GetContextKeysForCustomPolicyInput struct { // in those policies. Each document is specified as a string containing the // complete, valid JSON text of an IAM policy. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyInputList is a required field PolicyInputList []*string `type:"list" required:"true"` @@ -15103,11 +15107,12 @@ type GetContextKeysForPrincipalPolicyInput struct { // An optional list of additional policies for which you want the list of context // keys that are referenced. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). PolicyInputList []*string `type:"list"` // The ARN of a user, group, or role whose policies contain the context keys @@ -20754,11 +20759,12 @@ type PutGroupPolicyInput struct { // The policy document. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -20850,11 +20856,12 @@ type PutRolePolicyInput struct { // The policy document. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -20955,11 +20962,12 @@ type PutUserPolicyInput struct { // The policy document. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -22518,11 +22526,12 @@ type SimulateCustomPolicyInput struct { // or one of the AssumeRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_AssumeRole.html) // APIs to restrict what a user can do while using the temporary credentials. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyInputList is a required field PolicyInputList []*string `type:"list" required:"true"` @@ -22601,11 +22610,12 @@ type SimulateCustomPolicyInput struct { // Each resource in the simulation is treated as if it had this policy attached. // You can include only one resource-based policy in a simulation. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). ResourcePolicy *string `min:"1" type:"string"` } @@ -22829,11 +22839,12 @@ type SimulatePrincipalPolicyInput struct { // Each document is specified as a string containing the complete, valid JSON // text of an IAM policy. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). PolicyInputList []*string `type:"list"` // The Amazon Resource Name (ARN) of a user, group, or role whose policies you @@ -22920,11 +22931,12 @@ type SimulatePrincipalPolicyInput struct { // Each resource in the simulation is treated as if it had this policy attached. // You can include only one resource-based policy in a simulation. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). ResourcePolicy *string `min:"1" type:"string"` } @@ -23366,11 +23378,12 @@ type UpdateAssumeRolePolicyInput struct { // The policy that grants an entity permission to assume the role. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -23546,13 +23559,14 @@ type UpdateLoginProfileInput struct { // The new password for the specified IAM user. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). However, the format can be further - // restricted by the account administrator by setting a password policy on the - // AWS account. For more information, see UpdateAccountPasswordPolicy. + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). However, + // the format can be further restricted by the account administrator by setting + // a password policy on the AWS account. For more information, see UpdateAccountPasswordPolicy. Password *string `min:"1" type:"string"` // Allows this new password to be used only once by requiring the specified @@ -24288,11 +24302,12 @@ type UploadSSHPublicKeyInput struct { // The SSH public key. The public key must be encoded in ssh-rsa format or PEM // format. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // SSHPublicKeyBody is a required field SSHPublicKeyBody *string `min:"1" type:"string" required:"true"` @@ -24382,11 +24397,12 @@ type UploadServerCertificateInput struct { // The contents of the public key certificate in PEM-encoded format. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // CertificateBody is a required field CertificateBody *string `min:"1" type:"string" required:"true"` @@ -24394,11 +24410,12 @@ type UploadServerCertificateInput struct { // The contents of the certificate chain. This is typically a concatenation // of the PEM-encoded public key certificates of the chain. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). CertificateChain *string `min:"1" type:"string"` // The path for the server certificate. For more information about paths, see @@ -24420,11 +24437,12 @@ type UploadServerCertificateInput struct { // The contents of the private key in PEM-encoded format. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PrivateKey is a required field PrivateKey *string `min:"1" type:"string" required:"true"` @@ -24546,11 +24564,12 @@ type UploadSigningCertificateInput struct { // The contents of the signing certificate. // - // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // CertificateBody is a required field CertificateBody *string `min:"1" type:"string" required:"true"` @@ -24847,7 +24866,7 @@ func (s *UserDetail) SetUserPolicyList(v []*PolicyDetail) *UserDetail { type VirtualMFADevice struct { _ struct{} `type:"structure"` - // The Base32 seed defined as specified in RFC3548 (http://www.ietf.org/rfc/rfc3548.txt). + // The Base32 seed defined as specified in RFC3548 (https://tools.ietf.org/html/rfc3548.txt). // The Base32StringSeed is Base64-encoded. // // Base32StringSeed is automatically base64 encoded/decoded by the SDK. diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go b/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go new file mode 100644 index 0000000000..26c2534bf9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go @@ -0,0 +1,169 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package iam + +const ( + + // ErrCodeCredentialReportExpiredException for service response error code + // "ReportExpired". + // + // The request was rejected because the most recent credential report has expired. + // To generate a new credential report, use GenerateCredentialReport. For more + // information about credential report expiration, see Getting Credential Reports + // (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) + // in the IAM User Guide. + ErrCodeCredentialReportExpiredException = "ReportExpired" + + // ErrCodeCredentialReportNotPresentException for service response error code + // "ReportNotPresent". + // + // The request was rejected because the credential report does not exist. To + // generate a credential report, use GenerateCredentialReport. + ErrCodeCredentialReportNotPresentException = "ReportNotPresent" + + // ErrCodeCredentialReportNotReadyException for service response error code + // "ReportInProgress". + // + // The request was rejected because the credential report is still being generated. + ErrCodeCredentialReportNotReadyException = "ReportInProgress" + + // ErrCodeDeleteConflictException for service response error code + // "DeleteConflict". + // + // The request was rejected because it attempted to delete a resource that has + // attached subordinate entities. The error message describes these entities. + ErrCodeDeleteConflictException = "DeleteConflict" + + // ErrCodeDuplicateCertificateException for service response error code + // "DuplicateCertificate". + // + // The request was rejected because the same certificate is associated with + // an IAM user in the account. + ErrCodeDuplicateCertificateException = "DuplicateCertificate" + + // ErrCodeDuplicateSSHPublicKeyException for service response error code + // "DuplicateSSHPublicKey". + // + // The request was rejected because the SSH public key is already associated + // with the specified IAM user. + ErrCodeDuplicateSSHPublicKeyException = "DuplicateSSHPublicKey" + + // ErrCodeEntityAlreadyExistsException for service response error code + // "EntityAlreadyExists". + // + // The request was rejected because it attempted to create a resource that already + // exists. + ErrCodeEntityAlreadyExistsException = "EntityAlreadyExists" + + // ErrCodeEntityTemporarilyUnmodifiableException for service response error code + // "EntityTemporarilyUnmodifiable". + // + // The request was rejected because it referenced an entity that is temporarily + // unmodifiable, such as a user name that was deleted and then recreated. The + // error indicates that the request is likely to succeed if you try again after + // waiting several minutes. The error message describes the entity. + ErrCodeEntityTemporarilyUnmodifiableException = "EntityTemporarilyUnmodifiable" + + // ErrCodeInvalidAuthenticationCodeException for service response error code + // "InvalidAuthenticationCode". + // + // The request was rejected because the authentication code was not recognized. + // The error message describes the specific error. + ErrCodeInvalidAuthenticationCodeException = "InvalidAuthenticationCode" + + // ErrCodeInvalidCertificateException for service response error code + // "InvalidCertificate". + // + // The request was rejected because the certificate is invalid. + ErrCodeInvalidCertificateException = "InvalidCertificate" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInput". + // + // The request was rejected because an invalid or out-of-range value was supplied + // for an input parameter. + ErrCodeInvalidInputException = "InvalidInput" + + // ErrCodeInvalidPublicKeyException for service response error code + // "InvalidPublicKey". + // + // The request was rejected because the public key is malformed or otherwise + // invalid. + ErrCodeInvalidPublicKeyException = "InvalidPublicKey" + + // ErrCodeInvalidUserTypeException for service response error code + // "InvalidUserType". + // + // The request was rejected because the type of user for the transaction was + // incorrect. + ErrCodeInvalidUserTypeException = "InvalidUserType" + + // ErrCodeKeyPairMismatchException for service response error code + // "KeyPairMismatch". + // + // The request was rejected because the public key certificate and the private + // key do not match. + ErrCodeKeyPairMismatchException = "KeyPairMismatch" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceeded". + // + // The request was rejected because it attempted to create resources beyond + // the current AWS account limits. The error message describes the limit exceeded. + ErrCodeLimitExceededException = "LimitExceeded" + + // ErrCodeMalformedCertificateException for service response error code + // "MalformedCertificate". + // + // The request was rejected because the certificate was malformed or expired. + // The error message describes the specific error. + ErrCodeMalformedCertificateException = "MalformedCertificate" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocument". + // + // The request was rejected because the policy document was malformed. The error + // message describes the specific error. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocument" + + // ErrCodeNoSuchEntityException for service response error code + // "NoSuchEntity". + // + // The request was rejected because it referenced an entity that does not exist. + // The error message describes the entity. + ErrCodeNoSuchEntityException = "NoSuchEntity" + + // ErrCodePasswordPolicyViolationException for service response error code + // "PasswordPolicyViolation". + // + // The request was rejected because the provided password did not meet the requirements + // imposed by the account password policy. + ErrCodePasswordPolicyViolationException = "PasswordPolicyViolation" + + // ErrCodePolicyEvaluationException for service response error code + // "PolicyEvaluation". + // + // The request failed because a provided policy could not be successfully evaluated. + // An additional detail message indicates the source of the failure. + ErrCodePolicyEvaluationException = "PolicyEvaluation" + + // ErrCodeServiceFailureException for service response error code + // "ServiceFailure". + // + // The request processing has failed because of an unknown error, exception + // or failure. + ErrCodeServiceFailureException = "ServiceFailure" + + // ErrCodeServiceNotSupportedException for service response error code + // "NotSupportedService". + // + // The specified service does not support service-specific credentials. + ErrCodeServiceNotSupportedException = "NotSupportedService" + + // ErrCodeUnrecognizedPublicKeyEncodingException for service response error code + // "UnrecognizedPublicKeyEncoding". + // + // The request was rejected because the public key encoding format is unsupported + // or unrecognized. + ErrCodeUnrecognizedPublicKeyEncodingException = "UnrecognizedPublicKeyEncoding" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go index 02e537eb05..e36f23d22a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go @@ -74,19 +74,19 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ // API operation AddTagsToStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -191,15 +191,15 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // API operation CreateStream for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -273,15 +273,15 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete // API operation DecreaseStreamRetentionPeriod for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -368,11 +368,11 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re // API operation DeleteStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -443,7 +443,7 @@ func (c *Kinesis) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reques // API operation DescribeLimits for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -533,11 +533,11 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // API operation DescribeStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -628,19 +628,19 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor // API operation DisableEnhancedMonitoring for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // @@ -706,19 +706,19 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin // API operation EnableEnhancedMonitoring for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // @@ -836,15 +836,15 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // API operation GetRecords for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -852,7 +852,7 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // -// * ExpiredIteratorException +// * ErrCodeExpiredIteratorException "ExpiredIteratorException" // The provided iterator exceeds the maximum age allowed. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecords @@ -954,15 +954,15 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // API operation GetShardIterator for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1044,15 +1044,15 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete // API operation IncreaseStreamRetentionPeriod for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -1139,7 +1139,7 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ // API operation ListStreams for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -1230,15 +1230,15 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * // API operation ListTagsForStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -1341,19 +1341,19 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // API operation MergeShards for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -1456,15 +1456,15 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // API operation PutRecord for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1593,15 +1593,15 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // API operation PutRecords for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1676,19 +1676,19 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) // API operation RemoveTagsFromStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -1800,19 +1800,19 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques // API operation SplitShard for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // @@ -1899,19 +1899,19 @@ func (c *Kinesis) UpdateShardCountRequest(input *UpdateShardCountInput) (req *re // API operation UpdateShardCount for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified // correctly. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go new file mode 100644 index 0000000000..083aa5e0f2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go @@ -0,0 +1,51 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kinesis + +const ( + + // ErrCodeExpiredIteratorException for service response error code + // "ExpiredIteratorException". + // + // The provided iterator exceeds the maximum age allowed. + ErrCodeExpiredIteratorException = "ExpiredIteratorException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // A specified parameter exceeds its restrictions, is not supported, or can't + // be used. For more information, see the returned message. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The requested resource exceeds the maximum number allowed, or the number + // of concurrent stream requests exceeds the maximum number allowed (5). + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeProvisionedThroughputExceededException for service response error code + // "ProvisionedThroughputExceededException". + // + // The request rate for the stream is too high, or the requested data is too + // large for the available throughput. Reduce the frequency or size of your + // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) + // in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential + // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) + // in the AWS General Reference. + ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The resource is not available for this operation. For successful operation, + // the resource needs to be in the ACTIVE state. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The requested resource could not be found. The stream might not be specified + // correctly. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go index 31c464d6c4..a4cd7e3279 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go @@ -73,22 +73,22 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ // API operation CancelKeyDeletion for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -171,31 +171,31 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // API operation CreateAlias for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * AlreadyExistsException +// * ErrCodeAlreadyExistsException "AlreadyExistsException" // The request was rejected because it attempted to create a resource that already // exists. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidAliasNameException +// * ErrCodeInvalidAliasNameException "InvalidAliasNameException" // The request was rejected because the specified alias name is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -269,33 +269,33 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, // API operation CreateGrant for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -375,26 +375,26 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // API operation CreateKey for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocumentException +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" // The request was rejected because the specified policy is not syntactically // or semantically correct. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. @@ -477,33 +477,33 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // API operation Decrypt for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidCiphertextException +// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" // The request was rejected because the specified ciphertext has been corrupted // or is otherwise invalid. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -575,19 +575,19 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, // API operation DeleteAlias for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -668,26 +668,26 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI // API operation DeleteImportedKeyMaterial for usage and error information. // // Returned Error Codes: -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -757,18 +757,18 @@ func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, // API operation DescribeKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -840,22 +840,22 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o // API operation DisableKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -927,25 +927,25 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re // API operation DisableKeyRotation for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -953,7 +953,7 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1021,27 +1021,27 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out // API operation EnableKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1113,25 +1113,25 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // API operation EnableKeyRotation for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1139,7 +1139,7 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1224,32 +1224,32 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // API operation Encrypt for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1362,32 +1362,32 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // API operation GenerateDataKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1471,32 +1471,32 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // API operation GenerateDataKeyWithoutPlaintext for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1566,11 +1566,11 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re // API operation GenerateRandom for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -1636,22 +1636,22 @@ func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Reques // API operation GetKeyPolicy for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1722,22 +1722,22 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req // API operation GetKeyRotationStatus for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1745,7 +1745,7 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1826,26 +1826,26 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // API operation GetParametersForImport for usage and error information. // // Returned Error Codes: -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1935,26 +1935,26 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // API operation ImportKeyMaterial for usage and error information. // // Returned Error Codes: -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1962,22 +1962,22 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidCiphertextException +// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" // The request was rejected because the specified ciphertext has been corrupted // or is otherwise invalid. // -// * IncorrectKeyMaterialException +// * ErrCodeIncorrectKeyMaterialException "IncorrectKeyMaterialException" // The request was rejected because the provided key material is invalid or // is not the same key material that was previously imported into this customer // master key (CMK). // -// * ExpiredImportTokenException +// * ErrCodeExpiredImportTokenException "ExpiredImportTokenException" // The request was rejected because the provided import token is expired. Use // GetParametersForImport to retrieve a new import token and public key, use // the new public key to encrypt the key material, and then try the request // again. // -// * InvalidImportTokenException +// * ErrCodeInvalidImportTokenException "InvalidImportTokenException" // The request was rejected because the provided import token is invalid or // is associated with a different customer master key (CMK). // @@ -2049,15 +2049,15 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, // API operation ListAliases for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -2154,26 +2154,26 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o // API operation ListGrants for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2274,22 +2274,22 @@ func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request. // API operation ListKeyPolicies for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2390,15 +2390,15 @@ func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, outpu // API operation ListKeys for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // @@ -2493,22 +2493,22 @@ func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req * // API operation ListRetirableGrants for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -2579,35 +2579,35 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques // API operation PutKeyPolicy for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * MalformedPolicyDocumentException +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" // The request was rejected because the specified policy is not syntactically // or semantically correct. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2688,36 +2688,36 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // API operation ReEncrypt for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidCiphertextException +// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" // The request was rejected because the specified ciphertext has been corrupted // or is otherwise invalid. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2804,25 +2804,25 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // API operation RetireGrant for usage and error information. // // Returned Error Codes: -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InvalidGrantIdException +// * ErrCodeInvalidGrantIdException "InvalidGrantIdException" // The request was rejected because the specified GrantId is not valid. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2895,25 +2895,25 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, // API operation RevokeGrant for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * InvalidGrantIdException +// * ErrCodeInvalidGrantIdException "InvalidGrantIdException" // The request was rejected because the specified GrantId is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2998,22 +2998,22 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // API operation ScheduleKeyDeletion for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3097,19 +3097,19 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // API operation UpdateAlias for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3181,22 +3181,22 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req // API operation UpdateKeyDescription for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go new file mode 100644 index 0000000000..d34bbe7615 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go @@ -0,0 +1,148 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kms + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + // + // The request was rejected because it attempted to create a resource that already + // exists. + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeDependencyTimeoutException for service response error code + // "DependencyTimeoutException". + // + // The system timed out while trying to fulfill the request. The request can + // be retried. + ErrCodeDependencyTimeoutException = "DependencyTimeoutException" + + // ErrCodeDisabledException for service response error code + // "DisabledException". + // + // The request was rejected because the specified CMK is not enabled. + ErrCodeDisabledException = "DisabledException" + + // ErrCodeExpiredImportTokenException for service response error code + // "ExpiredImportTokenException". + // + // The request was rejected because the provided import token is expired. Use + // GetParametersForImport to retrieve a new import token and public key, use + // the new public key to encrypt the key material, and then try the request + // again. + ErrCodeExpiredImportTokenException = "ExpiredImportTokenException" + + // ErrCodeIncorrectKeyMaterialException for service response error code + // "IncorrectKeyMaterialException". + // + // The request was rejected because the provided key material is invalid or + // is not the same key material that was previously imported into this customer + // master key (CMK). + ErrCodeIncorrectKeyMaterialException = "IncorrectKeyMaterialException" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // The request was rejected because an internal exception occurred. The request + // can be retried. + ErrCodeInternalException = "InternalException" + + // ErrCodeInvalidAliasNameException for service response error code + // "InvalidAliasNameException". + // + // The request was rejected because the specified alias name is not valid. + ErrCodeInvalidAliasNameException = "InvalidAliasNameException" + + // ErrCodeInvalidArnException for service response error code + // "InvalidArnException". + // + // The request was rejected because a specified ARN was not valid. + ErrCodeInvalidArnException = "InvalidArnException" + + // ErrCodeInvalidCiphertextException for service response error code + // "InvalidCiphertextException". + // + // The request was rejected because the specified ciphertext has been corrupted + // or is otherwise invalid. + ErrCodeInvalidCiphertextException = "InvalidCiphertextException" + + // ErrCodeInvalidGrantIdException for service response error code + // "InvalidGrantIdException". + // + // The request was rejected because the specified GrantId is not valid. + ErrCodeInvalidGrantIdException = "InvalidGrantIdException" + + // ErrCodeInvalidGrantTokenException for service response error code + // "InvalidGrantTokenException". + // + // The request was rejected because the specified grant token is not valid. + ErrCodeInvalidGrantTokenException = "InvalidGrantTokenException" + + // ErrCodeInvalidImportTokenException for service response error code + // "InvalidImportTokenException". + // + // The request was rejected because the provided import token is invalid or + // is associated with a different customer master key (CMK). + ErrCodeInvalidImportTokenException = "InvalidImportTokenException" + + // ErrCodeInvalidKeyUsageException for service response error code + // "InvalidKeyUsageException". + // + // The request was rejected because the specified KeySpec value is not valid. + ErrCodeInvalidKeyUsageException = "InvalidKeyUsageException" + + // ErrCodeInvalidMarkerException for service response error code + // "InvalidMarkerException". + // + // The request was rejected because the marker that specifies where pagination + // should next begin is not valid. + ErrCodeInvalidMarkerException = "InvalidMarkerException" + + // ErrCodeInvalidStateException for service response error code + // "InvalidStateException". + // + // The request was rejected because the state of the specified resource is not + // valid for this request. + // + // For more information about how key state affects the use of a CMK, see How + // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) + // in the AWS Key Management Service Developer Guide. + ErrCodeInvalidStateException = "InvalidStateException" + + // ErrCodeKeyUnavailableException for service response error code + // "KeyUnavailableException". + // + // The request was rejected because the specified CMK was not available. The + // request can be retried. + ErrCodeKeyUnavailableException = "KeyUnavailableException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The request was rejected because a limit was exceeded. For more information, + // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) + // in the AWS Key Management Service Developer Guide. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocumentException". + // + // The request was rejected because the specified policy is not syntactically + // or semantically correct. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocumentException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // The request was rejected because the specified entity or resource could not + // be found. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeUnsupportedOperationException for service response error code + // "UnsupportedOperationException". + // + // The request was rejected because a specified parameter is not supported or + // a specified resource is not valid for this operation. + ErrCodeUnsupportedOperationException = "UnsupportedOperationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go index 530be47bed..4a215f4eb0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go @@ -80,26 +80,25 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // API operation AddPermission for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * PolicyLengthExceededException +// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" // Lambda function access policy is limited to 20 KB. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) @@ -164,23 +163,22 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque // API operation CreateAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { req, out := c.CreateAliasRequest(input) @@ -239,7 +237,7 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // the event source mapping. // // This event source mapping is relevant only in the AWS Lambda pull model, -// where AWS Lambda invokes the function. For more information, go to AWS Lambda: +// where AWS Lambda invokes the function. For more information, see AWS Lambda: // How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // in the AWS Lambda Developer Guide. // @@ -265,21 +263,20 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // API operation CreateEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // @@ -351,25 +348,24 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // API operation CreateFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * CodeStorageExceededException +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) { @@ -436,16 +432,15 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque // API operation DeleteAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) @@ -510,20 +505,19 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping // API operation DeleteEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.DeleteEventSourceMappingRequest(input) @@ -598,22 +592,21 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // API operation DeleteFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { @@ -667,11 +660,11 @@ func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req // // Returns a customer's account settings. // -// You can use this operation to retrieve Lambda limit information such as code -// size and concurrency limits. For more information on limits, see AWS Lambda -// Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). You can -// also retrieve resource usage statistics such as code storage usage and function -// count. +// You can use this operation to retrieve Lambda limits information, such as +// code size and concurrency limits. For more information about limits, see +// AWS Lambda Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). +// You can also retrieve resource usage statistics, such as code storage usage +// and function count. // // 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 @@ -681,10 +674,9 @@ func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req // API operation GetAccountSettings for usage and error information. // // Returned Error Codes: -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { @@ -750,20 +742,19 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou // API operation GetAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { req, out := c.GetAliasRequest(input) @@ -827,20 +818,19 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // API operation GetEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.GetEventSourceMappingRequest(input) @@ -913,17 +903,16 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // API operation GetFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. @@ -999,17 +988,16 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // API operation GetFunctionConfiguration for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. @@ -1082,17 +1070,16 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // API operation GetPolicy for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. @@ -1167,77 +1154,74 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // API operation Invoke for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidRequestContentException +// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" // The request body could not be parsed as JSON. // -// * RequestTooLargeException +// * ErrCodeRequestTooLargeException "RequestTooLargeException" // The request payload exceeded the Invoke request body JSON input limit. For // more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). // -// * UnsupportedMediaTypeException +// * ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException" // The content type of the Invoke request body is not JSON. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * EC2UnexpectedException +// * ErrCodeEC2UnexpectedException "EC2UnexpectedException" // AWS Lambda received an unexpected EC2 client exception while setting up for // the Lambda function. // -// * SubnetIPAddressLimitReachedException +// * ErrCodeSubnetIPAddressLimitReachedException "SubnetIPAddressLimitReachedException" // AWS Lambda was not able to set up VPC access for the Lambda function because // one or more configured subnets has no available IP addresses. // -// * ENILimitReachedException +// * ErrCodeENILimitReachedException "ENILimitReachedException" // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the // VPC, specified as part of Lambda function configuration, because the limit // for network interfaces has been reached. // -// * EC2ThrottledException +// * ErrCodeEC2ThrottledException "EC2ThrottledException" // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization // using the execution role provided for the Lambda function. // -// * EC2AccessDeniedException - +// * ErrCodeEC2AccessDeniedException "EC2AccessDeniedException" // -// * InvalidSubnetIDException +// * ErrCodeInvalidSubnetIDException "InvalidSubnetIDException" // The Subnet ID provided in the Lambda function VPC configuration is invalid. // -// * InvalidSecurityGroupIDException +// * ErrCodeInvalidSecurityGroupIDException "InvalidSecurityGroupIDException" // The Security Group ID provided in the Lambda function VPC configuration is // invalid. // -// * InvalidZipFileException +// * ErrCodeInvalidZipFileException "InvalidZipFileException" // AWS Lambda could not unzip the function zip file. // -// * KMSDisabledException +// * ErrCodeKMSDisabledException "KMSDisabledException" // Lambda was unable to decrypt the environment variables because the KMS key -// used is disabled. Please check the Lambda function's KMS key settings. +// used is disabled. Check the Lambda function's KMS key settings. // -// * KMSInvalidStateException +// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" // Lambda was unable to decrypt the environment variables because the KMS key -// used is in an invalid state for Decrypt. Please check the function's KMS -// key settings. +// used is in an invalid state for Decrypt. Check the function's KMS key settings. // -// * KMSAccessDeniedException +// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" // Lambda was unable to decrypt the environment variables because KMS access -// was denied. Please check the Lambda function's KMS permissions. +// was denied. Check the Lambda function's KMS permissions. // -// * KMSNotFoundException +// * ErrCodeKMSNotFoundException "KMSNotFoundException" // Lambda was unable to decrypt the environment variables because the KMS key -// was not found. Please check the function's KMS key settings. +// was not found. Check the function's KMS key settings. // func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { req, out := c.InvokeRequest(input) @@ -1307,14 +1291,14 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // API operation InvokeAsync for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidRequestContentException +// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" // The request body could not be parsed as JSON. // func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) { @@ -1381,20 +1365,19 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque // API operation ListAliases for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) @@ -1473,20 +1456,19 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // API operation ListEventSourceMappings for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { req, out := c.ListEventSourceMappingsRequest(input) @@ -1586,11 +1568,10 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // API operation ListFunctions for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) @@ -1677,20 +1658,19 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu // API operation ListVersionsByFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { req, out := c.ListVersionsByFunctionRequest(input) @@ -1755,22 +1735,21 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request // API operation PublishVersion for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * CodeStorageExceededException +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { @@ -1846,20 +1825,19 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // API operation RemovePermission for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) @@ -1924,20 +1902,19 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque // API operation UpdateAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { req, out := c.UpdateAliasRequest(input) @@ -2014,22 +1991,21 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // API operation UpdateEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { @@ -2099,22 +2075,21 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // API operation UpdateFunctionCode for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * CodeStorageExceededException +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { @@ -2186,20 +2161,19 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // API operation UpdateFunctionConfiguration for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error) { req, out := c.UpdateFunctionConfigurationRequest(input) @@ -2217,7 +2191,7 @@ type AccountLimit struct { CodeSizeUnzipped *int64 `type:"long"` // Size, in bytes, of a single zipped code/dependencies package you can upload - // for your Lambda function(.zip/.jar file). Try using AWS S3 for uploading + // for your Lambda function(.zip/.jar file). Try using Amazon S3 for uploading // larger files. Default limit is 50 MB. CodeSizeZipped *int64 `type:"long"` @@ -2274,7 +2248,7 @@ type AccountUsage struct { // The number of your account's existing functions per region. FunctionCount *int64 `type:"long"` - // Total size, in megabytes, of the account's deployment packages per region. + // Total size, in bytes, of the account's deployment packages per region. TotalCodeSize *int64 `type:"long"` } @@ -2674,7 +2648,7 @@ type CreateEventSourceMappingInput struct { FunctionName *string `min:"1" type:"string" required:"true"` // The position in the stream where AWS Lambda should start reading. Valid only - // for Kinesis streams. For more information, go to ShardIteratorType (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) + // for Kinesis streams. For more information, see ShardIteratorType (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) // in the Amazon Kinesis API Reference. // // StartingPosition is a required field @@ -2768,7 +2742,7 @@ type CreateFunctionInput struct { // Code is a required field Code *FunctionCode `type:"structure" required:"true"` - // The parent object that contains the target ARN (Amazon Resource Name) of + // The parent object that contains the target Amazon Resource Name (ARN) of // an Amazon SQS queue or Amazon SNS topic. DeadLetterConfig *DeadLetterConfig `type:"structure"` @@ -2781,7 +2755,8 @@ type CreateFunctionInput struct { // The name you want to assign to the function you are uploading. The function // names appear in the console and are returned in the ListFunctions API. Function - // names are used to specify functions to other AWS Lambda APIs, such as Invoke. + // names are used to specify functions to other AWS Lambda API operations, such + // as Invoke. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` @@ -2824,7 +2799,7 @@ type CreateFunctionInput struct { // runtime (v0.10.42), set the value to "nodejs". // // You can no longer create functions using the v0.10.42 runtime version as - // of November, 2016. Existing functions will be supported until early 2017 + // of November, 2016. Existing functions will be supported until early 2017, // but we recommend you migrate them to nodejs4.3 runtime version as soon as // possible. // @@ -2970,12 +2945,12 @@ func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { return s } -// The parent object that contains the target ARN (Amazon Resource Name) of +// The parent object that contains the target Amazon Resource Name (ARN) of // an Amazon SQS queue or Amazon SNS topic. type DeadLetterConfig struct { _ struct{} `type:"structure"` - // The ARN (Amazon Resource Value) of an Amazon SQS queue or Amazon SNS topic + // The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic // you specify as your Dead Letter Queue (DLQ). TargetArn *string `type:"string"` } @@ -3400,8 +3375,8 @@ type FunctionCode struct { // The contents of your zip file containing your deployment package. If you // are using the web API directly, the contents of the zip file must be base64-encoded. // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the - // encoding for you. For more information about creating a .zip file, go to - // Execution Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) + // encoding for you. For more information about creating a .zip file, see Execution + // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) // in the AWS Lambda Developer Guide. // // ZipFile is automatically base64 encoded/decoded by the SDK. @@ -3505,7 +3480,7 @@ type FunctionConfiguration struct { // The size, in bytes, of the function .zip file you uploaded. CodeSize *int64 `type:"long"` - // The parent object that contains the target ARN (Amazon Resource Name) of + // The parent object that contains the target Amazon Resource Name (ARN) of // an Amazon SQS queue or Amazon SNS topic. DeadLetterConfig *DeadLetterConfig `type:"structure"` @@ -5075,7 +5050,7 @@ type UpdateFunctionCodeInput struct { Publish *bool `type:"boolean"` // Amazon S3 bucket name where the .zip file containing your deployment package - // is stored. This bucket must reside in the same AWS region where you are creating + // is stored. This bucket must reside in the same AWS Region where you are creating // the Lambda function. S3Bucket *string `min:"3" type:"string"` @@ -5088,8 +5063,8 @@ type UpdateFunctionCodeInput struct { // The contents of your zip file containing your deployment package. If you // are using the web API directly, the contents of the zip file must be base64-encoded. // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the - // encoding for you. For more information about creating a .zip file, go to - // Execution Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) + // encoding for you. For more information about creating a .zip file, see Execution + // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) // in the AWS Lambda Developer Guide. // // ZipFile is automatically base64 encoded/decoded by the SDK. @@ -5170,7 +5145,7 @@ func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput type UpdateFunctionConfigurationInput struct { _ struct{} `type:"structure"` - // The parent object that contains the target ARN (Amazon Resource Name) of + // The parent object that contains the target Amazon Resource Name (ARN) of // an Amazon SQS queue or Amazon SNS topic. DeadLetterConfig *DeadLetterConfig `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go new file mode 100644 index 0000000000..1f9a11b6b3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go @@ -0,0 +1,148 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lambda + +const ( + + // ErrCodeCodeStorageExceededException for service response error code + // "CodeStorageExceededException". + // + // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) + ErrCodeCodeStorageExceededException = "CodeStorageExceededException" + + // ErrCodeEC2AccessDeniedException for service response error code + // "EC2AccessDeniedException". + ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException" + + // ErrCodeEC2ThrottledException for service response error code + // "EC2ThrottledException". + // + // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization + // using the execution role provided for the Lambda function. + ErrCodeEC2ThrottledException = "EC2ThrottledException" + + // ErrCodeEC2UnexpectedException for service response error code + // "EC2UnexpectedException". + // + // AWS Lambda received an unexpected EC2 client exception while setting up for + // the Lambda function. + ErrCodeEC2UnexpectedException = "EC2UnexpectedException" + + // ErrCodeENILimitReachedException for service response error code + // "ENILimitReachedException". + // + // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the + // VPC, specified as part of Lambda function configuration, because the limit + // for network interfaces has been reached. + ErrCodeENILimitReachedException = "ENILimitReachedException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // One of the parameters in the request is invalid. For example, if you provided + // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration + // API, that AWS Lambda is unable to assume you will get this exception. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeInvalidRequestContentException for service response error code + // "InvalidRequestContentException". + // + // The request body could not be parsed as JSON. + ErrCodeInvalidRequestContentException = "InvalidRequestContentException" + + // ErrCodeInvalidSecurityGroupIDException for service response error code + // "InvalidSecurityGroupIDException". + // + // The Security Group ID provided in the Lambda function VPC configuration is + // invalid. + ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException" + + // ErrCodeInvalidSubnetIDException for service response error code + // "InvalidSubnetIDException". + // + // The Subnet ID provided in the Lambda function VPC configuration is invalid. + ErrCodeInvalidSubnetIDException = "InvalidSubnetIDException" + + // ErrCodeInvalidZipFileException for service response error code + // "InvalidZipFileException". + // + // AWS Lambda could not unzip the function zip file. + ErrCodeInvalidZipFileException = "InvalidZipFileException" + + // ErrCodeKMSAccessDeniedException for service response error code + // "KMSAccessDeniedException". + // + // Lambda was unable to decrypt the environment variables because KMS access + // was denied. Check the Lambda function's KMS permissions. + ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException" + + // ErrCodeKMSDisabledException for service response error code + // "KMSDisabledException". + // + // Lambda was unable to decrypt the environment variables because the KMS key + // used is disabled. Check the Lambda function's KMS key settings. + ErrCodeKMSDisabledException = "KMSDisabledException" + + // ErrCodeKMSInvalidStateException for service response error code + // "KMSInvalidStateException". + // + // Lambda was unable to decrypt the environment variables because the KMS key + // used is in an invalid state for Decrypt. Check the function's KMS key settings. + ErrCodeKMSInvalidStateException = "KMSInvalidStateException" + + // ErrCodeKMSNotFoundException for service response error code + // "KMSNotFoundException". + // + // Lambda was unable to decrypt the environment variables because the KMS key + // was not found. Check the function's KMS key settings. + ErrCodeKMSNotFoundException = "KMSNotFoundException" + + // ErrCodePolicyLengthExceededException for service response error code + // "PolicyLengthExceededException". + // + // Lambda function access policy is limited to 20 KB. + ErrCodePolicyLengthExceededException = "PolicyLengthExceededException" + + // ErrCodeRequestTooLargeException for service response error code + // "RequestTooLargeException". + // + // The request payload exceeded the Invoke request body JSON input limit. For + // more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). + ErrCodeRequestTooLargeException = "RequestTooLargeException" + + // ErrCodeResourceConflictException for service response error code + // "ResourceConflictException". + // + // The resource already exists. + ErrCodeResourceConflictException = "ResourceConflictException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The resource (for example, a Lambda function or access policy statement) + // specified in the request does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceException for service response error code + // "ServiceException". + // + // The AWS Lambda service encountered an internal error. + ErrCodeServiceException = "ServiceException" + + // ErrCodeSubnetIPAddressLimitReachedException for service response error code + // "SubnetIPAddressLimitReachedException". + // + // AWS Lambda was not able to set up VPC access for the Lambda function because + // one or more configured subnets has no available IP addresses. + ErrCodeSubnetIPAddressLimitReachedException = "SubnetIPAddressLimitReachedException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + ErrCodeTooManyRequestsException = "TooManyRequestsException" + + // ErrCodeUnsupportedMediaTypeException for service response error code + // "UnsupportedMediaTypeException". + // + // The content type of the Invoke request body is not JSON. + ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go index a27ddc6c0e..abb46faa32 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go @@ -14,9 +14,9 @@ import ( // Overview // // This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides -// additional information. For the service overview, go to What is AWS Lambda +// additional information. For the service overview, see What is AWS Lambda // (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information -// about how the service works, go to AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) +// about how the service works, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // in the AWS Lambda Developer Guide. // The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go index 95a4827903..e9e7436610 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go @@ -72,17 +72,17 @@ func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *re // API operation AddRoleToDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * DBClusterRoleAlreadyExists +// * ErrCodeDBClusterRoleAlreadyExistsFault "DBClusterRoleAlreadyExists" // The specified IAM role Amazon Resource Name (ARN) is already associated with // the specified DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * DBClusterRoleQuotaExceeded +// * ErrCodeDBClusterRoleQuotaExceededFault "DBClusterRoleQuotaExceeded" // You have exceeded the maximum number of IAM roles that can be associated // with the specified DB cluster. // @@ -148,10 +148,10 @@ func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifie // API operation AddSourceIdentifierToSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The requested source could not be found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscription @@ -223,13 +223,13 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResource @@ -295,7 +295,7 @@ func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanc // API operation ApplyPendingMaintenanceAction for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The specified resource ID was not found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceAction @@ -372,17 +372,17 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG // API operation AuthorizeDBSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * AuthorizationAlreadyExists +// * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" // The specified CIDRIP or EC2 security group is already authorized for the // specified DB security group. // -// * AuthorizationQuotaExceeded +// * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded" // DB security group authorization quota has been reached. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngress @@ -447,14 +447,14 @@ func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGr // API operation CopyDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroup @@ -521,22 +521,22 @@ func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (r // API operation CopyDBClusterSnapshot for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotAlreadyExistsFault +// * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // User already has a DB cluster snapshot with the given identifier. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshot @@ -601,13 +601,13 @@ func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req // API operation CopyDBParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // @@ -669,50 +669,59 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re // To copy a DB snapshot from a shared manual DB snapshot, SourceDBSnapshotIdentifier // must be the Amazon Resource Name (ARN) of the shared DB snapshot. // -// You can not copy an encrypted DB snapshot from another AWS region. -// -// You can copy an encrypted DB snapshot from another AWS region. In that case, +// You can copy an encrypted DB snapshot from another AWS Region. In that case, // the region where you call the CopyDBSnapshot action is the destination region // for the encrypted DB snapshot to be copied to. To copy an encrypted DB snapshot // from another region, you must provide the following values: // -// * KmsKeyId - the AWS Key Management System (KMS) key identifier for the +// * KmsKeyId - The AWS Key Management System (KMS) key identifier for the // key to use to encrypt the copy of the DB snapshot in the destination region. // -// * PreSignedUrl - a URL that contains a Signature Version 4 signed request +// * PreSignedUrl - A URL that contains a Signature Version 4 signed request // for the CopyDBSnapshot action to be called in the source region where -// the DB snapshot will be copied from. The pre-signed URL must be a valid +// the DB snapshot will be copied from. The presigned URL must be a valid // request for the CopyDBSnapshot API action that can be executed in the // source region that contains the encrypted DB snapshot to be copied. // -// The pre-signed URL request must contain the following parameter values: +// The presigned URL request must contain the following parameter values: +// +// DestinationRegion - The AWS Region that the encrypted DB snapshot will be +// copied to. This region is the same one where the CopyDBSnapshot action +// is called that contains this presigned URL. +// +// For example, if you copy an encrypted DB snapshot from the us-west-2 region +// to the us-east-1 region, then you will call the CopyDBSnapshot action +// in the us-east-1 region and provide a presigned URL that contains a call +// to the CopyDBSnapshot action in the us-west-2 region. For this example, +// the DestinationRegion in the presigned URL must be set to the us-east-1 +// region. // // KmsKeyId - The KMS key identifier for the key to use to encrypt the copy -// of the DB snapshot in the destination region. This is the same identifier +// of the DB snapshot in the destination region. This identifier is the same // for both the CopyDBSnapshot action that is called in the destination region, -// and the action contained in the pre-signed URL. +// and the action contained in the presigned URL. // -// SourceDBSnapshotIdentifier - the DB snapshot identifier for the encrypted +// SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted // snapshot to be copied. This identifier must be in the Amazon Resource -// Name (ARN) format for the source region. For example, if you are copying -// an encrypted DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier -// would look like Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115. +// Name (ARN) format for the source region. For example, if you copy an encrypted +// DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier +// looks like this example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115. // // To learn how to generate a Signature Version 4 signed request, see Authenticating -// Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) -// and Signature Version 4 Signing Process (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) +// and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// * TargetDBSnapshotIdentifier - the identifier for the new copy of the +// * TargetDBSnapshotIdentifier - The identifier for the new copy of the // DB snapshot in the destination region. // -// * SourceDBSnapshotIdentifier - the DB snapshot identifier for the encrypted +// * SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted // snapshot to be copied. This identifier must be in the ARN format for the // source region and is the same value as the SourceDBSnapshotIdentifier -// in the pre-signed URL. +// in the presigned URL. // // For more information on copying encrypted snapshots from one region to another, -// see Copying an Encrypted DB Snapshot to Another Region in the Amazon RDS -// User Guide. (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html#USER_CopySnapshot.Encrypted.CrossRegion) +// see Copying an Encrypted DB Snapshot to Another Region (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html#USER_CopySnapshot.Encrypted.CrossRegion) +// in the Amazon RDS User 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 @@ -722,19 +731,19 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re // API operation CopyDBSnapshot for usage and error information. // // Returned Error Codes: -// * DBSnapshotAlreadyExists +// * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshot @@ -799,13 +808,13 @@ func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request. // API operation CopyOptionGroup for usage and error information. // // Returned Error Codes: -// * OptionGroupAlreadyExistsFault +// * ErrCodeOptionGroupAlreadyExistsFault "OptionGroupAlreadyExistsFault" // The option group you are trying to create already exists. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * OptionGroupQuotaExceededFault +// * ErrCodeOptionGroupQuotaExceededFault "OptionGroupQuotaExceededFault" // The quota of 20 option groups was exceeded for this AWS account. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroup @@ -863,7 +872,7 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // Creates a new Amazon Aurora DB cluster. // // You can use the ReplicationSourceIdentifier parameter to create the DB cluster -// as a Read Replica of another DB cluster. +// as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance. // // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. @@ -876,52 +885,59 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // API operation CreateDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBClusterParameterGroupNotFound +// * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter // group. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBCluster func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) @@ -1011,11 +1027,11 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // API operation CreateDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroup @@ -1082,19 +1098,19 @@ func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput // API operation CreateDBClusterSnapshot for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotAlreadyExistsFault +// * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // User already has a DB cluster snapshot with the given identifier. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshot @@ -1159,67 +1175,67 @@ func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *reques // API operation CreateDBInstance for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstance @@ -1284,6 +1300,61 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // // The source DB instance must have backup retention enabled. // +// You can create an encrypted Read Replica in a different AWS Region than the +// source DB instance. In that case, the region where you call the CreateDBInstanceReadReplica +// action is the destination region of the encrypted Read Replica. The source +// DB instance must be encrypted. +// +// To create an encrypted Read Replica in another AWS Region, you must provide +// the following values: +// +// * KmsKeyId - The AWS Key Management System (KMS) key identifier for the +// key to use to encrypt the Read Replica in the destination region. +// +// * PreSignedUrl - A URL that contains a Signature Version 4 signed request +// for the CreateDBInstanceReadReplica API action in the AWS region that +// contains the source DB instance. The PreSignedUrl parameter must be used +// when encrypting a Read Replica from another AWS region. +// +// The presigned URL must be a valid request for the CreateDBInstanceReadReplica +// API action that can be executed in the source region that contains the +// encrypted DB instance. The presigned URL request must contain the following +// parameter values: +// +// DestinationRegion - The AWS Region that the Read Replica is created in. This +// region is the same one where the CreateDBInstanceReadReplica action is +// called that contains this presigned URL. +// +// For example, if you create an encrypted Read Replica in the us-east-1 region, +// and the source DB instance is in the west-2 region, then you call the +// CreateDBInstanceReadReplica action in the us-east-1 region and provide +// a presigned URL that contains a call to the CreateDBInstanceReadReplica +// action in the us-west-2 region. For this example, the DestinationRegion +// in the presigned URL must be set to the us-east-1 region. +// +// KmsKeyId - The KMS key identifier for the key to use to encrypt the Read +// Replica in the destination region. This is the same identifier for both +// the CreateDBInstanceReadReplica action that is called in the destination +// region, and the action contained in the presigned URL. +// +// SourceDBInstanceIdentifier - The DB instance identifier for the encrypted +// Read Replica to be created. This identifier must be in the Amazon Resource +// Name (ARN) format for the source region. For example, if you create an +// encrypted Read Replica from a DB instance in the us-west-2 region, then +// your SourceDBInstanceIdentifier would look like this example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115. +// +// To learn how to generate a Signature Version 4 signed request, see Authenticating +// Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) +// and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// * DBInstanceIdentifier - The identifier for the encrypted Read Replica +// in the destination region. +// +// * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted +// Read Replica. This identifier must be in the ARN format for the source +// region and is the same value as the SourceDBInstanceIdentifier in the +// presigned URL. +// // 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. @@ -1292,65 +1363,65 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // API operation CreateDBInstanceReadReplica for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * DBSubnetGroupNotAllowedFault +// * ErrCodeDBSubnetGroupNotAllowedFault "DBSubnetGroupNotAllowedFault" // Indicates that the DBSubnetGroup should not be specified while creating read // replicas that lie in the same region as the source instance. // -// * InvalidDBSubnetGroupFault +// * ErrCodeInvalidDBSubnetGroupFault "InvalidDBSubnetGroupFault" // Indicates the DBSubnetGroup does not belong to the same VPC as that of an // existing cross region read replica of the same source instance. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplica @@ -1435,11 +1506,11 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // API operation CreateDBParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroup @@ -1505,15 +1576,15 @@ func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (r // API operation CreateDBSecurityGroup for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupAlreadyExists +// * ErrCodeDBSecurityGroupAlreadyExistsFault "DBSecurityGroupAlreadyExists" // A DB security group with the name specified in DBSecurityGroupName already // exists. // -// * QuotaExceeded.DBSecurityGroup +// * ErrCodeDBSecurityGroupQuotaExceededFault "QuotaExceeded.DBSecurityGroup" // Request would result in user exceeding the allowed number of DB security // groups. // -// * DBSecurityGroupNotSupported +// * ErrCodeDBSecurityGroupNotSupportedFault "DBSecurityGroupNotSupported" // A DB security group is not allowed for this action. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroup @@ -1578,16 +1649,16 @@ func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *reques // API operation CreateDBSnapshot for usage and error information. // // Returned Error Codes: -// * DBSnapshotAlreadyExists +// * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshot @@ -1653,21 +1724,21 @@ func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req * // API operation CreateDBSubnetGroup for usage and error information. // // Returned Error Codes: -// * DBSubnetGroupAlreadyExists +// * ErrCodeDBSubnetGroupAlreadyExistsFault "DBSubnetGroupAlreadyExists" // DBSubnetGroupName is already used by an existing DB subnet group. // -// * DBSubnetGroupQuotaExceeded +// * ErrCodeDBSubnetGroupQuotaExceededFault "DBSubnetGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB subnet groups. // -// * DBSubnetQuotaExceededFault +// * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault" // Request would result in user exceeding the allowed number of subnets in a // DB subnet groups. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // @@ -1750,25 +1821,25 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput // API operation CreateEventSubscription for usage and error information. // // Returned Error Codes: -// * EventSubscriptionQuotaExceeded +// * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded" // You have reached the maximum number of event subscriptions. // -// * SubscriptionAlreadyExist +// * ErrCodeSubscriptionAlreadyExistFault "SubscriptionAlreadyExist" // The supplied subscription name already exists. // -// * SNSInvalidTopic +// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" // SNS has responded that there is a problem with the SND topic specified. // -// * SNSNoAuthorization +// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" // You do not have permission to publish to the SNS topic ARN. // -// * SNSTopicArnNotFound +// * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" // The SNS topic ARN does not exist. // -// * SubscriptionCategoryNotFound +// * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" // The supplied category does not exist. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The requested source could not be found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscription @@ -1833,10 +1904,10 @@ func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *requ // API operation CreateOptionGroup for usage and error information. // // Returned Error Codes: -// * OptionGroupAlreadyExistsFault +// * ErrCodeOptionGroupAlreadyExistsFault "OptionGroupAlreadyExistsFault" // The option group you are trying to create already exists. // -// * OptionGroupQuotaExceededFault +// * ErrCodeOptionGroupQuotaExceededFault "OptionGroupQuotaExceededFault" // The quota of 20 option groups was exceeded for this AWS account. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroup @@ -1906,19 +1977,19 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. // API operation DeleteDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * DBClusterSnapshotAlreadyExistsFault +// * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // User already has a DB cluster snapshot with the given identifier. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBCluster @@ -1989,10 +2060,10 @@ func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParamet // API operation DeleteDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroup @@ -2063,10 +2134,10 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput // API operation DeleteDBClusterSnapshot for usage and error information. // // Returned Error Codes: -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshot @@ -2155,19 +2226,19 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // API operation DeleteDBInstance for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBSnapshotAlreadyExists +// * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstance @@ -2235,10 +2306,10 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) // API operation DeleteDBParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroup @@ -2307,10 +2378,10 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r // API operation DeleteDBSecurityGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroup @@ -2378,10 +2449,10 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques // API operation DeleteDBSnapshot for usage and error information. // // Returned Error Codes: -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshot @@ -2450,13 +2521,13 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * // API operation DeleteDBSubnetGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidDBSubnetStateFault +// * ErrCodeInvalidDBSubnetStateFault "InvalidDBSubnetStateFault" // The DB subnet is not in the available state. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroup @@ -2521,10 +2592,10 @@ func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput // API operation DeleteEventSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * InvalidEventSubscriptionState +// * ErrCodeInvalidEventSubscriptionStateFault "InvalidEventSubscriptionState" // This error can occur if someone else is modifying a subscription. You should // retry the action. // @@ -2592,10 +2663,10 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ // API operation DeleteOptionGroup for usage and error information. // // Returned Error Codes: -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * InvalidOptionGroupStateFault +// * ErrCodeInvalidOptionGroupStateFault "InvalidOptionGroupStateFault" // The option group is not in the available state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroup @@ -2725,7 +2796,7 @@ func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req // API operation DescribeCertificates for usage and error information. // // Returned Error Codes: -// * CertificateNotFound +// * ErrCodeCertificateNotFoundFault "CertificateNotFound" // CertificateIdentifier does not refer to an existing certificate. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeCertificates @@ -2795,7 +2866,7 @@ func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterPa // API operation DescribeDBClusterParameterGroups for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameterGroups @@ -2864,7 +2935,7 @@ func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParamet // API operation DescribeDBClusterParameters for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameters @@ -2940,7 +3011,7 @@ func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBCluste // API operation DescribeDBClusterSnapshotAttributes for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributes @@ -3009,7 +3080,7 @@ func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshot // API operation DescribeDBClusterSnapshots for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshots @@ -3078,7 +3149,7 @@ func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *re // API operation DescribeDBClusters for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusters @@ -3240,7 +3311,7 @@ func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req * // API operation DescribeDBInstances for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstances @@ -3336,7 +3407,7 @@ func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *re // API operation DescribeDBLogFiles for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFiles @@ -3434,7 +3505,7 @@ func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsI // API operation DescribeDBParameterGroups for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameterGroups @@ -3530,7 +3601,7 @@ func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req // API operation DescribeDBParameters for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameters @@ -3628,7 +3699,7 @@ func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInp // API operation DescribeDBSecurityGroups for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSecurityGroups @@ -3729,7 +3800,7 @@ func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttri // API operation DescribeDBSnapshotAttributes for usage and error information. // // Returned Error Codes: -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributes @@ -3800,7 +3871,7 @@ func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req * // API operation DescribeDBSnapshots for usage and error information. // // Returned Error Codes: -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshots @@ -3899,7 +3970,7 @@ func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) // API operation DescribeDBSubnetGroups for usage and error information. // // Returned Error Codes: -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSubnetGroups @@ -4218,7 +4289,7 @@ func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscription // API operation DescribeEventSubscriptions for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventSubscriptions @@ -4500,7 +4571,7 @@ func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req // API operation DescribeOptionGroups for usage and error information. // // Returned Error Codes: -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroups @@ -4682,7 +4753,7 @@ func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMai // API operation DescribePendingMaintenanceActions for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The specified resource ID was not found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribePendingMaintenanceActions @@ -4754,7 +4825,7 @@ func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstan // API operation DescribeReservedDBInstances for usage and error information. // // Returned Error Codes: -// * ReservedDBInstanceNotFound +// * ErrCodeReservedDBInstanceNotFoundFault "ReservedDBInstanceNotFound" // The specified reserved DB Instance not found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstances @@ -4850,7 +4921,7 @@ func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReserve // API operation DescribeReservedDBInstancesOfferings for usage and error information. // // Returned Error Codes: -// * ReservedDBInstancesOfferingNotFound +// * ErrCodeReservedDBInstancesOfferingNotFoundFault "ReservedDBInstancesOfferingNotFound" // Specified offering does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesOfferings @@ -5008,10 +5079,10 @@ func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInp // API operation DownloadDBLogFilePortion for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBLogFileNotFoundFault +// * ErrCodeDBLogFileNotFoundFault "DBLogFileNotFoundFault" // LogFileName does not refer to an existing DB log file. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortion @@ -5114,13 +5185,13 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ // API operation FailoverDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBCluster @@ -5188,13 +5259,13 @@ func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource @@ -5263,41 +5334,41 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. // API operation ModifyDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * DBClusterParameterGroupNotFound +// * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter // group. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBCluster @@ -5382,10 +5453,10 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet // API operation ModifyDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterParameterGroup @@ -5465,13 +5536,13 @@ func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnap // API operation ModifyDBClusterSnapshotAttribute for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * SharedSnapshotQuotaExceeded +// * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded" // You have exceeded the maximum number of accounts that you can share a manual // DB snapshot with. // @@ -5539,59 +5610,59 @@ func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *reques // API operation ModifyDBInstance for usage and error information. // // Returned Error Codes: -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * DBUpgradeDependencyFailure +// * ErrCodeDBUpgradeDependencyFailureFault "DBUpgradeDependencyFailure" // The DB upgrade failed because a resource the DB depends on could not be modified. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundFault "CertificateNotFound" // CertificateIdentifier does not refer to an existing certificate. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstance @@ -5673,10 +5744,10 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) // API operation ModifyDBParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBParameterGroup @@ -5686,6 +5757,76 @@ func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBPar return out, err } +const opModifyDBSnapshot = "ModifyDBSnapshot" + +// ModifyDBSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the ModifyDBSnapshot operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ModifyDBSnapshot 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 ModifyDBSnapshot 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 ModifyDBSnapshotRequest method. +// req, resp := client.ModifyDBSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshot +func (c *RDS) ModifyDBSnapshotRequest(input *ModifyDBSnapshotInput) (req *request.Request, output *ModifyDBSnapshotOutput) { + op := &request.Operation{ + Name: opModifyDBSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyDBSnapshotInput{} + } + + output = &ModifyDBSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyDBSnapshot API operation for Amazon Relational Database Service. +// +// Updates a manual DB snapshot, which can be encrypted or not encrypted, with +// a new engine version. You can update the engine version to either a new major +// or minor engine version. +// +// Amazon RDS supports upgrading a MySQL DB snapshot from MySQL 5.1 to MySQL +// 5.5. +// +// 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 Relational Database Service's +// API operation ModifyDBSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshot +func (c *RDS) ModifyDBSnapshot(input *ModifyDBSnapshotInput) (*ModifyDBSnapshotOutput, error) { + req, out := c.ModifyDBSnapshotRequest(input) + err := req.Send() + return out, err +} + const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute" // ModifyDBSnapshotAttributeRequest generates a "aws/request.Request" representing the @@ -5756,13 +5897,13 @@ func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeI // API operation ModifyDBSnapshotAttribute for usage and error information. // // Returned Error Codes: -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * SharedSnapshotQuotaExceeded +// * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded" // You have exceeded the maximum number of accounts that you can share a manual // DB snapshot with. // @@ -5829,21 +5970,21 @@ func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req * // API operation ModifyDBSubnetGroup for usage and error information. // // Returned Error Codes: -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetQuotaExceededFault +// * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault" // Request would result in user exceeding the allowed number of subnets in a // DB subnet groups. // -// * SubnetAlreadyInUse +// * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse" // The DB subnet is already in use in the Availability Zone. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // @@ -5917,22 +6058,22 @@ func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput // API operation ModifyEventSubscription for usage and error information. // // Returned Error Codes: -// * EventSubscriptionQuotaExceeded +// * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded" // You have reached the maximum number of event subscriptions. // -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * SNSInvalidTopic +// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" // SNS has responded that there is a problem with the SND topic specified. // -// * SNSNoAuthorization +// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" // You do not have permission to publish to the SNS topic ARN. // -// * SNSTopicArnNotFound +// * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" // The SNS topic ARN does not exist. // -// * SubscriptionCategoryNotFound +// * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" // The supplied category does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscription @@ -5997,10 +6138,10 @@ func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *requ // API operation ModifyOptionGroup for usage and error information. // // Returned Error Codes: -// * InvalidOptionGroupStateFault +// * ErrCodeInvalidOptionGroupStateFault "InvalidOptionGroupStateFault" // The option group is not in the available state. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroup @@ -6070,10 +6211,10 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re // API operation PromoteReadReplica for usage and error information. // // Returned Error Codes: -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplica @@ -6138,10 +6279,10 @@ func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClus // API operation PromoteReadReplicaDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBCluster @@ -6206,13 +6347,13 @@ func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReserved // API operation PurchaseReservedDBInstancesOffering for usage and error information. // // Returned Error Codes: -// * ReservedDBInstancesOfferingNotFound +// * ErrCodeReservedDBInstancesOfferingNotFoundFault "ReservedDBInstancesOfferingNotFound" // Specified offering does not exist. // -// * ReservedDBInstanceAlreadyExists +// * ErrCodeReservedDBInstanceAlreadyExistsFault "ReservedDBInstanceAlreadyExists" // User already has a reservation with the given identifier. // -// * ReservedDBInstanceQuotaExceeded +// * ErrCodeReservedDBInstanceQuotaExceededFault "ReservedDBInstanceQuotaExceeded" // Request would exceed the user's DB Instance quota. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOffering @@ -6293,10 +6434,10 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // API operation RebootDBInstance for usage and error information. // // Returned Error Codes: -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstance @@ -6365,14 +6506,14 @@ func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput // API operation RemoveRoleFromDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * DBClusterRoleNotFound +// * ErrCodeDBClusterRoleNotFoundFault "DBClusterRoleNotFound" // The specified IAM role Amazon Resource Name (ARN) is not associated with // the specified DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster @@ -6437,10 +6578,10 @@ func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceI // API operation RemoveSourceIdentifierFromSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The requested source could not be found. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscription @@ -6510,13 +6651,13 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResource @@ -6593,10 +6734,10 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter // API operation ResetDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBClusterParameterGroup @@ -6667,10 +6808,10 @@ func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (r // API operation ResetDBParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBParameterGroup @@ -6738,50 +6879,50 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) // API operation RestoreDBClusterFromS3 for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidS3BucketFault +// * ErrCodeInvalidS3BucketFault "InvalidS3BucketFault" // The specified Amazon S3 bucket name could not be found or Amazon RDS is not // authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName // and S3IngestionRoleArn values and try again. // -// * DBClusterParameterGroupNotFound +// * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter // group. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. @@ -6854,62 +6995,62 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna // API operation RestoreDBClusterFromSnapshot for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InsufficientDBClusterCapacityFault +// * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault" // The DB cluster does not have enough capacity for the current operation. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshot @@ -6981,62 +7122,62 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin // API operation RestoreDBClusterToPointInTime for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InsufficientDBClusterCapacityFault +// * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault" // The DB cluster does not have enough capacity for the current operation. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTime @@ -7119,67 +7260,67 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro // API operation RestoreDBInstanceFromDBSnapshot for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshot @@ -7255,71 +7396,71 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // API operation RestoreDBInstanceToPointInTime for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * PointInTimeRestoreNotEnabled +// * ErrCodePointInTimeRestoreNotEnabledFault "PointInTimeRestoreNotEnabled" // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod // equal to 0. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTime @@ -7387,17 +7528,17 @@ func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIn // API operation RevokeDBSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngress @@ -8435,12 +8576,8 @@ type CopyDBSnapshotInput struct { // you don't specify a value for KmsKeyId, then the copy of the DB snapshot // is encrypted with the same KMS key as the source DB snapshot. // - // If you copy an encrypted DB snapshot from your AWS account, you can specify - // a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If - // you don't specify a value for KmsKeyId, then the copy of the DB snapshot - // is encrypted with the same KMS key as the source DB snapshot. If you copy - // an encrypted snapshot to a different AWS region, then you must specify a - // KMS key for the destination AWS region. + // If you copy an encrypted snapshot to a different AWS region, then you must + // specify a KMS key for the destination AWS region. // // If you copy an encrypted DB snapshot that is shared from another AWS account, // then you must specify a value for KmsKeyId. @@ -8456,25 +8593,36 @@ type CopyDBSnapshotInput struct { // The PreSignedUrl parameter must be used when copying an encrypted DB snapshot // from another AWS region. // - // The pre-signed URL must be a valid request for the CopyDBSnapshot API action + // The presigned URL must be a valid request for the CopyDBSnapshot API action // that can be executed in the source region that contains the encrypted DB - // snapshot to be copied. The pre-signed URL request must contain the following + // snapshot to be copied. The presigned URL request must contain the following // parameter values: // + // * DestinationRegion - The AWS Region that the encrypted DB snapshot will + // be copied to. This region is the same one where the CopyDBSnapshot action + // is called that contains this presigned URL. + // + // For example, if you copy an encrypted DB snapshot from the us-west-2 region + // to the us-east-1 region, then you will call the CopyDBSnapshot action + // in the us-east-1 region and provide a presigned URL that contains a call + // to the CopyDBSnapshot action in the us-west-2 region. For this example, + // the DestinationRegion in the presigned URL must be set to the us-east-1 + // region. + // // * KmsKeyId - The KMS key identifier for the key to use to encrypt the // copy of the DB snapshot in the destination region. This is the same identifier // for both the CopyDBSnapshot action that is called in the destination region, - // and the action contained in the pre-signed URL. + // and the action contained in the presigned URL. // - // * SourceDBSnapshotIdentifier - the DB snapshot identifier for the encrypted + // * SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted // snapshot to be copied. This identifier must be in the Amazon Resource // Name (ARN) format for the source region. For example, if you are copying // an encrypted DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier // would look like Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115. // // To learn how to generate a Signature Version 4 signed request, see Authenticating - // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) - // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). PreSignedUrl *string `type:"string"` // The identifier for the source DB snapshot. @@ -8908,8 +9056,8 @@ type CreateDBClusterInput struct { // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string `type:"string"` - // The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster - // is created as a Read Replica. + // The Amazon Resource Name (ARN) of the source DB instance or DB cluster if + // this DB cluster is created as a Read Replica. ReplicationSourceIdentifier *string `type:"string"` // Specifies whether the DB cluster is encrypted. @@ -9417,7 +9565,8 @@ type CreateDBInstanceInput struct { // Type: String DBClusterIdentifier *string `type:"string"` - // The compute and memory capacity of the DB instance. + // The compute and memory capacity of the DB instance. Note that not all instance + // classes are available in all regions for all DB engines. // // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge // | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large @@ -9638,17 +9787,108 @@ type CreateDBInstanceInput struct { // // * Version 5.5 (available in all AWS regions): 5.5.46 // - // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, - // us-gov-west-1, us-west-1, us-west-2): 5.5.42 + // * Version 5.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 5.1.73a | 5.1.73b // - // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 5.5.40b | 5.5.41 + // Oracle Database Enterprise Edition (oracle-ee) + // + // * Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 12.1.0.1.v1 | 12.1.0.1.v2 + // + // * Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // * Version 12.1 (available in all AWS regions): 12.1.0.2.v1 + // + // * Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 + // | 12.1.0.2.v3 | 12.1.0.2.v4 + // + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 + // + // * Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3 + // + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 11.2.0.3.v4 + // + // * Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 + // + // * Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 + // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 + // + // Oracle Database Standard Edition (oracle-se) + // + // * Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 12.1.0.1.v1 | 12.1.0.1.v2 + // + // * Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, - // us-west-2): 5.5.40 | 5.5.40a + // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 + // + // * Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3 + // + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 11.2.0.3.v4 + // + // * Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 + // + // * Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 + // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 + // + // Oracle Database Standard Edition One (oracle-se1) + // + // * Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 12.1.0.1.v1 | 12.1.0.1.v2 + // + // * Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 + // + // * Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3 + // + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 11.2.0.3.v4 + // + // * Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 + // + // * Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 + // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 + // + // Oracle Database Standard Edition Two (oracle-se2) + // + // * Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 + // | 12.1.0.2.v3 | 12.1.0.2.v4 + // + // PostgreSQL + // + // * Version 9.6: 9.6.1 + // + // * Version 9.5:9.5.4 | 9.5.2 + // + // * Version 9.4: 9.4.9 | 9.4.7 | 9.4.5 | 9.4.4 | 9.4.1 + // + // * Version 9.3: 9.3.14 | 9.3.12 | 9.3.10 | 9.3.9 | 9.3.6 | 9.3.5 | 9.3.3 + // | 9.3.2 | 9.3.1 // // Oracle 12c // @@ -10345,7 +10585,8 @@ type CreateDBInstanceReadReplicaInput struct { // otherwise false. The default is false. CopyTagsToSnapshot *bool `type:"boolean"` - // The compute and memory capacity of the Read Replica. + // The compute and memory capacity of the Read Replica. Note that not all instance + // classes are available in all regions for all DB engines. // // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge // |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge @@ -10390,10 +10631,32 @@ type CreateDBInstanceReadReplicaInput struct { // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` + // DestinationRegion is used for presigning the request to a given region. + DestinationRegion *string `type:"string"` + // The amount of Provisioned IOPS (input/output operations per second) to be // initially allocated for the DB instance. Iops *int64 `type:"integer"` + // The AWS KMS key ID for an encrypted Read Replica. The KMS key ID is the Amazon + // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS + // encryption key. + // + // If you create an unencrypted Read Replica and specify a value for the KmsKeyId + // parameter, Amazon RDS encrypts the target Read Replica using the specified + // KMS encryption key. + // + // If you create an encrypted Read Replica from your AWS account, you can specify + // a value for KmsKeyId to encrypt the Read Replica with a new KMS encryption + // key. If you don't specify a value for KmsKeyId, then the Read Replica is + // encrypted with the same KMS key as the source DB instance. + // + // If you create an encrypted Read Replica in a different AWS region, then you + // must specify a KMS key for the destination AWS region. KMS encryption keys + // are specific to the region that they are created in, and you cannot use encryption + // keys from one region in another region. + KmsKeyId *string `type:"string"` + // The interval, in seconds, between points when Enhanced Monitoring metrics // are collected for the Read Replica. To disable collecting Enhanced Monitoring // metrics, specify 0. The default is 0. @@ -10424,6 +10687,42 @@ type CreateDBInstanceReadReplicaInput struct { // Valid Values: 1150-65535 Port *int64 `type:"integer"` + // The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica + // API action in the AWS region that contains the source DB instance. The PreSignedUrl + // parameter must be used when encrypting a Read Replica from another AWS region. + // + // The presigned URL must be a valid request for the CreateDBInstanceReadReplica + // API action that can be executed in the source region that contains the encrypted + // DB instance. The presigned URL request must contain the following parameter + // values: + // + // * DestinationRegion - The AWS Region that the Read Replica is created + // in. This region is the same one where the CreateDBInstanceReadReplica + // action is called that contains this presigned URL. + // + // For example, if you create an encrypted Read Replica in the us-east-1 region, + // and the source DB instance is in the west-2 region, then you call the + // CreateDBInstanceReadReplica action in the us-east-1 region and provide + // a presigned URL that contains a call to the CreateDBInstanceReadReplica + // action in the us-west-2 region. For this example, the DestinationRegion + // in the presigned URL must be set to the us-east-1 region. + // + // * KmsKeyId - The KMS key identifier for the key to use to encrypt the + // Read Replica in the destination region. This is the same identifier for + // both the CreateDBInstanceReadReplica action that is called in the destination + // region, and the action contained in the presigned URL. + // + // * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted + // Read Replica to be created. This identifier must be in the Amazon Resource + // Name (ARN) format for the source region. For example, if you create an + // encrypted Read Replica from a DB instance in the us-west-2 region, then + // your SourceDBInstanceIdentifier would look like this example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115. + // + // To learn how to generate a Signature Version 4 signed request, see Authenticating + // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + PreSignedUrl *string `type:"string"` + // Specifies the accessibility options for the DB instance. A value of true // specifies an Internet-facing instance with a publicly resolvable DNS name, // which resolves to a public IP address. A value of false specifies an internal @@ -10453,8 +10752,8 @@ type CreateDBInstanceReadReplicaInput struct { // * Can specify a DB instance that is a MySQL Read Replica only if the source // is running MySQL 5.6. // - // * Can specify a DB instance that is a PostgreSQL Read Replica only if - // the source is running PostgreSQL 9.3.5. + // * Can specify a DB instance that is a PostgreSQL DB instance only if the + // source is running PostgreSQL 9.3.5 or later. // // * The specified DB instance must have automatic backups enabled, its backup // retention period must be greater than 0. @@ -10469,6 +10768,11 @@ type CreateDBInstanceReadReplicaInput struct { // SourceDBInstanceIdentifier is a required field SourceDBInstanceIdentifier *string `type:"string" required:"true"` + // SourceRegion is the source region where the resource exists. This is not + // sent over the wire and is only used for presigning. This value should always + // have the same region as the source ARN. + SourceRegion *string `type:"string" ignore:"true"` + // Specifies the storage type to be associated with the Read Replica. // // Valid values: standard | gp2 | io1 @@ -10544,12 +10848,24 @@ func (s *CreateDBInstanceReadReplicaInput) SetDBSubnetGroupName(v string) *Creat return s } +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDestinationRegion(v string) *CreateDBInstanceReadReplicaInput { + s.DestinationRegion = &v + return s +} + // SetIops sets the Iops field's value. func (s *CreateDBInstanceReadReplicaInput) SetIops(v int64) *CreateDBInstanceReadReplicaInput { s.Iops = &v return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateDBInstanceReadReplicaInput) SetKmsKeyId(v string) *CreateDBInstanceReadReplicaInput { + s.KmsKeyId = &v + return s +} + // SetMonitoringInterval sets the MonitoringInterval field's value. func (s *CreateDBInstanceReadReplicaInput) SetMonitoringInterval(v int64) *CreateDBInstanceReadReplicaInput { s.MonitoringInterval = &v @@ -10574,6 +10890,12 @@ func (s *CreateDBInstanceReadReplicaInput) SetPort(v int64) *CreateDBInstanceRea return s } +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *CreateDBInstanceReadReplicaInput) SetPreSignedUrl(v string) *CreateDBInstanceReadReplicaInput { + s.PreSignedUrl = &v + return s +} + // SetPubliclyAccessible sets the PubliclyAccessible field's value. func (s *CreateDBInstanceReadReplicaInput) SetPubliclyAccessible(v bool) *CreateDBInstanceReadReplicaInput { s.PubliclyAccessible = &v @@ -10586,6 +10908,12 @@ func (s *CreateDBInstanceReadReplicaInput) SetSourceDBInstanceIdentifier(v strin return s } +// SetSourceRegion sets the SourceRegion field's value. +func (s *CreateDBInstanceReadReplicaInput) SetSourceRegion(v string) *CreateDBInstanceReadReplicaInput { + s.SourceRegion = &v + return s +} + // SetStorageType sets the StorageType field's value. func (s *CreateDBInstanceReadReplicaInput) SetStorageType(v string) *CreateDBInstanceReadReplicaInput { s.StorageType = &v @@ -12508,6 +12836,10 @@ type DBInstance struct { // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` + // Contains one or more identifiers of Aurora DB clusters that are Read Replicas + // of this DB instance. + ReadReplicaDBClusterIdentifiers []*string `locationNameList:"ReadReplicaDBClusterIdentifier" type:"list"` + // Contains one or more identifiers of the Read Replicas associated with this // DB instance. ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"` @@ -12782,6 +13114,12 @@ func (s *DBInstance) SetPubliclyAccessible(v bool) *DBInstance { return s } +// SetReadReplicaDBClusterIdentifiers sets the ReadReplicaDBClusterIdentifiers field's value. +func (s *DBInstance) SetReadReplicaDBClusterIdentifiers(v []*string) *DBInstance { + s.ReadReplicaDBClusterIdentifiers = v + return s +} + // SetReadReplicaDBInstanceIdentifiers sets the ReadReplicaDBInstanceIdentifiers field's value. func (s *DBInstance) SetReadReplicaDBInstanceIdentifiers(v []*string) *DBInstance { s.ReadReplicaDBInstanceIdentifiers = v @@ -15373,6 +15711,11 @@ type DescribeDBInstancesInput struct { // // Supported filters: // + // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon + // Resource Names (ARNs). The results list will only include information + // about the DB instances associated with the DB Clusters identified by these + // ARNs. + // // * db-instance-id - Accepts DB instance identifiers and DB instance Amazon // Resource Names (ARNs). The results list will only include information // about the DB instances identified by these ARNs. @@ -19485,7 +19828,8 @@ type ModifyDBInstanceInput struct { // The new compute and memory capacity of the DB instance. To determine the // instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions - // action. + // action. Note that not all instance classes are available in all regions for + // all DB engines. // // Passing a value for this setting causes an outage during the change and is // applied during the next maintenance window, unless ApplyImmediately is specified @@ -20262,6 +20606,84 @@ func (s *ModifyDBSnapshotAttributeOutput) SetDBSnapshotAttributesResult(v *DBSna return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotMessage +type ModifyDBSnapshotInput struct { + _ struct{} `type:"structure"` + + // The identifier of the DB snapshot to modify. + // + // DBSnapshotIdentifier is a required field + DBSnapshotIdentifier *string `type:"string" required:"true"` + + // The engine version to update the DB snapshot to. + EngineVersion *string `type:"string"` +} + +// String returns the string representation +func (s ModifyDBSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyDBSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyDBSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotInput"} + if s.DBSnapshotIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *ModifyDBSnapshotInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyDBSnapshotInput) SetEngineVersion(v string) *ModifyDBSnapshotInput { + s.EngineVersion = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotResult +type ModifyDBSnapshotOutput struct { + _ struct{} `type:"structure"` + + // Contains the result of a successful invocation of the following actions: + // + // * CreateDBSnapshot + // + // * DeleteDBSnapshot + // + // This data type is used as a response element in the DescribeDBSnapshots action. + DBSnapshot *DBSnapshot `type:"structure"` +} + +// String returns the string representation +func (s ModifyDBSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyDBSnapshotOutput) GoString() string { + return s.String() +} + +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *ModifyDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *ModifyDBSnapshotOutput { + s.DBSnapshot = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroupMessage type ModifyDBSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -23780,7 +24202,8 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Default: The same as source // - // Constraint: Must be compatible with the engine of the source + // Constraint: Must be compatible with the engine of the source. You can restore + // a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot. // // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go index 2aac068659..e25b8dd80e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go @@ -12,6 +12,7 @@ import ( func init() { ops := []string{ opCopyDBSnapshot, + opCreateDBInstanceReadReplica, } initRequest = func(r *request.Request) { for _, operation := range ops { @@ -24,7 +25,8 @@ func init() { func fillPresignedURL(r *request.Request) { fns := map[string]func(r *request.Request){ - opCopyDBSnapshot: copyDBSnapshotPresign, + opCopyDBSnapshot: copyDBSnapshotPresign, + opCreateDBInstanceReadReplica: createDBInstanceReadReplicaPresign, } if !r.ParamsFilled() { return @@ -46,6 +48,18 @@ func copyDBSnapshotPresign(r *request.Request) { originParams.PreSignedUrl = presignURL(r, originParams.SourceRegion, newParams) } +func createDBInstanceReadReplicaPresign(r *request.Request) { + originParams := r.Params.(*CreateDBInstanceReadReplicaInput) + + if originParams.PreSignedUrl != nil || originParams.DestinationRegion != nil { + return + } + + originParams.DestinationRegion = r.Config.Region + newParams := awsutil.CopyOf(r.Params).(*CreateDBInstanceReadReplicaInput) + originParams.PreSignedUrl = presignURL(r, originParams.SourceRegion, newParams) +} + // presignURL will presign the request by using SoureRegion to sign with. SourceRegion is not // sent to the service, and is only used to not have the SDKs parsing ARNs. func presignURL(r *request.Request, sourceRegion *string, newParams interface{}) *string { diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go b/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go new file mode 100644 index 0000000000..1ffd1a0fb0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go @@ -0,0 +1,490 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package rds + +const ( + + // ErrCodeAuthorizationAlreadyExistsFault for service response error code + // "AuthorizationAlreadyExists". + // + // The specified CIDRIP or EC2 security group is already authorized for the + // specified DB security group. + ErrCodeAuthorizationAlreadyExistsFault = "AuthorizationAlreadyExists" + + // ErrCodeAuthorizationNotFoundFault for service response error code + // "AuthorizationNotFound". + // + // Specified CIDRIP or EC2 security group is not authorized for the specified + // DB security group. + // + // RDS may not also be authorized via IAM to perform necessary actions on your + // behalf. + ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound" + + // ErrCodeAuthorizationQuotaExceededFault for service response error code + // "AuthorizationQuotaExceeded". + // + // DB security group authorization quota has been reached. + ErrCodeAuthorizationQuotaExceededFault = "AuthorizationQuotaExceeded" + + // ErrCodeCertificateNotFoundFault for service response error code + // "CertificateNotFound". + // + // CertificateIdentifier does not refer to an existing certificate. + ErrCodeCertificateNotFoundFault = "CertificateNotFound" + + // ErrCodeDBClusterAlreadyExistsFault for service response error code + // "DBClusterAlreadyExistsFault". + // + // User already has a DB cluster with the given identifier. + ErrCodeDBClusterAlreadyExistsFault = "DBClusterAlreadyExistsFault" + + // ErrCodeDBClusterNotFoundFault for service response error code + // "DBClusterNotFoundFault". + // + // DBClusterIdentifier does not refer to an existing DB cluster. + ErrCodeDBClusterNotFoundFault = "DBClusterNotFoundFault" + + // ErrCodeDBClusterParameterGroupNotFoundFault for service response error code + // "DBClusterParameterGroupNotFound". + // + // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter + // group. + ErrCodeDBClusterParameterGroupNotFoundFault = "DBClusterParameterGroupNotFound" + + // ErrCodeDBClusterQuotaExceededFault for service response error code + // "DBClusterQuotaExceededFault". + // + // User attempted to create a new DB cluster and the user has already reached + // the maximum allowed DB cluster quota. + ErrCodeDBClusterQuotaExceededFault = "DBClusterQuotaExceededFault" + + // ErrCodeDBClusterRoleAlreadyExistsFault for service response error code + // "DBClusterRoleAlreadyExists". + // + // The specified IAM role Amazon Resource Name (ARN) is already associated with + // the specified DB cluster. + ErrCodeDBClusterRoleAlreadyExistsFault = "DBClusterRoleAlreadyExists" + + // ErrCodeDBClusterRoleNotFoundFault for service response error code + // "DBClusterRoleNotFound". + // + // The specified IAM role Amazon Resource Name (ARN) is not associated with + // the specified DB cluster. + ErrCodeDBClusterRoleNotFoundFault = "DBClusterRoleNotFound" + + // ErrCodeDBClusterRoleQuotaExceededFault for service response error code + // "DBClusterRoleQuotaExceeded". + // + // You have exceeded the maximum number of IAM roles that can be associated + // with the specified DB cluster. + ErrCodeDBClusterRoleQuotaExceededFault = "DBClusterRoleQuotaExceeded" + + // ErrCodeDBClusterSnapshotAlreadyExistsFault for service response error code + // "DBClusterSnapshotAlreadyExistsFault". + // + // User already has a DB cluster snapshot with the given identifier. + ErrCodeDBClusterSnapshotAlreadyExistsFault = "DBClusterSnapshotAlreadyExistsFault" + + // ErrCodeDBClusterSnapshotNotFoundFault for service response error code + // "DBClusterSnapshotNotFoundFault". + // + // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. + ErrCodeDBClusterSnapshotNotFoundFault = "DBClusterSnapshotNotFoundFault" + + // ErrCodeDBInstanceAlreadyExistsFault for service response error code + // "DBInstanceAlreadyExists". + // + // User already has a DB instance with the given identifier. + ErrCodeDBInstanceAlreadyExistsFault = "DBInstanceAlreadyExists" + + // ErrCodeDBInstanceNotFoundFault for service response error code + // "DBInstanceNotFound". + // + // DBInstanceIdentifier does not refer to an existing DB instance. + ErrCodeDBInstanceNotFoundFault = "DBInstanceNotFound" + + // ErrCodeDBLogFileNotFoundFault for service response error code + // "DBLogFileNotFoundFault". + // + // LogFileName does not refer to an existing DB log file. + ErrCodeDBLogFileNotFoundFault = "DBLogFileNotFoundFault" + + // ErrCodeDBParameterGroupAlreadyExistsFault for service response error code + // "DBParameterGroupAlreadyExists". + // + // A DB parameter group with the same name exists. + ErrCodeDBParameterGroupAlreadyExistsFault = "DBParameterGroupAlreadyExists" + + // ErrCodeDBParameterGroupNotFoundFault for service response error code + // "DBParameterGroupNotFound". + // + // DBParameterGroupName does not refer to an existing DB parameter group. + ErrCodeDBParameterGroupNotFoundFault = "DBParameterGroupNotFound" + + // ErrCodeDBParameterGroupQuotaExceededFault for service response error code + // "DBParameterGroupQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB parameter + // groups. + ErrCodeDBParameterGroupQuotaExceededFault = "DBParameterGroupQuotaExceeded" + + // ErrCodeDBSecurityGroupAlreadyExistsFault for service response error code + // "DBSecurityGroupAlreadyExists". + // + // A DB security group with the name specified in DBSecurityGroupName already + // exists. + ErrCodeDBSecurityGroupAlreadyExistsFault = "DBSecurityGroupAlreadyExists" + + // ErrCodeDBSecurityGroupNotFoundFault for service response error code + // "DBSecurityGroupNotFound". + // + // DBSecurityGroupName does not refer to an existing DB security group. + ErrCodeDBSecurityGroupNotFoundFault = "DBSecurityGroupNotFound" + + // ErrCodeDBSecurityGroupNotSupportedFault for service response error code + // "DBSecurityGroupNotSupported". + // + // A DB security group is not allowed for this action. + ErrCodeDBSecurityGroupNotSupportedFault = "DBSecurityGroupNotSupported" + + // ErrCodeDBSecurityGroupQuotaExceededFault for service response error code + // "QuotaExceeded.DBSecurityGroup". + // + // Request would result in user exceeding the allowed number of DB security + // groups. + ErrCodeDBSecurityGroupQuotaExceededFault = "QuotaExceeded.DBSecurityGroup" + + // ErrCodeDBSnapshotAlreadyExistsFault for service response error code + // "DBSnapshotAlreadyExists". + // + // DBSnapshotIdentifier is already used by an existing snapshot. + ErrCodeDBSnapshotAlreadyExistsFault = "DBSnapshotAlreadyExists" + + // ErrCodeDBSnapshotNotFoundFault for service response error code + // "DBSnapshotNotFound". + // + // DBSnapshotIdentifier does not refer to an existing DB snapshot. + ErrCodeDBSnapshotNotFoundFault = "DBSnapshotNotFound" + + // ErrCodeDBSubnetGroupAlreadyExistsFault for service response error code + // "DBSubnetGroupAlreadyExists". + // + // DBSubnetGroupName is already used by an existing DB subnet group. + ErrCodeDBSubnetGroupAlreadyExistsFault = "DBSubnetGroupAlreadyExists" + + // ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs for service response error code + // "DBSubnetGroupDoesNotCoverEnoughAZs". + // + // Subnets in the DB subnet group should cover at least two Availability Zones + // unless there is only one Availability Zone. + ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs = "DBSubnetGroupDoesNotCoverEnoughAZs" + + // ErrCodeDBSubnetGroupNotAllowedFault for service response error code + // "DBSubnetGroupNotAllowedFault". + // + // Indicates that the DBSubnetGroup should not be specified while creating read + // replicas that lie in the same region as the source instance. + ErrCodeDBSubnetGroupNotAllowedFault = "DBSubnetGroupNotAllowedFault" + + // ErrCodeDBSubnetGroupNotFoundFault for service response error code + // "DBSubnetGroupNotFoundFault". + // + // DBSubnetGroupName does not refer to an existing DB subnet group. + ErrCodeDBSubnetGroupNotFoundFault = "DBSubnetGroupNotFoundFault" + + // ErrCodeDBSubnetGroupQuotaExceededFault for service response error code + // "DBSubnetGroupQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB subnet groups. + ErrCodeDBSubnetGroupQuotaExceededFault = "DBSubnetGroupQuotaExceeded" + + // ErrCodeDBSubnetQuotaExceededFault for service response error code + // "DBSubnetQuotaExceededFault". + // + // Request would result in user exceeding the allowed number of subnets in a + // DB subnet groups. + ErrCodeDBSubnetQuotaExceededFault = "DBSubnetQuotaExceededFault" + + // ErrCodeDBUpgradeDependencyFailureFault for service response error code + // "DBUpgradeDependencyFailure". + // + // The DB upgrade failed because a resource the DB depends on could not be modified. + ErrCodeDBUpgradeDependencyFailureFault = "DBUpgradeDependencyFailure" + + // ErrCodeDomainNotFoundFault for service response error code + // "DomainNotFoundFault". + // + // Domain does not refer to an existing Active Directory Domain. + ErrCodeDomainNotFoundFault = "DomainNotFoundFault" + + // ErrCodeEventSubscriptionQuotaExceededFault for service response error code + // "EventSubscriptionQuotaExceeded". + // + // You have reached the maximum number of event subscriptions. + ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded" + + // ErrCodeInstanceQuotaExceededFault for service response error code + // "InstanceQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB instances. + ErrCodeInstanceQuotaExceededFault = "InstanceQuotaExceeded" + + // ErrCodeInsufficientDBClusterCapacityFault for service response error code + // "InsufficientDBClusterCapacityFault". + // + // The DB cluster does not have enough capacity for the current operation. + ErrCodeInsufficientDBClusterCapacityFault = "InsufficientDBClusterCapacityFault" + + // ErrCodeInsufficientDBInstanceCapacityFault for service response error code + // "InsufficientDBInstanceCapacity". + // + // Specified DB instance class is not available in the specified Availability + // Zone. + ErrCodeInsufficientDBInstanceCapacityFault = "InsufficientDBInstanceCapacity" + + // ErrCodeInsufficientStorageClusterCapacityFault for service response error code + // "InsufficientStorageClusterCapacity". + // + // There is insufficient storage available for the current action. You may be + // able to resolve this error by updating your subnet group to use different + // Availability Zones that have more storage available. + ErrCodeInsufficientStorageClusterCapacityFault = "InsufficientStorageClusterCapacity" + + // ErrCodeInvalidDBClusterSnapshotStateFault for service response error code + // "InvalidDBClusterSnapshotStateFault". + // + // The supplied value is not a valid DB cluster snapshot state. + ErrCodeInvalidDBClusterSnapshotStateFault = "InvalidDBClusterSnapshotStateFault" + + // ErrCodeInvalidDBClusterStateFault for service response error code + // "InvalidDBClusterStateFault". + // + // The DB cluster is not in a valid state. + ErrCodeInvalidDBClusterStateFault = "InvalidDBClusterStateFault" + + // ErrCodeInvalidDBInstanceStateFault for service response error code + // "InvalidDBInstanceState". + // + // The specified DB instance is not in the available state. + ErrCodeInvalidDBInstanceStateFault = "InvalidDBInstanceState" + + // ErrCodeInvalidDBParameterGroupStateFault for service response error code + // "InvalidDBParameterGroupState". + // + // The DB parameter group cannot be deleted because it is in use. + ErrCodeInvalidDBParameterGroupStateFault = "InvalidDBParameterGroupState" + + // ErrCodeInvalidDBSecurityGroupStateFault for service response error code + // "InvalidDBSecurityGroupState". + // + // The state of the DB security group does not allow deletion. + ErrCodeInvalidDBSecurityGroupStateFault = "InvalidDBSecurityGroupState" + + // ErrCodeInvalidDBSnapshotStateFault for service response error code + // "InvalidDBSnapshotState". + // + // The state of the DB snapshot does not allow deletion. + ErrCodeInvalidDBSnapshotStateFault = "InvalidDBSnapshotState" + + // ErrCodeInvalidDBSubnetGroupFault for service response error code + // "InvalidDBSubnetGroupFault". + // + // Indicates the DBSubnetGroup does not belong to the same VPC as that of an + // existing cross region read replica of the same source instance. + ErrCodeInvalidDBSubnetGroupFault = "InvalidDBSubnetGroupFault" + + // ErrCodeInvalidDBSubnetGroupStateFault for service response error code + // "InvalidDBSubnetGroupStateFault". + // + // The DB subnet group cannot be deleted because it is in use. + ErrCodeInvalidDBSubnetGroupStateFault = "InvalidDBSubnetGroupStateFault" + + // ErrCodeInvalidDBSubnetStateFault for service response error code + // "InvalidDBSubnetStateFault". + // + // The DB subnet is not in the available state. + ErrCodeInvalidDBSubnetStateFault = "InvalidDBSubnetStateFault" + + // ErrCodeInvalidEventSubscriptionStateFault for service response error code + // "InvalidEventSubscriptionState". + // + // This error can occur if someone else is modifying a subscription. You should + // retry the action. + ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState" + + // ErrCodeInvalidOptionGroupStateFault for service response error code + // "InvalidOptionGroupStateFault". + // + // The option group is not in the available state. + ErrCodeInvalidOptionGroupStateFault = "InvalidOptionGroupStateFault" + + // ErrCodeInvalidRestoreFault for service response error code + // "InvalidRestoreFault". + // + // Cannot restore from vpc backup to non-vpc DB instance. + ErrCodeInvalidRestoreFault = "InvalidRestoreFault" + + // ErrCodeInvalidS3BucketFault for service response error code + // "InvalidS3BucketFault". + // + // The specified Amazon S3 bucket name could not be found or Amazon RDS is not + // authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName + // and S3IngestionRoleArn values and try again. + ErrCodeInvalidS3BucketFault = "InvalidS3BucketFault" + + // ErrCodeInvalidSubnet for service response error code + // "InvalidSubnet". + // + // The requested subnet is invalid, or multiple subnets were requested that + // are not all in a common VPC. + ErrCodeInvalidSubnet = "InvalidSubnet" + + // ErrCodeInvalidVPCNetworkStateFault for service response error code + // "InvalidVPCNetworkStateFault". + // + // DB subnet group does not cover all Availability Zones after it is created + // because users' change. + ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault" + + // ErrCodeKMSKeyNotAccessibleFault for service response error code + // "KMSKeyNotAccessibleFault". + // + // Error accessing KMS key. + ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault" + + // ErrCodeOptionGroupAlreadyExistsFault for service response error code + // "OptionGroupAlreadyExistsFault". + // + // The option group you are trying to create already exists. + ErrCodeOptionGroupAlreadyExistsFault = "OptionGroupAlreadyExistsFault" + + // ErrCodeOptionGroupNotFoundFault for service response error code + // "OptionGroupNotFoundFault". + // + // The specified option group could not be found. + ErrCodeOptionGroupNotFoundFault = "OptionGroupNotFoundFault" + + // ErrCodeOptionGroupQuotaExceededFault for service response error code + // "OptionGroupQuotaExceededFault". + // + // The quota of 20 option groups was exceeded for this AWS account. + ErrCodeOptionGroupQuotaExceededFault = "OptionGroupQuotaExceededFault" + + // ErrCodePointInTimeRestoreNotEnabledFault for service response error code + // "PointInTimeRestoreNotEnabled". + // + // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod + // equal to 0. + ErrCodePointInTimeRestoreNotEnabledFault = "PointInTimeRestoreNotEnabled" + + // ErrCodeProvisionedIopsNotAvailableInAZFault for service response error code + // "ProvisionedIopsNotAvailableInAZFault". + // + // Provisioned IOPS not available in the specified Availability Zone. + ErrCodeProvisionedIopsNotAvailableInAZFault = "ProvisionedIopsNotAvailableInAZFault" + + // ErrCodeReservedDBInstanceAlreadyExistsFault for service response error code + // "ReservedDBInstanceAlreadyExists". + // + // User already has a reservation with the given identifier. + ErrCodeReservedDBInstanceAlreadyExistsFault = "ReservedDBInstanceAlreadyExists" + + // ErrCodeReservedDBInstanceNotFoundFault for service response error code + // "ReservedDBInstanceNotFound". + // + // The specified reserved DB Instance not found. + ErrCodeReservedDBInstanceNotFoundFault = "ReservedDBInstanceNotFound" + + // ErrCodeReservedDBInstanceQuotaExceededFault for service response error code + // "ReservedDBInstanceQuotaExceeded". + // + // Request would exceed the user's DB Instance quota. + ErrCodeReservedDBInstanceQuotaExceededFault = "ReservedDBInstanceQuotaExceeded" + + // ErrCodeReservedDBInstancesOfferingNotFoundFault for service response error code + // "ReservedDBInstancesOfferingNotFound". + // + // Specified offering does not exist. + ErrCodeReservedDBInstancesOfferingNotFoundFault = "ReservedDBInstancesOfferingNotFound" + + // ErrCodeResourceNotFoundFault for service response error code + // "ResourceNotFoundFault". + // + // The specified resource ID was not found. + ErrCodeResourceNotFoundFault = "ResourceNotFoundFault" + + // ErrCodeSNSInvalidTopicFault for service response error code + // "SNSInvalidTopic". + // + // SNS has responded that there is a problem with the SND topic specified. + ErrCodeSNSInvalidTopicFault = "SNSInvalidTopic" + + // ErrCodeSNSNoAuthorizationFault for service response error code + // "SNSNoAuthorization". + // + // You do not have permission to publish to the SNS topic ARN. + ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorization" + + // ErrCodeSNSTopicArnNotFoundFault for service response error code + // "SNSTopicArnNotFound". + // + // The SNS topic ARN does not exist. + ErrCodeSNSTopicArnNotFoundFault = "SNSTopicArnNotFound" + + // ErrCodeSharedSnapshotQuotaExceededFault for service response error code + // "SharedSnapshotQuotaExceeded". + // + // You have exceeded the maximum number of accounts that you can share a manual + // DB snapshot with. + ErrCodeSharedSnapshotQuotaExceededFault = "SharedSnapshotQuotaExceeded" + + // ErrCodeSnapshotQuotaExceededFault for service response error code + // "SnapshotQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB snapshots. + ErrCodeSnapshotQuotaExceededFault = "SnapshotQuotaExceeded" + + // ErrCodeSourceNotFoundFault for service response error code + // "SourceNotFound". + // + // The requested source could not be found. + ErrCodeSourceNotFoundFault = "SourceNotFound" + + // ErrCodeStorageQuotaExceededFault for service response error code + // "StorageQuotaExceeded". + // + // Request would result in user exceeding the allowed amount of storage available + // across all DB instances. + ErrCodeStorageQuotaExceededFault = "StorageQuotaExceeded" + + // ErrCodeStorageTypeNotSupportedFault for service response error code + // "StorageTypeNotSupported". + // + // StorageType specified cannot be associated with the DB Instance. + ErrCodeStorageTypeNotSupportedFault = "StorageTypeNotSupported" + + // ErrCodeSubnetAlreadyInUse for service response error code + // "SubnetAlreadyInUse". + // + // The DB subnet is already in use in the Availability Zone. + ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse" + + // ErrCodeSubscriptionAlreadyExistFault for service response error code + // "SubscriptionAlreadyExist". + // + // The supplied subscription name already exists. + ErrCodeSubscriptionAlreadyExistFault = "SubscriptionAlreadyExist" + + // ErrCodeSubscriptionCategoryNotFoundFault for service response error code + // "SubscriptionCategoryNotFound". + // + // The supplied category does not exist. + ErrCodeSubscriptionCategoryNotFoundFault = "SubscriptionCategoryNotFound" + + // ErrCodeSubscriptionNotFoundFault for service response error code + // "SubscriptionNotFound". + // + // The subscription name does not exist. + ErrCodeSubscriptionNotFoundFault = "SubscriptionNotFound" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go index 5318731f4a..9b205f3f0c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go @@ -73,7 +73,7 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req // API operation AbortMultipartUpload for usage and error information. // // Returned Error Codes: -// * NoSuchUpload +// * ErrCodeNoSuchUpload "NoSuchUpload" // The specified multipart upload does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUpload @@ -198,7 +198,7 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou // API operation CopyObject for usage and error information. // // Returned Error Codes: -// * ObjectNotInActiveTierError +// * ErrCodeObjectNotInActiveTierError "ObjectNotInActiveTierError" // The source object of the COPY operation is not in the active tier and is // only stored in Amazon Glacier. // @@ -264,12 +264,11 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request // API operation CreateBucket for usage and error information. // // Returned Error Codes: -// * BucketAlreadyExists +// * ErrCodeBucketAlreadyExists "BucketAlreadyExists" // The requested bucket name is not available. The bucket namespace is shared // by all users of the system. Please select a different name and try again. // -// * BucketAlreadyOwnedByYou - +// * ErrCodeBucketAlreadyOwnedByYou "BucketAlreadyOwnedByYou" // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) { @@ -2296,7 +2295,7 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp // API operation GetObject for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject @@ -2361,7 +2360,7 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request // API operation GetObjectAcl for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl @@ -2549,7 +2548,7 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou // API operation HeadBucket for usage and error information. // // Returned Error Codes: -// * NoSuchBucket +// * ErrCodeNoSuchBucket "NoSuchBucket" // The specified bucket does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket @@ -2616,7 +2615,7 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, ou // API operation HeadObject for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject @@ -3111,7 +3110,7 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, // API operation ListObjects for usage and error information. // // Returned Error Codes: -// * NoSuchBucket +// * ErrCodeNoSuchBucket "NoSuchBucket" // The specified bucket does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects @@ -3210,7 +3209,7 @@ func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Reque // API operation ListObjectsV2 for usage and error information. // // Returned Error Codes: -// * NoSuchBucket +// * ErrCodeNoSuchBucket "NoSuchBucket" // The specified bucket does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2 @@ -4525,7 +4524,7 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request // API operation PutObjectAcl for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl @@ -4650,7 +4649,7 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque // API operation RestoreObject for usage and error information. // // Returned Error Codes: -// * ObjectAlreadyInActiveTierError +// * ErrCodeObjectAlreadyInActiveTierError "ObjectAlreadyInActiveTierError" // This operation is not allowed against this storage tier // // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go new file mode 100644 index 0000000000..13ebbdad90 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go @@ -0,0 +1,48 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package s3 + +const ( + + // ErrCodeBucketAlreadyExists for service response error code + // "BucketAlreadyExists". + // + // The requested bucket name is not available. The bucket namespace is shared + // by all users of the system. Please select a different name and try again. + ErrCodeBucketAlreadyExists = "BucketAlreadyExists" + + // ErrCodeBucketAlreadyOwnedByYou for service response error code + // "BucketAlreadyOwnedByYou". + ErrCodeBucketAlreadyOwnedByYou = "BucketAlreadyOwnedByYou" + + // ErrCodeNoSuchBucket for service response error code + // "NoSuchBucket". + // + // The specified bucket does not exist. + ErrCodeNoSuchBucket = "NoSuchBucket" + + // ErrCodeNoSuchKey for service response error code + // "NoSuchKey". + // + // The specified key does not exist. + ErrCodeNoSuchKey = "NoSuchKey" + + // ErrCodeNoSuchUpload for service response error code + // "NoSuchUpload". + // + // The specified multipart upload does not exist. + ErrCodeNoSuchUpload = "NoSuchUpload" + + // ErrCodeObjectAlreadyInActiveTierError for service response error code + // "ObjectAlreadyInActiveTierError". + // + // This operation is not allowed against this storage tier + ErrCodeObjectAlreadyInActiveTierError = "ObjectAlreadyInActiveTierError" + + // ErrCodeObjectNotInActiveTierError for service response error code + // "ObjectNotInActiveTierError". + // + // The source object of the COPY operation is not in the active tier and is + // only stored in Amazon Glacier. + ErrCodeObjectNotInActiveTierError = "ObjectNotInActiveTierError" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go index 9b10dfcbaa..ee7f647e96 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go @@ -70,16 +70,16 @@ func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // API operation AddPermission for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/AddPermission @@ -149,17 +149,17 @@ func (c *SNS) CheckIfPhoneNumberIsOptedOutRequest(input *CheckIfPhoneNumberIsOpt // API operation CheckIfPhoneNumberIsOptedOut for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CheckIfPhoneNumberIsOptedOut @@ -228,19 +228,19 @@ func (c *SNS) ConfirmSubscriptionRequest(input *ConfirmSubscriptionInput) (req * // API operation ConfirmSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionLimitExceeded +// * ErrCodeSubscriptionLimitExceededException "SubscriptionLimitExceeded" // Indicates that the customer already owns the maximum allowed number of subscriptions. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ConfirmSubscription @@ -330,13 +330,13 @@ func (c *SNS) CreatePlatformApplicationRequest(input *CreatePlatformApplicationI // API operation CreatePlatformApplication for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplication @@ -414,16 +414,16 @@ func (c *SNS) CreatePlatformEndpointRequest(input *CreatePlatformEndpointInput) // API operation CreatePlatformEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformEndpoint @@ -492,16 +492,16 @@ func (c *SNS) CreateTopicRequest(input *CreateTopicInput) (req *request.Request, // API operation CreateTopic for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * TopicLimitExceeded +// * ErrCodeTopicLimitExceededException "TopicLimitExceeded" // Indicates that the customer already owns the maximum allowed number of topics. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateTopic @@ -573,13 +573,13 @@ func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Re // API operation DeleteEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteEndpoint @@ -648,13 +648,13 @@ func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationI // API operation DeletePlatformApplication for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeletePlatformApplication @@ -724,16 +724,16 @@ func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request, // API operation DeleteTopic for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteTopic @@ -800,16 +800,16 @@ func (c *SNS) GetEndpointAttributesRequest(input *GetEndpointAttributesInput) (r // API operation GetEndpointAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetEndpointAttributes @@ -876,16 +876,16 @@ func (c *SNS) GetPlatformApplicationAttributesRequest(input *GetPlatformApplicat // API operation GetPlatformApplicationAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetPlatformApplicationAttributes @@ -952,17 +952,17 @@ func (c *SNS) GetSMSAttributesRequest(input *GetSMSAttributesInput) (req *reques // API operation GetSMSAttributes for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSAttributes @@ -1027,16 +1027,16 @@ func (c *SNS) GetSubscriptionAttributesRequest(input *GetSubscriptionAttributesI // API operation GetSubscriptionAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributes @@ -1102,16 +1102,16 @@ func (c *SNS) GetTopicAttributesRequest(input *GetTopicAttributesInput) (req *re // API operation GetTopicAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetTopicAttributes @@ -1189,16 +1189,16 @@ func (c *SNS) ListEndpointsByPlatformApplicationRequest(input *ListEndpointsByPl // API operation ListEndpointsByPlatformApplication for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListEndpointsByPlatformApplication @@ -1296,17 +1296,17 @@ func (c *SNS) ListPhoneNumbersOptedOutRequest(input *ListPhoneNumbersOptedOutInp // API operation ListPhoneNumbersOptedOut for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPhoneNumbersOptedOut @@ -1384,13 +1384,13 @@ func (c *SNS) ListPlatformApplicationsRequest(input *ListPlatformApplicationsInp // API operation ListPlatformApplications for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPlatformApplications @@ -1489,13 +1489,13 @@ func (c *SNS) ListSubscriptionsRequest(input *ListSubscriptionsInput) (req *requ // API operation ListSubscriptions for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptions @@ -1594,16 +1594,16 @@ func (c *SNS) ListSubscriptionsByTopicRequest(input *ListSubscriptionsByTopicInp // API operation ListSubscriptionsByTopic for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsByTopic @@ -1701,13 +1701,13 @@ func (c *SNS) ListTopicsRequest(input *ListTopicsInput) (req *request.Request, o // API operation ListTopics for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListTopics @@ -1800,17 +1800,17 @@ func (c *SNS) OptInPhoneNumberRequest(input *OptInPhoneNumberInput) (req *reques // API operation OptInPhoneNumber for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/OptInPhoneNumber @@ -1886,25 +1886,25 @@ func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output // API operation Publish for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * ParameterValueInvalid +// * ErrCodeInvalidParameterValueException "ParameterValueInvalid" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * EndpointDisabled +// * ErrCodeEndpointDisabledException "EndpointDisabled" // Exception error indicating endpoint disabled. // -// * PlatformApplicationDisabled +// * ErrCodePlatformApplicationDisabledException "PlatformApplicationDisabled" // Exception error indicating platform application disabled. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Publish @@ -1971,16 +1971,16 @@ func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques // API operation RemovePermission for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/RemovePermission @@ -2049,16 +2049,16 @@ func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (r // API operation SetEndpointAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetEndpointAttributes @@ -2129,16 +2129,16 @@ func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicat // API operation SetPlatformApplicationAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetPlatformApplicationAttributes @@ -2209,17 +2209,17 @@ func (c *SNS) SetSMSAttributesRequest(input *SetSMSAttributesInput) (req *reques // API operation SetSMSAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSMSAttributes @@ -2286,16 +2286,16 @@ func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesI // API operation SetSubscriptionAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSubscriptionAttributes @@ -2362,16 +2362,16 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re // API operation SetTopicAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetTopicAttributes @@ -2439,19 +2439,19 @@ func (c *SNS) SubscribeRequest(input *SubscribeInput) (req *request.Request, out // API operation Subscribe for usage and error information. // // Returned Error Codes: -// * SubscriptionLimitExceeded +// * ErrCodeSubscriptionLimitExceededException "SubscriptionLimitExceeded" // Indicates that the customer already owns the maximum allowed number of subscriptions. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Subscribe @@ -2523,16 +2523,16 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, // API operation Unsubscribe for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Unsubscribe diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go new file mode 100644 index 0000000000..c6e3dbe20f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go @@ -0,0 +1,67 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sns + +const ( + + // ErrCodeAuthorizationErrorException for service response error code + // "AuthorizationError". + // + // Indicates that the user has been denied access to the requested resource. + ErrCodeAuthorizationErrorException = "AuthorizationError" + + // ErrCodeEndpointDisabledException for service response error code + // "EndpointDisabled". + // + // Exception error indicating endpoint disabled. + ErrCodeEndpointDisabledException = "EndpointDisabled" + + // ErrCodeInternalErrorException for service response error code + // "InternalError". + // + // Indicates an internal service error. + ErrCodeInternalErrorException = "InternalError" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameter". + // + // Indicates that a request parameter does not comply with the associated constraints. + ErrCodeInvalidParameterException = "InvalidParameter" + + // ErrCodeInvalidParameterValueException for service response error code + // "ParameterValueInvalid". + // + // Indicates that a request parameter does not comply with the associated constraints. + ErrCodeInvalidParameterValueException = "ParameterValueInvalid" + + // ErrCodeNotFoundException for service response error code + // "NotFound". + // + // Indicates that the requested resource does not exist. + ErrCodeNotFoundException = "NotFound" + + // ErrCodePlatformApplicationDisabledException for service response error code + // "PlatformApplicationDisabled". + // + // Exception error indicating platform application disabled. + ErrCodePlatformApplicationDisabledException = "PlatformApplicationDisabled" + + // ErrCodeSubscriptionLimitExceededException for service response error code + // "SubscriptionLimitExceeded". + // + // Indicates that the customer already owns the maximum allowed number of subscriptions. + ErrCodeSubscriptionLimitExceededException = "SubscriptionLimitExceeded" + + // ErrCodeThrottledException for service response error code + // "Throttled". + // + // Indicates that the rate at which requests have been submitted for this action + // exceeds the limit for your account. + ErrCodeThrottledException = "Throttled" + + // ErrCodeTopicLimitExceededException for service response error code + // "TopicLimitExceeded". + // + // Indicates that the customer already owns the maximum allowed number of topics. + ErrCodeTopicLimitExceededException = "TopicLimitExceeded" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go index 90af455706..207ef6d492 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go @@ -88,7 +88,7 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // API operation AddPermission for usage and error information. // // Returned Error Codes: -// * OverLimit +// * ErrCodeOverLimit "OverLimit" // The action that you requested would violate a limit. For example, ReceiveMessage // returns this error if the maximum number of inflight messages is reached. // AddPermission returns this error if the maximum number of permissions for @@ -194,10 +194,10 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // API operation ChangeMessageVisibility for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.MessageNotInflight +// * ErrCodeMessageNotInflight "AWS.SimpleQueueService.MessageNotInflight" // The message referred to isn't in flight. // -// * ReceiptHandleIsInvalid +// * ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" // The receipt handle provided isn't valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibility @@ -277,16 +277,16 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // API operation ChangeMessageVisibilityBatch for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest +// * ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" // The batch request contains more entries than permissible. // -// * AWS.SimpleQueueService.EmptyBatchRequest +// * ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" // The batch request doesn't contain any entries. // -// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct +// * ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" // Two or more batch entries in the request have the same Id. // -// * AWS.SimpleQueueService.InvalidBatchEntryId +// * ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" // The Id of a batch entry in a batch request doesn't abide by the specification. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatch @@ -391,11 +391,11 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // API operation CreateQueue for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.QueueDeletedRecently +// * ErrCodeQueueDeletedRecently "AWS.SimpleQueueService.QueueDeletedRecently" // You must wait 60 seconds after deleting a queue before you can create another // one with the same name. // -// * QueueAlreadyExists +// * ErrCodeQueueNameExists "QueueAlreadyExists" // A queue already exists with this name. Amazon SQS returns this error only // if the request includes attributes whose values differ from those of the // existing queue. @@ -483,10 +483,10 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // API operation DeleteMessage for usage and error information. // // Returned Error Codes: -// * InvalidIdFormat +// * ErrCodeInvalidIdFormat "InvalidIdFormat" // The receipt handle isn't valid for the current version. // -// * ReceiptHandleIsInvalid +// * ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" // The receipt handle provided isn't valid. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessage @@ -565,16 +565,16 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // API operation DeleteMessageBatch for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest +// * ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" // The batch request contains more entries than permissible. // -// * AWS.SimpleQueueService.EmptyBatchRequest +// * ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" // The batch request doesn't contain any entries. // -// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct +// * ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" // Two or more batch entries in the request have the same Id. // -// * AWS.SimpleQueueService.InvalidBatchEntryId +// * ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" // The Id of a batch entry in a batch request doesn't abide by the specification. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatch @@ -721,7 +721,7 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // API operation GetQueueAttributes for usage and error information. // // Returned Error Codes: -// * InvalidAttributeName +// * ErrCodeInvalidAttributeName "InvalidAttributeName" // The attribute referred to doesn't exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributes @@ -793,7 +793,7 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // API operation GetQueueUrl for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.NonExistentQueue +// * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" // The queue referred to doesn't exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrl @@ -863,7 +863,7 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // API operation ListDeadLetterSourceQueues for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.NonExistentQueue +// * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" // The queue referred to doesn't exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueues @@ -1001,10 +1001,10 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // API operation PurgeQueue for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.NonExistentQueue +// * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" // The queue referred to doesn't exist. // -// * AWS.SimpleQueueService.PurgeQueueInProgress +// * ErrCodePurgeQueueInProgress "AWS.SimpleQueueService.PurgeQueueInProgress" // Indicates that the specified queue previously received a PurgeQueue request // within the last 60 seconds (the time it can take to delete the messages in // the queue). @@ -1117,7 +1117,7 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // API operation ReceiveMessage for usage and error information. // // Returned Error Codes: -// * OverLimit +// * ErrCodeOverLimit "OverLimit" // The action that you requested would violate a limit. For example, ReceiveMessage // returns this error if the maximum number of inflight messages is reached. // AddPermission returns this error if the maximum number of permissions for @@ -1267,10 +1267,10 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, // API operation SendMessage for usage and error information. // // Returned Error Codes: -// * InvalidMessageContents +// * ErrCodeInvalidMessageContents "InvalidMessageContents" // The message contains characters outside the allowed set. // -// * AWS.SimpleQueueService.UnsupportedOperation +// * ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" // Error code 400. Unsupported operation. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessage @@ -1376,22 +1376,22 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // API operation SendMessageBatch for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest +// * ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" // The batch request contains more entries than permissible. // -// * AWS.SimpleQueueService.EmptyBatchRequest +// * ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" // The batch request doesn't contain any entries. // -// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct +// * ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" // Two or more batch entries in the request have the same Id. // -// * AWS.SimpleQueueService.BatchRequestTooLong +// * ErrCodeBatchRequestTooLong "AWS.SimpleQueueService.BatchRequestTooLong" // The length of all the messages put together is more than the limit. // -// * AWS.SimpleQueueService.InvalidBatchEntryId +// * ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" // The Id of a batch entry in a batch request doesn't abide by the specification. // -// * AWS.SimpleQueueService.UnsupportedOperation +// * ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" // Error code 400. Unsupported operation. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatch @@ -1465,7 +1465,7 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // API operation SetQueueAttributes for usage and error information. // // Returned Error Codes: -// * InvalidAttributeName +// * ErrCodeInvalidAttributeName "InvalidAttributeName" // The attribute referred to doesn't exist. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributes diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go new file mode 100644 index 0000000000..d4f394e0ec --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go @@ -0,0 +1,110 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sqs + +const ( + + // ErrCodeBatchEntryIdsNotDistinct for service response error code + // "AWS.SimpleQueueService.BatchEntryIdsNotDistinct". + // + // Two or more batch entries in the request have the same Id. + ErrCodeBatchEntryIdsNotDistinct = "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + + // ErrCodeBatchRequestTooLong for service response error code + // "AWS.SimpleQueueService.BatchRequestTooLong". + // + // The length of all the messages put together is more than the limit. + ErrCodeBatchRequestTooLong = "AWS.SimpleQueueService.BatchRequestTooLong" + + // ErrCodeEmptyBatchRequest for service response error code + // "AWS.SimpleQueueService.EmptyBatchRequest". + // + // The batch request doesn't contain any entries. + ErrCodeEmptyBatchRequest = "AWS.SimpleQueueService.EmptyBatchRequest" + + // ErrCodeInvalidAttributeName for service response error code + // "InvalidAttributeName". + // + // The attribute referred to doesn't exist. + ErrCodeInvalidAttributeName = "InvalidAttributeName" + + // ErrCodeInvalidBatchEntryId for service response error code + // "AWS.SimpleQueueService.InvalidBatchEntryId". + // + // The Id of a batch entry in a batch request doesn't abide by the specification. + ErrCodeInvalidBatchEntryId = "AWS.SimpleQueueService.InvalidBatchEntryId" + + // ErrCodeInvalidIdFormat for service response error code + // "InvalidIdFormat". + // + // The receipt handle isn't valid for the current version. + ErrCodeInvalidIdFormat = "InvalidIdFormat" + + // ErrCodeInvalidMessageContents for service response error code + // "InvalidMessageContents". + // + // The message contains characters outside the allowed set. + ErrCodeInvalidMessageContents = "InvalidMessageContents" + + // ErrCodeMessageNotInflight for service response error code + // "AWS.SimpleQueueService.MessageNotInflight". + // + // The message referred to isn't in flight. + ErrCodeMessageNotInflight = "AWS.SimpleQueueService.MessageNotInflight" + + // ErrCodeOverLimit for service response error code + // "OverLimit". + // + // The action that you requested would violate a limit. For example, ReceiveMessage + // returns this error if the maximum number of inflight messages is reached. + // AddPermission returns this error if the maximum number of permissions for + // the queue is reached. + ErrCodeOverLimit = "OverLimit" + + // ErrCodePurgeQueueInProgress for service response error code + // "AWS.SimpleQueueService.PurgeQueueInProgress". + // + // Indicates that the specified queue previously received a PurgeQueue request + // within the last 60 seconds (the time it can take to delete the messages in + // the queue). + ErrCodePurgeQueueInProgress = "AWS.SimpleQueueService.PurgeQueueInProgress" + + // ErrCodeQueueDeletedRecently for service response error code + // "AWS.SimpleQueueService.QueueDeletedRecently". + // + // You must wait 60 seconds after deleting a queue before you can create another + // one with the same name. + ErrCodeQueueDeletedRecently = "AWS.SimpleQueueService.QueueDeletedRecently" + + // ErrCodeQueueDoesNotExist for service response error code + // "AWS.SimpleQueueService.NonExistentQueue". + // + // The queue referred to doesn't exist. + ErrCodeQueueDoesNotExist = "AWS.SimpleQueueService.NonExistentQueue" + + // ErrCodeQueueNameExists for service response error code + // "QueueAlreadyExists". + // + // A queue already exists with this name. Amazon SQS returns this error only + // if the request includes attributes whose values differ from those of the + // existing queue. + ErrCodeQueueNameExists = "QueueAlreadyExists" + + // ErrCodeReceiptHandleIsInvalid for service response error code + // "ReceiptHandleIsInvalid". + // + // The receipt handle provided isn't valid. + ErrCodeReceiptHandleIsInvalid = "ReceiptHandleIsInvalid" + + // ErrCodeTooManyEntriesInBatchRequest for service response error code + // "AWS.SimpleQueueService.TooManyEntriesInBatchRequest". + // + // The batch request contains more entries than permissible. + ErrCodeTooManyEntriesInBatchRequest = "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + + // ErrCodeUnsupportedOperation for service response error code + // "AWS.SimpleQueueService.UnsupportedOperation". + // + // Error code 400. Unsupported operation. + ErrCodeUnsupportedOperation = "AWS.SimpleQueueService.UnsupportedOperation" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go index 19c57ed68c..ad42b4c973 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go @@ -153,16 +153,16 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // API operation AssumeRole for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating @@ -297,31 +297,31 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // API operation AssumeRoleWithSAML for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * IDPRejectedClaim +// * ErrCodeIDPRejectedClaimException "IDPRejectedClaim" // The identity provider (IdP) reported that authentication failed. This might // be because the claim is invalid. // // If this error is returned for the AssumeRoleWithWebIdentity operation, it // can also mean that the claim has expired or has been explicitly revoked. // -// * InvalidIdentityToken +// * ErrCodeInvalidIdentityTokenException "InvalidIdentityToken" // The web identity token that was passed could not be validated by AWS. Get // a new identity token from the identity provider and then retry the request. // -// * ExpiredTokenException +// * ErrCodeExpiredTokenException "ExpiredTokenException" // The web identity token that was passed is expired or is not valid. Get a // new identity token from the identity provider and then retry the request. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating @@ -478,38 +478,38 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // API operation AssumeRoleWithWebIdentity for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * IDPRejectedClaim +// * ErrCodeIDPRejectedClaimException "IDPRejectedClaim" // The identity provider (IdP) reported that authentication failed. This might // be because the claim is invalid. // // If this error is returned for the AssumeRoleWithWebIdentity operation, it // can also mean that the claim has expired or has been explicitly revoked. // -// * IDPCommunicationError +// * ErrCodeIDPCommunicationErrorException "IDPCommunicationError" // The request could not be fulfilled because the non-AWS identity provider // (IDP) that was asked to verify the incoming identity token could not be reached. // This is often a transient error caused by network conditions. Retry the request // a limited number of times so that you don't exceed the request rate. If the // error persists, the non-AWS identity provider might be down or not responding. // -// * InvalidIdentityToken +// * ErrCodeInvalidIdentityTokenException "InvalidIdentityToken" // The web identity token that was passed could not be validated by AWS. Get // a new identity token from the identity provider and then retry the request. // -// * ExpiredTokenException +// * ErrCodeExpiredTokenException "ExpiredTokenException" // The web identity token that was passed is expired or is not valid. Get a // new identity token from the identity provider and then retry the request. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating @@ -609,7 +609,7 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // API operation DecodeAuthorizationMessage for usage and error information. // // Returned Error Codes: -// * InvalidAuthorizationMessageException +// * ErrCodeInvalidAuthorizationMessageException "InvalidAuthorizationMessageException" // The error returned if the message passed to DecodeAuthorizationMessage was // invalid. This can happen if the token contains invalid characters, such as // linebreaks. @@ -814,16 +814,16 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // API operation GetFederationToken for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating @@ -937,7 +937,7 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // API operation GetSessionToken for usage and error information. // // Returned Error Codes: -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go new file mode 100644 index 0000000000..dbcd66759c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go @@ -0,0 +1,73 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sts + +const ( + + // ErrCodeExpiredTokenException for service response error code + // "ExpiredTokenException". + // + // The web identity token that was passed is expired or is not valid. Get a + // new identity token from the identity provider and then retry the request. + ErrCodeExpiredTokenException = "ExpiredTokenException" + + // ErrCodeIDPCommunicationErrorException for service response error code + // "IDPCommunicationError". + // + // The request could not be fulfilled because the non-AWS identity provider + // (IDP) that was asked to verify the incoming identity token could not be reached. + // This is often a transient error caused by network conditions. Retry the request + // a limited number of times so that you don't exceed the request rate. If the + // error persists, the non-AWS identity provider might be down or not responding. + ErrCodeIDPCommunicationErrorException = "IDPCommunicationError" + + // ErrCodeIDPRejectedClaimException for service response error code + // "IDPRejectedClaim". + // + // The identity provider (IdP) reported that authentication failed. This might + // be because the claim is invalid. + // + // If this error is returned for the AssumeRoleWithWebIdentity operation, it + // can also mean that the claim has expired or has been explicitly revoked. + ErrCodeIDPRejectedClaimException = "IDPRejectedClaim" + + // ErrCodeInvalidAuthorizationMessageException for service response error code + // "InvalidAuthorizationMessageException". + // + // The error returned if the message passed to DecodeAuthorizationMessage was + // invalid. This can happen if the token contains invalid characters, such as + // linebreaks. + ErrCodeInvalidAuthorizationMessageException = "InvalidAuthorizationMessageException" + + // ErrCodeInvalidIdentityTokenException for service response error code + // "InvalidIdentityToken". + // + // The web identity token that was passed could not be validated by AWS. Get + // a new identity token from the identity provider and then retry the request. + ErrCodeInvalidIdentityTokenException = "InvalidIdentityToken" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocument". + // + // The request was rejected because the policy document was malformed. The error + // message describes the specific error. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocument" + + // ErrCodePackedPolicyTooLargeException for service response error code + // "PackedPolicyTooLarge". + // + // The request was rejected because the policy document was too large. The error + // message describes how big the policy document is, in packed form, as a percentage + // of what the API allows. + ErrCodePackedPolicyTooLargeException = "PackedPolicyTooLarge" + + // ErrCodeRegionDisabledException for service response error code + // "RegionDisabledException". + // + // STS is not activated in the requested region for the account that is being + // asked to generate credentials. The account administrator must use the IAM + // console to activate STS in that region. For more information, see Activating + // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) + // in the IAM User Guide. + ErrCodeRegionDisabledException = "RegionDisabledException" +)